15 |
|
#include "FWCore/ParameterSet/interface/ParameterSet.h" |
16 |
|
#include "FWCore/Framework/interface/ESHandle.h" |
17 |
|
|
18 |
< |
//#include "DataFormats/Candidate/interface/Candidate.h" |
19 |
< |
#include "DataFormats/HepMCCandidate/interface/GenParticleCandidate.h" |
20 |
< |
//#include "DataFormats/HepMCCandidate/interface/HepMCCandidate.h" |
18 |
> |
#include "DataFormats/JetReco/interface/GenJet.h" |
19 |
> |
#include "DataFormats/JetReco/interface/GenJetCollection.h" |
20 |
> |
#include "DataFormats/HepMCCandidate/interface/GenParticle.h" |
21 |
> |
#include "DataFormats/HepMCCandidate/interface/GenParticleFwd.h" |
22 |
> |
|
23 |
> |
#include "SimDataFormats/HepMCProduct/interface/HepMCProduct.h" |
24 |
|
|
25 |
|
#include "SimDataFormats/Track/interface/SimTrack.h" |
26 |
|
#include "SimDataFormats/Track/interface/SimTrackContainer.h" |
31 |
|
#include "RecoEgamma/EgammaMCTools/interface/ElectronMCTruth.h" |
32 |
|
//#include "DataFormats/EgammaCandidates/interface/ConvertedPhoton.h" |
33 |
|
|
34 |
< |
#include "UserCode/Morgan/interface/ParticleTreeDrawer.h" |
35 |
< |
#include "UserCode/Morgan/interface/TRootEvent.h" |
36 |
< |
#include "UserCode/Morgan/interface/TRootSignalEvent.h" |
37 |
< |
#include "UserCode/Morgan/interface/TRootParticle.h" |
38 |
< |
#include "UserCode/Morgan/interface/TRootMCPhoton.h" |
34 |
> |
#include "../interface/ParticleTreeDrawer.h" |
35 |
> |
#include "../interface/TRootEvent.h" |
36 |
> |
#include "../interface/TRootSignalEvent.h" |
37 |
> |
#include "../interface/TRootTopTop.h" |
38 |
> |
#include "../interface/TRootParticle.h" |
39 |
> |
#include "../interface/TRootMCParticle.h" |
40 |
> |
#include "../interface/TRootMCPhoton.h" |
41 |
> |
#include "../interface/TRootJet.h" |
42 |
|
|
43 |
|
#include "TClonesArray.h" |
44 |
|
|
48 |
|
|
49 |
|
public: |
50 |
|
MCAnalyzer(); |
51 |
< |
MCAnalyzer(edm::ParameterSet * aConfig); |
51 |
> |
MCAnalyzer(const edm::ParameterSet& config, const edm::ParameterSet& producersNames); |
52 |
|
~MCAnalyzer(); |
53 |
< |
void SetVerbosity(int idebug) {verbosity = idebug; }; |
54 |
< |
void Process(const edm::Event& iEvent, const edm::EventSetup & iSetup, TRootEvent* rootEvent, TRootSignalEvent* rootSignalEvent, TClonesArray* rootMCParticles, TClonesArray* rootMCPhotons); |
53 |
> |
void SetVerbosity(int verbosity) {verbosity_ = verbosity; }; |
54 |
> |
void DrawMCTree(const edm::Event& iEvent, const edm::EventSetup& iSetup, const edm::ParameterSet& config, const edm::ParameterSet& producersNames); |
55 |
> |
void PDFInfo(const edm::Event& iEvent, TRootEvent* rootEvent); |
56 |
> |
void ProcessMCParticle(const edm::Event& iEvent, TClonesArray* rootMCParticles); |
57 |
> |
void ProcessMCJets(const edm::Event& iEvent, TClonesArray* rootMCJets); |
58 |
> |
void ProcessConvertedPhoton(const edm::Event& iEvent, TClonesArray* rootMCPhotons); |
59 |
> |
void ProcessMuMuGammaEvent(const edm::Event& iEvent, TRootSignalEvent* rootSignalEvent); |
60 |
> |
void ProcessTopTopEvent(const edm::Event& iEvent, TClonesArray* rootMCTopTop); |
61 |
|
|
62 |
|
private: |
63 |
< |
edm::ParameterSet * myConfig; |
64 |
< |
int verbosity; |
53 |
< |
|
54 |
< |
bool drawMCTree; |
55 |
< |
bool mcTreePrintP4; |
56 |
< |
bool mcTreePrintPtEtaPhi; |
57 |
< |
bool mcTreePrintVertex; |
58 |
< |
bool mcTreePrintStatus; |
59 |
< |
|
60 |
< |
bool doSignalMC; |
61 |
< |
std::string signalGenerator; |
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 doPhotonConversionMC; |
63 |
> |
|
64 |
> |
int verbosity_; |
65 |
|
|
66 |
+ |
bool doPhotonMC_; |
67 |
+ |
double photonMC_etaMax_; |
68 |
+ |
double photonMC_ptMin_; |
69 |
+ |
bool doElectronMC_; |
70 |
+ |
double electronMC_etaMax_; |
71 |
+ |
double electronMC_ptMin_; |
72 |
+ |
bool doMuonMC_; |
73 |
+ |
double muonMC_etaMax_; |
74 |
+ |
double muonMC_ptMin_; |
75 |
+ |
bool doJetMC_; |
76 |
+ |
double jetMC_etaMax_; |
77 |
+ |
double jetMC_ptMin_; |
78 |
+ |
bool doUnstablePartsMC_; |
79 |
+ |
bool doMETMC_; |
80 |
+ |
|
81 |
+ |
std::string signalGenerator_; |
82 |
+ |
edm::InputTag genParticlesProducer_; |
83 |
+ |
edm::InputTag genJetsProducer_; |
84 |
|
}; |
85 |
|
|
86 |
|
#endif |