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