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