1 |
mlethuil |
1.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 |
lethuill |
1.6 |
#include "DataFormats/JetReco/interface/GenJet.h"
|
15 |
lethuill |
1.10 |
#include "DataFormats/METReco/interface/GenMET.h"
|
16 |
lethuill |
1.3 |
#include "DataFormats/HepMCCandidate/interface/GenParticle.h"
|
17 |
|
|
#include "DataFormats/HepMCCandidate/interface/GenParticleFwd.h"
|
18 |
mlethuil |
1.1 |
|
19 |
lethuill |
1.9 |
#include "SimDataFormats/HepMCProduct/interface/HepMCProduct.h"
|
20 |
|
|
|
21 |
mlethuil |
1.2 |
#include "SimDataFormats/Track/interface/SimTrack.h"
|
22 |
|
|
#include "SimDataFormats/Track/interface/SimTrackContainer.h"
|
23 |
|
|
#include "SimDataFormats/Vertex/interface/SimVertex.h"
|
24 |
|
|
#include "SimDataFormats/Vertex/interface/SimVertexContainer.h"
|
25 |
|
|
#include "RecoEgamma/EgammaMCTools/interface/PhotonMCTruthFinder.h"
|
26 |
|
|
#include "RecoEgamma/EgammaMCTools/interface/PhotonMCTruth.h"
|
27 |
|
|
#include "RecoEgamma/EgammaMCTools/interface/ElectronMCTruth.h"
|
28 |
|
|
//#include "DataFormats/EgammaCandidates/interface/ConvertedPhoton.h"
|
29 |
|
|
|
30 |
lethuill |
1.5 |
#include "../interface/ParticleTreeDrawer.h"
|
31 |
lethuill |
1.7 |
#include "../interface/TRootEvent.h"
|
32 |
lethuill |
1.5 |
#include "../interface/TRootSignalEvent.h"
|
33 |
lethuill |
1.6 |
#include "../interface/TRootTopTop.h"
|
34 |
lethuill |
1.5 |
#include "../interface/TRootParticle.h"
|
35 |
lethuill |
1.8 |
#include "../interface/TRootMCParticle.h"
|
36 |
lethuill |
1.5 |
#include "../interface/TRootMCPhoton.h"
|
37 |
lethuill |
1.6 |
#include "../interface/TRootJet.h"
|
38 |
mlethuil |
1.1 |
|
39 |
|
|
#include "TClonesArray.h"
|
40 |
|
|
|
41 |
|
|
|
42 |
|
|
|
43 |
|
|
class MCAnalyzer{
|
44 |
|
|
|
45 |
|
|
public:
|
46 |
|
|
MCAnalyzer();
|
47 |
lethuill |
1.5 |
MCAnalyzer(const edm::ParameterSet& config, const edm::ParameterSet& producersNames);
|
48 |
mlethuil |
1.1 |
~MCAnalyzer();
|
49 |
lethuill |
1.5 |
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 |
lethuill |
1.7 |
void PDFInfo(const edm::Event& iEvent, TRootEvent* rootEvent);
|
52 |
lethuill |
1.6 |
void ProcessMCParticle(const edm::Event& iEvent, TClonesArray* rootMCParticles);
|
53 |
lethuill |
1.10 |
void ProcessGenJets(const edm::Event& iEvent, TClonesArray* rootGenJets);
|
54 |
|
|
void ProcessGenMETs(const edm::Event& iEvent, TClonesArray* rootGenMETs);
|
55 |
lethuill |
1.5 |
void ProcessConvertedPhoton(const edm::Event& iEvent, TClonesArray* rootMCPhotons);
|
56 |
|
|
void ProcessMuMuGammaEvent(const edm::Event& iEvent, TRootSignalEvent* rootSignalEvent);
|
57 |
lethuill |
1.6 |
void ProcessTopTopEvent(const edm::Event& iEvent, TClonesArray* rootMCTopTop);
|
58 |
lethuill |
1.9 |
|
59 |
mlethuil |
1.1 |
private:
|
60 |
lethuill |
1.5 |
|
61 |
|
|
int verbosity_;
|
62 |
mlethuil |
1.1 |
|
63 |
lethuill |
1.5 |
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 |
lethuill |
1.9 |
bool doJetMC_;
|
73 |
|
|
double jetMC_etaMax_;
|
74 |
|
|
double jetMC_ptMin_;
|
75 |
lethuill |
1.10 |
bool doMETMC_;
|
76 |
lethuill |
1.6 |
bool doUnstablePartsMC_;
|
77 |
lethuill |
1.5 |
|
78 |
|
|
std::string signalGenerator_;
|
79 |
|
|
edm::InputTag genParticlesProducer_;
|
80 |
lethuill |
1.6 |
edm::InputTag genJetsProducer_;
|
81 |
lethuill |
1.10 |
edm::InputTag genMETsProducer_;
|
82 |
mlethuil |
1.1 |
};
|
83 |
|
|
|
84 |
|
|
#endif
|