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