CbmRoot
nov15/current/FileListDef.h
Go to the documentation of this file.
1 // Definitions for the HV monitoring in Nov. 2015 beamtime at CERN SPS
2 // 15/12/2015, P.-A. Loizeau
3 
4 /************************ Files definitions *************************/
5 // 2015-11-26 1
6 // 261115
7 // 1820
8 
9 // 2015-11-27 2
10 // 271115 271115
11 // 1142 1901
12 
13 // 2015-11-28 1
14 // 281115
15 // 0803
16 
17 // 2015-11-29 1
18 // 291115
19 // 1602
20 
21 // 2015-11-30 3
22 // 301115 301115 301115
23 // 0030 1046 2019
24 
25 const Int_t kiNbFiles = 1 + 2 + 1 + 1 + 3;
26 const TString ksFilesDay[kiNbFiles] = {"261115",
27  "271115",
28  "271115",
29  "281115",
30  "291115",
31  "301115",
32  "301115",
33  "301115"};
34 const TString ksFilesHour[kiNbFiles] =
35  {"1820", "1142", "1901", "0803", "1602", "0030", "1046", "2019"};
36 
37 /************************ Boards definitions ************************/
38 const Int_t kiNbBoardsUsed = 8;
39 // Slot in crate
40 Int_t kiSlotIndex[kiNbBoardsUsed] = {0, 2, 4, 6, 8, 10, 13, 14};
41 // Offset in file size in Byte
42 std::streampos kiSlotSzOff[kiNbBoardsUsed] = {0, 0, 0, 0, 0, 1, 2, 2};
43 
44 /*********************** Detectors definitions **********************/
45 const Int_t kiNbRpc = 17;
46 TString sChNameRpc[kiNbRpc] = {"HD_P2",
47  "HD_P5",
48  "TSU_ds",
49  "TSU_du",
50  "TSU_su",
51  "TSU_PAD",
52  "USTC_du",
53  "USTC_sss",
54  "USTC_ssu",
55  "B_2015_SS",
56  "B_2015_DS",
57  "B_2012",
58  "BUC_Ref",
59  "BUC_2013",
60  "BUC_2010",
61  "CRPC_0",
62  "CRPC_1"};
64  {0, 0, 0, 0, 0, 0, 2, 2, 2, 2, 2, 2, 4, 4, 4, 4, 4};
66  {0, 0, 0, 0, 0, 0, 4, 4, 4, 4, 4, 4, 8, 8, 8, 8, 8};
68  {0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 4, 5};
70  {1, 1, 1, 1, 1, 1, 3, 3, 3, 3, 3, 3, 5, 5, 5, 5, 5};
72  {2, 2, 2, 2, 2, 2, 6, 6, 6, 6, 6, 6, 10, 10, 10, 10, 10};
74  {0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 4, 5};
75 
76 const Int_t kiPmtOffset = 20;
77 const Int_t kiNbPmt = 10;
78 TString sChNamePmt[kiNbPmt] = {"PMT1",
79  "PMT2",
80  "PMT3",
81  "PMT4",
82  "BFL",
83  "BFR",
84  "BBL",
85  "BBR",
86  "PMT5",
87  "Dia_PMT"};
88 Int_t iSlotPmtNeg[kiNbPmt] = {6, 6, 6, 6, 7, 7, 7, 7, 7, 7};
89 Int_t iBdIdxPmtNeg[kiNbPmt] = {13, 13, 13, 13, 14, 14, 14, 14, 14, 14};
90 Int_t iChIdxPmtNeg[kiNbPmt] = {0, 1, 4, 5, 0, 1, 2, 3, 4, 5};
91 
92 const Int_t kiTrdOffset = 40;
93 const Int_t kiNbTrd = 0;
94 /*
95 TString sChNameTrd[kiNbTrd] = { "T_2010", "T_2012_1", "T_2012_2", "T_2012_3", "T_2012_4" };
96 Int_t iSlotTrdNeg[kiNbTrd] = { 6 , 6 , 6 , 6 , 6 };
97 Int_t iBdIdxTrdNeg[kiNbTrd] = { 8 , 8 , 8 , 8 , 8 };
98 Int_t iChIdxTrdNeg[kiNbTrd] = { 0 , 1 , 1 , 1 , 1 };
99 Int_t iSlotTrdPos[kiNbTrd] = { 7 , 7 , 7 , 7 , 7 };
100 Int_t iBdIdxTrdPos[kiNbTrd] = { 10 , 10 , 10 , 10 , 10 };
101 Int_t iChIdxTrdPos[kiNbTrd] = { 0 , 1 , 2 , 3 , 4 };
102 */
103 
104 const Int_t kiSpillDistSec = 30; // Approximate value, now just default
105 const Double_t kdSpillDiamThr = 1e-4; // µA
106 const Double_t kdNoSpillDiamThr = 1e-5; // µA
107 
108 void PrintHelp() {
109  cout << "Please provide a detector index, a data, a start time and a stop "
110  "time as input!!!!"
111  << endl;
112  cout << "Example: root -l \'XXXXXXXX.C( 3, \"2015-11-27 19:30:00\", "
113  "\"2015-11-27 20:00:00\", \"YYY.root\" )\' "
114  << endl;
115  cout << "or within root: .x currentConv.C( 1 ) " << endl;
116  cout << "Possible detector values are: " << endl;
117  cout << " 0 for HD RPC-P2 " << endl;
118  cout << " 1 for HD RPC-P5 " << endl;
119  cout << " 2 for TSU ds " << endl;
120  cout << " 3 for TSU du " << endl;
121  cout << " 4 for TSU su " << endl;
122  cout << " 5 for TSU PAD " << endl;
123  cout << " 6 for USTC du " << endl;
124  cout << " 7 for USTC sss " << endl;
125  cout << " 8 for USTC ssu " << endl;
126  cout << " 9 for BUC 2015 SS" << endl;
127  cout << "10 for BUC 2015 SU" << endl;
128  cout << "11 for BUC 2012 " << endl;
129  cout << "12 for BUC ref " << endl;
130  cout << "13 for BUC 2013 " << endl;
131  cout << "14 for BUC 2010 " << endl;
132  cout << "15 for Cer RPC #0 " << endl;
133  cout << "16 for Cer RPC #1 " << endl;
134  cout << "-----------------" << endl;
135  cout << "20 for PMT #1" << endl;
136  cout << "21 for PMT #2" << endl;
137  cout << "22 for PMT #3" << endl;
138  cout << "23 for PMT #4" << endl;
139  cout << "24 for PMT Bot Front Left" << endl;
140  cout << "25 for PMT Bot Front Right" << endl;
141  cout << "26 for PMT Bot Back Left" << endl;
142  cout << "27 for PMT Top Back Right" << endl;
143  cout << "28 for PMT5" << endl;
144  cout << "29 for PMT Diamond" << endl;
145  cout << "-----------------" << endl;
146  /*
147  cout<<"40 for TRD 2010" <<endl;
148  cout<<"41 for TRD 2012 Neg or TRD 2012 #1 Pos"<<endl;
149  cout<<"42 for TRD 2012 Neg or TRD 2012 #2 Pos" <<endl;
150  cout<<"43 for TRD 2012 Neg or TRD 2012 #3 Pos" <<endl;
151  cout<<"44 for TRD 2012 Neg or TRD 2012 #4 Pos"<<endl;
152  cout<<"-----------------"<<endl;
153  */
154  cout << "The date format is: YYYYMMDD" << endl;
155  cout << "The time format is: HHMM" << endl;
156 }
kiSlotIndex
Int_t kiSlotIndex[kiNbBoardsUsed]
Definition: nov15/current/FileListDef.h:40
kiNbBoardsUsed
const Int_t kiNbBoardsUsed
Definition: nov15/current/FileListDef.h:38
kiTrdOffset
const Int_t kiTrdOffset
Definition: nov15/current/FileListDef.h:92
kdSpillDiamThr
const Double_t kdSpillDiamThr
Definition: nov15/current/FileListDef.h:105
iSlotRpcPos
Int_t iSlotRpcPos[kiNbRpc]
Definition: nov15/current/FileListDef.h:69
iBdIdxPmtNeg
Int_t iBdIdxPmtNeg[kiNbPmt]
Definition: nov15/current/FileListDef.h:89
kdNoSpillDiamThr
const Double_t kdNoSpillDiamThr
Definition: nov15/current/FileListDef.h:106
ksFilesHour
const TString ksFilesHour[kiNbFiles]
Definition: nov15/current/FileListDef.h:34
iBdIdxRpcNeg
Int_t iBdIdxRpcNeg[kiNbRpc]
Definition: nov15/current/FileListDef.h:65
ksFilesDay
const TString ksFilesDay[kiNbFiles]
Definition: nov15/current/FileListDef.h:26
kiNbFiles
const Int_t kiNbFiles
Definition: nov15/current/FileListDef.h:25
iChIdxPmtNeg
Int_t iChIdxPmtNeg[kiNbPmt]
Definition: nov15/current/FileListDef.h:90
sChNameRpc
TString sChNameRpc[kiNbRpc]
Definition: nov15/current/FileListDef.h:46
iChIdxRpcPos
Int_t iChIdxRpcPos[kiNbRpc]
Definition: nov15/current/FileListDef.h:73
kiNbPmt
const Int_t kiNbPmt
Definition: nov15/current/FileListDef.h:77
sChNamePmt
TString sChNamePmt[kiNbPmt]
Definition: nov15/current/FileListDef.h:78
kiSpillDistSec
const Int_t kiSpillDistSec
Definition: nov15/current/FileListDef.h:104
iSlotRpcNeg
Int_t iSlotRpcNeg[kiNbRpc]
Definition: nov15/current/FileListDef.h:63
iChIdxRpcNeg
Int_t iChIdxRpcNeg[kiNbRpc]
Definition: nov15/current/FileListDef.h:67
kiNbRpc
const Int_t kiNbRpc
Definition: nov15/current/FileListDef.h:45
kiPmtOffset
const Int_t kiPmtOffset
Definition: nov15/current/FileListDef.h:76
kiSlotSzOff
std::streampos kiSlotSzOff[kiNbBoardsUsed]
Definition: nov15/current/FileListDef.h:42
kiNbTrd
const Int_t kiNbTrd
Definition: nov15/current/FileListDef.h:93
iBdIdxRpcPos
Int_t iBdIdxRpcPos[kiNbRpc]
Definition: nov15/current/FileListDef.h:71
iSlotPmtNeg
Int_t iSlotPmtNeg[kiNbPmt]
Definition: nov15/current/FileListDef.h:88
PrintHelp
void PrintHelp()
Definition: nov15/current/FileListDef.h:108