CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
int getsampleMax()
Definition: TMConfig.h:71
int getNbOfxtalsamples()
Definition: TMConfig.h:76
double alpha_start
Definition: TMConfig.h:46
#define fNseqmax
Definition: TMConfig.h:13
double beta_start
Definition: TMConfig.h:46
int getNbOf(int, int)
int firstpnSample
Definition: TMConfig.h:48
int ampllow_trise
Definition: TMConfig.h:54
int getNbOfEventperBurstAndSignalForSeq(int seqNumb)
Definition: TMConfig.h:102
int getNbOfPNsamples()
Definition: TMConfig.h:75
int samplemin
Definition: TMConfig.h:49
void loadPParams()
int getsampleMin()
Definition: TMConfig.h:70
double alpha_run[6][36+1][68]
Definition: TMConfig.h:31
#define fNcolors
Definition: TMConfig.h:14
int n_pin[36+1][4+1]
Definition: TMConfig.h:26
int vlastmtqsample
Definition: TMConfig.h:52
int getXNumb(int, int, int)
void initPNFit()
int towerlist[36+1][9][8+1]
Definition: TMConfig.h:23
float getalpha0()
Definition: TMConfig.h:68
int getNbOfPNs(int, int)
void initLaserPulseFit()
int getNbOfsamplesAftMax()
Definition: TMConfig.h:95
int addrpn[36+1][4+1][10]
Definition: TMConfig.h:25
int nbofsamp
Definition: TMConfig.h:50
#define fNsmNmax
Definition: TMConfig.h:6
double beta[6]
Definition: TMConfig.h:30
int getlastSample()
Definition: TMConfig.h:65
int getlastPNSample()
Definition: TMConfig.h:67
int nbofiter
Definition: TMConfig.h:49
int samplemax
Definition: TMConfig.h:49
int getNbOfsamplesBefMax()
Definition: TMConfig.h:94
int nbofmtqsamples
Definition: TMConfig.h:52
int nbofmtqsamplesaftermax_parab
Definition: TMConfig.h:53
int numbOfEventperBurstAndSignal[3+1]
Definition: TMConfig.h:27
int getNbOfiterations()
Definition: TMConfig.h:74
#define fNtt
Definition: TMConfig.h:10
int nbofmtqsigmas
Definition: TMConfig.h:52
double getbeta_run(int, int, int)
int getNbOfMatacqsamples()
Definition: TMConfig.h:90
virtual ~TMConfig()
int smin
Definition: TMConfig.h:20
int nbofpnsamp
Definition: TMConfig.h:50
int nbofpnpresamp
Definition: TMConfig.h:50
int ped_size[3+1]
Definition: TMConfig.h:29
int laser_size[6][3+1]
Definition: TMConfig.h:29
int channlist[36+1][9][8+1]
Definition: TMConfig.h:24
int getvlastMatacqsample()
Definition: TMConfig.h:92
int getNbOfMatacqpresamples()
Definition: TMConfig.h:91
int firstSample
Definition: TMConfig.h:45
int getSignalTypeForSeq(int seqNumb)
Definition: TMConfig.h:100
void init()
int lastpnSample
Definition: TMConfig.h:48
int nbof[36+1][9+1]
Definition: TMConfig.h:22
void initShapeAnalysis()
int getThresForMatacq()
Definition: TMConfig.h:96
int getLowLevelForTRise()
Definition: TMConfig.h:97
int nbofpresamp
Definition: TMConfig.h:49
void readlmodNConfig()
double alpha[6]
Definition: TMConfig.h:30
double getalpha_ls(int c)
Definition: TMConfig.h:77
int numbOfBurstperSignal[3+1]
Definition: TMConfig.h:28
int thres_mtq
Definition: TMConfig.h:54
int getHighLevelForTRise()
Definition: TMConfig.h:98
#define fNmem
Definition: TMConfig.h:8
int getNbOfxtalpresamples()
Definition: TMConfig.h:72
int lastSample
Definition: TMConfig.h:45
#define fNburmax
Definition: TMConfig.h:12
#define fNmodN
Definition: TMConfig.h:9
void initMatacqPulseFit()
int getNoiseCutForMatacq()
Definition: TMConfig.h:93
double beta_run[6][36+1][68]
Definition: TMConfig.h:31
float getbeta0()
Definition: TMConfig.h:69
int getTNumb(int, int, int)
void initTPFit()
void readpnConfig()
#define fNmax
Definition: TMConfig.h:11
int convert(int)
double getalpha_run(int, int, int)
int getPNaddr(int, int, int)
int amplhigh_trise
Definition: TMConfig.h:54
int getNbOfBurstperSignalForSeq(int seqNumb)
Definition: TMConfig.h:101
#define fNlmodN
Definition: TMConfig.h:7
int getNbOfPNpresamples()
Definition: TMConfig.h:73
int nbofmtqpresamp
Definition: TMConfig.h:52
int seqTypeOfSignal[3+1]
Definition: TMConfig.h:27
int getfirstSM()
Definition: TMConfig.h:63
int arr[36+1][4+1]
Definition: TMConfig.h:21
void readSequenzaConfig()
int getfirstSample()
Definition: TMConfig.h:64
int nbofmtqsamp1esbeforemax_parab
Definition: TMConfig.h:53
int getfirstPNSample()
Definition: TMConfig.h:66
double getbeta_ls(int c)
Definition: TMConfig.h:78