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 HbbElectrons(const edm::Handle<reco::TrackCollection> & aCtfTracks, |
59 |
> |
const double aBfield, |
60 |
> |
const edm::Handle<std::vector<pat::Electron> > & aCol, |
61 |
|
std::vector<HbbAnalysis::Electron> & aVec); |
62 |
|
|
63 |
|
void HbbMuons(const edm::Handle<std::vector<pat::Muon> > & aCol, |
64 |
|
const edm::Handle<std::vector<reco::Vertex> > & aRecoVertices, |
65 |
+ |
const edm::Handle<reco::BeamSpot> & aBeamSpot, |
66 |
|
std::vector<HbbAnalysis::Muon> & aVec); |
67 |
|
|
68 |
|
void HbbTaus(const edm::Handle<std::vector<pat::Tau> > & aCol, |
78 |
|
HbbAnalysis::Met & aVec); |
79 |
|
|
80 |
|
void HbbTrigger(const edm::Handle<edm::TriggerResults> & aCol, |
81 |
+ |
const edm::TriggerNames & aNames, |
82 |
|
std::vector<HbbAnalysis::Trigger> & aVec); |
83 |
|
|
84 |
+ |
void HbbVertices(const edm::Handle<std::vector<reco::Vertex> > & aCol, |
85 |
+ |
std::vector<HbbAnalysis::Vertex> & aVec); |
86 |
+ |
|
87 |
+ |
|
88 |
+ |
void HbbL1Objects(const edm::Handle<l1extra::L1JetParticleCollection> & aCol, |
89 |
+ |
std::vector<HbbAnalysis::L1Object> & aVec, |
90 |
+ |
const unsigned int aType); |
91 |
+ |
|
92 |
+ |
void HbbHLTObjects(const edm::Handle<trigger::TriggerEvent> & aCol, |
93 |
+ |
std::vector<HbbAnalysis::HLTObject> & aVec); |
94 |
+ |
|
95 |
+ |
void fillHLTVector(const edm::InputTag & aTag, |
96 |
+ |
const edm::Handle<trigger::TriggerEvent> & aCol, |
97 |
+ |
std::vector<HbbAnalysis::HLTObject> & aVec, |
98 |
+ |
const unsigned int aType); |
99 |
|
|
100 |
+ |
void HbbGenInfo(const edm::Handle<edm::HepMCProduct> & amcProd, |
101 |
+ |
const edm::Handle<GenRunInfoProduct> & aRunProd); |
102 |
|
|
103 |
|
int debug_; |
104 |
|
|
105 |
+ |
bool processData_; |
106 |
+ |
|
107 |
+ |
|
108 |
|
//flavour of jets required : |
109 |
|
// 3 = u,d,s,g, 21 = g |
110 |
|
// 4=c, 5=b, 45=b or c |
115 |
|
HbbAnalysis::JetFlavour jetFlav_; |
116 |
|
|
117 |
|
edm::InputTag genParticleSrc_; |
118 |
+ |
edm::InputTag trackSrc_; |
119 |
+ |
edm::InputTag dcsSrc_; |
120 |
|
edm::InputTag electronSrc_; |
121 |
|
edm::InputTag muonSrc_; |
122 |
|
edm::InputTag caloTauSrc_; |
134 |
|
edm::InputTag vertexSrc_; |
135 |
|
edm::InputTag triggerSrc_; |
136 |
|
std::vector<std::string> hltPaths_; |
137 |
+ |
edm::InputTag l1CenJetSrc_; |
138 |
+ |
edm::InputTag l1TauJetSrc_; |
139 |
+ |
edm::InputTag l1FwdJetSrc_; |
140 |
+ |
edm::InputTag hltSummarySrc_; |
141 |
+ |
|
142 |
|
//vector filled during processing with all existing collections |
143 |
|
//std::vector<std::pair<std::string,std::string> > collections_; |
144 |
|
|
148 |
|
HbbAnalysis::HbbEvent * event_; |
149 |
|
|
150 |
|
TTree *tree_; |
151 |
< |
|
151 |
> |
|
152 |
> |
//name of the desired collection for hlt matches |
153 |
> |
std::vector<edm::InputTag> hltTagsElec_; |
154 |
> |
std::vector<edm::InputTag> hltTagsMu_; |
155 |
> |
std::vector<edm::InputTag> hltTagsJet_; |
156 |
> |
|
157 |
|
};//class |
158 |
|
|
159 |
|
#endif //HbbAnalysis_HbbTreeMaker_hh |