CbmRoot
feb15/current/FileListDef.h
Go to the documentation of this file.
1 // Definitions for the HV monitoring in Feb. 2015 beamtime at CERN SPS
2 // 22/04/2015, P.-A. Loizeau
3 
4 /************************ Files definitions *************************/
5 // 2015-02-24 3
6 // 240215 240215 240215
7 // 0957 1941 2224
8 
9 // 2015-02-25 2
10 // 250215 250215
11 // 1026 2024
12 
13 // 2015-02-26 4
14 // 260215 260215 260215 260215
15 // 0018 0949 1420 1831
16 
17 // 2015-02-27 2
18 // 270215 270215
19 // 0930 1715
20 
21 // 2015-02-28 2
22 // 280215 280215
23 // 1401 2133
24 
25 // 2015-03-01 5
26 // 010315 010315 010315 010315 010315
27 // 0947 1509 1512 2022 2332
28 
29 // 2015-03-02 12
30 // 020315 020315 020315 020315 020315 020315 020315 020315 020315 020315 020315 020315
31 // 1102 1417 1940 2002 2025 2032 2045 2056 2144 2202 2228 2248
32 
33 // 2015-03-03 3
34 // 030315 030315 030315
35 // 0141 1423 2214
36 
37 // 2015-03-04 2
38 // 040315 040315
39 // 0252 1717
40 
41 const Int_t kiNbFiles = 3 + 2 + 4 + 2 + 2 + 5 + 12 + 3 + 2;
42 const TString ksFilesDay[kiNbFiles] = {
43  "240215", "240215", "240215", "250215", "250215", "260215", "260215",
44  "260215", "260215", "270215", "270215", "280215", "280215", "010315",
45  "010315", "010315", "010315", "010315", "020315", "020315", "020315",
46  "020315", "020315", "020315", "020315", "020315", "020315", "020315",
47  "020315", "020315", "030315", "030315", "030315", "040315", "040315"};
48 const TString ksFilesHour[kiNbFiles] = {
49  "0957", "1941", "2224", "1026", "2024", "0018", "0949", "1420", "1831",
50  "0930", "1715", "1401", "2133", "0947", "1509", "1512", "2022", "2332",
51  "1102", "1417", "1940", "2002", "2025", "2032", "2045", "2056", "2144",
52  "2202", "2228", "2248", "0141", "1423", "2214", "0252", "1717"};
53 
54 /************************ Boards definitions ************************/
55 const Int_t kiNbBoardsUsed = 8;
56 // Slot in crate
57 Int_t kiSlotIndex[kiNbBoardsUsed] = {0, 4, 2, 6, 13, 14, 8, 10};
58 // Offset in file size in Byte
59 std::streampos kiSlotSzOff[kiNbBoardsUsed] = {0, 0, 0, 0, 2, 2, 0, 1};
60 
61 /*********************** Detectors definitions **********************/
62 const Int_t kiNbRpc = 12;
63 TString sChNameRpc[kiNbRpc] = {"HD_P2",
64  "HD_P5",
65  "------",
66  "USTC",
67  "TS_STR",
68  "TS_PAD",
69  "BUC_Ref",
70  "BUC_2013",
71  "B_2012_1",
72  "B_2012_2",
73  "B_2012_3",
74  "B_2012_4"};
75 Int_t iSlotRpcNeg[kiNbRpc] = {0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1};
76 Int_t iBdIdxRpcNeg[kiNbRpc] = {0, 0, 0, 0, 0, 0, 4, 4, 4, 4, 4, 4};
77 Int_t iChIdxRpcNeg[kiNbRpc] = {0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5};
78 Int_t iSlotRpcPos[kiNbRpc] = {2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3};
79 Int_t iBdIdxRpcPos[kiNbRpc] = {2, 2, 2, 2, 2, 2, 6, 6, 6, 6, 6, 6};
80 Int_t iChIdxRpcPos[kiNbRpc] = {0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5};
81 
82 const Int_t kiPmtOffset = 20;
83 const Int_t kiNbPmt = 11;
84 TString sChNamePmt[kiNbPmt] = {"HFL",
85  "HFR",
86  "calo",
87  "HBL",
88  "HBR",
89  "BFL",
90  "BFR",
91  "BBL",
92  "BBR",
93  "PMT5",
94  "Dia_PMT"};
95 Int_t iSlotPmtNeg[kiNbPmt] = {4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5};
96 Int_t iBdIdxPmtNeg[kiNbPmt] = {13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14};
97 Int_t iChIdxPmtNeg[kiNbPmt] = {0, 1, 2, 4, 5, 0, 1, 2, 3, 4, 5};
98 
99 const Int_t kiTrdOffset = 40;
100 const Int_t kiNbTrd = 5;
101 TString sChNameTrd[kiNbTrd] = {"T_2010",
102  "T_2012_1",
103  "T_2012_2",
104  "T_2012_3",
105  "T_2012_4"};
106 Int_t iSlotTrdNeg[kiNbTrd] = {6, 6, 6, 6, 6};
107 Int_t iBdIdxTrdNeg[kiNbTrd] = {8, 8, 8, 8, 8};
108 Int_t iChIdxTrdNeg[kiNbTrd] = {0, 1, 1, 1, 1};
109 Int_t iSlotTrdPos[kiNbTrd] = {7, 7, 7, 7, 7};
110 Int_t iBdIdxTrdPos[kiNbTrd] = {10, 10, 10, 10, 10};
111 Int_t iChIdxTrdPos[kiNbTrd] = {0, 1, 2, 3, 4};
112 
113 const Int_t kiSpillDistSec = 30; // Approximate value, now just default
114 const Double_t kdSpillDiamThr = 1e-4; // µA
115 const Double_t kdNoSpillDiamThr = 1e-5; // µA
116 
117 void PrintHelp() {
118  cout << "Please provide a detector index, a data, a start time and a stop "
119  "time as input!!!!"
120  << endl;
121  cout << "Example: root -l \'XXXXXXXX.C( 3, \"2015-03-04 19:30:00\", "
122  "\"2015-03-04 20:00:00\", \"YYY.root\" )\' "
123  << endl;
124  cout << "or within root: .x currentConv.C( 1 ) " << endl;
125  cout << "Possible detector values are: " << endl;
126  cout << " 0 for HD RPC-P3 " << endl;
127  cout << " 1 for HD RPC-P2 " << endl;
128  cout << " 2 for HD RPC-P5 " << endl;
129  cout << " 3 for USTC " << endl;
130  cout << " 4 for TSU Strip " << endl;
131  cout << " 5 for TSU PAD " << endl;
132  cout << " 6 for BUC ref " << endl;
133  cout << " 7 for BUC 2013 " << endl;
134  cout << " 8 for BUC 2012 #1 " << endl;
135  cout << " 9 for BUC 2012 #2 " << endl;
136  cout << "10 for BUC 2012 #3 " << endl;
137  cout << "11 for BUC 2012 #4 " << endl;
138  cout << "-----------------" << endl;
139  cout << "20 for PMT Top Front Left" << endl;
140  cout << "21 for PMT Top Front Right" << endl;
141  cout << "22 for Pb Calorimeter" << endl;
142  cout << "23 for PMT Top Back Left" << endl;
143  cout << "24 for PMT Top Back Right" << endl;
144  cout << "25 for PMT Bot Front Left" << endl;
145  cout << "26 for PMT Bot Front Right" << endl;
146  cout << "27 for PMT Bot Back Left" << endl;
147  cout << "28 for PMT Top Back Right" << endl;
148  cout << "29 for PMT5" << endl;
149  cout << "30 for PMT Diamond" << endl;
150  cout << "-----------------" << endl;
151  cout << "40 for TRD 2010" << endl;
152  cout << "41 for TRD 2012 Neg or TRD 2012 #1 Pos" << endl;
153  cout << "42 for TRD 2012 Neg or TRD 2012 #2 Pos" << endl;
154  cout << "43 for TRD 2012 Neg or TRD 2012 #3 Pos" << endl;
155  cout << "44 for TRD 2012 Neg or TRD 2012 #4 Pos" << endl;
156  cout << "-----------------" << endl;
157  cout << "The date format is: YYYYMMDD" << endl;
158  cout << "The time format is: HHMM" << endl;
159 }
iBdIdxTrdPos
Int_t iBdIdxTrdPos[kiNbTrd]
Definition: feb15/current/FileListDef.h:110
iSlotTrdNeg
Int_t iSlotTrdNeg[kiNbTrd]
Definition: feb15/current/FileListDef.h:106
iChIdxTrdNeg
Int_t iChIdxTrdNeg[kiNbTrd]
Definition: feb15/current/FileListDef.h:108
iChIdxTrdPos
Int_t iChIdxTrdPos[kiNbTrd]
Definition: feb15/current/FileListDef.h:111
iBdIdxPmtNeg
Int_t iBdIdxPmtNeg[kiNbPmt]
Definition: feb15/current/FileListDef.h:96
kiPmtOffset
const Int_t kiPmtOffset
Definition: feb15/current/FileListDef.h:82
kiSpillDistSec
const Int_t kiSpillDistSec
Definition: feb15/current/FileListDef.h:113
kiNbPmt
const Int_t kiNbPmt
Definition: feb15/current/FileListDef.h:83
kiNbTrd
const Int_t kiNbTrd
Definition: feb15/current/FileListDef.h:100
iBdIdxTrdNeg
Int_t iBdIdxTrdNeg[kiNbTrd]
Definition: feb15/current/FileListDef.h:107
kiSlotSzOff
std::streampos kiSlotSzOff[kiNbBoardsUsed]
Definition: feb15/current/FileListDef.h:59
PrintHelp
void PrintHelp()
Definition: feb15/current/FileListDef.h:117
kiNbRpc
const Int_t kiNbRpc
Definition: feb15/current/FileListDef.h:62
sChNamePmt
TString sChNamePmt[kiNbPmt]
Definition: feb15/current/FileListDef.h:84
ksFilesDay
const TString ksFilesDay[kiNbFiles]
Definition: feb15/current/FileListDef.h:42
kiNbBoardsUsed
const Int_t kiNbBoardsUsed
Definition: feb15/current/FileListDef.h:55
iSlotPmtNeg
Int_t iSlotPmtNeg[kiNbPmt]
Definition: feb15/current/FileListDef.h:95
iChIdxRpcNeg
Int_t iChIdxRpcNeg[kiNbRpc]
Definition: feb15/current/FileListDef.h:77
iBdIdxRpcPos
Int_t iBdIdxRpcPos[kiNbRpc]
Definition: feb15/current/FileListDef.h:79
kdSpillDiamThr
const Double_t kdSpillDiamThr
Definition: feb15/current/FileListDef.h:114
iSlotRpcNeg
Int_t iSlotRpcNeg[kiNbRpc]
Definition: feb15/current/FileListDef.h:75
iBdIdxRpcNeg
Int_t iBdIdxRpcNeg[kiNbRpc]
Definition: feb15/current/FileListDef.h:76
ksFilesHour
const TString ksFilesHour[kiNbFiles]
Definition: feb15/current/FileListDef.h:48
kiSlotIndex
Int_t kiSlotIndex[kiNbBoardsUsed]
Definition: feb15/current/FileListDef.h:57
iChIdxRpcPos
Int_t iChIdxRpcPos[kiNbRpc]
Definition: feb15/current/FileListDef.h:80
sChNameTrd
TString sChNameTrd[kiNbTrd]
Definition: feb15/current/FileListDef.h:101
iSlotTrdPos
Int_t iSlotTrdPos[kiNbTrd]
Definition: feb15/current/FileListDef.h:109
kiNbFiles
const Int_t kiNbFiles
Definition: feb15/current/FileListDef.h:41
sChNameRpc
TString sChNameRpc[kiNbRpc]
Definition: feb15/current/FileListDef.h:63
kdNoSpillDiamThr
const Double_t kdNoSpillDiamThr
Definition: feb15/current/FileListDef.h:115
iSlotRpcPos
Int_t iSlotRpcPos[kiNbRpc]
Definition: feb15/current/FileListDef.h:78
iChIdxPmtNeg
Int_t iChIdxPmtNeg[kiNbPmt]
Definition: feb15/current/FileListDef.h:97
kiTrdOffset
const Int_t kiTrdOffset
Definition: feb15/current/FileListDef.h:99