ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/Morgan/interface/MCAnalyzer.h
Revision: 1.12
Committed: Fri Sep 18 14:14:20 2009 UTC (15 years, 7 months ago) by lethuill
Content type: text/plain
Branch: MAIN
CVS Tags: all_3_3_2_01, all_3_2_5_02, all_3_2_5_01, HEAD
Changes since 1.11: +0 -2 lines
Log Message:
Update for 3.2.X

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/Track/interface/SimTrack.h"
20 #include "SimDataFormats/Track/interface/SimTrackContainer.h"
21 #include "SimDataFormats/Vertex/interface/SimVertex.h"
22 #include "SimDataFormats/Vertex/interface/SimVertexContainer.h"
23 #include "RecoEgamma/EgammaMCTools/interface/PhotonMCTruthFinder.h"
24 #include "RecoEgamma/EgammaMCTools/interface/PhotonMCTruth.h"
25 #include "RecoEgamma/EgammaMCTools/interface/ElectronMCTruth.h"
26 //#include "DataFormats/EgammaCandidates/interface/ConvertedPhoton.h"
27
28 #include "../interface/ParticleTreeDrawer.h"
29 #include "../interface/TRootEvent.h"
30 #include "../interface/TRootSignalEvent.h"
31 #include "../interface/TRootTopTop.h"
32 #include "../interface/TRootParticle.h"
33 #include "../interface/TRootMCParticle.h"
34 #include "../interface/TRootMCPhoton.h"
35 #include "../interface/TRootJet.h"
36
37 #include "TClonesArray.h"
38
39
40 class MCAnalyzer
41 {
42
43 public:
44 MCAnalyzer(const edm::ParameterSet& config, const edm::ParameterSet& producersNames);
45 ~MCAnalyzer();
46 void setVerbosity(int verbosity) {verbosity_ = verbosity; };
47 void drawMCTree(const edm::Event& iEvent, const edm::EventSetup& iSetup, const edm::ParameterSet& config, const edm::ParameterSet& producersNames);
48 bool pdfInfo(const edm::Event& iEvent, TRootEvent* rootEvent);
49 bool processMCParticle(const edm::Event& iEvent, TClonesArray* rootMCParticles);
50 bool processGenJets(const edm::Event& iEvent, TClonesArray* rootGenJets);
51 bool processGenMETs(const edm::Event& iEvent, TClonesArray* rootGenMETs);
52 bool processConvertedPhoton(const edm::Event& iEvent, TClonesArray* rootMCPhotons);
53 bool processMuMuGammaEvent(const edm::Event& iEvent, TRootSignalEvent* rootSignalEvent);
54 bool processTopTopEvent(const edm::Event& iEvent, TClonesArray* rootMCTopTop);
55
56 private:
57
58 int verbosity_;
59
60 bool doPhotonMC_;
61 double photonMC_etaMax_;
62 double photonMC_ptMin_;
63 bool doElectronMC_;
64 double electronMC_etaMax_;
65 double electronMC_ptMin_;
66 bool doMuonMC_;
67 double muonMC_etaMax_;
68 double muonMC_ptMin_;
69 bool doJetMC_;
70 double jetMC_etaMax_;
71 double jetMC_ptMin_;
72 bool doMETMC_;
73 bool doUnstablePartsMC_;
74
75 std::string signalGenerator_;
76 edm::InputTag genParticlesProducer_;
77 edm::InputTag genJetsProducer_;
78 edm::InputTag genMETsProducer_;
79
80 bool allowMissingCollection_;
81
82 };
83
84 #endif