CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 {
33 
34 public:
35 
38 
39  virtual void analyze( const edm::Event&, const edm::EventSetup& ) ;
40  virtual void beginJob() ;
41  virtual void endJob() ;
42 
43  void fillEventInfo(int);
44  void fillMCParticles(float, float, float, float);
45  void fillInclusiveJet(float, float, float, float);
46  void fillChargedJet(float, float, float, float);
47  void store();
48 
49 private:
50 
51  edm::InputTag mcEvent; // label of MC event
52  edm::InputTag genJetCollName; // label of Jet made with MC particles
53  edm::InputTag chgJetCollName; // label of Jet made with only charged MC particles
54  edm::InputTag chgGenPartCollName; // label of charged MC particles
55 
60 
61 
62  float piG;
63 
65 
66  TTree* AnalysisTree;
67 
68  static const int NMCPMAX = 10000;
69  static const int NTKMAX = 10000;
70  static const int NIJMAX = 10000;
71  static const int NCJMAX = 10000;
72  static const int NTJMAX = 10000;
73  static const int NEHJMAX = 10000;
74 
76 
83 
84  TClonesArray* MonteCarlo;
85  TClonesArray* InclusiveJet;
86  TClonesArray* ChargedJet;
87 
88 };
89 
90 #endif
void fillMCParticles(float, float, float, float)
void fillChargedJet(float, float, float, float)
virtual void analyze(const edm::Event &, const edm::EventSetup &)
edm::Handle< std::vector< reco::GenParticle > > CandHandleMC
AnalysisRootpleProducerOnlyMC(const edm::ParameterSet &)
edm::Handle< reco::GenJetCollection > GenJetsHandle
edm::Handle< reco::GenJetCollection > ChgGenJetsHandle
edm::Handle< edm::HepMCProduct > EvtHandle
void fillInclusiveJet(float, float, float, float)