CMS 3D CMS Logo

GenPurposeSkimmerAcceptance.h
Go to the documentation of this file.
1 #ifndef GenPurposeSkimmerAcceptance_H
2 #define GenPurposeSkimmerAcceptance_H
3 
4 // system include files
5 #include <memory>
6 
7 // user include files
10 
15 
16 // other files
17 // root + maths
18 #include "TFile.h"
19 #include "TBranch.h"
20 #include "TTree.h"
21 #include "TVector.h"
22 #include "TString.h"
23 #include "TMath.h"
24 //
30 //
39 
40 //
51 
53 //
58 
62 //
63 // class decleration
64 //
65 
67 public:
70 
71 private:
72  virtual void beginJob(const edm::EventSetup&);
73  virtual void analyze(const edm::Event&, const edm::EventSetup&);
74  virtual void endJob();
75 
76  // ----------member data ---------------------------
77 
80 
89  //
96 
97  TTree* probe_tree;
98  TFile* histofile;
99  //
100 
101  //probe SC variables
107 
108  //probe electron variables
115  double probe_ele_tip[4];
118 
119  //efficiency cuts
124  //
126  double probe_iso_user[4];
127  //
130 
133  //
136  //
141  double probe_ele_hoe[4];
142  double probe_ele_shh[4];
143  double probe_ele_sihih[4];
144  double probe_ele_dhi[4];
145  double probe_ele_dfi[4];
146  double probe_ele_eop[4];
147  double probe_ele_pin[4];
148  double probe_ele_pout[4];
149  double probe_ele_e5x5[4];
150  double probe_ele_e2x5[4];
151  double probe_ele_e1x5[4];
152 
153  //
156  //
164 
165  //event variables
167 
168  int event_HLTPath[25];
169 
170  double BarrelMaxEta;
171  double EndcapMinEta;
172  double EndcapMaxEta;
173 
174  double ProbeSCMinEt;
176 
180 
183 
185  // double event_MET_eta;
189  // double event_pfMET_eta;
192  // double event_genMET_eta;
194  //
197  //
198  //
199  // acceptance and t&p specific
200  double mc_ele_eta[10];
201  double mc_ele_phi[10];
202  double mc_ele_et[10];
203  double mc_ele_vertex_x[10];
204  double mc_ele_vertex_y[10];
205  double mc_ele_vertex_z[10];
206  int mc_ele_mother[10];
207  int mc_ele_charge[10];
208  int mc_ele_status[10];
209  //
210  // for the sc collections
211  // double sc0_eta[8], sc0_phi[8], sc0_et[8];
212  double sc1_eta[8], sc1_phi[8], sc1_et[8];
213  double sc2_eta[8], sc2_phi[8], sc2_et[8];
214  double sc3_eta[8], sc3_phi[8], sc3_et[8];
215  double sc4_eta[8], sc4_phi[8], sc4_et[8];
216  double sc5_eta[8], sc5_phi[8], sc5_et[8];
217  // double sc6_eta[8], sc6_phi[8], sc6_et[8];
218  // double sc7_eta[8], sc7_phi[8], sc7_et[8];
219 };
220 
221 #endif
GenPurposeSkimmerAcceptance::probe_ele_pass_fiducial_cut
int probe_ele_pass_fiducial_cut[4]
Definition: GenPurposeSkimmerAcceptance.h:120
GenPurposeSkimmerAcceptance::probe_pass_id_loose
int probe_pass_id_loose[4]
Definition: GenPurposeSkimmerAcceptance.h:139
GenPurposeSkimmerAcceptance::event_t1MET
double event_t1MET
Definition: GenPurposeSkimmerAcceptance.h:195
GenPurposeSkimmerAcceptance
Definition: GenPurposeSkimmerAcceptance.h:66
GenPurposeSkimmerAcceptance::event_genMET
double event_genMET
Definition: GenPurposeSkimmerAcceptance.h:191
GenPurposeSkimmerAcceptance::EndcapMaxEta
double EndcapMaxEta
Definition: GenPurposeSkimmerAcceptance.h:172
edm::EDAnalyzer::beginJob
virtual void beginJob()
Definition: EDAnalyzer.h:84
MessageLogger.h
GenPurposeSkimmerAcceptance::sc4_eta
double sc4_eta[8]
Definition: GenPurposeSkimmerAcceptance.h:215
TriggerResults.h
GenPurposeSkimmerAcceptance::elec_number_in_event
int elec_number_in_event
Definition: GenPurposeSkimmerAcceptance.h:181
GenPurposeSkimmerAcceptance::genMetCollectionTag_
edm::InputTag genMetCollectionTag_
Definition: GenPurposeSkimmerAcceptance.h:88
GenPurposeSkimmerAcceptance::sc5_phi
double sc5_phi[8]
Definition: GenPurposeSkimmerAcceptance.h:216
GenPurposeSkimmerAcceptance::outputFile_
std::string outputFile_
Definition: GenPurposeSkimmerAcceptance.h:78
TriggerEvent.h
GenPurposeSkimmerAcceptance::event_tcMET_phi
double event_tcMET_phi
Definition: GenPurposeSkimmerAcceptance.h:187
GenPurposeSkimmerAcceptance::tcMetCollectionTag_
edm::InputTag tcMetCollectionTag_
Definition: GenPurposeSkimmerAcceptance.h:84
GenPurposeSkimmerAcceptance::histofile
TFile * histofile
Definition: GenPurposeSkimmerAcceptance.h:98
GenPurposeSkimmerAcceptance::probe_ele_eta_for_tree
double probe_ele_eta_for_tree[4]
Definition: GenPurposeSkimmerAcceptance.h:109
GenPurposeSkimmerAcceptance::event_genMET_phi
double event_genMET_phi
Definition: GenPurposeSkimmerAcceptance.h:193
GenPurposeSkimmerAcceptance::HLTTriggerResultsE29_
edm::InputTag HLTTriggerResultsE29_
Definition: GenPurposeSkimmerAcceptance.h:92
TriggerEventWithRefs.h
GenPurposeSkimmerAcceptance::elec_1_duplicate_removal
int elec_1_duplicate_removal
Definition: GenPurposeSkimmerAcceptance.h:182
GenPurposeSkimmerAcceptance::sc4_phi
double sc4_phi[8]
Definition: GenPurposeSkimmerAcceptance.h:215
GenPurposeSkimmerAcceptance::probe_pass_id_tight
int probe_pass_id_tight[4]
Definition: GenPurposeSkimmerAcceptance.h:140
GenPurposeSkimmerAcceptance::sc4_et
double sc4_et[8]
Definition: GenPurposeSkimmerAcceptance.h:215
GenPurposeSkimmerAcceptance::event_pfMET
double event_pfMET
Definition: GenPurposeSkimmerAcceptance.h:188
GenPurposeSkimmerAcceptance::mc_ele_vertex_y
double mc_ele_vertex_y[10]
Definition: GenPurposeSkimmerAcceptance.h:204
GenPurposeSkimmerAcceptance::sc2_phi
double sc2_phi[8]
Definition: GenPurposeSkimmerAcceptance.h:213
TriggerTypeDefs.h
GenPurposeSkimmerAcceptance::probe_index_for_tree
int probe_index_for_tree[4]
Definition: GenPurposeSkimmerAcceptance.h:117
GenPurposeSkimmerAcceptance::event_twikiT1MET_sig
double event_twikiT1MET_sig
Definition: GenPurposeSkimmerAcceptance.h:196
GenPurposeSkimmerAcceptance::probe_pass_id_robust_loose
int probe_pass_id_robust_loose[4]
Definition: GenPurposeSkimmerAcceptance.h:137
GenPurposeSkimmerAcceptance::MetCollectionTag_
edm::InputTag MetCollectionTag_
Definition: GenPurposeSkimmerAcceptance.h:83
TriggerFilterObjectWithRefs.h
GenPurposeSkimmerAcceptance::ElectronCollection_
edm::InputTag ElectronCollection_
Definition: GenPurposeSkimmerAcceptance.h:81
GenPurposeSkimmerAcceptance::probe_mc_matched_dphi
double probe_mc_matched_dphi[4]
Definition: GenPurposeSkimmerAcceptance.h:161
GenPurposeSkimmerAcceptance::event_t1MET_phi
double event_t1MET_phi
Definition: GenPurposeSkimmerAcceptance.h:195
EcalClusterLazyTools.h
GenPurposeSkimmerAcceptance::ProbeRecoEleSCMaxDE
double ProbeRecoEleSCMaxDE
Definition: GenPurposeSkimmerAcceptance.h:175
EDAnalyzer.h
GenPurposeSkimmerAcceptance::ProbeHLTObjMaxDR
double ProbeHLTObjMaxDR
Definition: GenPurposeSkimmerAcceptance.h:177
GenPurposeSkimmerAcceptance::sc3_phi
double sc3_phi[8]
Definition: GenPurposeSkimmerAcceptance.h:214
GenPurposeSkimmerAcceptance::probe_ele_et_for_tree
double probe_ele_et_for_tree[4]
Definition: GenPurposeSkimmerAcceptance.h:111
GenPurposeSkimmerAcceptance::probe_ele_e2x5
double probe_ele_e2x5[4]
Definition: GenPurposeSkimmerAcceptance.h:150
GenPurposeSkimmerAcceptance::probe_ele_e5x5
double probe_ele_e5x5[4]
Definition: GenPurposeSkimmerAcceptance.h:149
GenPurposeSkimmerAcceptance::event_twikiT1MET_phi
double event_twikiT1MET_phi
Definition: GenPurposeSkimmerAcceptance.h:196
GenPurposeSkimmerAcceptance::probe_ele_pin
double probe_ele_pin[4]
Definition: GenPurposeSkimmerAcceptance.h:147
GenPurposeSkimmerAcceptance::analyze
virtual void analyze(const edm::Event &, const edm::EventSetup &)
CaloMETFwd.h
GenPurposeSkimmerAcceptance::event_tcMET
double event_tcMET
Definition: GenPurposeSkimmerAcceptance.h:187
edm::EDAnalyzer
Definition: EDAnalyzer.h:28
GenPurposeSkimmerAcceptance::pfMetCollectionTag_
edm::InputTag pfMetCollectionTag_
Definition: GenPurposeSkimmerAcceptance.h:85
GenPurposeSkimmerAcceptance::probe_pass_trigger_cut
int probe_pass_trigger_cut[4][25]
Definition: GenPurposeSkimmerAcceptance.h:154
GenParticle.h
GenPurposeSkimmerAcceptance::probe_pass_recoEle_cut
int probe_pass_recoEle_cut[4]
Definition: GenPurposeSkimmerAcceptance.h:122
GenPurposeSkimmerAcceptance::probe_ele_Yvertex_for_tree
double probe_ele_Yvertex_for_tree[4]
Definition: GenPurposeSkimmerAcceptance.h:113
GenPurposeSkimmerAcceptance::sc1_eta
double sc1_eta[8]
Definition: GenPurposeSkimmerAcceptance.h:212
MakerMacros.h
GenPurposeSkimmerAcceptance::mc_ele_mother
int mc_ele_mother[10]
Definition: GenPurposeSkimmerAcceptance.h:206
GenPurposeSkimmerAcceptance::probe_hlt_matched_dr
double probe_hlt_matched_dr[4]
Definition: GenPurposeSkimmerAcceptance.h:155
GenPurposeSkimmerAcceptance::mc_ele_status
int mc_ele_status[10]
Definition: GenPurposeSkimmerAcceptance.h:208
GenPurposeSkimmerAcceptance::probe_ele_Zvertex_for_tree
double probe_ele_Zvertex_for_tree[4]
Definition: GenPurposeSkimmerAcceptance.h:114
Track.h
GenPurposeSkimmerAcceptance::event_MET_sig
double event_MET_sig
Definition: GenPurposeSkimmerAcceptance.h:184
TrackFwd.h
GenPurposeSkimmerAcceptance::probe_mc_matched_mother
int probe_mc_matched_mother[4]
Definition: GenPurposeSkimmerAcceptance.h:163
GenPurposeSkimmerAcceptance::HLTCollectionE31_
edm::InputTag HLTCollectionE31_
Definition: GenPurposeSkimmerAcceptance.h:91
GenPurposeSkimmerAcceptance::sc2_eta
double sc2_eta[8]
Definition: GenPurposeSkimmerAcceptance.h:213
GenPurposeSkimmerAcceptance::probe_sc_et_for_tree
double probe_sc_et_for_tree[4]
Definition: GenPurposeSkimmerAcceptance.h:104
GenPurposeSkimmerAcceptance::event_tcMET_sig
double event_tcMET_sig
Definition: GenPurposeSkimmerAcceptance.h:187
CaloMET.h
GenPurposeSkimmerAcceptance::probe_sc_eta_for_tree
double probe_sc_eta_for_tree[4]
Definition: GenPurposeSkimmerAcceptance.h:102
GenMETFwd.h
GenPurposeSkimmerAcceptance::event_twikiT1MET
double event_twikiT1MET
Definition: GenPurposeSkimmerAcceptance.h:196
GenPurposeSkimmerAcceptance::probe_sc_pass_et_cut
int probe_sc_pass_et_cut[4]
Definition: GenPurposeSkimmerAcceptance.h:106
GenPurposeSkimmerAcceptance::probe_hcal_isolation_value
double probe_hcal_isolation_value[4]
Definition: GenPurposeSkimmerAcceptance.h:131
GenPurposeSkimmerAcceptance::event_MET
double event_MET
Definition: GenPurposeSkimmerAcceptance.h:184
GenPurposeSkimmerAcceptance::probe_pass_tip_cut
int probe_pass_tip_cut[4]
Definition: GenPurposeSkimmerAcceptance.h:135
GenPurposeSkimmerAcceptance::probe_ele_dfi
double probe_ele_dfi[4]
Definition: GenPurposeSkimmerAcceptance.h:145
GenPurposeSkimmerAcceptance::endJob
virtual void endJob()
GenPurposeSkimmerAcceptance::GsfTrackMinInnerPt
double GsfTrackMinInnerPt
Definition: GenPurposeSkimmerAcceptance.h:179
GenPurposeSkimmerAcceptance::probe_isolation_value
double probe_isolation_value[4]
Definition: GenPurposeSkimmerAcceptance.h:125
GsfElectron.h
GenPurposeSkimmerAcceptance::BarrelMaxEta
double BarrelMaxEta
Definition: GenPurposeSkimmerAcceptance.h:170
GenPurposeSkimmerAcceptance::probe_pass_id_robust_tight
int probe_pass_id_robust_tight[4]
Definition: GenPurposeSkimmerAcceptance.h:138
GenPurposeSkimmerAcceptance::probe_ecal_iso_user
double probe_ecal_iso_user[4]
Definition: GenPurposeSkimmerAcceptance.h:129
GenPurposeSkimmerAcceptance::probe_ele_shh
double probe_ele_shh[4]
Definition: GenPurposeSkimmerAcceptance.h:142
IsoDeposit.h
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
GenPurposeSkimmerAcceptance::MCMatch_Deta_
double MCMatch_Deta_
Definition: GenPurposeSkimmerAcceptance.h:157
GenPurposeSkimmerAcceptance::probe_ele_phi_for_tree
double probe_ele_phi_for_tree[4]
Definition: GenPurposeSkimmerAcceptance.h:110
GenMET.h
GenPurposeSkimmerAcceptance::probe_ele_eop
double probe_ele_eop[4]
Definition: GenPurposeSkimmerAcceptance.h:146
GenPurposeSkimmerAcceptance::sc5_et
double sc5_et[8]
Definition: GenPurposeSkimmerAcceptance.h:216
ElectronFwd.h
GsfElectronFwd.h
GenPurposeSkimmerAcceptance::ProbeSCMinEt
double ProbeSCMinEt
Definition: GenPurposeSkimmerAcceptance.h:174
edm::ParameterSet
Definition: ParameterSet.h:47
GenPurposeSkimmerAcceptance::HLTPath_
std::string HLTPath_[25]
Definition: GenPurposeSkimmerAcceptance.h:95
Event.h
deltaR.h
GenPurposeSkimmerAcceptance::event_t1MET_sig
double event_t1MET_sig
Definition: GenPurposeSkimmerAcceptance.h:195
GenPurposeSkimmerAcceptance::event_genMET_sig
double event_genMET_sig
Definition: GenPurposeSkimmerAcceptance.h:191
GenPurposeSkimmerAcceptance::event_pfMET_phi
double event_pfMET_phi
Definition: GenPurposeSkimmerAcceptance.h:190
GenPurposeSkimmerAcceptance::MCMatch_Dphi_
double MCMatch_Dphi_
Definition: GenPurposeSkimmerAcceptance.h:158
GenPurposeSkimmerAcceptance::~GenPurposeSkimmerAcceptance
~GenPurposeSkimmerAcceptance()
GenPurposeSkimmerAcceptance::tree_fills_
int tree_fills_
Definition: GenPurposeSkimmerAcceptance.h:79
GenPurposeSkimmerAcceptance::mc_ele_phi
double mc_ele_phi[10]
Definition: GenPurposeSkimmerAcceptance.h:201
GenPurposeSkimmerAcceptance::EndcapMinEta
double EndcapMinEta
Definition: GenPurposeSkimmerAcceptance.h:171
PFMET.h
GenPurposeSkimmerAcceptance::sc3_et
double sc3_et[8]
Definition: GenPurposeSkimmerAcceptance.h:214
GenPurposeSkimmerAcceptance::probe_sc_phi_for_tree
double probe_sc_phi_for_tree[4]
Definition: GenPurposeSkimmerAcceptance.h:103
GenPurposeSkimmerAcceptance::probe_mc_matched_denergy
double probe_mc_matched_denergy[4]
Definition: GenPurposeSkimmerAcceptance.h:162
GenPurposeSkimmerAcceptance::probe_ele_e1x5
double probe_ele_e1x5[4]
Definition: GenPurposeSkimmerAcceptance.h:151
GenPurposeSkimmerAcceptance::sc2_et
double sc2_et[8]
Definition: GenPurposeSkimmerAcceptance.h:213
TriggerNames.h
GenPurposeSkimmerAcceptance::probe_sc_pass_fiducial_cut
int probe_sc_pass_fiducial_cut[4]
Definition: GenPurposeSkimmerAcceptance.h:105
GenPurposeSkimmerAcceptance::probe_mc_matched_deta
double probe_mc_matched_deta[4]
Definition: GenPurposeSkimmerAcceptance.h:160
GsfTrack.h
GenPurposeSkimmerAcceptance::probe_ele_Xvertex_for_tree
double probe_ele_Xvertex_for_tree[4]
Definition: GenPurposeSkimmerAcceptance.h:112
GenPurposeSkimmerAcceptance::mc_ele_vertex_z
double mc_ele_vertex_z[10]
Definition: GenPurposeSkimmerAcceptance.h:205
edm::EventSetup
Definition: EventSetup.h:57
GenPurposeSkimmerAcceptance::t1MetCollectionTag_
edm::InputTag t1MetCollectionTag_
Definition: GenPurposeSkimmerAcceptance.h:86
GenPurposeSkimmerAcceptance::MCCollection_
edm::InputTag MCCollection_
Definition: GenPurposeSkimmerAcceptance.h:82
MET.h
GenPurposeSkimmerAcceptance::sc1_et
double sc1_et[8]
Definition: GenPurposeSkimmerAcceptance.h:212
GenPurposeSkimmerAcceptance::t1MetCollectionTagTwiki_
edm::InputTag t1MetCollectionTagTwiki_
Definition: GenPurposeSkimmerAcceptance.h:87
GenPurposeSkimmerAcceptance::probe_mc_matched
int probe_mc_matched[4]
Definition: GenPurposeSkimmerAcceptance.h:159
TriggerObject.h
GenPurposeSkimmerAcceptance::event_MET_phi
double event_MET_phi
Definition: GenPurposeSkimmerAcceptance.h:186
ValueMap.h
GenPurposeSkimmerAcceptance::mc_ele_charge
int mc_ele_charge[10]
Definition: GenPurposeSkimmerAcceptance.h:207
GenPurposeSkimmerAcceptance::probe_ele_tip
double probe_ele_tip[4]
Definition: GenPurposeSkimmerAcceptance.h:115
GenPurposeSkimmerAcceptance::probe_ele_pout
double probe_ele_pout[4]
Definition: GenPurposeSkimmerAcceptance.h:148
GenPurposeSkimmerAcceptance::event_pfMET_sig
double event_pfMET_sig
Definition: GenPurposeSkimmerAcceptance.h:188
GenPurposeSkimmerAcceptance::probe_ele_sihih
double probe_ele_sihih[4]
Definition: GenPurposeSkimmerAcceptance.h:143
PFMETFwd.h
Electron.h
GenPurposeSkimmerAcceptance::RecoEleSeedBCMaxDE
double RecoEleSeedBCMaxDE
Definition: GenPurposeSkimmerAcceptance.h:178
GenPurposeSkimmerAcceptance::GenPurposeSkimmerAcceptance
GenPurposeSkimmerAcceptance(const edm::ParameterSet &)
GenPurposeSkimmerAcceptance::mc_ele_et
double mc_ele_et[10]
Definition: GenPurposeSkimmerAcceptance.h:202
GenPurposeSkimmerAcceptance::probe_classification_index_for_tree
int probe_classification_index_for_tree[4]
Definition: GenPurposeSkimmerAcceptance.h:134
Frameworkfwd.h
GenPurposeSkimmerAcceptance::probe_tree
TTree * probe_tree
Definition: GenPurposeSkimmerAcceptance.h:97
GenPurposeSkimmerAcceptance::probe_iso_user
double probe_iso_user[4]
Definition: GenPurposeSkimmerAcceptance.h:126
GenPurposeSkimmerAcceptance::event_HLTPath
int event_HLTPath[25]
Definition: GenPurposeSkimmerAcceptance.h:168
GenPurposeSkimmerAcceptance::HLTTriggerResultsE31_
edm::InputTag HLTTriggerResultsE31_
Definition: GenPurposeSkimmerAcceptance.h:93
TriggerRefsCollections.h
GenPurposeSkimmerAcceptance::mc_ele_eta
double mc_ele_eta[10]
Definition: GenPurposeSkimmerAcceptance.h:200
Electron.h
GenPurposeSkimmerAcceptance::probe_hcal_iso_user
double probe_hcal_iso_user[4]
Definition: GenPurposeSkimmerAcceptance.h:132
GenPurposeSkimmerAcceptance::HLTFilterType_
edm::InputTag HLTFilterType_[25]
Definition: GenPurposeSkimmerAcceptance.h:94
GenPurposeSkimmerAcceptance::mc_ele_vertex_x
double mc_ele_vertex_x[10]
Definition: GenPurposeSkimmerAcceptance.h:203
GenPurposeSkimmerAcceptance::probe_ecal_isolation_value
double probe_ecal_isolation_value[4]
Definition: GenPurposeSkimmerAcceptance.h:128
IsoDepositFwd.h
ParameterSet.h
GenPurposeSkimmerAcceptance::HLTCollectionE29_
edm::InputTag HLTCollectionE29_
Definition: GenPurposeSkimmerAcceptance.h:90
GenPurposeSkimmerAcceptance::sc5_eta
double sc5_eta[8]
Definition: GenPurposeSkimmerAcceptance.h:216
GenPurposeSkimmerAcceptance::probe_ele_dhi
double probe_ele_dhi[4]
Definition: GenPurposeSkimmerAcceptance.h:144
edm::Event
Definition: Event.h:73
GenPurposeSkimmerAcceptance::sc3_eta
double sc3_eta[8]
Definition: GenPurposeSkimmerAcceptance.h:214
GenPurposeSkimmerAcceptance::probe_ele_pass_et_cut
int probe_ele_pass_et_cut[4]
Definition: GenPurposeSkimmerAcceptance.h:121
GenPurposeSkimmerAcceptance::probe_ele_hoe
double probe_ele_hoe[4]
Definition: GenPurposeSkimmerAcceptance.h:141
edm::InputTag
Definition: InputTag.h:15
GenPurposeSkimmerAcceptance::sc1_phi
double sc1_phi[8]
Definition: GenPurposeSkimmerAcceptance.h:212
GenPurposeSkimmerAcceptance::probe_pass_iso_cut
int probe_pass_iso_cut[4]
Definition: GenPurposeSkimmerAcceptance.h:123
GenPurposeSkimmerAcceptance::numberOfHLTFilterObjects
int numberOfHLTFilterObjects[25]
Definition: GenPurposeSkimmerAcceptance.h:166
GenPurposeSkimmerAcceptance::probe_charge_for_tree
int probe_charge_for_tree[4]
Definition: GenPurposeSkimmerAcceptance.h:116