27 |
|
#include "RecoEgamma/EgammaMCTools/interface/ElectronMCTruth.h" |
28 |
|
//#include "DataFormats/EgammaCandidates/interface/ConvertedPhoton.h" |
29 |
|
|
30 |
< |
#include "UserCode/Morgan/interface/ParticleTreeDrawer.h" |
31 |
< |
#include "UserCode/Morgan/interface/TRootEvent.h" |
32 |
< |
#include "UserCode/Morgan/interface/TRootSignalEvent.h" |
33 |
< |
#include "UserCode/Morgan/interface/TRootParticle.h" |
34 |
< |
#include "UserCode/Morgan/interface/TRootMCPhoton.h" |
30 |
> |
#include "../interface/ParticleTreeDrawer.h" |
31 |
> |
#include "../interface/TRootSignalEvent.h" |
32 |
> |
#include "../interface/TRootParticle.h" |
33 |
> |
#include "../interface/TRootMCPhoton.h" |
34 |
|
|
35 |
|
#include "TClonesArray.h" |
36 |
|
|
40 |
|
|
41 |
|
public: |
42 |
|
MCAnalyzer(); |
43 |
< |
MCAnalyzer(edm::ParameterSet * aConfig); |
43 |
> |
MCAnalyzer(const edm::ParameterSet& config, const edm::ParameterSet& producersNames); |
44 |
|
~MCAnalyzer(); |
45 |
< |
void SetVerbosity(int idebug) {verbosity = idebug; }; |
46 |
< |
void Process(const edm::Event& iEvent, const edm::EventSetup & iSetup, TRootEvent* rootEvent, TRootSignalEvent* rootSignalEvent, TClonesArray* rootMCParticles, TClonesArray* rootMCPhotons); |
45 |
> |
void SetVerbosity(int verbosity) {verbosity_ = verbosity; }; |
46 |
> |
void DrawMCTree(const edm::Event& iEvent, const edm::EventSetup& iSetup, const edm::ParameterSet& config, const edm::ParameterSet& producersNames); |
47 |
> |
void ProcessStableParticle(const edm::Event& iEvent, TClonesArray* rootMCParticles); |
48 |
> |
void ProcessConvertedPhoton(const edm::Event& iEvent, TClonesArray* rootMCPhotons); |
49 |
> |
void ProcessMuMuGammaEvent(const edm::Event& iEvent, TRootSignalEvent* rootSignalEvent); |
50 |
|
|
51 |
|
private: |
52 |
< |
edm::ParameterSet * myConfig; |
53 |
< |
int verbosity; |
52 |
< |
|
53 |
< |
bool drawMCTree; |
54 |
< |
bool mcTreePrintP4; |
55 |
< |
bool mcTreePrintPtEtaPhi; |
56 |
< |
bool mcTreePrintVertex; |
57 |
< |
bool mcTreePrintStatus; |
58 |
< |
|
59 |
< |
bool doSignalMC; |
60 |
< |
std::string signalGenerator; |
61 |
< |
|
62 |
< |
bool doPhotonMC; |
63 |
< |
double photonMC_etaMax; |
64 |
< |
double photonMC_ptMin; |
65 |
< |
bool doElectronMC; |
66 |
< |
double electronMC_etaMax; |
67 |
< |
double electronMC_ptMin; |
68 |
< |
bool doMuonMC; |
69 |
< |
double muonMC_etaMax; |
70 |
< |
double muonMC_ptMin; |
71 |
< |
bool doJetMC; |
72 |
< |
double jetMC_etaMax; |
73 |
< |
double jetMC_ptMin; |
74 |
< |
bool doPhotonConversionMC; |
52 |
> |
|
53 |
> |
int verbosity_; |
54 |
|
|
55 |
+ |
bool doPhotonMC_; |
56 |
+ |
double photonMC_etaMax_; |
57 |
+ |
double photonMC_ptMin_; |
58 |
+ |
bool doElectronMC_; |
59 |
+ |
double electronMC_etaMax_; |
60 |
+ |
double electronMC_ptMin_; |
61 |
+ |
bool doMuonMC_; |
62 |
+ |
double muonMC_etaMax_; |
63 |
+ |
double muonMC_ptMin_; |
64 |
+ |
bool doJetMC_; |
65 |
+ |
double jetMC_etaMax_; |
66 |
+ |
double jetMC_ptMin_; |
67 |
+ |
|
68 |
+ |
std::string signalGenerator_; |
69 |
+ |
edm::InputTag genParticlesProducer_; |
70 |
|
}; |
71 |
|
|
72 |
|
#endif |