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