AliRoot Core  3dc7879 (3dc7879)
AliCaloConstants.h
Go to the documentation of this file.
1 // -*- mode: c++ -*-
2 #ifndef ALICALOCONSTANTS_H
3 #define ALICALOCONSTANTS_H
4 
5 /**************************************************************************
6  * This file is property of and copyright by *
7  * the Relativistic Heavy Ion Group (RHIG), Yale University, US, 2010 *
8  * *
9  * Primary Author: Per Thomas Hille <perthomas.hille@yale.edu> *
10  * *
11  * Contributors are mentioned in the code where appropriate. *
12  * Please report bugs to perthomas.hille@yale.edu *
13  * *
14  * Permission to use, copy, modify and distribute this software and its *
15  * documentation strictly for non-commercial purposes is hereby granted *
16  * without fee, provided that the above copyright notice appears in all *
17  * copies and that both the copyright notice and this permission notice *
18  * appear in the supporting documentation. The authors make no claims *
19  * about the suitability of this software for any purpose. It is *
20  * provided "as is" without express or implied warranty. *
21  **************************************************************************/
22 
23 //_________________________________________
34 //_________________________________________
35 
36 namespace CaloConstants
37 {
38  const int MAXHOSTS = 20;
39  const int TIMEBINS = 256;
40  const double TIMEBINWITH = 100E-9 ;
41  const double TIMEBINMAX = TIMEBINS*TIMEBINWITH;
42  // const double TAU = 2.35;
43  // const int ORDER = 2;
44 
45  const int OVERFLOWCUT = 950;
46  const double HGLGFACTOR = 16;
47 
48 //const double ECENTRALHIT = 0.85; ///< Percentage of total enegry contain in a single tower for a central hit
49 
50  namespace ALTROConstants
51  {
52  const int ALTROMAXSAMPLES = 1008;
53  const int ALTROMAXPRESAMPLES = 15;
54  const int NALTROS = 4;
55  const int NALTROCHANNELS = 16;
56  const int MINHARDWAREADDRESS = -2;
57 // const int MAXHARDWAREADDRESS = 4096; ///< Max harware address, ( its to high )
58  const int MAXBINVALUE = 1023;
59  const int NGAINS = 2;
60  const int HIGHGAIN = 1;
61  const int LOWGAIN = 0;
62  const int HG = HIGHGAIN;
63  const int LG = LOWGAIN;
64  }
65 
66  //FEE constants common to PHOS EMCAL
67  const int CSPSPERFEE = 32;
68  const int NBRANCHES = 2;
69 //const int MAXHWADDRESSES = 4096; ///< Highest possible harware address
70 
71  namespace EMCALConstants
72  {
73  const double ECENTRALHIT = 0.845678;
74 
75  const int MAXHWADDR = 3279;
76  const int MAXCHANNELS = 1408;
77  const int NZROWSMOD = 48;
78  const int NXCOLUMNSMOD = 24;
79  const int NROWSMOD = NZROWSMOD;
80  const int NCOLUMNSMOD = NXCOLUMNSMOD;
81 
82  const int NRCUSPERSECTOR = 4;
83  const int NMODULES = 20;
84  const int NRCUSPERMODULE = 2;
85  const int NFEECS = 9;
86  const int NZROWSRCU = 48;
87  const int NXCOLUMNSRCU = 16;
88  const int ORDER = 2;
89  const double TAU = 2.35;
90  }
91 
92  namespace PHOSConstants
93  {
94  const int MAXHWADDR = 4096;
95 // const int MAXHARDWAREADDRESS = 4096; ///< Max harware address, ( its to high )
96  const int NZROWSMOD = 56;
97  const int NXCOLUMNSMOD = 64;
98  const int NMODULES = 5;
99  const int NRCUSPERMODULE = 4;
100  const int NFEECS = 14;
101  }
102 
103  namespace FitAlgorithm
104  {
106  enum fitAlgorithm { kStandard = 0, kCrude = 1, kPeakFinder = 2, kNeuralNet = 3, kFastFit= 4, kStandardFast = 5, kFakeAltro = 9, kNONE = 8 } ;
107  }
108 
109  namespace ReturnCodes
110  {
112  enum kReturnCode { kFitPar=1, kDummy=-1, kCrude=-9, kNoFit=-99, kInvalid=-9999 } ;
113  }
114 
115  namespace PeakFinderConstants
116  {
117  const int MAXSTART = 3;
118  const int SAMPLERANGE = 15;
119  }
120 }
121 
122 // For easier notation
124 namespace Algo = CaloConstants::FitAlgorithm;
125 namespace Ret = CaloConstants::ReturnCodes;
127 namespace CALO = CaloConstants;
130 
131 
132 #endif //ALICALOCONSTANTS_H
133 
#define SAMPLERANGE
Definition: pfocdbmaker.C:23
const int MAXHWADDR
Max harware address.
const int HG
Abbrevation for HIGHGAIN.
#define MAXSTART
Definition: pfocdbmaker.C:22
const int NALTROS
Number of ALTROs per frontend card.
const int MAXCHANNELS
Max number of channels.
const int ALTROMAXPRESAMPLES
Maximum number of presamles from the ALTRO chip.
const int MAXBINVALUE
Max possible ALTRO ADC value ( 10 bit )
const double TIMEBINWITH
each sample is 100 ns
const double TAU
Approximate shaping time.
const int MAXHOSTS
related to the emcal debug online display
const int NXCOLUMNSMOD
Number of columns per module.
const int LG
Abbrevation for LOWGAIN.
const int NALTROCHANNELS
Number of readout channels per ALTRO chip.
const double HGLGFACTOR
energy transion low/high gaing
const int HIGHGAIN
Mnemonic for High Gain.
kReturnCode
< fit result type tag numbers
const int NBRANCHES
Branches per RCU.
const int NXCOLUMNSRCU
Number of columns per RCU.
const int NZROWSMOD
Number of rows per module.
const int LOWGAIN
Mnemonic for Low Gain.
const int CSPSPERFEE
Charge Sensitive Preamplifiers (CSPs) per FEE.
const int NCOLUMNSMOD
Number of columns per module.
const int ALTROMAXSAMPLES
The maximum number of samples of the ALTRO.
const int NGAINS
Number of gains ( high + low )
const int ORDER
Order of shaping stages of the signal conditioning unit.
const double TIMEBINMAX
maximum bin in time sample
const int NMODULES
Number of modules of the PHOS detector.
const double ECENTRALHIT
Percentage of total enegry contain in a single tower for a central hit.
const int NROWSMOD
Number of rows per module.
const int TIMEBINS
number of sampling bins of the raw RO signal (we typically use 15-50; max is 1k+) ...
const int NZROWSRCU
Number of Rows per RCU.
const int MINHARDWAREADDRESS
Smallest possible HW address ( in offline )
fitAlgorithm
< fitting alorithms tag numbers
const int OVERFLOWCUT
sample overflow
const int NRCUSPERSECTOR
Number of RCUs per sector.
const int NRCUSPERMODULE
Number of RCUs per Module.
const int NFEECS
Number of Frontend cards per branch.