CMS 3D CMS Logo

AnalysisRootpleProducerOnlyMC.h
Go to the documentation of this file.
1 #ifndef AnalysisRootpleProducerOnlyMC_H
2 #define AnalysisRootpleProducerOnlyMC_H
3 
4 #include <iostream>
5 
12 
15 
18 
19 #include <TROOT.h>
20 #include <TTree.h>
21 #include <TFile.h>
22 #include <TLorentzVector.h>
23 #include <TClonesArray.h>
24 
30 
32 public:
35 
36  void analyze(const edm::Event&, const edm::EventSetup&) override;
37  void beginJob() override;
38  void endJob() override;
39 
40  void fillEventInfo(int);
41  void fillMCParticles(float, float, float, float);
42  void fillInclusiveJet(float, float, float, float);
43  void fillChargedJet(float, float, float, float);
44  void store();
45 
46 private:
48  edm::EDGetTokenT<reco::GenJetCollection> genJetCollToken; // label of Jet made with MC particles
49  edm::EDGetTokenT<reco::GenJetCollection> chgJetCollToken; // label of Jet made with only charged MC particles
51 
56 
57  float piG;
58 
60 
61  TTree* AnalysisTree;
62 
63  static const int NMCPMAX = 10000;
64  static const int NTKMAX = 10000;
65  static const int NIJMAX = 10000;
66  static const int NCJMAX = 10000;
67  static const int NTJMAX = 10000;
68  static const int NEHJMAX = 10000;
69 
71 
78 
79  TClonesArray* MonteCarlo;
80  TClonesArray* InclusiveJet;
81  TClonesArray* ChargedJet;
82 };
83 
84 #endif
void fillMCParticles(float, float, float, float)
edm::Handle< reco::GenJetCollection > GenJetsHandle
void fillChargedJet(float, float, float, float)
edm::EDGetTokenT< reco::GenJetCollection > genJetCollToken
edm::Handle< edm::HepMCProduct > EvtHandle
AnalysisRootpleProducerOnlyMC(const edm::ParameterSet &)
edm::EDGetTokenT< std::vector< reco::GenParticle > > chgGenPartCollToken
edm::EDGetTokenT< reco::GenJetCollection > chgJetCollToken
edm::Handle< std::vector< reco::GenParticle > > CandHandleMC
void analyze(const edm::Event &, const edm::EventSetup &) override
edm::Handle< reco::GenJetCollection > ChgGenJetsHandle
edm::EDGetTokenT< edm::HepMCProduct > mcEventToken
void fillInclusiveJet(float, float, float, float)