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