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/Frameworkfwd.h"
|
11 |
|
|
#include "FWCore/Framework/interface/EDAnalyzer.h"
|
12 |
|
|
#include "FWCore/Framework/interface/Event.h"
|
13 |
|
|
//#include "FWCore/Framework/interface/Handle.h"
|
14 |
|
|
#include "FWCore/Framework/interface/MakerMacros.h"
|
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 |
mlethuil |
1.2 |
#include "SimDataFormats/Track/interface/SimTrack.h"
|
23 |
|
|
#include "SimDataFormats/Track/interface/SimTrackContainer.h"
|
24 |
|
|
#include "SimDataFormats/Vertex/interface/SimVertex.h"
|
25 |
|
|
#include "SimDataFormats/Vertex/interface/SimVertexContainer.h"
|
26 |
|
|
#include "RecoEgamma/EgammaMCTools/interface/PhotonMCTruthFinder.h"
|
27 |
|
|
#include "RecoEgamma/EgammaMCTools/interface/PhotonMCTruth.h"
|
28 |
|
|
#include "RecoEgamma/EgammaMCTools/interface/ElectronMCTruth.h"
|
29 |
|
|
//#include "DataFormats/EgammaCandidates/interface/ConvertedPhoton.h"
|
30 |
|
|
|
31 |
mlethuil |
1.1 |
#include "UserCode/Morgan/interface/ParticleTreeDrawer.h"
|
32 |
|
|
#include "UserCode/Morgan/interface/TRootEvent.h"
|
33 |
|
|
#include "UserCode/Morgan/interface/TRootSignalEvent.h"
|
34 |
|
|
#include "UserCode/Morgan/interface/TRootParticle.h"
|
35 |
mlethuil |
1.2 |
#include "UserCode/Morgan/interface/TRootMCPhoton.h"
|
36 |
mlethuil |
1.1 |
|
37 |
|
|
#include "TClonesArray.h"
|
38 |
|
|
|
39 |
|
|
|
40 |
|
|
|
41 |
|
|
class MCAnalyzer{
|
42 |
|
|
|
43 |
|
|
public:
|
44 |
|
|
MCAnalyzer();
|
45 |
|
|
MCAnalyzer(edm::ParameterSet * aConfig);
|
46 |
|
|
~MCAnalyzer();
|
47 |
|
|
void SetVerbosity(int idebug) {verbosity = idebug; };
|
48 |
mlethuil |
1.2 |
void Process(const edm::Event& iEvent, const edm::EventSetup & iSetup, TRootEvent* rootEvent, TRootSignalEvent* rootSignalEvent, TClonesArray* rootMCParticles, TClonesArray* rootMCPhotons);
|
49 |
mlethuil |
1.1 |
|
50 |
|
|
private:
|
51 |
|
|
edm::ParameterSet * myConfig;
|
52 |
|
|
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;
|
76 |
|
|
|
77 |
|
|
};
|
78 |
|
|
|
79 |
|
|
#endif
|