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.21 by jott, Thu Jun 20 15:03:50 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 80 | Line 84 | class NtupleWriter : public edm::EDAnaly
84        virtual void beginRun(edm::Run const&, edm::EventSetup const&);
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&);
87 >      //virtual void endLuminosityBlock(edm::LuminosityBlock const&, edm::EventSetup const&);
88 >      
89 >      /// fills constituents of the pat_jet into the Ntuple and stores a reference to those in the provided topjet
90 >      void StoreJetConstituents(const pat::Jet & pat_jet, Jet & topjet);
91 >      
92 >      /// fill PF candidates from pf_cands to "pfparticles" collection in a cone of radius R0 around inpart (lepton, most likely)
93 >      void StorePFCandsInCone(Particle* part, const std::vector<reco::PFCandidate>& pf_cands, double R0);
94  
95        // ----------member data ---------------------------
96        TFile *outfile;
# Line 91 | Line 101 | class NtupleWriter : public edm::EDAnaly
101        bool doMuons;
102        bool doTaus;
103        bool doJets;
104 <      bool doJECUncertainty;
104 >      bool doGenJets;
105        bool doTopJets;
106 +      bool doTopJetsConstituents;
107        bool doGenTopJets;
108        bool doMET;
109        bool doPhotons;
# Line 101 | Line 112 | class NtupleWriter : public edm::EDAnaly
112        bool doLumiInfo;
113        bool doPV;
114        bool doTrigger;
115 +      bool doTagInfos;
116 +      bool storePFsAroundLeptons;
117  
118        int run;
119        int luminosityBlock;
# Line 132 | Line 145 | class NtupleWriter : public edm::EDAnaly
145        double jet_ptmin;
146        double jet_etamax;
147  
148 +      std::vector<std::string> genjet_sources;
149 +      std::vector<Particle> genjets[Nmax];
150 +      double genjet_ptmin;
151 +      double genjet_etamax;
152 +
153        std::vector<std::string> topjet_sources;
154        std::vector<TopJet> topjets[Nmax];
155        double topjet_ptmin;
156        double topjet_etamax;
157  
158 +      std::vector<std::string> topjet_constituents_sources;
159 +      std::vector<PFParticle> pfparticles; // only one collection allowed!
160 +
161        std::vector<std::string> gentopjet_sources;
162 <      std::vector<TopJet> gentopjets[Nmax];
162 >      std::vector<GenTopJet> gentopjets[Nmax];
163        double gentopjet_ptmin;
164        double gentopjet_etamax;
165  
# Line 155 | Line 176 | class NtupleWriter : public edm::EDAnaly
176        float beamspot_y0;
177        float beamspot_z0;
178  
179 +      std::string pf_around_leptons_source;
180 +
181 +      edm::InputTag genparticle_source;
182        GenInfo genInfo;
183        std::vector<GenParticle> genps;
184 <
184 >      edm::InputTag SVComputer_;
185        std::vector<std::string> trigger_prefixes;
186        //std::map<std::string, bool> triggerResults;
187        std::vector<std::string> triggerNames;
188        std::vector<bool> triggerResults;
189 < /*       std::vector<int> L1_prescale; */
190 < /*       std::vector<int> HLT_prescale; */
189 >      //std::vector<int> L1_prescale;
190 >      //std::vector<int> HLT_prescale;
191        
192        //HLTConfigProvider hlt_cfg;
193        bool newrun;
194        bool previouslumiblockwasfilled;
195  
172      JetCorrectionUncertainty *jecUnc;
196   };
197  
198  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines