CMS 3D CMS Logo

DTTrigTest.h
Go to the documentation of this file.
1 //-------------------------------------------------
2 //
13 //
14 //--------------------------------------------------
15 
16 #ifndef L1Trigger_DTTrigger_DTTrigTest_h
17 #define L1Trigger_DTTrigger_DTTrigTest_h
18 
19 // Framework related headers
24 
25 // Trigger related headers
27 
28 // Root headers
29 #include "TTree.h"
30 #include "TFile.h"
31 
33 public:
34 
37 
39  ~DTTrigTest() override;
40 
42  //void beginJob(const edm::EventSetup & iEventSetup);
43  void beginJob() override;
44 
46  void endJob() override;
47 
49  void beginRun(const edm::Run& iRun, const edm::EventSetup& iEventSetup) override;
50 
52  void analyze(const edm::Event & iEvent, const edm::EventSetup& iEventSetup) override;
53 
54 private:
55 
56  // time to TDC_time conversion
57  static const double my_TtoTDC;
58 
59  // trigger istance
61 
62  // debug flag
63  bool my_debug;
64 
65  // ParameterSet
67 
68  // tree
69  TTree* my_tree;
70  // TFile
71  TFile *my_rootfile;
72 
73 
74  //GENERAL block
75  int runn;
76  int eventn;
77  float weight;
78 
79  //GEANT block
80  int ngen;
81  float pxgen[10];
82  float pygen[10];
83  float pzgen[10];
84  float ptgen[10];
85  float etagen[10];
86  float phigen[10];
87  int chagen[10];
88  float vxgen[10];
89  float vygen[10];
90  float vzgen[10];
91 
92  // BTI
93  int nbti;
94  int bwh[100];
95  int bstat[100];
96  int bsect[100];
97  int bsl[100];
98  int bnum[100];
99  int bbx[100];
100  int bcod[100];
101  int bk[100];
102  int bx[100];
103  float bposx[100];
104  float bposy[100];
105  float bposz[100];
106  float bdirx[100];
107  float bdiry[100];
108  float bdirz[100];
109 
110  // TRACO
111  int ntraco;
112  int twh[80];
113  int tstat[80];
114  int tsect[80];
115  int tnum[80];
116  int tbx[80];
117  int tcod[80];
118  int tk[80];
119  int tx[80];
120  float tposx[100];
121  float tposy[100];
122  float tposz[100];
123  float tdirx[100];
124  float tdiry[100];
125  float tdirz[100];
126 
127  // TSPHI
128  int ntsphi;
129  int swh[40];
130  int sstat[40];
131  int ssect[40];
132  int sbx[40];
133  int scod[40];
134  int sphi[40];
135  int sphib[40];
136  float sposx[100];
137  float sposy[100];
138  float sposz[100];
139  float sdirx[100];
140  float sdiry[100];
141  float sdirz[100];
142 
143  // TSTHETA
144  int ntstheta;
145  int thwh[40];
146  int thstat[40];
147  int thsect[40];
148  int thbx[40];
149  int thcode[40][7];
150  int thpos[40][7];
151  int thqual[40][7];
152 
153  // SECTOR COLLECTOR (PHI VIEW)
154  int nscphi;
155  int scphwh[40];
156  int scphstat[40];
157  int scphsect[40];
158  int scphbx[40];
159  int scphcod[40];
160  int scphphi[40];
161  int scphphib[40];
162  float scphposx[100];
163  float scphposy[100];
164  float scphposz[100];
165  float scphdirx[100];
166  float scphdiry[100];
167  float scphdirz[100];
168 
169  // SECTOR COLLECTOR (THETA VIEW)
170  int nsctheta;
171  int scthwh[40];
172  int scthstat[40];
173  int scthsect[40];
174  int scthbx[40];
175  int scthcode[40][7];
176  int scthpos[40][7];
177  int scthqual[40][7];
178 
179 };
180 
181 #endif
182 
float scphdirx[100]
Definition: DTTrigTest.h:165
int thpos[40][7]
Definition: DTTrigTest.h:150
int tstat[80]
Definition: DTTrigTest.h:113
int sbx[40]
Definition: DTTrigTest.h:132
int scphbx[40]
Definition: DTTrigTest.h:158
int scthsect[40]
Definition: DTTrigTest.h:173
float weight
Definition: DTTrigTest.h:77
edm::ParameterSet my_params
Definition: DTTrigTest.h:66
float scphposz[100]
Definition: DTTrigTest.h:164
float etagen[10]
Definition: DTTrigTest.h:85
float tdirz[100]
Definition: DTTrigTest.h:125
int bstat[100]
Definition: DTTrigTest.h:95
int bsl[100]
Definition: DTTrigTest.h:97
int bnum[100]
Definition: DTTrigTest.h:98
int thstat[40]
Definition: DTTrigTest.h:146
int twh[80]
Definition: DTTrigTest.h:112
float vygen[10]
Definition: DTTrigTest.h:89
int scod[40]
Definition: DTTrigTest.h:133
float tdiry[100]
Definition: DTTrigTest.h:124
int scthbx[40]
Definition: DTTrigTest.h:174
int ssect[40]
Definition: DTTrigTest.h:131
int sphib[40]
Definition: DTTrigTest.h:135
float bdirz[100]
Definition: DTTrigTest.h:108
int tcod[80]
Definition: DTTrigTest.h:117
float vxgen[10]
Definition: DTTrigTest.h:88
int scthpos[40][7]
Definition: DTTrigTest.h:176
int scphphib[40]
Definition: DTTrigTest.h:161
float pxgen[10]
Definition: DTTrigTest.h:81
float scphdirz[100]
Definition: DTTrigTest.h:167
int scphcod[40]
Definition: DTTrigTest.h:159
void beginRun(const edm::Run &iRun, const edm::EventSetup &iEventSetup) override
Create DTTrig instance and TUs.
Definition: DTTrigTest.cc:200
float scphposx[100]
Definition: DTTrigTest.h:162
int bx[100]
Definition: DTTrigTest.h:102
float scphposy[100]
Definition: DTTrigTest.h:163
int scphwh[40]
Definition: DTTrigTest.h:155
int bwh[100]
Definition: DTTrigTest.h:94
float sposx[100]
Definition: DTTrigTest.h:136
int sstat[40]
Definition: DTTrigTest.h:130
float ptgen[10]
Definition: DTTrigTest.h:84
void endJob() override
Close Tree and write File.
Definition: DTTrigTest.cc:73
int bcod[100]
Definition: DTTrigTest.h:100
int bsect[100]
Definition: DTTrigTest.h:96
float sposy[100]
Definition: DTTrigTest.h:137
int tnum[80]
Definition: DTTrigTest.h:115
int thbx[40]
Definition: DTTrigTest.h:148
int iEvent
Definition: GenABIO.cc:230
float sposz[100]
Definition: DTTrigTest.h:138
float tposz[100]
Definition: DTTrigTest.h:122
void beginJob() override
Create tree and Branches.
Definition: DTTrigTest.cc:84
int thwh[40]
Definition: DTTrigTest.h:145
int scphphi[40]
Definition: DTTrigTest.h:160
float scphdiry[100]
Definition: DTTrigTest.h:166
int scthwh[40]
Definition: DTTrigTest.h:171
int scthqual[40][7]
Definition: DTTrigTest.h:177
static const double my_TtoTDC
Definition: DTTrigTest.h:57
int tk[80]
Definition: DTTrigTest.h:118
int scphsect[40]
Definition: DTTrigTest.h:157
int swh[40]
Definition: DTTrigTest.h:129
TTree * my_tree
Definition: DTTrigTest.h:69
int tx[80]
Definition: DTTrigTest.h:119
int bbx[100]
Definition: DTTrigTest.h:99
float sdirz[100]
Definition: DTTrigTest.h:141
int nsctheta
Definition: DTTrigTest.h:170
int thcode[40][7]
Definition: DTTrigTest.h:149
int ntstheta
Definition: DTTrigTest.h:144
float bdirx[100]
Definition: DTTrigTest.h:106
float tdirx[100]
Definition: DTTrigTest.h:123
int scphstat[40]
Definition: DTTrigTest.h:156
float tposx[100]
Definition: DTTrigTest.h:120
Definition: DTTrig.h:53
float sdiry[100]
Definition: DTTrigTest.h:140
float pygen[10]
Definition: DTTrigTest.h:82
float bposx[100]
Definition: DTTrigTest.h:103
~DTTrigTest() override
Destructor.
Definition: DTTrigTest.cc:64
TFile * my_rootfile
Definition: DTTrigTest.h:71
int tsect[80]
Definition: DTTrigTest.h:114
float phigen[10]
Definition: DTTrigTest.h:86
void analyze(const edm::Event &iEvent, const edm::EventSetup &iEventSetup) override
Analyze function executed on all the events.
Definition: DTTrigTest.cc:213
int scthstat[40]
Definition: DTTrigTest.h:172
DTTrigTest(const edm::ParameterSet &pset)
Constructor.
Definition: DTTrigTest.cc:51
int sphi[40]
Definition: DTTrigTest.h:134
float bdiry[100]
Definition: DTTrigTest.h:107
int thsect[40]
Definition: DTTrigTest.h:147
float sdirx[100]
Definition: DTTrigTest.h:139
int scthcode[40][7]
Definition: DTTrigTest.h:175
float pzgen[10]
Definition: DTTrigTest.h:83
int eventn
Definition: DTTrigTest.h:76
float bposz[100]
Definition: DTTrigTest.h:105
float tposy[100]
Definition: DTTrigTest.h:121
int chagen[10]
Definition: DTTrigTest.h:87
float bposy[100]
Definition: DTTrigTest.h:104
float vzgen[10]
Definition: DTTrigTest.h:90
bool my_debug
Definition: DTTrigTest.h:63
Definition: Run.h:43
DTTrig * my_trig
Definition: DTTrigTest.h:60
int thqual[40][7]
Definition: DTTrigTest.h:151
int tbx[80]
Definition: DTTrigTest.h:116