ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/Morgan/interface/MCAnalyzer.h
Revision: 1.10
Committed: Tue Apr 7 17:09:06 2009 UTC (16 years ago) by lethuill
Content type: text/plain
Branch: MAIN
CVS Tags: JeSuisBeaucoupPlusGrosQunReco_2_2_7_01, RecoPhoton_2_2_7_02, pat_2_2_7_01, RecoPhoton_2_2_7_01, pat_2_2_5_03, pat_2_2_5_02
Changes since 1.9: +5 -7 lines
Log Message:
Cleaning dependencies / Add genMETs and genJets and references to them in reco objects

File Contents

# Content
1 #ifndef MCAnalyzer_h
2 #define MCAnalyzer_h
3
4 // system include files
5 #include <memory>
6 #include <string>
7 #include <iostream>
8
9 // user include files
10 #include "FWCore/Framework/interface/Event.h"
11 #include "FWCore/ParameterSet/interface/ParameterSet.h"
12 #include "FWCore/Framework/interface/ESHandle.h"
13
14 #include "DataFormats/JetReco/interface/GenJet.h"
15 #include "DataFormats/METReco/interface/GenMET.h"
16 #include "DataFormats/HepMCCandidate/interface/GenParticle.h"
17 #include "DataFormats/HepMCCandidate/interface/GenParticleFwd.h"
18
19 #include "SimDataFormats/HepMCProduct/interface/HepMCProduct.h"
20
21 #include "SimDataFormats/Track/interface/SimTrack.h"
22 #include "SimDataFormats/Track/interface/SimTrackContainer.h"
23 #include "SimDataFormats/Vertex/interface/SimVertex.h"
24 #include "SimDataFormats/Vertex/interface/SimVertexContainer.h"
25 #include "RecoEgamma/EgammaMCTools/interface/PhotonMCTruthFinder.h"
26 #include "RecoEgamma/EgammaMCTools/interface/PhotonMCTruth.h"
27 #include "RecoEgamma/EgammaMCTools/interface/ElectronMCTruth.h"
28 //#include "DataFormats/EgammaCandidates/interface/ConvertedPhoton.h"
29
30 #include "../interface/ParticleTreeDrawer.h"
31 #include "../interface/TRootEvent.h"
32 #include "../interface/TRootSignalEvent.h"
33 #include "../interface/TRootTopTop.h"
34 #include "../interface/TRootParticle.h"
35 #include "../interface/TRootMCParticle.h"
36 #include "../interface/TRootMCPhoton.h"
37 #include "../interface/TRootJet.h"
38
39 #include "TClonesArray.h"
40
41
42
43 class MCAnalyzer{
44
45 public:
46 MCAnalyzer();
47 MCAnalyzer(const edm::ParameterSet& config, const edm::ParameterSet& producersNames);
48 ~MCAnalyzer();
49 void SetVerbosity(int verbosity) {verbosity_ = verbosity; };
50 void DrawMCTree(const edm::Event& iEvent, const edm::EventSetup& iSetup, const edm::ParameterSet& config, const edm::ParameterSet& producersNames);
51 void PDFInfo(const edm::Event& iEvent, TRootEvent* rootEvent);
52 void ProcessMCParticle(const edm::Event& iEvent, TClonesArray* rootMCParticles);
53 void ProcessGenJets(const edm::Event& iEvent, TClonesArray* rootGenJets);
54 void ProcessGenMETs(const edm::Event& iEvent, TClonesArray* rootGenMETs);
55 void ProcessConvertedPhoton(const edm::Event& iEvent, TClonesArray* rootMCPhotons);
56 void ProcessMuMuGammaEvent(const edm::Event& iEvent, TRootSignalEvent* rootSignalEvent);
57 void ProcessTopTopEvent(const edm::Event& iEvent, TClonesArray* rootMCTopTop);
58
59 private:
60
61 int verbosity_;
62
63 bool doPhotonMC_;
64 double photonMC_etaMax_;
65 double photonMC_ptMin_;
66 bool doElectronMC_;
67 double electronMC_etaMax_;
68 double electronMC_ptMin_;
69 bool doMuonMC_;
70 double muonMC_etaMax_;
71 double muonMC_ptMin_;
72 bool doJetMC_;
73 double jetMC_etaMax_;
74 double jetMC_ptMin_;
75 bool doMETMC_;
76 bool doUnstablePartsMC_;
77
78 std::string signalGenerator_;
79 edm::InputTag genParticlesProducer_;
80 edm::InputTag genJetsProducer_;
81 edm::InputTag genMETsProducer_;
82 };
83
84 #endif