ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/UHHAnalysis/NtupleWriter/interface/NtupleWriter.h
(Generate patch)

Comparing UserCode/UHHAnalysis/NtupleWriter/interface/NtupleWriter.h (file contents):
Revision 1.15 by peiffer, Tue Jun 12 11:43:17 2012 UTC vs.
Revision 1.19 by rkogler, Wed Jun 19 13:24:47 2013 UTC

# Line 44 | Line 44
44   #include "RecoEgamma/EgammaTools/interface/ConversionTools.h"
45   #include "DataFormats/Luminosity/interface/LumiSummary.h"
46  
47 + #include "EGamma/EGammaAnalysisTools/interface/ElectronEffectiveArea.h"
48 +
49   #include "UHHAnalysis/NtupleWriter/Objects/Particle.h"
50 + #include "UHHAnalysis/NtupleWriter/Objects/PFParticle.h"
51   #include "UHHAnalysis/NtupleWriter/Objects/Jet.h"
52   #include "UHHAnalysis/NtupleWriter/Objects/Electron.h"
53   #include "UHHAnalysis/NtupleWriter/Objects/Muon.h"
# Line 53 | Line 56
56   #include "UHHAnalysis/NtupleWriter/Objects/MET.h"
57   #include "UHHAnalysis/NtupleWriter/Objects/PrimaryVertex.h"
58   #include "UHHAnalysis/NtupleWriter/Objects/TopJet.h"
59 + #include "UHHAnalysis/NtupleWriter/Objects/GenTopJet.h"
60   #include "UHHAnalysis/NtupleWriter/Objects/GenInfo.h"
61   #include "UHHAnalysis/NtupleWriter/Objects/GenParticle.h"
62  
# Line 81 | Line 85 | class NtupleWriter : public edm::EDAnaly
85        virtual void endRun(edm::Run const&, edm::EventSetup const&);
86        virtual void beginLuminosityBlock(edm::LuminosityBlock const&, edm::EventSetup const&);
87        virtual void endLuminosityBlock(edm::LuminosityBlock const&, edm::EventSetup const&);
88 +      void StoreJetConstituents(pat::Jet* pat_jet, Jet* topjet);
89  
90        // ----------member data ---------------------------
91        TFile *outfile;
# Line 91 | Line 96 | class NtupleWriter : public edm::EDAnaly
96        bool doMuons;
97        bool doTaus;
98        bool doJets;
99 <      bool doJECUncertainty;
99 >      bool doGenJets;
100        bool doTopJets;
101 +      bool doTopJetsConstituents;
102        bool doGenTopJets;
103        bool doMET;
104        bool doPhotons;
# Line 101 | Line 107 | class NtupleWriter : public edm::EDAnaly
107        bool doLumiInfo;
108        bool doPV;
109        bool doTrigger;
110 +      bool doTagInfos;
111  
112        int run;
113        int luminosityBlock;
# Line 132 | Line 139 | class NtupleWriter : public edm::EDAnaly
139        double jet_ptmin;
140        double jet_etamax;
141  
142 +      std::vector<std::string> genjet_sources;
143 +      std::vector<Particle> genjets[Nmax];
144 +      double genjet_ptmin;
145 +      double genjet_etamax;
146 +
147        std::vector<std::string> topjet_sources;
148        std::vector<TopJet> topjets[Nmax];
149        double topjet_ptmin;
150        double topjet_etamax;
151  
152 +      std::vector<std::string> topjet_constituents_sources;
153 +      std::vector<PFParticle> pfparticles; // only one collection allowed!
154 +
155        std::vector<std::string> gentopjet_sources;
156 <      std::vector<TopJet> gentopjets[Nmax];
156 >      std::vector<GenTopJet> gentopjets[Nmax];
157        double gentopjet_ptmin;
158        double gentopjet_etamax;
159  
# Line 155 | Line 170 | class NtupleWriter : public edm::EDAnaly
170        float beamspot_y0;
171        float beamspot_z0;
172  
173 +      edm::InputTag genparticle_source;
174        GenInfo genInfo;
175        std::vector<GenParticle> genps;
176 <
176 >      edm::InputTag SVComputer_;
177        std::vector<std::string> trigger_prefixes;
178        //std::map<std::string, bool> triggerResults;
179        std::vector<std::string> triggerNames;
180        std::vector<bool> triggerResults;
181 < /*       std::vector<int> L1_prescale; */
182 < /*       std::vector<int> HLT_prescale; */
181 >      //std::vector<int> L1_prescale;
182 >      //std::vector<int> HLT_prescale;
183        
184        //HLTConfigProvider hlt_cfg;
185        bool newrun;
186        bool previouslumiblockwasfilled;
187  
188 <      JetCorrectionUncertainty *jecUnc;
188 >      std::vector<const reco::PFCandidate*> m_stored_pfs;
189   };
190  
191  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines