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.2 by amagnan, Tue Oct 13 12:14:05 2009 UTC vs.
Revision 1.8 by amagnan, Fri Aug 27 13:17:14 2010 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 +
25   #include "DataFormats/PatCandidates/interface/Lepton.h"
26   #include "DataFormats/PatCandidates/interface/Jet.h"
27   #include "DataFormats/PatCandidates/interface/Muon.h"
28   #include "DataFormats/PatCandidates/interface/Electron.h"
29   #include "DataFormats/PatCandidates/interface/Tau.h"
30  
31 + #include "SimDataFormats/GeneratorProducts/interface/GenRunInfoProduct.h"
32 + #include "SimDataFormats/GeneratorProducts/interface/HepMCProduct.h"
33 +
34   #include "UserCode/HbbAnalysis/interface/JetFlavour.hh"
35   #include "UserCode/HbbAnalysis/interface/HbbEvent.hh"
36  
# Line 34 | Line 43 | class HbbTreeMaker : public edm::EDAnaly
43    HbbTreeMaker(const edm::ParameterSet & pset);
44    ~HbbTreeMaker();
45  
46 <  void beginJob(const edm::EventSetup&);
46 >  void beginJob();
47    void analyze(const edm::Event& ,
48                 const edm::EventSetup&
49                 );
# Line 45 | Line 54 | class HbbTreeMaker : public edm::EDAnaly
54    void HbbParticles(const edm::Handle<reco::GenParticleCollection> & aCol,
55                      std::vector<HbbAnalysis::GenParticle> & aVec);
56  
57 <  void HbbElectrons(const edm::Handle<std::vector<pat::Electron> > & aCol,
57 >  void HbbElectrons(const edm::Handle<reco::TrackCollection> & aCtfTracks,
58 >                    const double aBfield,
59 >                    const edm::Handle<std::vector<pat::Electron> > & aCol,
60                      std::vector<HbbAnalysis::Electron> & aVec);
61  
62    void HbbMuons(const edm::Handle<std::vector<pat::Muon> > & aCol,
# Line 65 | Line 76 | class HbbTreeMaker : public edm::EDAnaly
76                HbbAnalysis::Met & aVec);
77  
78    void HbbTrigger(const edm::Handle<edm::TriggerResults> & aCol,
79 +                  const edm::TriggerNames & aNames,
80                    std::vector<HbbAnalysis::Trigger> & aVec);
81  
82 +  void HbbVertices(const edm::Handle<std::vector<reco::Vertex> > & aCol,
83 +                   std::vector<HbbAnalysis::Vertex> & aVec);
84 +
85 +
86 +  void HbbL1Objects(const edm::Handle<l1extra::L1JetParticleCollection> & aCol,
87 +                    std::vector<HbbAnalysis::L1Object> & aVec,
88 +                    const unsigned int aType);
89 +  
90 +  void HbbHLTObjects(const edm::Handle<trigger::TriggerEvent> & aCol,
91 +                     std::vector<HbbAnalysis::HLTObject> & aVec);
92 +
93 +  void fillHLTVector(const edm::InputTag & aTag,
94 +                     const edm::Handle<trigger::TriggerEvent> & aCol,
95 +                     std::vector<HbbAnalysis::HLTObject> & aVec,
96 +                     const unsigned int aType);
97  
98 +  void HbbGenInfo(const edm::Handle<edm::HepMCProduct> & amcProd,
99 +                  const edm::Handle<GenRunInfoProduct> & aRunProd);
100  
101    int debug_;
102  
103 +  bool processData_;
104 +
105 +
106    //flavour of jets required :
107    // 3 = u,d,s,g, 21 = g
108    // 4=c, 5=b, 45=b or c
# Line 81 | Line 113 | class HbbTreeMaker : public edm::EDAnaly
113    HbbAnalysis::JetFlavour jetFlav_;
114  
115    edm::InputTag genParticleSrc_;
116 +  edm::InputTag trackSrc_;
117 +  edm::InputTag dcsSrc_;
118    edm::InputTag electronSrc_;
119    edm::InputTag muonSrc_;
120    edm::InputTag caloTauSrc_;
# Line 98 | Line 132 | class HbbTreeMaker : public edm::EDAnaly
132    edm::InputTag vertexSrc_;
133    edm::InputTag triggerSrc_;
134    std::vector<std::string> hltPaths_;
135 +  edm::InputTag l1CenJetSrc_;
136 +  edm::InputTag l1TauJetSrc_;
137 +  edm::InputTag l1FwdJetSrc_;
138 +  edm::InputTag hltSummarySrc_;
139 +
140    //vector filled during processing with all existing collections
141    //std::vector<std::pair<std::string,std::string> > collections_;
142  
# Line 107 | Line 146 | class HbbTreeMaker : public edm::EDAnaly
146    HbbAnalysis::HbbEvent * event_;
147  
148    TTree *tree_;
149 <  
149 >
150 >  //name of the desired collection for hlt matches
151 >  std::vector<edm::InputTag> hltTagsElec_;  
152 >  std::vector<edm::InputTag> hltTagsMu_;  
153 >  std::vector<edm::InputTag> hltTagsJet_;  
154 >
155   };//class
156  
157   #endif //HbbAnalysis_HbbTreeMaker_hh

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines