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.3 by amagnan, Tue Feb 9 14:52:23 2010 UTC vs.
Revision 1.13 by agilbert, Fri May 27 13:24: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/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  
38 + #include "CondFormats/JetMETObjects/interface/JetCorrectionUncertainty.h"
39 +
40   #include "TTree.h"
41  
42   class HbbTreeMaker : public edm::EDAnalyzer {//class
# Line 34 | Line 46 | class HbbTreeMaker : public edm::EDAnaly
46    HbbTreeMaker(const edm::ParameterSet & pset);
47    ~HbbTreeMaker();
48  
49 <  void beginJob(const edm::EventSetup&);
49 >  void beginJob();
50    void analyze(const edm::Event& ,
51                 const edm::EventSetup&
52                 );
# Line 45 | Line 57 | class HbbTreeMaker : public edm::EDAnaly
57    void HbbParticles(const edm::Handle<reco::GenParticleCollection> & aCol,
58                      std::vector<HbbAnalysis::GenParticle> & aVec);
59  
60 +  void HbbBeamSpot(const edm::Handle<reco::BeamSpot> & aBeamSpot,
61 +                   HbbAnalysis::BeamSpot & aBS);
62 +
63    void HbbElectrons(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,
# Line 61 | Line 77 | class HbbTreeMaker : public edm::EDAnaly
77                 const edm::Handle<reco::GenParticleCollection> & aGenParticles,
78                 std::vector<HbbAnalysis::Jet> & aVec);
79  
80 +  JetCorrectionUncertainty* jecUncCalo;
81 +  JetCorrectionUncertainty* jecUncPF;
82 +  JetCorrectionUncertainty* jecUncJPT;
83 +
84    void HbbMet(const edm::Handle<std::vector<pat::MET> > & aCol,
85                HbbAnalysis::Met & aVec);
86  
87    void HbbTrigger(const edm::Handle<edm::TriggerResults> & aCol,
88 +                  const edm::TriggerNames & aNames,
89                    std::vector<HbbAnalysis::Trigger> & aVec);
90  
91 +  void HbbVertices(const edm::Handle<std::vector<reco::Vertex> > & aCol,
92 +                   std::vector<HbbAnalysis::Vertex> & aVec);
93 +
94  
95 +  void HbbL1Objects(const edm::Handle<l1extra::L1JetParticleCollection> & aCol,
96 +                    std::vector<HbbAnalysis::L1Object> & aVec,
97 +                    const unsigned int aType);
98 +  
99 +  void HbbHLTObjects(const edm::Handle<trigger::TriggerEvent> & aCol,
100 +                     std::vector<HbbAnalysis::HLTObject> & aVec);
101 +
102 +  void fillHLTVector(const edm::InputTag & aTag,
103 +                     const edm::Handle<trigger::TriggerEvent> & aCol,
104 +                     std::vector<HbbAnalysis::HLTObject> & aVec,
105 +                     const unsigned int aType);
106 +
107 +  void HbbGenInfo(const edm::Handle<edm::HepMCProduct> & amcProd,
108 +                  const edm::Handle<GenRunInfoProduct> & aRunProd);
109  
110    int debug_;
111  
# Line 84 | Line 122 | class HbbTreeMaker : public edm::EDAnaly
122    HbbAnalysis::JetFlavour jetFlav_;
123  
124    edm::InputTag genParticleSrc_;
125 +  edm::InputTag trackSrc_;
126 +  edm::InputTag dcsSrc_;
127    edm::InputTag electronSrc_;
128    edm::InputTag muonSrc_;
129    edm::InputTag caloTauSrc_;
130    edm::InputTag pfTauSrc_;
131    edm::InputTag caloJetSrc_;
132    edm::InputTag jptJetSrc_;
133 +  edm::InputTag ak7JetSrc_;
134    edm::InputTag pfJetSrc_;
135    edm::InputTag caloMetSrc_;
136    edm::InputTag tcMetSrc_;
# Line 101 | Line 142 | class HbbTreeMaker : public edm::EDAnaly
142    edm::InputTag vertexSrc_;
143    edm::InputTag triggerSrc_;
144    std::vector<std::string> hltPaths_;
145 +  edm::InputTag l1CenJetSrc_;
146 +  edm::InputTag l1TauJetSrc_;
147 +  edm::InputTag l1FwdJetSrc_;
148 +  edm::InputTag hltSummarySrc_;
149 +
150    //vector filled during processing with all existing collections
151    //std::vector<std::pair<std::string,std::string> > collections_;
152  
# Line 110 | Line 156 | class HbbTreeMaker : public edm::EDAnaly
156    HbbAnalysis::HbbEvent * event_;
157  
158    TTree *tree_;
159 <  
159 >
160 >  //name of the desired collection for hlt matches
161 >  std::vector<edm::InputTag> hltTagsElec_;  
162 >  std::vector<edm::InputTag> hltTagsMu_;  
163 >  std::vector<edm::InputTag> hltTagsJet_;  
164 >
165   };//class
166  
167   #endif //HbbAnalysis_HbbTreeMaker_hh

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines