// Definitions for the HV monitoring in Nov. 2015 beamtime at CERN SPS // 15/12/2015, P.-A. Loizeau /************************ Files definitions *************************/ // 2015-11-26 1 // 261115 // 1820 // 2015-11-27 2 // 271115 271115 // 1142 1901 // 2015-11-28 1 // 281115 // 0803 // 2015-11-29 1 // 291115 // 1602 // 2015-11-30 3 // 301115 301115 301115 // 0030 1046 2019 const Int_t kiNbFiles = 1 + 2 + 1 + 1 + 3; const TString ksFilesDay[kiNbFiles] = { "261115", "271115", "271115", "281115", "291115", "301115", "301115", "301115" }; const TString ksFilesHour[kiNbFiles] = { "1820", "1142", "1901", "0803", "1602", "0030", "1046", "2019" }; /************************ Boards definitions ************************/ const Int_t kiNbBoardsUsed = 8; // Slot in crate Int_t kiSlotIndex[kiNbBoardsUsed] = { 0, 2, 4, 6, 8, 10, 13, 14}; // Offset in file size in Byte std::streampos kiSlotSzOff[kiNbBoardsUsed] = { 0, 0, 0, 0, 0, 1, 2, 2}; /*********************** Detectors definitions **********************/ const Int_t kiNbRpc = 17; TString sChNameRpc[kiNbRpc] = { "HD_P2", "HD_P5", "TSU_ds", "TSU_du", "TSU_su", "TSU_PAD", "USTC_du", "USTC_sss", "USTC_ssu", "B_2015_SS", "B_2015_DS", "B_2012", "BUC_Ref", "BUC_2013", "BUC_2010", "CRPC_0", "CRPC_1"}; Int_t iSlotRpcNeg[kiNbRpc] = { 0 , 0 , 0 , 0 , 0 , 0 , 2 , 2 , 2 , 2 , 2 , 2 , 4 , 4 , 4 , 4 , 4 }; Int_t iBdIdxRpcNeg[kiNbRpc] = { 0 , 0 , 0 , 0 , 0 , 0 , 4 , 4 , 4 , 4 , 4 , 4 , 8 , 8 , 8 , 8 , 8 }; Int_t iChIdxRpcNeg[kiNbRpc] = { 0 , 1 , 2 , 3 , 4 , 5 , 0 , 1 , 2 , 3 , 4 , 5 , 0 , 1 , 2 , 4 , 5 }; Int_t iSlotRpcPos[kiNbRpc] = { 1 , 1 , 1 , 1 , 1 , 1 , 3 , 3 , 3 , 3 , 3 , 3 , 5 , 5 , 5 , 5 , 5 }; Int_t iBdIdxRpcPos[kiNbRpc] = { 2 , 2 , 2 , 2 , 2 , 2 , 6 , 6 , 6 , 6 , 6 , 6 , 10 , 10 , 10 , 10 , 10 }; Int_t iChIdxRpcPos[kiNbRpc] = { 0 , 1 , 2 , 3 , 4 , 5 , 0 , 1 , 2 , 3 , 4 , 5 , 0 , 1 , 2 , 4 , 5 }; const Int_t kiPmtOffset = 20; const Int_t kiNbPmt = 10; TString sChNamePmt[kiNbPmt] = { "PMT1", "PMT2", "PMT3", "PMT4", "BFL", "BFR", "BBL", "BBR", "PMT5", "Dia_PMT" }; Int_t iSlotPmtNeg[kiNbPmt] = { 6 , 6 , 6 , 6 , 7 , 7 , 7 , 7 , 7 , 7 }; Int_t iBdIdxPmtNeg[kiNbPmt] = { 13 , 13 , 13 , 13 , 14 , 14 , 14 , 14 , 14 , 14 }; Int_t iChIdxPmtNeg[kiNbPmt] = { 0 , 1 , 4 , 5 , 0 , 1 , 2 , 3 , 4 , 5 }; const Int_t kiTrdOffset = 40; const Int_t kiNbTrd = 0; /* TString sChNameTrd[kiNbTrd] = { "T_2010", "T_2012_1", "T_2012_2", "T_2012_3", "T_2012_4" }; Int_t iSlotTrdNeg[kiNbTrd] = { 6 , 6 , 6 , 6 , 6 }; Int_t iBdIdxTrdNeg[kiNbTrd] = { 8 , 8 , 8 , 8 , 8 }; Int_t iChIdxTrdNeg[kiNbTrd] = { 0 , 1 , 1 , 1 , 1 }; Int_t iSlotTrdPos[kiNbTrd] = { 7 , 7 , 7 , 7 , 7 }; Int_t iBdIdxTrdPos[kiNbTrd] = { 10 , 10 , 10 , 10 , 10 }; Int_t iChIdxTrdPos[kiNbTrd] = { 0 , 1 , 2 , 3 , 4 }; */ const Int_t kiSpillDistSec = 30; // Approximate value, now just default const Double_t kdSpillDiamThr = 1e-4; // µA const Double_t kdNoSpillDiamThr = 1e-5; // µA void PrintHelp() { cout<<"Please provide a detector index, a data, a start time and a stop time as input!!!!"<