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 |
+ |
|
35 |
|
#include "UserCode/HbbAnalysis/interface/JetFlavour.hh" |
36 |
|
#include "UserCode/HbbAnalysis/interface/HbbEvent.hh" |
37 |
|
|
44 |
|
HbbTreeMaker(const edm::ParameterSet & pset); |
45 |
|
~HbbTreeMaker(); |
46 |
|
|
47 |
< |
void beginJob(const edm::EventSetup&); |
47 |
> |
void beginJob(); |
48 |
|
void analyze(const edm::Event& , |
49 |
|
const edm::EventSetup& |
50 |
|
); |
55 |
|
void HbbParticles(const edm::Handle<reco::GenParticleCollection> & aCol, |
56 |
|
std::vector<HbbAnalysis::GenParticle> & aVec); |
57 |
|
|
58 |
< |
void HbbElectrons(const edm::Handle<std::vector<pat::Electron> > & aCol, |
58 |
> |
void HbbBeamSpot(const edm::Handle<reco::BeamSpot> & aBeamSpot, |
59 |
> |
HbbAnalysis::BeamSpot & aBS); |
60 |
> |
|
61 |
> |
void HbbElectrons(const edm::Handle<reco::TrackCollection> & aCtfTracks, |
62 |
> |
const double aBfield, |
63 |
> |
const edm::Handle<std::vector<pat::Electron> > & aCol, |
64 |
|
std::vector<HbbAnalysis::Electron> & aVec); |
65 |
|
|
66 |
|
void HbbMuons(const edm::Handle<std::vector<pat::Muon> > & aCol, |
67 |
|
const edm::Handle<std::vector<reco::Vertex> > & aRecoVertices, |
68 |
+ |
const edm::Handle<reco::BeamSpot> & aBeamSpot, |
69 |
|
std::vector<HbbAnalysis::Muon> & aVec); |
70 |
|
|
71 |
|
void HbbTaus(const edm::Handle<std::vector<pat::Tau> > & aCol, |
81 |
|
HbbAnalysis::Met & aVec); |
82 |
|
|
83 |
|
void HbbTrigger(const edm::Handle<edm::TriggerResults> & aCol, |
84 |
+ |
const edm::TriggerNames & aNames, |
85 |
|
std::vector<HbbAnalysis::Trigger> & aVec); |
86 |
|
|
87 |
+ |
void HbbVertices(const edm::Handle<std::vector<reco::Vertex> > & aCol, |
88 |
+ |
std::vector<HbbAnalysis::Vertex> & aVec); |
89 |
+ |
|
90 |
+ |
|
91 |
+ |
void HbbL1Objects(const edm::Handle<l1extra::L1JetParticleCollection> & aCol, |
92 |
+ |
std::vector<HbbAnalysis::L1Object> & aVec, |
93 |
+ |
const unsigned int aType); |
94 |
+ |
|
95 |
+ |
void HbbHLTObjects(const edm::Handle<trigger::TriggerEvent> & aCol, |
96 |
+ |
std::vector<HbbAnalysis::HLTObject> & aVec); |
97 |
+ |
|
98 |
+ |
void fillHLTVector(const edm::InputTag & aTag, |
99 |
+ |
const edm::Handle<trigger::TriggerEvent> & aCol, |
100 |
+ |
std::vector<HbbAnalysis::HLTObject> & aVec, |
101 |
+ |
const unsigned int aType); |
102 |
|
|
103 |
+ |
void HbbGenInfo(const edm::Handle<edm::HepMCProduct> & amcProd, |
104 |
+ |
const edm::Handle<GenRunInfoProduct> & aRunProd); |
105 |
|
|
106 |
|
int debug_; |
107 |
|
|
118 |
|
HbbAnalysis::JetFlavour jetFlav_; |
119 |
|
|
120 |
|
edm::InputTag genParticleSrc_; |
121 |
+ |
edm::InputTag trackSrc_; |
122 |
+ |
edm::InputTag dcsSrc_; |
123 |
|
edm::InputTag electronSrc_; |
124 |
|
edm::InputTag muonSrc_; |
125 |
|
edm::InputTag caloTauSrc_; |
137 |
|
edm::InputTag vertexSrc_; |
138 |
|
edm::InputTag triggerSrc_; |
139 |
|
std::vector<std::string> hltPaths_; |
140 |
+ |
edm::InputTag l1CenJetSrc_; |
141 |
+ |
edm::InputTag l1TauJetSrc_; |
142 |
+ |
edm::InputTag l1FwdJetSrc_; |
143 |
+ |
edm::InputTag hltSummarySrc_; |
144 |
+ |
|
145 |
|
//vector filled during processing with all existing collections |
146 |
|
//std::vector<std::pair<std::string,std::string> > collections_; |
147 |
|
|
151 |
|
HbbAnalysis::HbbEvent * event_; |
152 |
|
|
153 |
|
TTree *tree_; |
154 |
< |
|
154 |
> |
|
155 |
> |
//name of the desired collection for hlt matches |
156 |
> |
std::vector<edm::InputTag> hltTagsElec_; |
157 |
> |
std::vector<edm::InputTag> hltTagsMu_; |
158 |
> |
std::vector<edm::InputTag> hltTagsJet_; |
159 |
> |
|
160 |
|
};//class |
161 |
|
|
162 |
|
#endif //HbbAnalysis_HbbTreeMaker_hh |