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 |
|
|
#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"
|
26 |
|
|
|
27 |
|
|
#include "TClonesArray.h"
|
28 |
|
|
|
29 |
|
|
|
30 |
|
|
|
31 |
|
|
class MCAnalyzer{
|
32 |
|
|
|
33 |
|
|
public:
|
34 |
|
|
MCAnalyzer();
|
35 |
|
|
MCAnalyzer(edm::ParameterSet * aConfig);
|
36 |
|
|
~MCAnalyzer();
|
37 |
|
|
void SetVerbosity(int idebug) {verbosity = idebug; };
|
38 |
|
|
void Process(const edm::Event& iEvent, const edm::EventSetup & iSetup, TRootEvent* rootEvent, TRootSignalEvent* rootSignalEvent, TClonesArray* rootMCParticles);
|
39 |
|
|
|
40 |
|
|
private:
|
41 |
|
|
edm::ParameterSet * myConfig;
|
42 |
|
|
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;
|
66 |
|
|
|
67 |
|
|
};
|
68 |
|
|
|
69 |
|
|
#endif
|