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