ATLAS Offline Software
constants.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 /*
6  *
7  * constants for the ALFA analysis programs
8  *
9  */
10 
11 #include <cmath>
12 
13 constexpr unsigned int NUMPMTMD = 20; // Main Detector number of PMFs == PMTs
14 constexpr unsigned int NUMCHAMD = 64; // Main Detector number of channels
15 constexpr unsigned int NUMLAYMD = 20; // Main Detector number of layers
16 constexpr unsigned int NUMFIBMD = 64; // Main Detector number of fibers
17 
18 constexpr unsigned int NUMPMTOD = 3; // Overlap Detector number of PMFs == PMTs
19 constexpr unsigned int NUMCHAOD = 64; // Overlap Detector number of channels
20 constexpr unsigned int NUMLAYOD = 6; // Overlap Detector number of layers
21 constexpr unsigned int NUMFIBOD = 30; // Overlap Detector number of fibers
22 
23 // constants for LAL test-board
24 
25 constexpr unsigned int NUMKAPLAL = 2; // Two kaptons read by two test-board
26 constexpr unsigned int NUMPMTLAL = 5; // 5 PMT per kapton
27 
28 constexpr unsigned int NEVTFILE = 2; // Max nr. events in file (2 => 2000 events)
29 constexpr unsigned int HEADSIZE = 20; // 4*4+1*4 Bytes
30 constexpr unsigned int PMFSIZE = 8; // 2*4 Bytes
31 
32 constexpr unsigned int NUMPMTALL = NUMPMTMD + NUMPMTOD + 1;
33 constexpr unsigned int NUMPMFALL = 25;
34 constexpr unsigned int NUMRUN = 46;
35 
36 constexpr bool simData = false;
37 constexpr bool mapReadData = false;
38 
39 constexpr char* ROOTFILENAME = "./output.root";
40 constexpr char* TREENAME = "AlfaTree";
41 
42 // User control, prints, etc
43 // -------------------------
44 constexpr unsigned int NEVTMAX = 999999999; // <--- maximum possible (not change)
45 constexpr unsigned int KEVTMAX = 10000; // <---- up to user maximum (user)
46 constexpr unsigned int NCOSTEP = 1000;
47 constexpr unsigned int nPrintEvt = 1000;
48 
49 constexpr unsigned int MULCHA_Max = 64;
50 constexpr unsigned int MULFIB_Max = 64;
51 constexpr unsigned int MAX_SUMACT_CH = 100000;
52 
53 
54 // DAQ numbering
55 // -------------
56 constexpr unsigned int nDaqOD1 = 4;
57 constexpr unsigned int nDaqOD2 = 3;
58 constexpr unsigned int nDaqOD3 = 2;
59 
60 
61 // List noisy or dead fibers
62 // -------------------------
63 constexpr unsigned int jBadLayFib[10][10] = { {10} , {8} };
64 
65 // constants for Connectivity.C
66 // ----------------------------
67 // Mapping from MAROC bits to MAPMT channels
68 
69 constexpr char* MAROC2PMTFILE = "./mapping/MAROC_to_MAPMT.dat";
70 
71 // CON & GEO Data files
72 // --------------------
73 constexpr char* CONFILE_MD = "./mapping/conn_md.dat";
74 constexpr char* GEOFILE_MD = "./mapping/geom_md.dat";
75 
76 constexpr char* CONFILE_OD = "./mapping/OD_mapping.dat";
77 constexpr char* GEOFILE_OD = "./mapping/geom_od_last_bis.dat";
78 //constexpr char* GEOFILE_OD = "./mapping.d/geo_ultim_OD.dat";
79 //constexpr char* GEOFILE_OD = "./mapping.d/geo_last_OD.dat";
80 //constexpr char* GEOFILE_OD = "./mapping.d/geom_od_56.dat";
81 
82 constexpr char* CONFILE_LAL = "./mapping/conn_lal.dat";
83 
84 //Variable for the reconstruction program
85 //---------------------------------------
86 
87 constexpr double t_low = M_PI/4;
88 constexpr double t_high = 3*M_PI/4;
89 constexpr double r_low = 0.0;
90 constexpr double r_high = 64.0;
91 constexpr int t_bins = 100; // # Theta Bins
92 constexpr int r_bins = 64; // # R Bins
93 
94 constexpr double r_low_SI = 0.5;
95 constexpr double r_high_SI = 640.5;
96 constexpr int t_bins_SI = 100; // # Theta Bins
97 constexpr int r_bins_SI = 105; // # R Bins
98 
99 // Time variables
100 // --------------
101 
102 //time_t rawtime;
103 //struct tm * timeinfo;
104 //char timebuffer [80];
105 //string str_of_time;
106 
t_bins_SI
constexpr int t_bins_SI
Definition: constants.h:96
ROOTFILENAME
constexpr char * ROOTFILENAME
Definition: constants.h:39
t_low
constexpr double t_low
Definition: constants.h:87
KEVTMAX
constexpr unsigned int KEVTMAX
Definition: constants.h:45
MAX_SUMACT_CH
constexpr unsigned int MAX_SUMACT_CH
Definition: constants.h:51
M_PI
#define M_PI
Definition: ActiveFraction.h:11
t_bins
constexpr int t_bins
Definition: constants.h:91
NUMPMTALL
constexpr unsigned int NUMPMTALL
Definition: constants.h:32
NUMKAPLAL
constexpr unsigned int NUMKAPLAL
Definition: constants.h:25
NUMPMTLAL
constexpr unsigned int NUMPMTLAL
Definition: constants.h:26
NEVTMAX
constexpr unsigned int NEVTMAX
Definition: constants.h:44
TREENAME
constexpr char * TREENAME
Definition: constants.h:40
CONFILE_LAL
constexpr char * CONFILE_LAL
Definition: constants.h:82
MAROC2PMTFILE
constexpr char * MAROC2PMTFILE
Definition: constants.h:69
NUMFIBOD
constexpr unsigned int NUMFIBOD
Definition: constants.h:21
HEADSIZE
constexpr unsigned int HEADSIZE
Definition: constants.h:29
nDaqOD2
constexpr unsigned int nDaqOD2
Definition: constants.h:57
MULCHA_Max
constexpr unsigned int MULCHA_Max
Definition: constants.h:49
nPrintEvt
constexpr unsigned int nPrintEvt
Definition: constants.h:47
NUMLAYOD
constexpr unsigned int NUMLAYOD
Definition: constants.h:20
CONFILE_MD
constexpr char * CONFILE_MD
Definition: constants.h:73
NUMFIBMD
constexpr unsigned int NUMFIBMD
Definition: constants.h:16
r_low_SI
constexpr double r_low_SI
Definition: constants.h:94
NUMCHAOD
constexpr unsigned int NUMCHAOD
Definition: constants.h:19
r_bins_SI
constexpr int r_bins_SI
Definition: constants.h:97
r_bins
constexpr int r_bins
Definition: constants.h:92
jBadLayFib
constexpr unsigned int jBadLayFib[10][10]
Definition: constants.h:63
NCOSTEP
constexpr unsigned int NCOSTEP
Definition: constants.h:46
r_low
constexpr double r_low
Definition: constants.h:89
NUMPMTOD
constexpr unsigned int NUMPMTOD
Definition: constants.h:18
MULFIB_Max
constexpr unsigned int MULFIB_Max
Definition: constants.h:50
nDaqOD3
constexpr unsigned int nDaqOD3
Definition: constants.h:58
mapReadData
constexpr bool mapReadData
Definition: constants.h:37
NUMPMFALL
constexpr unsigned int NUMPMFALL
Definition: constants.h:33
t_high
constexpr double t_high
Definition: constants.h:88
r_high
constexpr double r_high
Definition: constants.h:90
NUMCHAMD
constexpr unsigned int NUMCHAMD
Definition: constants.h:14
GEOFILE_OD
constexpr char * GEOFILE_OD
Definition: constants.h:77
NUMRUN
constexpr unsigned int NUMRUN
Definition: constants.h:34
CONFILE_OD
constexpr char * CONFILE_OD
Definition: constants.h:76
simData
constexpr bool simData
Definition: constants.h:36
r_high_SI
constexpr double r_high_SI
Definition: constants.h:95
GEOFILE_MD
constexpr char * GEOFILE_MD
Definition: constants.h:74
NUMPMTMD
constexpr unsigned int NUMPMTMD
Definition: constants.h:13
NEVTFILE
constexpr unsigned int NEVTFILE
Definition: constants.h:28
NUMLAYMD
constexpr unsigned int NUMLAYMD
Definition: constants.h:15
nDaqOD1
constexpr unsigned int nDaqOD1
Definition: constants.h:56
PMFSIZE
constexpr unsigned int PMFSIZE
Definition: constants.h:30