16 |
|
#include "DataFormats/HepMCCandidate/interface/GenParticle.h" |
17 |
|
#include "DataFormats/HepMCCandidate/interface/GenParticleFwd.h" |
18 |
|
|
19 |
– |
#include "SimDataFormats/HepMCProduct/interface/HepMCProduct.h" |
20 |
– |
|
19 |
|
#include "SimDataFormats/Track/interface/SimTrack.h" |
20 |
|
#include "SimDataFormats/Track/interface/SimTrackContainer.h" |
21 |
|
#include "SimDataFormats/Vertex/interface/SimVertex.h" |
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 |
|
|
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 |