CMS 3D CMS Logo

GenPurposeSkimmer.h
Go to the documentation of this file.
1 #ifndef GenPurposeSkimmer_H
2 #define GenPurposeSkimmer_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:
68  explicit GenPurposeSkimmer(const edm::ParameterSet&);
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 #endif
GenPurposeSkimmer::MetCollectionTag_
edm::InputTag MetCollectionTag_
Definition: GenPurposeSkimmer.h:83
GenPurposeSkimmer::probe_ele_sihih
double probe_ele_sihih[4]
Definition: GenPurposeSkimmer.h:143
GenPurposeSkimmer::probe_sc_pass_fiducial_cut
int probe_sc_pass_fiducial_cut[4]
Definition: GenPurposeSkimmer.h:105
GenPurposeSkimmer::MCMatch_Deta_
double MCMatch_Deta_
Definition: GenPurposeSkimmer.h:157
GenPurposeSkimmer::probe_mc_matched_deta
double probe_mc_matched_deta[4]
Definition: GenPurposeSkimmer.h:160
GenPurposeSkimmer::probe_isolation_value
double probe_isolation_value[4]
Definition: GenPurposeSkimmer.h:125
edm::EDAnalyzer::beginJob
virtual void beginJob()
Definition: EDAnalyzer.h:84
MessageLogger.h
GenPurposeSkimmer::probe_pass_trigger_cut
int probe_pass_trigger_cut[4][25]
Definition: GenPurposeSkimmer.h:154
GenPurposeSkimmer::event_genMET_phi
double event_genMET_phi
Definition: GenPurposeSkimmer.h:193
GenPurposeSkimmer::MCMatch_Dphi_
double MCMatch_Dphi_
Definition: GenPurposeSkimmer.h:158
GenPurposeSkimmer::probe_mc_matched_mother
int probe_mc_matched_mother[4]
Definition: GenPurposeSkimmer.h:163
TriggerResults.h
TriggerEvent.h
GenPurposeSkimmer::probe_pass_id_robust_tight
int probe_pass_id_robust_tight[4]
Definition: GenPurposeSkimmer.h:138
GenPurposeSkimmer::t1MetCollectionTag_
edm::InputTag t1MetCollectionTag_
Definition: GenPurposeSkimmer.h:86
GenPurposeSkimmer::event_t1MET
double event_t1MET
Definition: GenPurposeSkimmer.h:195
GenPurposeSkimmer::probe_ele_pout
double probe_ele_pout[4]
Definition: GenPurposeSkimmer.h:148
TriggerEventWithRefs.h
GenPurposeSkimmer::HLTFilterType_
edm::InputTag HLTFilterType_[25]
Definition: GenPurposeSkimmer.h:94
GenPurposeSkimmer::event_MET
double event_MET
Definition: GenPurposeSkimmer.h:184
GenPurposeSkimmer::tree_fills_
int tree_fills_
Definition: GenPurposeSkimmer.h:79
TriggerTypeDefs.h
GenPurposeSkimmer::probe_ele_e5x5
double probe_ele_e5x5[4]
Definition: GenPurposeSkimmer.h:149
TriggerFilterObjectWithRefs.h
GenPurposeSkimmer::ProbeRecoEleSCMaxDE
double ProbeRecoEleSCMaxDE
Definition: GenPurposeSkimmer.h:175
EcalClusterLazyTools.h
EDAnalyzer.h
GenPurposeSkimmer::probe_ele_eop
double probe_ele_eop[4]
Definition: GenPurposeSkimmer.h:146
GenPurposeSkimmer::elec_1_duplicate_removal
int elec_1_duplicate_removal
Definition: GenPurposeSkimmer.h:182
GenPurposeSkimmer::genMetCollectionTag_
edm::InputTag genMetCollectionTag_
Definition: GenPurposeSkimmer.h:88
GenPurposeSkimmer::outputFile_
std::string outputFile_
Definition: GenPurposeSkimmer.h:78
GenPurposeSkimmer::event_genMET_sig
double event_genMET_sig
Definition: GenPurposeSkimmer.h:191
GenPurposeSkimmer::probe_ele_shh
double probe_ele_shh[4]
Definition: GenPurposeSkimmer.h:142
CaloMETFwd.h
GenPurposeSkimmer::probe_ele_dfi
double probe_ele_dfi[4]
Definition: GenPurposeSkimmer.h:145
edm::EDAnalyzer
Definition: EDAnalyzer.h:28
GenPurposeSkimmer::probe_ele_pass_et_cut
int probe_ele_pass_et_cut[4]
Definition: GenPurposeSkimmer.h:121
GenPurposeSkimmer::event_twikiT1MET_phi
double event_twikiT1MET_phi
Definition: GenPurposeSkimmer.h:196
GenParticle.h
GenPurposeSkimmer::GsfTrackMinInnerPt
double GsfTrackMinInnerPt
Definition: GenPurposeSkimmer.h:179
GenPurposeSkimmer::probe_mc_matched_dphi
double probe_mc_matched_dphi[4]
Definition: GenPurposeSkimmer.h:161
MakerMacros.h
GenPurposeSkimmer
Definition: GenPurposeSkimmer.h:66
GenPurposeSkimmer::elec_number_in_event
int elec_number_in_event
Definition: GenPurposeSkimmer.h:181
GenPurposeSkimmer::event_pfMET_sig
double event_pfMET_sig
Definition: GenPurposeSkimmer.h:188
GenPurposeSkimmer::probe_ele_e1x5
double probe_ele_e1x5[4]
Definition: GenPurposeSkimmer.h:151
Track.h
TrackFwd.h
GenPurposeSkimmer::ProbeSCMinEt
double ProbeSCMinEt
Definition: GenPurposeSkimmer.h:174
GenPurposeSkimmer::event_pfMET_phi
double event_pfMET_phi
Definition: GenPurposeSkimmer.h:190
GenPurposeSkimmer::probe_ele_phi_for_tree
double probe_ele_phi_for_tree[4]
Definition: GenPurposeSkimmer.h:110
GenPurposeSkimmer::t1MetCollectionTagTwiki_
edm::InputTag t1MetCollectionTagTwiki_
Definition: GenPurposeSkimmer.h:87
GenPurposeSkimmer::MCCollection_
edm::InputTag MCCollection_
Definition: GenPurposeSkimmer.h:82
CaloMET.h
GenPurposeSkimmer::probe_index_for_tree
int probe_index_for_tree[4]
Definition: GenPurposeSkimmer.h:117
GenMETFwd.h
GenPurposeSkimmer::event_pfMET
double event_pfMET
Definition: GenPurposeSkimmer.h:188
GenPurposeSkimmer::event_twikiT1MET
double event_twikiT1MET
Definition: GenPurposeSkimmer.h:196
GenPurposeSkimmer::probe_hcal_iso_user
double probe_hcal_iso_user[4]
Definition: GenPurposeSkimmer.h:132
GenPurposeSkimmer::probe_ecal_isolation_value
double probe_ecal_isolation_value[4]
Definition: GenPurposeSkimmer.h:128
GenPurposeSkimmer::probe_sc_et_for_tree
double probe_sc_et_for_tree[4]
Definition: GenPurposeSkimmer.h:104
GenPurposeSkimmer::probe_ele_dhi
double probe_ele_dhi[4]
Definition: GenPurposeSkimmer.h:144
GenPurposeSkimmer::probe_tree
TTree * probe_tree
Definition: GenPurposeSkimmer.h:97
GenPurposeSkimmer::HLTPath_
std::string HLTPath_[25]
Definition: GenPurposeSkimmer.h:95
GsfElectron.h
GenPurposeSkimmer::HLTCollectionE29_
edm::InputTag HLTCollectionE29_
Definition: GenPurposeSkimmer.h:90
GenPurposeSkimmer::HLTCollectionE31_
edm::InputTag HLTCollectionE31_
Definition: GenPurposeSkimmer.h:91
GenPurposeSkimmer::event_MET_phi
double event_MET_phi
Definition: GenPurposeSkimmer.h:186
GenPurposeSkimmer::endJob
virtual void endJob()
GenPurposeSkimmer::event_tcMET
double event_tcMET
Definition: GenPurposeSkimmer.h:187
IsoDeposit.h
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
GenMET.h
GenPurposeSkimmer::probe_classification_index_for_tree
int probe_classification_index_for_tree[4]
Definition: GenPurposeSkimmer.h:134
ElectronFwd.h
GenPurposeSkimmer::event_tcMET_phi
double event_tcMET_phi
Definition: GenPurposeSkimmer.h:187
GenPurposeSkimmer::RecoEleSeedBCMaxDE
double RecoEleSeedBCMaxDE
Definition: GenPurposeSkimmer.h:178
GenPurposeSkimmer::event_genMET
double event_genMET
Definition: GenPurposeSkimmer.h:191
GsfElectronFwd.h
edm::ParameterSet
Definition: ParameterSet.h:47
GenPurposeSkimmer::probe_pass_tip_cut
int probe_pass_tip_cut[4]
Definition: GenPurposeSkimmer.h:135
GenPurposeSkimmer::GenPurposeSkimmer
GenPurposeSkimmer(const edm::ParameterSet &)
Event.h
GenPurposeSkimmer::probe_ecal_iso_user
double probe_ecal_iso_user[4]
Definition: GenPurposeSkimmer.h:129
GenPurposeSkimmer::histofile
TFile * histofile
Definition: GenPurposeSkimmer.h:98
deltaR.h
GenPurposeSkimmer::probe_ele_hoe
double probe_ele_hoe[4]
Definition: GenPurposeSkimmer.h:141
GenPurposeSkimmer::HLTTriggerResultsE31_
edm::InputTag HLTTriggerResultsE31_
Definition: GenPurposeSkimmer.h:93
GenPurposeSkimmer::probe_pass_id_loose
int probe_pass_id_loose[4]
Definition: GenPurposeSkimmer.h:139
GenPurposeSkimmer::probe_mc_matched
int probe_mc_matched[4]
Definition: GenPurposeSkimmer.h:159
GenPurposeSkimmer::~GenPurposeSkimmer
~GenPurposeSkimmer()
PFMET.h
GenPurposeSkimmer::probe_hlt_matched_dr
double probe_hlt_matched_dr[4]
Definition: GenPurposeSkimmer.h:155
TriggerNames.h
GenPurposeSkimmer::event_tcMET_sig
double event_tcMET_sig
Definition: GenPurposeSkimmer.h:187
GenPurposeSkimmer::probe_sc_eta_for_tree
double probe_sc_eta_for_tree[4]
Definition: GenPurposeSkimmer.h:102
GsfTrack.h
GenPurposeSkimmer::probe_iso_user
double probe_iso_user[4]
Definition: GenPurposeSkimmer.h:126
GenPurposeSkimmer::probe_ele_tip
double probe_ele_tip[4]
Definition: GenPurposeSkimmer.h:115
GenPurposeSkimmer::probe_ele_Zvertex_for_tree
double probe_ele_Zvertex_for_tree[4]
Definition: GenPurposeSkimmer.h:114
GenPurposeSkimmer::EndcapMaxEta
double EndcapMaxEta
Definition: GenPurposeSkimmer.h:172
edm::EventSetup
Definition: EventSetup.h:57
GenPurposeSkimmer::ElectronCollection_
edm::InputTag ElectronCollection_
Definition: GenPurposeSkimmer.h:81
MET.h
GenPurposeSkimmer::analyze
virtual void analyze(const edm::Event &, const edm::EventSetup &)
TriggerObject.h
GenPurposeSkimmer::probe_ele_Xvertex_for_tree
double probe_ele_Xvertex_for_tree[4]
Definition: GenPurposeSkimmer.h:112
GenPurposeSkimmer::pfMetCollectionTag_
edm::InputTag pfMetCollectionTag_
Definition: GenPurposeSkimmer.h:85
GenPurposeSkimmer::probe_sc_pass_et_cut
int probe_sc_pass_et_cut[4]
Definition: GenPurposeSkimmer.h:106
ValueMap.h
GenPurposeSkimmer::probe_ele_pin
double probe_ele_pin[4]
Definition: GenPurposeSkimmer.h:147
PFMETFwd.h
GenPurposeSkimmer::event_t1MET_phi
double event_t1MET_phi
Definition: GenPurposeSkimmer.h:195
GenPurposeSkimmer::EndcapMinEta
double EndcapMinEta
Definition: GenPurposeSkimmer.h:171
Electron.h
GenPurposeSkimmer::probe_pass_recoEle_cut
int probe_pass_recoEle_cut[4]
Definition: GenPurposeSkimmer.h:122
GenPurposeSkimmer::probe_ele_eta_for_tree
double probe_ele_eta_for_tree[4]
Definition: GenPurposeSkimmer.h:109
Frameworkfwd.h
GenPurposeSkimmer::probe_ele_Yvertex_for_tree
double probe_ele_Yvertex_for_tree[4]
Definition: GenPurposeSkimmer.h:113
TriggerRefsCollections.h
GenPurposeSkimmer::numberOfHLTFilterObjects
int numberOfHLTFilterObjects[25]
Definition: GenPurposeSkimmer.h:166
GenPurposeSkimmer::event_twikiT1MET_sig
double event_twikiT1MET_sig
Definition: GenPurposeSkimmer.h:196
GenPurposeSkimmer::HLTTriggerResultsE29_
edm::InputTag HLTTriggerResultsE29_
Definition: GenPurposeSkimmer.h:92
Electron.h
GenPurposeSkimmer::probe_sc_phi_for_tree
double probe_sc_phi_for_tree[4]
Definition: GenPurposeSkimmer.h:103
GenPurposeSkimmer::BarrelMaxEta
double BarrelMaxEta
Definition: GenPurposeSkimmer.h:170
IsoDepositFwd.h
GenPurposeSkimmer::event_t1MET_sig
double event_t1MET_sig
Definition: GenPurposeSkimmer.h:195
GenPurposeSkimmer::event_HLTPath
int event_HLTPath[25]
Definition: GenPurposeSkimmer.h:168
GenPurposeSkimmer::probe_mc_matched_denergy
double probe_mc_matched_denergy[4]
Definition: GenPurposeSkimmer.h:162
ParameterSet.h
GenPurposeSkimmer::event_MET_sig
double event_MET_sig
Definition: GenPurposeSkimmer.h:184
GenPurposeSkimmer::probe_hcal_isolation_value
double probe_hcal_isolation_value[4]
Definition: GenPurposeSkimmer.h:131
GenPurposeSkimmer::probe_pass_id_tight
int probe_pass_id_tight[4]
Definition: GenPurposeSkimmer.h:140
GenPurposeSkimmer::ProbeHLTObjMaxDR
double ProbeHLTObjMaxDR
Definition: GenPurposeSkimmer.h:177
edm::Event
Definition: Event.h:73
GenPurposeSkimmer::probe_charge_for_tree
int probe_charge_for_tree[4]
Definition: GenPurposeSkimmer.h:116
GenPurposeSkimmer::tcMetCollectionTag_
edm::InputTag tcMetCollectionTag_
Definition: GenPurposeSkimmer.h:84
GenPurposeSkimmer::probe_ele_pass_fiducial_cut
int probe_ele_pass_fiducial_cut[4]
Definition: GenPurposeSkimmer.h:120
GenPurposeSkimmer::probe_ele_e2x5
double probe_ele_e2x5[4]
Definition: GenPurposeSkimmer.h:150
GenPurposeSkimmer::probe_ele_et_for_tree
double probe_ele_et_for_tree[4]
Definition: GenPurposeSkimmer.h:111
edm::InputTag
Definition: InputTag.h:15
GenPurposeSkimmer::probe_pass_iso_cut
int probe_pass_iso_cut[4]
Definition: GenPurposeSkimmer.h:123
GenPurposeSkimmer::probe_pass_id_robust_loose
int probe_pass_id_robust_loose[4]
Definition: GenPurposeSkimmer.h:137