21 |
|
#include "DataFormats/L1Trigger/interface/L1JetParticle.h" |
22 |
|
#include "DataFormats/L1GlobalTrigger/interface/L1GlobalTriggerReadoutRecord.h" |
23 |
|
#include "DataFormats/HLTReco/interface/TriggerEvent.h" |
24 |
+ |
#include "DataFormats/BeamSpot/interface/BeamSpot.h" |
25 |
+ |
#include "DataFormats/JetReco/interface/GenJet.h" |
26 |
|
|
27 |
|
#include "DataFormats/PatCandidates/interface/Lepton.h" |
28 |
|
#include "DataFormats/PatCandidates/interface/Jet.h" |
32 |
|
|
33 |
|
#include "SimDataFormats/GeneratorProducts/interface/GenRunInfoProduct.h" |
34 |
|
#include "SimDataFormats/GeneratorProducts/interface/HepMCProduct.h" |
35 |
+ |
#include "SimDataFormats/GeneratorProducts/interface/LHEEventProduct.h" |
36 |
|
|
37 |
|
#include "UserCode/HbbAnalysis/interface/JetFlavour.hh" |
38 |
|
#include "UserCode/HbbAnalysis/interface/HbbEvent.hh" |
39 |
|
|
40 |
+ |
#include "CondFormats/JetMETObjects/interface/JetCorrectionUncertainty.h" |
41 |
+ |
#include "SimDataFormats/PileupSummaryInfo/interface/PileupSummaryInfo.h" |
42 |
+ |
|
43 |
|
#include "TTree.h" |
44 |
|
|
45 |
|
class HbbTreeMaker : public edm::EDAnalyzer {//class |
60 |
|
void HbbParticles(const edm::Handle<reco::GenParticleCollection> & aCol, |
61 |
|
std::vector<HbbAnalysis::GenParticle> & aVec); |
62 |
|
|
63 |
+ |
void HbbGenJets(const edm::Handle<reco::GenJetCollection> & aCol, |
64 |
+ |
std::vector<HbbAnalysis::GenJet> & aVec, |
65 |
+ |
const bool aSaveConstituants); |
66 |
+ |
|
67 |
+ |
|
68 |
+ |
void HbbLHEInfo(const edm::Handle<LHEEventProduct> & aLHEEvt, |
69 |
+ |
std::vector<HbbAnalysis::GenParticle> & aVec); |
70 |
+ |
|
71 |
+ |
void HbbPUInfo(const edm::Handle<std::vector<PileupSummaryInfo> > & aPUInfo, |
72 |
+ |
std::vector<HbbAnalysis::PUVars> & aVec); |
73 |
+ |
|
74 |
+ |
|
75 |
+ |
|
76 |
+ |
void HbbBeamSpot(const edm::Handle<reco::BeamSpot> & aBeamSpot, |
77 |
+ |
HbbAnalysis::BeamSpot & aBS); |
78 |
+ |
|
79 |
|
void HbbElectrons(const edm::Handle<std::vector<pat::Electron> > & aCol, |
80 |
|
std::vector<HbbAnalysis::Electron> & aVec); |
81 |
|
|
82 |
|
void HbbMuons(const edm::Handle<std::vector<pat::Muon> > & aCol, |
83 |
|
const edm::Handle<std::vector<reco::Vertex> > & aRecoVertices, |
84 |
+ |
const edm::Handle<reco::BeamSpot> & aBeamSpot, |
85 |
|
std::vector<HbbAnalysis::Muon> & aVec); |
86 |
|
|
87 |
|
void HbbTaus(const edm::Handle<std::vector<pat::Tau> > & aCol, |
93 |
|
const edm::Handle<reco::GenParticleCollection> & aGenParticles, |
94 |
|
std::vector<HbbAnalysis::Jet> & aVec); |
95 |
|
|
96 |
+ |
JetCorrectionUncertainty* jecUncCalo; |
97 |
+ |
JetCorrectionUncertainty* jecUncPF; |
98 |
+ |
JetCorrectionUncertainty* jecUncJPT; |
99 |
+ |
|
100 |
|
void HbbMet(const edm::Handle<std::vector<pat::MET> > & aCol, |
101 |
|
HbbAnalysis::Met & aVec); |
102 |
|
|
114 |
|
|
115 |
|
void HbbHLTObjects(const edm::Handle<trigger::TriggerEvent> & aCol, |
116 |
|
std::vector<HbbAnalysis::HLTObject> & aVec); |
117 |
< |
|
117 |
> |
|
118 |
> |
void fillHLTVector(const edm::InputTag & aTag, |
119 |
> |
const edm::Handle<trigger::TriggerEvent> & aCol, |
120 |
> |
std::vector<HbbAnalysis::HLTObject> & aVec, |
121 |
> |
const unsigned int aType); |
122 |
> |
|
123 |
|
void HbbGenInfo(const edm::Handle<edm::HepMCProduct> & amcProd, |
124 |
|
const edm::Handle<GenRunInfoProduct> & aRunProd); |
125 |
|
|
138 |
|
HbbAnalysis::JetFlavour jetFlav_; |
139 |
|
|
140 |
|
edm::InputTag genParticleSrc_; |
141 |
+ |
edm::InputTag genJetSrc_; |
142 |
+ |
edm::InputTag partonJetSrc_; |
143 |
+ |
edm::InputTag trackSrc_; |
144 |
+ |
edm::InputTag dcsSrc_; |
145 |
|
edm::InputTag electronSrc_; |
146 |
|
edm::InputTag muonSrc_; |
147 |
|
edm::InputTag caloTauSrc_; |
148 |
|
edm::InputTag pfTauSrc_; |
149 |
|
edm::InputTag caloJetSrc_; |
150 |
|
edm::InputTag jptJetSrc_; |
151 |
+ |
edm::InputTag ak7JetSrc_; |
152 |
|
edm::InputTag pfJetSrc_; |
153 |
|
edm::InputTag caloMetSrc_; |
154 |
|
edm::InputTag tcMetSrc_; |
176 |
|
TTree *tree_; |
177 |
|
|
178 |
|
//name of the desired collection for hlt matches |
179 |
< |
std::vector<edm::InputTag> hltTags_; |
179 |
> |
std::vector<edm::InputTag> hltTagsElec_; |
180 |
> |
std::vector<edm::InputTag> hltTagsMu_; |
181 |
> |
std::vector<edm::InputTag> hltTagsJet_; |
182 |
|
|
183 |
|
};//class |
184 |
|
|