ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/HbbAnalysis/plugins/HbbTreeMaker.hh
(Generate patch)

Comparing UserCode/HbbAnalysis/plugins/HbbTreeMaker.hh (file contents):
Revision 1.4 by amagnan, Wed Feb 10 13:50:17 2010 UTC vs.
Revision 1.16 by amagnan, Sat Jul 16 10:00:59 2011 UTC

# Line 12 | Line 12
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/GenJet.h"
29   #include "DataFormats/PatCandidates/interface/Muon.h"
30   #include "DataFormats/PatCandidates/interface/Electron.h"
31   #include "DataFormats/PatCandidates/interface/Tau.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
# Line 45 | Line 60 | class HbbTreeMaker : public edm::EDAnaly
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 +
66 +
67 +  void HbbLHEInfo(const edm::Handle<LHEEventProduct> & aLHEEvt,
68 +                  std::vector<HbbAnalysis::GenParticle> & aVec);
69 +
70 +  void HbbPUInfo(const edm::Handle<std::vector<PileupSummaryInfo> > & aPUInfo,
71 +      std::vector<HbbAnalysis::PUVars> & aVec);
72 +
73 +
74 +
75 +  void HbbBeamSpot(const edm::Handle<reco::BeamSpot> & aBeamSpot,
76 +                   HbbAnalysis::BeamSpot & aBS);
77 +
78    void HbbElectrons(const edm::Handle<std::vector<pat::Electron> > & aCol,
79                      std::vector<HbbAnalysis::Electron> & aVec);
80  
81    void HbbMuons(const edm::Handle<std::vector<pat::Muon> > & aCol,
82                  const edm::Handle<std::vector<reco::Vertex> > & aRecoVertices,
83 +                const edm::Handle<reco::BeamSpot> & aBeamSpot,
84                  std::vector<HbbAnalysis::Muon> & aVec);
85  
86    void HbbTaus(const edm::Handle<std::vector<pat::Tau> > & aCol,
# Line 61 | Line 92 | class HbbTreeMaker : public edm::EDAnaly
92                 const edm::Handle<reco::GenParticleCollection> & aGenParticles,
93                 std::vector<HbbAnalysis::Jet> & aVec);
94  
95 +  JetCorrectionUncertainty* jecUncCalo;
96 +  JetCorrectionUncertainty* jecUncPF;
97 +  JetCorrectionUncertainty* jecUncJPT;
98 +
99    void HbbMet(const edm::Handle<std::vector<pat::MET> > & aCol,
100                HbbAnalysis::Met & aVec);
101  
102    void HbbTrigger(const edm::Handle<edm::TriggerResults> & aCol,
103 +                  const edm::TriggerNames & aNames,
104                    std::vector<HbbAnalysis::Trigger> & aVec);
105  
106    void HbbVertices(const edm::Handle<std::vector<reco::Vertex> > & aCol,
107                     std::vector<HbbAnalysis::Vertex> & aVec);
108  
109  
110 +  void HbbL1Objects(const edm::Handle<l1extra::L1JetParticleCollection> & aCol,
111 +                    std::vector<HbbAnalysis::L1Object> & aVec,
112 +                    const unsigned int aType);
113 +  
114 +  void HbbHLTObjects(const edm::Handle<trigger::TriggerEvent> & aCol,
115 +                     std::vector<HbbAnalysis::HLTObject> & aVec);
116 +
117 +  void fillHLTVector(const edm::InputTag & aTag,
118 +                     const edm::Handle<trigger::TriggerEvent> & aCol,
119 +                     std::vector<HbbAnalysis::HLTObject> & aVec,
120 +                     const unsigned int aType);
121 +
122 +  void HbbGenInfo(const edm::Handle<edm::HepMCProduct> & amcProd,
123 +                  const edm::Handle<GenRunInfoProduct> & aRunProd);
124 +
125    int debug_;
126  
127    bool processData_;
# Line 86 | Line 137 | class HbbTreeMaker : public edm::EDAnaly
137    HbbAnalysis::JetFlavour jetFlav_;
138  
139    edm::InputTag genParticleSrc_;
140 +  edm::InputTag genJetSrc_;
141 +  edm::InputTag trackSrc_;
142 +  edm::InputTag dcsSrc_;
143    edm::InputTag electronSrc_;
144    edm::InputTag muonSrc_;
145    edm::InputTag caloTauSrc_;
146    edm::InputTag pfTauSrc_;
147    edm::InputTag caloJetSrc_;
148    edm::InputTag jptJetSrc_;
149 +  edm::InputTag ak7JetSrc_;
150    edm::InputTag pfJetSrc_;
151    edm::InputTag caloMetSrc_;
152    edm::InputTag tcMetSrc_;
# Line 103 | Line 158 | class HbbTreeMaker : public edm::EDAnaly
158    edm::InputTag vertexSrc_;
159    edm::InputTag triggerSrc_;
160    std::vector<std::string> hltPaths_;
161 +  edm::InputTag l1CenJetSrc_;
162 +  edm::InputTag l1TauJetSrc_;
163 +  edm::InputTag l1FwdJetSrc_;
164 +  edm::InputTag hltSummarySrc_;
165 +
166    //vector filled during processing with all existing collections
167    //std::vector<std::pair<std::string,std::string> > collections_;
168  
# Line 112 | Line 172 | class HbbTreeMaker : public edm::EDAnaly
172    HbbAnalysis::HbbEvent * event_;
173  
174    TTree *tree_;
175 <  
175 >
176 >  //name of the desired collection for hlt matches
177 >  std::vector<edm::InputTag> hltTagsElec_;  
178 >  std::vector<edm::InputTag> hltTagsMu_;  
179 >  std::vector<edm::InputTag> hltTagsJet_;  
180 >
181   };//class
182  
183   #endif //HbbAnalysis_HbbTreeMaker_hh

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines