CMS 3D CMS Logo

MCElectronAnalyzer.h
Go to the documentation of this file.
1 #ifndef MCElectronAnalyzer_H
2 #define MCElectronAnalyzer_H
4 
7 
8 #include <map>
9 #include <vector>
10 
11 // forward declarations
12 class TFile;
13 class TH1F;
14 class TH2F;
15 class TProfile;
16 class TTree;
17 class SimVertex;
18 class SimTrack;
19 
21 public:
22  //
23  explicit MCElectronAnalyzer(const edm::ParameterSet&);
24  ~MCElectronAnalyzer() override;
25 
26  void analyze(const edm::Event&, const edm::EventSetup&) override;
27  void beginJob() override;
28  void endJob() override;
29 
30 private:
31  float etaTransformation(float a, float b);
32  float phiNormalization(float& a);
33 
34  //
36 
38 
40  TFile* fOutputFile_;
41 
42  int nEvt_;
43  int nMatched_;
44 
46  double mcPhi_;
47  double mcEta_;
48 
53 
54  TH1F* h_MCEleE_;
55  TH1F* h_MCEleEta_;
56  TH1F* h_MCElePhi_;
57  TH1F* h_BremFrac_;
59 
60  TProfile* p_BremVsR_;
61  TProfile* p_BremVsEta_;
62 };
63 
64 #endif
MCElectronAnalyzer::SimTkLabel
std::string SimTkLabel
Definition: MCElectronAnalyzer.h:50
EDAnalyzer.h
SimVertex
Definition: SimVertex.h:5
TrackerGeometry.h
edm::one::EDAnalyzer
Definition: EDAnalyzer.h:30
MCElectronAnalyzer::phiNormalization
float phiNormalization(float &a)
Definition: MCElectronAnalyzer.cc:104
MCElectronAnalyzer::etaTransformation
float etaTransformation(float a, float b)
Definition: MCElectronAnalyzer.cc:67
ElectronMCTruthFinder.h
MCElectronAnalyzer::h_MCEleE_
TH1F * h_MCEleE_
Definition: MCElectronAnalyzer.h:54
b
double b
Definition: hdecay.h:118
MCElectronAnalyzer::mcEta_
double mcEta_
Definition: MCElectronAnalyzer.h:47
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
MCElectronAnalyzer::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: MCElectronAnalyzer.cc:120
edm::ParameterSet
Definition: ParameterSet.h:47
MCElectronAnalyzer
Definition: MCElectronAnalyzer.h:20
a
double a
Definition: hdecay.h:119
MCElectronAnalyzer::beginJob
void beginJob() override
Definition: MCElectronAnalyzer.cc:47
edm::EventSetup
Definition: EventSetup.h:57
MCElectronAnalyzer::nEvt_
int nEvt_
Definition: MCElectronAnalyzer.h:42
MCElectronAnalyzer::theElectronMCTruthFinder_
ElectronMCTruthFinder * theElectronMCTruthFinder_
Definition: MCElectronAnalyzer.h:35
MCElectronAnalyzer::h_BremFrac_
TH1F * h_BremFrac_
Definition: MCElectronAnalyzer.h:57
MCElectronAnalyzer::~MCElectronAnalyzer
~MCElectronAnalyzer() override
Definition: MCElectronAnalyzer.cc:45
MCElectronAnalyzer::h_MCElePhi_
TH1F * h_MCElePhi_
Definition: MCElectronAnalyzer.h:56
MCElectronAnalyzer::endJob
void endJob() override
Definition: MCElectronAnalyzer.cc:183
MCElectronAnalyzer::fOutputFileName_
std::string fOutputFileName_
Definition: MCElectronAnalyzer.h:39
MCElectronAnalyzer::p_BremVsEta_
TProfile * p_BremVsEta_
Definition: MCElectronAnalyzer.h:61
MCElectronAnalyzer::mcPhi_
double mcPhi_
global variable for the MC photon
Definition: MCElectronAnalyzer.h:46
SimTrack
Definition: SimTrack.h:6
MCElectronAnalyzer::p_BremVsR_
TProfile * p_BremVsR_
Definition: MCElectronAnalyzer.h:60
MCElectronAnalyzer::trackerGeom
const TrackerGeometry * trackerGeom
Definition: MCElectronAnalyzer.h:37
MCElectronAnalyzer::SimHitLabel
std::string SimHitLabel
Definition: MCElectronAnalyzer.h:52
MCElectronAnalyzer::MCElectronAnalyzer
MCElectronAnalyzer(const edm::ParameterSet &)
Definition: MCElectronAnalyzer.cc:41
MCElectronAnalyzer::nMatched_
int nMatched_
Definition: MCElectronAnalyzer.h:43
edm::Event
Definition: Event.h:73
MCElectronAnalyzer::fOutputFile_
TFile * fOutputFile_
Definition: MCElectronAnalyzer.h:40
ElectronMCTruthFinder
Definition: ElectronMCTruthFinder.h:13
MCElectronAnalyzer::h_MCEleEta_
TH1F * h_MCEleEta_
Definition: MCElectronAnalyzer.h:55
MCElectronAnalyzer::HepMCLabel
std::string HepMCLabel
Definition: MCElectronAnalyzer.h:49
TrackerGeometry
Definition: TrackerGeometry.h:14
MCElectronAnalyzer::h_BremEnergy_
TH1F * h_BremEnergy_
Definition: MCElectronAnalyzer.h:58
MCElectronAnalyzer::SimVtxLabel
std::string SimVtxLabel
Definition: MCElectronAnalyzer.h:51