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" |
21 |
< |
|
22 |
< |
#include "UserCode/Morgan/interface/ParticleTreeDrawer.h" |
23 |
< |
#include "UserCode/Morgan/interface/TRootEvent.h" |
24 |
< |
#include "UserCode/Morgan/interface/TRootSignalEvent.h" |
25 |
< |
#include "UserCode/Morgan/interface/TRootParticle.h" |
18 |
> |
#include "SimDataFormats/HepMCProduct/interface/HepMCProduct.h" |
19 |
> |
|
20 |
> |
#include "DataFormats/JetReco/interface/GenJet.h" |
21 |
> |
#include "DataFormats/JetReco/interface/GenJetCollection.h" |
22 |
> |
#include "DataFormats/HepMCCandidate/interface/GenParticle.h" |
23 |
> |
#include "DataFormats/HepMCCandidate/interface/GenParticleFwd.h" |
24 |
> |
|
25 |
> |
#include "SimDataFormats/Track/interface/SimTrack.h" |
26 |
> |
#include "SimDataFormats/Track/interface/SimTrackContainer.h" |
27 |
> |
#include "SimDataFormats/Vertex/interface/SimVertex.h" |
28 |
> |
#include "SimDataFormats/Vertex/interface/SimVertexContainer.h" |
29 |
> |
#include "RecoEgamma/EgammaMCTools/interface/PhotonMCTruthFinder.h" |
30 |
> |
#include "RecoEgamma/EgammaMCTools/interface/PhotonMCTruth.h" |
31 |
> |
#include "RecoEgamma/EgammaMCTools/interface/ElectronMCTruth.h" |
32 |
> |
//#include "DataFormats/EgammaCandidates/interface/ConvertedPhoton.h" |
33 |
> |
|
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/TRootMCPhoton.h" |
40 |
> |
#include "../interface/TRootJet.h" |
41 |
|
|
42 |
|
#include "TClonesArray.h" |
43 |
|
|
47 |
|
|
48 |
|
public: |
49 |
|
MCAnalyzer(); |
50 |
< |
MCAnalyzer(edm::ParameterSet * aConfig); |
50 |
> |
MCAnalyzer(const edm::ParameterSet& config, const edm::ParameterSet& producersNames); |
51 |
|
~MCAnalyzer(); |
52 |
< |
void SetVerbosity(int idebug) {verbosity = idebug; }; |
53 |
< |
void Process(const edm::Event& iEvent, const edm::EventSetup & iSetup, TRootEvent* rootEvent, TRootSignalEvent* rootSignalEvent, TClonesArray* rootMCParticles); |
54 |
< |
|
52 |
> |
void SetVerbosity(int verbosity) {verbosity_ = verbosity; }; |
53 |
> |
void DrawMCTree(const edm::Event& iEvent, const edm::EventSetup& iSetup, const edm::ParameterSet& config, const edm::ParameterSet& producersNames); |
54 |
> |
void PDFInfo(const edm::Event& iEvent, TRootEvent* rootEvent); |
55 |
> |
void ProcessMCParticle(const edm::Event& iEvent, TClonesArray* rootMCParticles); |
56 |
> |
//void ProcessMCJets(const edm::Event& iEvent, TClonesArray* rootMCJets); |
57 |
> |
void ProcessConvertedPhoton(const edm::Event& iEvent, TClonesArray* rootMCPhotons); |
58 |
> |
void ProcessMuMuGammaEvent(const edm::Event& iEvent, TRootSignalEvent* rootSignalEvent); |
59 |
> |
void ProcessTopTopEvent(const edm::Event& iEvent, TClonesArray* rootMCTopTop); |
60 |
> |
|
61 |
|
private: |
62 |
< |
edm::ParameterSet * myConfig; |
63 |
< |
int verbosity; |
43 |
< |
|
44 |
< |
bool drawMCTree; |
45 |
< |
bool mcTreePrintP4; |
46 |
< |
bool mcTreePrintPtEtaPhi; |
47 |
< |
bool mcTreePrintVertex; |
48 |
< |
bool mcTreePrintStatus; |
49 |
< |
|
50 |
< |
bool doSignalMC; |
51 |
< |
std::string signalGenerator; |
52 |
< |
|
53 |
< |
bool doPhotonMC; |
54 |
< |
double photonMC_etaMax; |
55 |
< |
double photonMC_ptMin; |
56 |
< |
bool doElectronMC; |
57 |
< |
double electronMC_etaMax; |
58 |
< |
double electronMC_ptMin; |
59 |
< |
bool doMuonMC; |
60 |
< |
double muonMC_etaMax; |
61 |
< |
double muonMC_ptMin; |
62 |
< |
bool doJetMC; |
63 |
< |
double jetMC_etaMax; |
64 |
< |
double jetMC_ptMin; |
65 |
< |
bool doPhotonConversionMC; |
62 |
> |
|
63 |
> |
int verbosity_; |
64 |
|
|
65 |
+ |
bool doPhotonMC_; |
66 |
+ |
double photonMC_etaMax_; |
67 |
+ |
double photonMC_ptMin_; |
68 |
+ |
bool doElectronMC_; |
69 |
+ |
double electronMC_etaMax_; |
70 |
+ |
double electronMC_ptMin_; |
71 |
+ |
bool doMuonMC_; |
72 |
+ |
double muonMC_etaMax_; |
73 |
+ |
double muonMC_ptMin_; |
74 |
+ |
bool doUnstablePartsMC_; |
75 |
+ |
|
76 |
+ |
std::string signalGenerator_; |
77 |
+ |
edm::InputTag genParticlesProducer_; |
78 |
+ |
edm::InputTag genJetsProducer_; |
79 |
|
}; |
80 |
|
|
81 |
|
#endif |