12 |
|
#include "FWCore/Framework/interface/ESHandle.h" |
13 |
|
#include "FWCore/Framework/interface/Event.h" |
14 |
|
#include "FWCore/Framework/interface/EventSetup.h" |
15 |
< |
#include "FWCore/Framework/interface/TriggerNames.h" |
15 |
> |
#include "FWCore/Common/interface/TriggerNames.h" |
16 |
|
#include "FWCore/ParameterSet/interface/ParameterSet.h" |
17 |
|
|
18 |
|
#include "DataFormats/Common/interface/Handle.h" |
19 |
+ |
|
20 |
+ |
#include "DataFormats/L1Trigger/interface/L1JetParticleFwd.h" |
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 |
+ |
|
26 |
|
#include "DataFormats/PatCandidates/interface/Lepton.h" |
27 |
|
#include "DataFormats/PatCandidates/interface/Jet.h" |
28 |
|
#include "DataFormats/PatCandidates/interface/Muon.h" |
29 |
|
#include "DataFormats/PatCandidates/interface/Electron.h" |
30 |
|
#include "DataFormats/PatCandidates/interface/Tau.h" |
31 |
|
|
32 |
+ |
#include "SimDataFormats/GeneratorProducts/interface/GenRunInfoProduct.h" |
33 |
+ |
#include "SimDataFormats/GeneratorProducts/interface/HepMCProduct.h" |
34 |
+ |
#include "SimDataFormats/GeneratorProducts/interface/LHEEventProduct.h" |
35 |
+ |
|
36 |
|
#include "UserCode/HbbAnalysis/interface/JetFlavour.hh" |
37 |
|
#include "UserCode/HbbAnalysis/interface/HbbEvent.hh" |
38 |
|
|
39 |
+ |
#include "CondFormats/JetMETObjects/interface/JetCorrectionUncertainty.h" |
40 |
+ |
|
41 |
|
#include "TTree.h" |
42 |
|
|
43 |
|
class HbbTreeMaker : public edm::EDAnalyzer {//class |
58 |
|
void HbbParticles(const edm::Handle<reco::GenParticleCollection> & aCol, |
59 |
|
std::vector<HbbAnalysis::GenParticle> & aVec); |
60 |
|
|
61 |
+ |
void HbbLHEInfo(const edm::Handle<LHEEventProduct> & aLHEEvt, |
62 |
+ |
std::vector<HbbAnalysis::GenParticle> & aVec); |
63 |
+ |
|
64 |
+ |
void HbbBeamSpot(const edm::Handle<reco::BeamSpot> & aBeamSpot, |
65 |
+ |
HbbAnalysis::BeamSpot & aBS); |
66 |
+ |
|
67 |
|
void HbbElectrons(const edm::Handle<std::vector<pat::Electron> > & aCol, |
68 |
|
std::vector<HbbAnalysis::Electron> & aVec); |
69 |
|
|
70 |
|
void HbbMuons(const edm::Handle<std::vector<pat::Muon> > & aCol, |
71 |
|
const edm::Handle<std::vector<reco::Vertex> > & aRecoVertices, |
72 |
+ |
const edm::Handle<reco::BeamSpot> & aBeamSpot, |
73 |
|
std::vector<HbbAnalysis::Muon> & aVec); |
74 |
|
|
75 |
|
void HbbTaus(const edm::Handle<std::vector<pat::Tau> > & aCol, |
81 |
|
const edm::Handle<reco::GenParticleCollection> & aGenParticles, |
82 |
|
std::vector<HbbAnalysis::Jet> & aVec); |
83 |
|
|
84 |
+ |
JetCorrectionUncertainty* jecUncCalo; |
85 |
+ |
JetCorrectionUncertainty* jecUncPF; |
86 |
+ |
JetCorrectionUncertainty* jecUncJPT; |
87 |
+ |
|
88 |
|
void HbbMet(const edm::Handle<std::vector<pat::MET> > & aCol, |
89 |
|
HbbAnalysis::Met & aVec); |
90 |
|
|
91 |
|
void HbbTrigger(const edm::Handle<edm::TriggerResults> & aCol, |
92 |
+ |
const edm::TriggerNames & aNames, |
93 |
|
std::vector<HbbAnalysis::Trigger> & aVec); |
94 |
|
|
95 |
|
void HbbVertices(const edm::Handle<std::vector<reco::Vertex> > & aCol, |
96 |
|
std::vector<HbbAnalysis::Vertex> & aVec); |
97 |
|
|
98 |
|
|
99 |
+ |
void HbbL1Objects(const edm::Handle<l1extra::L1JetParticleCollection> & aCol, |
100 |
+ |
std::vector<HbbAnalysis::L1Object> & aVec, |
101 |
+ |
const unsigned int aType); |
102 |
+ |
|
103 |
+ |
void HbbHLTObjects(const edm::Handle<trigger::TriggerEvent> & aCol, |
104 |
+ |
std::vector<HbbAnalysis::HLTObject> & aVec); |
105 |
+ |
|
106 |
+ |
void fillHLTVector(const edm::InputTag & aTag, |
107 |
+ |
const edm::Handle<trigger::TriggerEvent> & aCol, |
108 |
+ |
std::vector<HbbAnalysis::HLTObject> & aVec, |
109 |
+ |
const unsigned int aType); |
110 |
+ |
|
111 |
+ |
void HbbGenInfo(const edm::Handle<edm::HepMCProduct> & amcProd, |
112 |
+ |
const edm::Handle<GenRunInfoProduct> & aRunProd); |
113 |
+ |
|
114 |
|
int debug_; |
115 |
|
|
116 |
|
bool processData_; |
126 |
|
HbbAnalysis::JetFlavour jetFlav_; |
127 |
|
|
128 |
|
edm::InputTag genParticleSrc_; |
129 |
+ |
edm::InputTag trackSrc_; |
130 |
+ |
edm::InputTag dcsSrc_; |
131 |
|
edm::InputTag electronSrc_; |
132 |
|
edm::InputTag muonSrc_; |
133 |
|
edm::InputTag caloTauSrc_; |
134 |
|
edm::InputTag pfTauSrc_; |
135 |
|
edm::InputTag caloJetSrc_; |
136 |
|
edm::InputTag jptJetSrc_; |
137 |
+ |
edm::InputTag ak7JetSrc_; |
138 |
|
edm::InputTag pfJetSrc_; |
139 |
|
edm::InputTag caloMetSrc_; |
140 |
|
edm::InputTag tcMetSrc_; |
146 |
|
edm::InputTag vertexSrc_; |
147 |
|
edm::InputTag triggerSrc_; |
148 |
|
std::vector<std::string> hltPaths_; |
149 |
+ |
edm::InputTag l1CenJetSrc_; |
150 |
+ |
edm::InputTag l1TauJetSrc_; |
151 |
+ |
edm::InputTag l1FwdJetSrc_; |
152 |
+ |
edm::InputTag hltSummarySrc_; |
153 |
+ |
|
154 |
|
//vector filled during processing with all existing collections |
155 |
|
//std::vector<std::pair<std::string,std::string> > collections_; |
156 |
|
|
160 |
|
HbbAnalysis::HbbEvent * event_; |
161 |
|
|
162 |
|
TTree *tree_; |
163 |
< |
|
163 |
> |
|
164 |
> |
//name of the desired collection for hlt matches |
165 |
> |
std::vector<edm::InputTag> hltTagsElec_; |
166 |
> |
std::vector<edm::InputTag> hltTagsMu_; |
167 |
> |
std::vector<edm::InputTag> hltTagsJet_; |
168 |
> |
|
169 |
|
};//class |
170 |
|
|
171 |
|
#endif //HbbAnalysis_HbbTreeMaker_hh |