CMS 3D CMS Logo

GenPurposeSkimmerData.h
Go to the documentation of this file.
1 #ifndef GenPurposeSkimmerData_H
2 #define GenPurposeSkimmerData_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 //
38 
39 //
53 
55 //
60 
64 //
65 // class decleration
66 //
67 
69 public:
71  ~GenPurposeSkimmerData() override;
72 
73 private:
74  void beginJob() override;
75  void analyze(const edm::Event&, const edm::EventSetup&) override;
76  void endJob() override;
77 
78  // ----------member data ---------------------------
79 
82 
93  //
103  // std::string HLTPath_[25];
109 
110  TTree* probe_tree;
111  TFile* histofile;
112  //
113 
114  //probe SC variables
120 
121  //probe electron variables
128  double probe_ele_tip[4];
131 
132  //efficiency cuts
137  //
139  double probe_iso_user[4];
140  //
143 
146  //
149  //
154  double probe_ele_hoe[4];
155  double probe_ele_shh[4];
156  double probe_ele_sihih[4];
157  double probe_ele_dhi[4];
158  double probe_ele_dfi[4];
159  double probe_ele_eop[4];
160  double probe_ele_pin[4];
161  double probe_ele_pout[4];
162  double probe_ele_e5x5[4];
163  double probe_ele_e2x5[4];
164  double probe_ele_e1x5[4];
165 
166  //
169  //
177 
178  //event variables
180 
181  int event_HLTPath[25];
182 
183  double BarrelMaxEta;
184  double EndcapMinEta;
185  double EndcapMaxEta;
186 
187  double ProbeSCMinEt;
189 
193 
196 
198  // double event_MET_eta;
202  // double event_pfMET_eta;
204  //double event_genMET, event_genMET_sig;
205  // double event_genMET_eta;
206  //double event_genMET_phi;
207  //
210  //
211  //
212  //
215  //
217  double ctf_track_vx[20], ctf_track_vy[20], ctf_track_vz[20];
219  //
220  double muon_pt[4], muon_eta[4], muon_phi[4];
221  double muon_vx[4], muon_vy[4], muon_vz[4];
222  double muon_tip[4], muon_tip_bs[4];
223 };
224 
225 #endif
GenPurposeSkimmerData::probe_sc_pass_et_cut
int probe_sc_pass_et_cut[4]
Definition: GenPurposeSkimmerData.h:119
GenPurposeSkimmerData::EndcapMaxEta
double EndcapMaxEta
Definition: GenPurposeSkimmerData.h:185
GenPurposeSkimmerData::probe_ele_e2x5
double probe_ele_e2x5[4]
Definition: GenPurposeSkimmerData.h:163
GenPurposeSkimmerData::probe_pass_iso_cut
int probe_pass_iso_cut[4]
Definition: GenPurposeSkimmerData.h:136
GenPurposeSkimmerData::muon_tip
double muon_tip[4]
Definition: GenPurposeSkimmerData.h:222
GenPurposeSkimmerData::ctf_track_eta
double ctf_track_eta[20]
Definition: GenPurposeSkimmerData.h:216
GenPurposeSkimmerData::endJob
void endJob() override
Definition: GenPurposeSkimmerData.cc:1019
GenPurposeSkimmerData::probe_index_for_tree
int probe_index_for_tree[4]
Definition: GenPurposeSkimmerData.h:130
GenPurposeSkimmerData::probe_hcal_isolation_value
double probe_hcal_isolation_value[4]
Definition: GenPurposeSkimmerData.h:144
GenPurposeSkimmerData::HLTCollectionE29Token_
edm::EDGetTokenT< trigger::TriggerEvent > HLTCollectionE29Token_
Definition: GenPurposeSkimmerData.h:95
MessageLogger.h
GenPurposeSkimmerData::HLTTriggerResultsE29_
edm::InputTag HLTTriggerResultsE29_
Definition: GenPurposeSkimmerData.h:98
GenPurposeSkimmerData::muon_eta
double muon_eta[4]
Definition: GenPurposeSkimmerData.h:220
GenPurposeSkimmerData::event_MET_phi
double event_MET_phi
Definition: GenPurposeSkimmerData.h:199
GenPurposeSkimmerData::probe_charge_for_tree
int probe_charge_for_tree[4]
Definition: GenPurposeSkimmerData.h:129
GenPurposeSkimmerData::probe_ele_shh
double probe_ele_shh[4]
Definition: GenPurposeSkimmerData.h:155
TriggerResults.h
GenPurposeSkimmerData::pfMetCollectionToken_
edm::EDGetTokenT< reco::PFMETCollection > pfMetCollectionToken_
Definition: GenPurposeSkimmerData.h:90
GenPurposeSkimmerData::beginJob
void beginJob() override
Definition: GenPurposeSkimmerData.cc:889
GenPurposeSkimmerData::event_MET_sig
double event_MET_sig
Definition: GenPurposeSkimmerData.h:197
GenPurposeSkimmerData::probe_hcal_iso_user
double probe_hcal_iso_user[4]
Definition: GenPurposeSkimmerData.h:145
GenPurposeSkimmerData::ctfTracksToken_
edm::EDGetTokenT< reco::TrackCollection > ctfTracksToken_
Definition: GenPurposeSkimmerData.h:104
GenPurposeSkimmerData::probe_ele_sihih
double probe_ele_sihih[4]
Definition: GenPurposeSkimmerData.h:156
GenPurposeSkimmerData::probe_ele_Xvertex_for_tree
double probe_ele_Xvertex_for_tree[4]
Definition: GenPurposeSkimmerData.h:125
GenPurposeSkimmerData::GenPurposeSkimmerData
GenPurposeSkimmerData(const edm::ParameterSet &)
Definition: GenPurposeSkimmerData.cc:54
TriggerEvent.h
GenPurposeSkimmerData::probe_ele_Zvertex_for_tree
double probe_ele_Zvertex_for_tree[4]
Definition: GenPurposeSkimmerData.h:127
edm::EDGetTokenT< pat::ElectronCollection >
GenPurposeSkimmerData::HLTCollectionE31Token_
edm::EDGetTokenT< trigger::TriggerEvent > HLTCollectionE31Token_
Definition: GenPurposeSkimmerData.h:97
Muon.h
GenPurposeSkimmerData::probe_pass_trigger_cut
int probe_pass_trigger_cut[4][25]
Definition: GenPurposeSkimmerData.h:167
GenPurposeSkimmerData::probe_ele_e5x5
double probe_ele_e5x5[4]
Definition: GenPurposeSkimmerData.h:162
GenPurposeSkimmerData::MCMatch_Dphi_
double MCMatch_Dphi_
Definition: GenPurposeSkimmerData.h:171
GenPurposeSkimmerData::probe_isolation_value
double probe_isolation_value[4]
Definition: GenPurposeSkimmerData.h:138
TriggerEventWithRefs.h
GenPurposeSkimmerData::probe_ecal_iso_user
double probe_ecal_iso_user[4]
Definition: GenPurposeSkimmerData.h:142
GenPurposeSkimmerData::event_pfMET_phi
double event_pfMET_phi
Definition: GenPurposeSkimmerData.h:203
GenPurposeSkimmerData::event_pfMET_sig
double event_pfMET_sig
Definition: GenPurposeSkimmerData.h:201
GenPurposeSkimmerData::probe_pass_tip_cut
int probe_pass_tip_cut[4]
Definition: GenPurposeSkimmerData.h:148
TriggerTypeDefs.h
GenPurposeSkimmerData::muon_vy
double muon_vy[4]
Definition: GenPurposeSkimmerData.h:221
GenPurposeSkimmerData::tree_fills_
int tree_fills_
Definition: GenPurposeSkimmerData.h:81
TriggerFilterObjectWithRefs.h
GenPurposeSkimmerData::probe_ele_pass_et_cut
int probe_ele_pass_et_cut[4]
Definition: GenPurposeSkimmerData.h:134
GenPurposeSkimmerData::BarrelMaxEta
double BarrelMaxEta
Definition: GenPurposeSkimmerData.h:183
EcalClusterLazyTools.h
EDAnalyzer.h
GenPurposeSkimmerData::muon_phi
double muon_phi[4]
Definition: GenPurposeSkimmerData.h:220
GenPurposeSkimmerData::probe_ele_pout
double probe_ele_pout[4]
Definition: GenPurposeSkimmerData.h:161
GenPurposeSkimmerData::event_mcMET_phi
double event_mcMET_phi
Definition: GenPurposeSkimmerData.h:209
GenPurposeSkimmerData
Definition: GenPurposeSkimmerData.h:68
GenPurposeSkimmerData::elec_1_duplicate_removal
int elec_1_duplicate_removal
Definition: GenPurposeSkimmerData.h:195
GenPurposeSkimmerData::HLTCollectionE29_
edm::InputTag HLTCollectionE29_
Definition: GenPurposeSkimmerData.h:94
GenPurposeSkimmerData::ElectronCollectionToken_
edm::EDGetTokenT< pat::ElectronCollection > ElectronCollectionToken_
Definition: GenPurposeSkimmerData.h:83
CaloMETFwd.h
GenPurposeSkimmerData::probe_classification_index_for_tree
int probe_classification_index_for_tree[4]
Definition: GenPurposeSkimmerData.h:147
GenPurposeSkimmerData::multi5x5scToken_
edm::EDGetTokenT< reco::SuperClusterCollection > multi5x5scToken_
Definition: GenPurposeSkimmerData.h:106
edm::EDAnalyzer
Definition: EDAnalyzer.h:28
GenPurposeSkimmerData::corHybridscToken_
edm::EDGetTokenT< reco::SuperClusterCollection > corHybridscToken_
Definition: GenPurposeSkimmerData.h:105
GenPurposeSkimmerData::probe_mc_matched_deta
double probe_mc_matched_deta[4]
Definition: GenPurposeSkimmerData.h:173
GenParticle.h
GenPurposeSkimmerData::ProbeHLTObjMaxDR
double ProbeHLTObjMaxDR
Definition: GenPurposeSkimmerData.h:190
GenPurposeSkimmerData::ctf_track_vx
double ctf_track_vx[20]
Definition: GenPurposeSkimmerData.h:217
GenPurposeSkimmerData::offlineBeamSpotToken_
edm::EDGetTokenT< reco::BeamSpot > offlineBeamSpotToken_
Definition: GenPurposeSkimmerData.h:107
GenPurposeSkimmerData::muon_vx
double muon_vx[4]
Definition: GenPurposeSkimmerData.h:221
MakerMacros.h
GenPurposeSkimmerData::ProbeRecoEleSCMaxDE
double ProbeRecoEleSCMaxDE
Definition: GenPurposeSkimmerData.h:188
GenPurposeSkimmerData::ctf_track_vz
double ctf_track_vz[20]
Definition: GenPurposeSkimmerData.h:217
GenPurposeSkimmerData::probe_ele_pass_fiducial_cut
int probe_ele_pass_fiducial_cut[4]
Definition: GenPurposeSkimmerData.h:133
Track.h
TrackFwd.h
BeamSpot.h
GenPurposeSkimmerData::event_pfMET
double event_pfMET
Definition: GenPurposeSkimmerData.h:201
GenPurposeSkimmerData::probe_mc_matched
int probe_mc_matched[4]
Definition: GenPurposeSkimmerData.h:172
CaloMET.h
GenPurposeSkimmerData::elec_number_in_event
int elec_number_in_event
Definition: GenPurposeSkimmerData.h:194
GenPurposeSkimmerData::event_MET
double event_MET
Definition: GenPurposeSkimmerData.h:197
GenPurposeSkimmerData::probe_ele_e1x5
double probe_ele_e1x5[4]
Definition: GenPurposeSkimmerData.h:164
GenPurposeSkimmerData::ctf_track_vy
double ctf_track_vy[20]
Definition: GenPurposeSkimmerData.h:217
GenPurposeSkimmerData::event_t1MET_phi
double event_t1MET_phi
Definition: GenPurposeSkimmerData.h:208
GenMETFwd.h
GenPurposeSkimmerData::GsfTrackMinInnerPt
double GsfTrackMinInnerPt
Definition: GenPurposeSkimmerData.h:192
GenPurposeSkimmerData::probe_pass_id_loose
int probe_pass_id_loose[4]
Definition: GenPurposeSkimmerData.h:152
GenPurposeSkimmerData::HLTTriggerResultsE29Token_
edm::EDGetTokenT< edm::TriggerResults > HLTTriggerResultsE29Token_
Definition: GenPurposeSkimmerData.h:99
GenPurposeSkimmerData::probe_sc_et_for_tree
double probe_sc_et_for_tree[4]
Definition: GenPurposeSkimmerData.h:117
GenPurposeSkimmerData::outputFile_
std::string outputFile_
Definition: GenPurposeSkimmerData.h:80
GenPurposeSkimmerData::t1MetCollectionToken_
edm::EDGetTokenT< pat::METCollection > t1MetCollectionToken_
Definition: GenPurposeSkimmerData.h:91
GenPurposeSkimmerData::event_tcMET_sig
double event_tcMET_sig
Definition: GenPurposeSkimmerData.h:200
GenPurposeSkimmerData::event_t1MET
double event_t1MET
Definition: GenPurposeSkimmerData.h:208
GenPurposeSkimmerData::muon_pt
double muon_pt[4]
Definition: GenPurposeSkimmerData.h:220
GsfElectron.h
GenPurposeSkimmerData::probe_sc_eta_for_tree
double probe_sc_eta_for_tree[4]
Definition: GenPurposeSkimmerData.h:115
GenPurposeSkimmerData::event_t1MET_sig
double event_t1MET_sig
Definition: GenPurposeSkimmerData.h:208
IsoDeposit.h
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
GenPurposeSkimmerData::pMuonsToken_
edm::EDGetTokenT< pat::MuonCollection > pMuonsToken_
Definition: GenPurposeSkimmerData.h:108
GenMET.h
GenPurposeSkimmerData::muon_tip_bs
double muon_tip_bs[4]
Definition: GenPurposeSkimmerData.h:222
GenPurposeSkimmerData::probe_ele_phi_for_tree
double probe_ele_phi_for_tree[4]
Definition: GenPurposeSkimmerData.h:123
GenPurposeSkimmerData::ctf_track_pt
double ctf_track_pt[20]
Definition: GenPurposeSkimmerData.h:216
ElectronFwd.h
GenPurposeSkimmerData::probe_mc_matched_dphi
double probe_mc_matched_dphi[4]
Definition: GenPurposeSkimmerData.h:174
GenPurposeSkimmerData::ctf_track_tip
double ctf_track_tip[20]
Definition: GenPurposeSkimmerData.h:218
GsfElectronFwd.h
edm::ParameterSet
Definition: ParameterSet.h:47
Event.h
GenPurposeSkimmerData::probe_ele_dhi
double probe_ele_dhi[4]
Definition: GenPurposeSkimmerData.h:157
GenPurposeSkimmerData::event_tcMET_phi
double event_tcMET_phi
Definition: GenPurposeSkimmerData.h:200
deltaR.h
GenPurposeSkimmerData::tcMetCollectionToken_
edm::EDGetTokenT< reco::METCollection > tcMetCollectionToken_
Definition: GenPurposeSkimmerData.h:89
GenPurposeSkimmerData::~GenPurposeSkimmerData
~GenPurposeSkimmerData() override
Definition: GenPurposeSkimmerData.cc:115
GenPurposeSkimmerData::MCCollection_
edm::InputTag MCCollection_
Definition: GenPurposeSkimmerData.h:84
GenPurposeSkimmerData::probe_pass_id_tight
int probe_pass_id_tight[4]
Definition: GenPurposeSkimmerData.h:153
PFMET.h
GenPurposeSkimmerData::probe_hlt_matched_dr
double probe_hlt_matched_dr[4]
Definition: GenPurposeSkimmerData.h:168
GenPurposeSkimmerData::probe_ele_Yvertex_for_tree
double probe_ele_Yvertex_for_tree[4]
Definition: GenPurposeSkimmerData.h:126
GenPurposeSkimmerData::probe_ele_tip
double probe_ele_tip[4]
Definition: GenPurposeSkimmerData.h:128
GenPurposeSkimmerData::sc_multi5x5_et
double sc_multi5x5_et[5]
Definition: GenPurposeSkimmerData.h:214
GenPurposeSkimmerData::sc_hybrid_et
double sc_hybrid_et[5]
Definition: GenPurposeSkimmerData.h:213
GsfTrack.h
GenPurposeSkimmerData::probe_ele_et_for_tree
double probe_ele_et_for_tree[4]
Definition: GenPurposeSkimmerData.h:124
GenPurposeSkimmerData::MCMatch_Deta_
double MCMatch_Deta_
Definition: GenPurposeSkimmerData.h:170
edm::EventSetup
Definition: EventSetup.h:57
GenPurposeSkimmerData::mcMetCollectionToken_
edm::EDGetTokenT< pat::METCollection > mcMetCollectionToken_
Definition: GenPurposeSkimmerData.h:88
GenPurposeSkimmerData::event_tcMET
double event_tcMET
Definition: GenPurposeSkimmerData.h:200
MET.h
GenPurposeSkimmerData::RecoEleSeedBCMaxDE
double RecoEleSeedBCMaxDE
Definition: GenPurposeSkimmerData.h:191
GenPurposeSkimmerData::sc_multi5x5_phi
double sc_multi5x5_phi[5]
Definition: GenPurposeSkimmerData.h:214
TriggerObject.h
GenPurposeSkimmerData::HLTTriggerResultsE31Token_
edm::EDGetTokenT< edm::TriggerResults > HLTTriggerResultsE31Token_
Definition: GenPurposeSkimmerData.h:101
GenPurposeSkimmerData::MCCollectionToken_
edm::EDGetTokenT< reco::GenParticleCollection > MCCollectionToken_
Definition: GenPurposeSkimmerData.h:85
GenPurposeSkimmerData::probe_sc_phi_for_tree
double probe_sc_phi_for_tree[4]
Definition: GenPurposeSkimmerData.h:116
GenPurposeSkimmerData::probe_ele_hoe
double probe_ele_hoe[4]
Definition: GenPurposeSkimmerData.h:154
ValueMap.h
GenPurposeSkimmerData::probe_ele_eop
double probe_ele_eop[4]
Definition: GenPurposeSkimmerData.h:159
PFMETFwd.h
GenPurposeSkimmerData::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: GenPurposeSkimmerData.cc:125
GenPurposeSkimmerData::histofile
TFile * histofile
Definition: GenPurposeSkimmerData.h:111
GenPurposeSkimmerData::HLTFilterType_
edm::InputTag HLTFilterType_[25]
Definition: GenPurposeSkimmerData.h:102
Electron.h
GenPurposeSkimmerData::ctf_track_tip_bs
double ctf_track_tip_bs[20]
Definition: GenPurposeSkimmerData.h:218
GenPurposeSkimmerData::probe_tree
TTree * probe_tree
Definition: GenPurposeSkimmerData.h:110
Frameworkfwd.h
GenPurposeSkimmerData::event_HLTPath
int event_HLTPath[25]
Definition: GenPurposeSkimmerData.h:181
GenPurposeSkimmerData::ProbeSCMinEt
double ProbeSCMinEt
Definition: GenPurposeSkimmerData.h:187
GenPurposeSkimmerData::probe_iso_user
double probe_iso_user[4]
Definition: GenPurposeSkimmerData.h:139
TriggerRefsCollections.h
GenPurposeSkimmerData::probe_ele_pin
double probe_ele_pin[4]
Definition: GenPurposeSkimmerData.h:160
GenPurposeSkimmerData::ctf_track_phi
double ctf_track_phi[20]
Definition: GenPurposeSkimmerData.h:216
GenPurposeSkimmerData::muon_vz
double muon_vz[4]
Definition: GenPurposeSkimmerData.h:221
GenPurposeSkimmerData::sc_multi5x5_eta
double sc_multi5x5_eta[5]
Definition: GenPurposeSkimmerData.h:214
GenPurposeSkimmerData::probe_ecal_isolation_value
double probe_ecal_isolation_value[4]
Definition: GenPurposeSkimmerData.h:141
Electron.h
GenPurposeSkimmerData::HLTCollectionE31_
edm::InputTag HLTCollectionE31_
Definition: GenPurposeSkimmerData.h:96
GenPurposeSkimmerData::sc_hybrid_eta
double sc_hybrid_eta[5]
Definition: GenPurposeSkimmerData.h:213
GenPurposeSkimmerData::numberOfHLTFilterObjects
int numberOfHLTFilterObjects[25]
Definition: GenPurposeSkimmerData.h:179
GenPurposeSkimmerData::probe_pass_id_robust_loose
int probe_pass_id_robust_loose[4]
Definition: GenPurposeSkimmerData.h:150
IsoDepositFwd.h
GenPurposeSkimmerData::probe_ele_dfi
double probe_ele_dfi[4]
Definition: GenPurposeSkimmerData.h:158
ParameterSet.h
GenPurposeSkimmerData::EndcapMinEta
double EndcapMinEta
Definition: GenPurposeSkimmerData.h:184
GenPurposeSkimmerData::sc_hybrid_phi
double sc_hybrid_phi[5]
Definition: GenPurposeSkimmerData.h:213
GenPurposeSkimmerData::MetCollectionTag_
edm::InputTag MetCollectionTag_
Definition: GenPurposeSkimmerData.h:86
edm::Event
Definition: Event.h:73
GenPurposeSkimmerData::event_mcMET_sig
double event_mcMET_sig
Definition: GenPurposeSkimmerData.h:209
GenPurposeSkimmerData::probe_sc_pass_fiducial_cut
int probe_sc_pass_fiducial_cut[4]
Definition: GenPurposeSkimmerData.h:118
GenPurposeSkimmerData::HLTTriggerResultsE31_
edm::InputTag HLTTriggerResultsE31_
Definition: GenPurposeSkimmerData.h:100
GenPurposeSkimmerData::probe_mc_matched_mother
int probe_mc_matched_mother[4]
Definition: GenPurposeSkimmerData.h:176
GenPurposeSkimmerData::probe_ele_eta_for_tree
double probe_ele_eta_for_tree[4]
Definition: GenPurposeSkimmerData.h:122
GenPurposeSkimmerData::genMetCollectionToken_
edm::EDGetTokenT< reco::GenMETCollection > genMetCollectionToken_
Definition: GenPurposeSkimmerData.h:92
GenPurposeSkimmerData::MetCollectionToken_
edm::EDGetTokenT< reco::CaloMETCollection > MetCollectionToken_
Definition: GenPurposeSkimmerData.h:87
edm::InputTag
Definition: InputTag.h:15
GenPurposeSkimmerData::probe_pass_id_robust_tight
int probe_pass_id_robust_tight[4]
Definition: GenPurposeSkimmerData.h:151
GenPurposeSkimmerData::probe_pass_recoEle_cut
int probe_pass_recoEle_cut[4]
Definition: GenPurposeSkimmerData.h:135
GenPurposeSkimmerData::probe_mc_matched_denergy
double probe_mc_matched_denergy[4]
Definition: GenPurposeSkimmerData.h:175
GenPurposeSkimmerData::event_mcMET
double event_mcMET
Definition: GenPurposeSkimmerData.h:209