CMS 3D CMS Logo

L1PromptAnalysis.h
Go to the documentation of this file.
1 
2 //-------------------------------------------------
3 //
4 // \class L1PromptAnalysis
9 //
10 // I. Mikulec HEPHY Vienna
11 //
12 //--------------------------------------------------
13 #ifndef L1_PROMPT_ANALYSIS_H
14 #define L1_PROMPT_ANALYSIS_H
15 
16 //---------------
17 // C++ Headers --
18 //---------------
19 
20 #include <memory>
21 #include <string>
22 
23 //----------------------
24 // Base Class Headers --
25 //----------------------
27 
33 
34 
35 //------------------------------------
36 // Collaborating Class Declarations --
37 //------------------------------------
38 
42 
43 class TFile;
44 class TTree;
45 
46 // ---------------------
47 // -- Class Interface --
48 // ---------------------
49 
50  const int MAXGEN = 20;
51  const int MAXRPC = 12;
52  const int MAXDTBX = 12;
53  const int MAXCSC = 12;
54  const int MAXGMT = 12;
55  const int MAXGT = 12;
56  const int MAXRCTREG = 400;
57  const int MAXDTPH = 50;
58  const int MAXDTTH = 50;
59  const int MAXDTTR = 50;
60 
62 
63 
64  public:
65 
66  // constructor
67  explicit L1PromptAnalysis(const edm::ParameterSet&);
68  virtual ~L1PromptAnalysis();
69 
70  // fill tree
71  virtual void analyze(const edm::Event&, const edm::EventSetup&);
72  void book();
73 
74  virtual void beginJob();
75  virtual void endJob();
76 
77  private:
78 
79  //GENERAL block
80  int runn;
81  int eventn;
82  int lumi;
83  int bx;
86 
87  // Generator info
88  float weight;
89  float pthat;
90 
91  // simulation block
92  int ngen;
93  float pxgen[MAXGEN];
94  float pygen[MAXGEN];
95  float pzgen[MAXGEN];
96  float ptgen[MAXGEN];
97  float etagen[MAXGEN];
98  float phigen[MAXGEN];
99  int chagen[MAXGEN];
100  float vxgen[MAXGEN];
101  float vygen[MAXGEN];
102  float vzgen[MAXGEN];
104 
105  // GMT data
106  int bxgmt;
107 
108  //DTBX Trigger block
109  int ndt;
110  int bxd[MAXDTBX];
111  float ptd[MAXDTBX];
112  int chad[MAXDTBX];
113  float etad[MAXDTBX];
115  float phid[MAXDTBX];
117  int dwd[MAXDTBX];
118  int chd[MAXDTBX];
119 
120  //CSC Trigger block
121  int ncsc;
122  int bxc[MAXCSC];
123  float ptc[MAXCSC];
124  int chac[MAXCSC];
125  float etac[MAXCSC];
126  float phic[MAXCSC];
127  int qualc[MAXCSC];
128  int dwc[MAXCSC];
129 
130  //RPCb Trigger
131  int nrpcb ;
132  int bxrb[MAXRPC];
133  float ptrb[MAXRPC];
134  int charb[MAXRPC];
135  float etarb[MAXRPC];
136  float phirb[MAXRPC];
138  int dwrb[MAXRPC];
139 
140  //RPCf Trigger
141  int nrpcf ;
142  int bxrf[MAXRPC];
143  float ptrf[MAXRPC];
144  int charf[MAXRPC];
145  float etarf[MAXRPC];
146  float phirf[MAXRPC];
148  int dwrf[MAXRPC];
149 
150  //Global Muon Trigger
151  int ngmt;
152  int bxg[MAXGMT];
153  float ptg[MAXGMT];
154  int chag[MAXGMT];
155  float etag[MAXGMT];
156  float phig[MAXGMT];
157  int qualg[MAXGMT];
158  int detg[MAXGMT];
159  int rankg[MAXGMT];
160  int isolg[MAXGMT];
161  int mipg[MAXGMT];
162  int dwg[MAXGMT];
167 
168  // GT info
172 
173 
174  //PSB info
175  int nele;
176  int bxel[MAXGT];
177  float rankel[MAXGT];
178  float phiel[MAXGT];
179  float etael[MAXGT];
180 
181  int njet;
182  int bxjet[MAXGT];
183  float rankjet[MAXGT];
184  float phijet[MAXGT];
185  float etajet[MAXGT];
186 
187  //GCT
194 
196  float gctIsoEmEta[4];
197  float gctIsoEmPhi[4];
198  float gctIsoEmRnk[4];
200  float gctNonIsoEmEta[4];
201  float gctNonIsoEmPhi[4];
202  float gctNonIsoEmRnk[4];
204  float gctCJetEta[4];
205  float gctCJetPhi[4];
206  float gctCJetRnk[4];
208  float gctFJetEta[4];
209  float gctFJetPhi[4];
210  float gctFJetRnk[4];
212  float gctTJetEta[4];
213  float gctTJetPhi[4];
214  float gctTJetRnk[4];
215  float gctEtMiss;
217  float gctEtHad;
218  float gctEtTot;
223 // RCT
224 
241 
242 // DTTF
244 
255 
261  float dttf_thX[MAXDTTH];
262  float dttf_thY[MAXDTTH];
265 
279 
280 
281  TFile* m_file;
282  TTree* m_tree;
283 
289 
290  bool m_PhysVal;
291  bool verbose_;
293 
294 };
295 
296 
297 #endif
edm::InputTag gctNonIsoEmSource_
edm::InputTag m_GeneratorInputTag
float ptc[MAXCSC]
float etad[MAXDTBX]
float phid[MAXDTBX]
int quald[MAXDTBX]
virtual void analyze(const edm::Event &, const edm::EventSetup &)
float rankel[MAXGT]
edm::InputTag m_GTInputTag
float dttf_thX[MAXDTTH]
float dttf_thTheta[MAXDTTH][7]
int dttf_trTag[MAXDTTR]
boost::uint64_t gttw2[3]
float ptgen[MAXGEN]
float gctHFBitCountsEta[4]
float phig[MAXGMT]
float etael[MAXGT]
int rctRegVeto[MAXRCTREG]
int dttf_phCode[MAXDTPH]
virtual void endJob()
float pxgen[MAXGEN]
int dttf_trBx[MAXDTTR]
L1PromptAnalysis(const edm::ParameterSet &)
virtual ~L1PromptAnalysis()
int dttf_trPhiGlob[MAXDTTR]
boost::uint64_t timest
int dttf_thSe[MAXDTTH]
float phiel[MAXGT]
float ptd[MAXDTBX]
float vygen[MAXGEN]
int dttf_trQual[MAXDTTR]
int dttf_thWh[MAXDTTH]
float rctEmEta[MAXRCTREG]
float pygen[MAXGEN]
float rctRegRnk[MAXRCTREG]
float ptg[MAXGMT]
const int MAXRCTREG
const int MAXDTBX
int dttf_trPtPck[MAXDTTR]
int dttf_trWh[MAXDTTR]
float rctEmPhi[MAXRCTREG]
const int MAXDTTR
float rankjet[MAXGT]
int dttf_thCode[MAXDTTH][7]
int dttf_trPhiPck[MAXDTTR]
boost::uint64_t orbitn
const int MAXDTPH
int dttf_trSc[MAXDTTR]
edm::InputTag m_SimulationInputTag
boost::uint64_t gttt[3]
edm::InputTag gctCenJetsSource_
float ptrb[MAXRPC]
int rctEmBx[MAXRCTREG]
std::string m_outfilename
float etarf[MAXRPC]
float etagen[MAXGEN]
int chagen[MAXGEN]
int rctRegBx[MAXRCTREG]
edm::InputTag gctTauJetsSource_
int rctRegOverFlow[MAXRCTREG]
float phic[MAXCSC]
float dttf_phAng[MAXDTPH]
const int MAXGEN
int dttf_phSt[MAXDTPH]
float phirb[MAXRPC]
int rctIsIsoEm[MAXRCTREG]
float phijet[MAXGT]
float phigen[MAXGEN]
edm::InputTag gctForJetsSource_
edm::InputTag gctEnergySumsSource_
int dttf_phWh[MAXDTPH]
float dttf_phBandAng[MAXDTPH]
edm::InputTag m_GTEvmInputTag
float dttf_phY[MAXDTPH]
unsigned long long uint64_t
Definition: Time.h:15
int dttf_phBx[MAXDTPH]
float etac[MAXCSC]
float rctEmRnk[MAXRCTREG]
edm::InputTag dttfSource_
const int MAXGT
virtual void beginJob()
int rctRegMip[MAXRCTREG]
float gctHFRingEtSumEta[4]
float etarb[MAXRPC]
float dttf_trPtVal[MAXDTTR]
float dttf_phX[MAXDTPH]
const int MAXCSC
edm::InputTag gctIsoEmSource_
boost::uint64_t gttw1[3]
float pzgen[MAXGEN]
float vxgen[MAXGEN]
float dttf_trPhiVal[MAXDTTR]
int dttf_phSe[MAXDTPH]
float rctRegEta[MAXRCTREG]
float etag[MAXGMT]
const int MAXGMT
int dttf_trChPck[MAXDTTR]
float etajet[MAXGT]
edm::InputTag rctSource_
int dttf_thBx[MAXDTTH]
float ptrf[MAXRPC]
edm::InputTag m_GMTInputTag
float rctRegPhi[MAXRCTREG]
const int MAXDTTH
float dttf_thY[MAXDTTH]
int etafined[MAXDTBX]
int dttf_thSt[MAXDTTH]
float vzgen[MAXGEN]
int rctRegFGrain[MAXRCTREG]
float phirf[MAXRPC]
const int MAXRPC