CMS 3D CMS Logo

TMConfig.h
Go to the documentation of this file.
1 #ifndef TMConfig_H
2 #define TMConfig_H
3 
4 #include "TObject.h"
5 
6 class TMConfig : public TObject {
7 public:
8  static constexpr unsigned int fNsmNmax = 36; //number of SM
9  static constexpr unsigned int fNlmodN = 9; //number of lmodN in a SM
10  static constexpr unsigned int fNmem = 10; //number of PNs in a MEM
11  static constexpr unsigned int fNmodN = 4; //number of modN in a SM
12  static constexpr unsigned int fNtt = 68; //number of trigger towers in a SM
13  static constexpr unsigned int fNmax = 8;
14  static constexpr unsigned int fNburmax = 3;
15  static constexpr unsigned int fNseqmax = 3;
16  static constexpr unsigned int fNcolors = 6; //number of laser colors
17 
18 private:
19  int smin;
20  int arr[fNsmNmax + 1][fNmodN + 1];
21  int nbof[fNsmNmax + 1][fNlmodN + 1];
22  int towerlist[fNsmNmax + 1][fNlmodN][fNmax + 1];
23  int channlist[fNsmNmax + 1][fNlmodN][fNmax + 1];
24  int addrpn[fNsmNmax + 1][fNmodN + 1][fNmem];
25  int n_pin[fNsmNmax + 1][fNmodN + 1];
31 
32  void init();
33  void readSequenzaConfig();
34  void readlmodNConfig();
35  void readpnConfig();
36  void initShapeAnalysis();
37  void initLaserPulseFit();
38  void initTPFit();
39  void initPNFit();
40  void initMatacqPulseFit();
41 
42  int convert(int);
43 
46 
50 
54 
55 public:
56  // Default Constructor, mainly for Root
57  TMConfig();
58 
59  // Destructor: Does nothing
60  virtual ~TMConfig();
61 
62  int getfirstSM() { return smin; }
63  int getfirstSample() { return firstSample; }
64  int getlastSample() { return lastSample; }
65  int getfirstPNSample() { return firstpnSample; }
66  int getlastPNSample() { return lastpnSample; }
67  float getalpha0() { return alpha_start; }
68  float getbeta0() { return beta_start; }
69  int getsampleMin() { return samplemin; }
70  int getsampleMax() { return samplemax; }
73  int getNbOfiterations() { return nbofiter; }
74  int getNbOfPNsamples() { return nbofpnsamp; }
75  int getNbOfxtalsamples() { return nbofsamp; }
76  double getalpha_ls(int c) { return alpha[c]; }
77  double getbeta_ls(int c) { return beta[c]; }
78 
79  void loadPParams();
80  double getalpha_run(int, int, int);
81  double getbeta_run(int, int, int);
82 
83  int getNbOf(int, int);
84  int getTNumb(int, int, int);
85  int getXNumb(int, int, int);
86  int getPNaddr(int, int, int);
87  int getNbOfPNs(int, int);
88 
95  int getThresForMatacq() { return thres_mtq; }
98 
99  int getSignalTypeForSeq(int seqNumb) { return seqTypeOfSignal[seqNumb]; }
100  int getNbOfBurstperSignalForSeq(int seqNumb) { return numbOfBurstperSignal[seqNumb]; }
102 
103  // ClassDef(TMConfig,1)
104 };
105 
106 #endif
TMConfig::nbofmtqsamples
int nbofmtqsamples
Definition: TMConfig.h:51
TMConfig::alpha
double alpha[fNcolors]
Definition: TMConfig.h:29
TMConfig::init
void init()
TMConfig::nbofiter
int nbofiter
Definition: TMConfig.h:48
TMConfig::getNbOfiterations
int getNbOfiterations()
Definition: TMConfig.h:73
TMConfig::nbofpnsamp
int nbofpnsamp
Definition: TMConfig.h:49
TMConfig::getNbOfMatacqsamples
int getNbOfMatacqsamples()
Definition: TMConfig.h:89
TMConfig::readlmodNConfig
void readlmodNConfig()
TMConfig::readSequenzaConfig
void readSequenzaConfig()
TMConfig::nbofmtqsigmas
int nbofmtqsigmas
Definition: TMConfig.h:51
TMConfig::getbeta_ls
double getbeta_ls(int c)
Definition: TMConfig.h:77
TMConfig::firstSample
int firstSample
Definition: TMConfig.h:44
TMConfig::getalpha_run
double getalpha_run(int, int, int)
TMConfig::beta_run
double beta_run[fNcolors][fNsmNmax+1][fNtt]
Definition: TMConfig.h:30
TMConfig::TMConfig
TMConfig()
TMConfig::smin
int smin
Definition: TMConfig.h:19
TMConfig::nbofmtqsamplesaftermax_parab
int nbofmtqsamplesaftermax_parab
Definition: TMConfig.h:52
TMConfig::getlastSample
int getlastSample()
Definition: TMConfig.h:64
TMConfig::getNbOfPNsamples
int getNbOfPNsamples()
Definition: TMConfig.h:74
TMConfig::getlastPNSample
int getlastPNSample()
Definition: TMConfig.h:66
TMConfig::getNbOfsamplesAftMax
int getNbOfsamplesAftMax()
Definition: TMConfig.h:94
TMConfig::fNseqmax
static constexpr unsigned int fNseqmax
Definition: TMConfig.h:15
TMConfig::getalpha0
float getalpha0()
Definition: TMConfig.h:67
TMConfig::seqTypeOfSignal
int seqTypeOfSignal[fNseqmax+1]
Definition: TMConfig.h:26
TMConfig::nbofsamp
int nbofsamp
Definition: TMConfig.h:49
TMConfig::getvlastMatacqsample
int getvlastMatacqsample()
Definition: TMConfig.h:91
TMConfig::getfirstPNSample
int getfirstPNSample()
Definition: TMConfig.h:65
TMConfig::getbeta_run
double getbeta_run(int, int, int)
TMConfig::numbOfBurstperSignal
int numbOfBurstperSignal[fNseqmax+1]
Definition: TMConfig.h:27
TMConfig::getThresForMatacq
int getThresForMatacq()
Definition: TMConfig.h:95
TMConfig::alpha_start
double alpha_start
Definition: TMConfig.h:45
TMConfig::fNburmax
static constexpr unsigned int fNburmax
Definition: TMConfig.h:14
TMConfig::nbofmtqpresamp
int nbofmtqpresamp
Definition: TMConfig.h:51
TMConfig::getNbOf
int getNbOf(int, int)
TMConfig::nbof
int nbof[fNsmNmax+1][fNlmodN+1]
Definition: TMConfig.h:21
TMConfig::getSignalTypeForSeq
int getSignalTypeForSeq(int seqNumb)
Definition: TMConfig.h:99
TMConfig::getsampleMax
int getsampleMax()
Definition: TMConfig.h:70
TMConfig::getXNumb
int getXNumb(int, int, int)
TMConfig::initShapeAnalysis
void initShapeAnalysis()
TMConfig::getPNaddr
int getPNaddr(int, int, int)
TMConfig::initLaserPulseFit
void initLaserPulseFit()
TMConfig::vlastmtqsample
int vlastmtqsample
Definition: TMConfig.h:51
TMConfig::getsampleMin
int getsampleMin()
Definition: TMConfig.h:69
TMConfig::n_pin
int n_pin[fNsmNmax+1][fNmodN+1]
Definition: TMConfig.h:25
TMConfig::nbofpnpresamp
int nbofpnpresamp
Definition: TMConfig.h:49
TMConfig::loadPParams
void loadPParams()
TMConfig::addrpn
int addrpn[fNsmNmax+1][fNmodN+1][fNmem]
Definition: TMConfig.h:24
TMConfig::fNtt
static constexpr unsigned int fNtt
Definition: TMConfig.h:12
TMConfig::getfirstSample
int getfirstSample()
Definition: TMConfig.h:63
TMConfig::fNmem
static constexpr unsigned int fNmem
Definition: TMConfig.h:10
TMConfig::lastpnSample
int lastpnSample
Definition: TMConfig.h:47
TMConfig::alpha_run
double alpha_run[fNcolors][fNsmNmax+1][fNtt]
Definition: TMConfig.h:30
TMConfig::getNbOfPNs
int getNbOfPNs(int, int)
TMConfig::fNsmNmax
static constexpr unsigned int fNsmNmax
Definition: TMConfig.h:8
TMConfig::fNlmodN
static constexpr unsigned int fNlmodN
Definition: TMConfig.h:9
TMConfig::initTPFit
void initTPFit()
TMConfig::getNbOfxtalsamples
int getNbOfxtalsamples()
Definition: TMConfig.h:75
TMConfig::numbOfEventperBurstAndSignal
int numbOfEventperBurstAndSignal[fNseqmax+1]
Definition: TMConfig.h:26
TMConfig::initMatacqPulseFit
void initMatacqPulseFit()
TMConfig::lastSample
int lastSample
Definition: TMConfig.h:44
TMConfig::ped_size
int ped_size[fNburmax+1]
Definition: TMConfig.h:28
TMConfig::samplemax
int samplemax
Definition: TMConfig.h:48
TMConfig::nbofmtqsamp1esbeforemax_parab
int nbofmtqsamp1esbeforemax_parab
Definition: TMConfig.h:52
TMConfig::beta_start
double beta_start
Definition: TMConfig.h:45
TMConfig::getNbOfMatacqpresamples
int getNbOfMatacqpresamples()
Definition: TMConfig.h:90
TMConfig::getNbOfPNpresamples
int getNbOfPNpresamples()
Definition: TMConfig.h:72
TMConfig::ampllow_trise
int ampllow_trise
Definition: TMConfig.h:53
TMConfig::convert
int convert(int)
TMConfig::getNbOfsamplesBefMax
int getNbOfsamplesBefMax()
Definition: TMConfig.h:93
TMConfig::readpnConfig
void readpnConfig()
TMConfig::getNbOfBurstperSignalForSeq
int getNbOfBurstperSignalForSeq(int seqNumb)
Definition: TMConfig.h:100
TMConfig::towerlist
int towerlist[fNsmNmax+1][fNlmodN][fNmax+1]
Definition: TMConfig.h:22
TMConfig::~TMConfig
virtual ~TMConfig()
TMConfig::getLowLevelForTRise
int getLowLevelForTRise()
Definition: TMConfig.h:96
TMConfig::initPNFit
void initPNFit()
TMConfig::arr
int arr[fNsmNmax+1][fNmodN+1]
Definition: TMConfig.h:20
TMConfig::getalpha_ls
double getalpha_ls(int c)
Definition: TMConfig.h:76
TMConfig::getfirstSM
int getfirstSM()
Definition: TMConfig.h:62
TMConfig::getbeta0
float getbeta0()
Definition: TMConfig.h:68
TMConfig::thres_mtq
int thres_mtq
Definition: TMConfig.h:53
TMConfig::nbofpresamp
int nbofpresamp
Definition: TMConfig.h:48
TMConfig::channlist
int channlist[fNsmNmax+1][fNlmodN][fNmax+1]
Definition: TMConfig.h:23
TMConfig::fNcolors
static constexpr unsigned int fNcolors
Definition: TMConfig.h:16
TMConfig::getNoiseCutForMatacq
int getNoiseCutForMatacq()
Definition: TMConfig.h:92
c
auto & c
Definition: CAHitNtupletGeneratorKernelsImpl.h:46
TMConfig::getNbOfEventperBurstAndSignalForSeq
int getNbOfEventperBurstAndSignalForSeq(int seqNumb)
Definition: TMConfig.h:101
TMConfig::fNmax
static constexpr unsigned int fNmax
Definition: TMConfig.h:13
TMConfig::getHighLevelForTRise
int getHighLevelForTRise()
Definition: TMConfig.h:97
TMConfig::getNbOfxtalpresamples
int getNbOfxtalpresamples()
Definition: TMConfig.h:71
TMConfig::firstpnSample
int firstpnSample
Definition: TMConfig.h:47
TMConfig::laser_size
int laser_size[fNcolors][fNseqmax+1]
Definition: TMConfig.h:28
TMConfig::getTNumb
int getTNumb(int, int, int)
TMConfig::amplhigh_trise
int amplhigh_trise
Definition: TMConfig.h:53
TMConfig
Definition: TMConfig.h:6
TMConfig::samplemin
int samplemin
Definition: TMConfig.h:48
TMConfig::fNmodN
static constexpr unsigned int fNmodN
Definition: TMConfig.h:11
TMConfig::beta
double beta[fNcolors]
Definition: TMConfig.h:29