CMS 3D CMS Logo

ElectronStudy.h
Go to the documentation of this file.
1 #ifndef SimG4CMS_Calo_ElectronStudy_H
2 #define SimG4CMS_Calo_ElectronStudy_H
3 
6 
11 
15 
18 
21 
24 
25 #include <TH1F.h>
26 
27 #include <memory>
28 #include <iostream>
29 #include <fstream>
30 #include <vector>
31 #include <string>
32 
34 
35 public:
36 
38  ~ElectronStudy() override {}
39 
40  void analyze (const edm::Event& e, const edm::EventSetup& c) override;
41 
42 private:
43 
44  static const int NEtaBins = 3;
45  static const int NPBins = 8;
46  double pBins[NPBins+1], etaBins[NEtaBins+1];
47 
52 
55  bool histos;
56  TH1F *histoR1[NPBins+1][NEtaBins+1], *histoR2[NPBins+1][NEtaBins+1];
57  TH1F *histoR3[NPBins+1][NEtaBins+1], *histoE1x1[NPBins+1][NEtaBins+1];
58  TH1F *histoE3x3[NPBins+1][NEtaBins+1], *histoE5x5[NPBins+1][NEtaBins+1];
59 };
60 
61 #endif
ElectronStudy(const edm::ParameterSet &ps)
std::string hitLabEE
Definition: ElectronStudy.h:53
TH1F * histoR2[NPBins+1][NEtaBins+1]
Definition: ElectronStudy.h:56
edm::EDGetTokenT< edm::SimTrackContainer > tok_simTk_
Definition: ElectronStudy.h:50
std::string g4Label
Definition: ElectronStudy.h:53
~ElectronStudy() override
Definition: ElectronStudy.h:38
std::string hitLabEB
Definition: ElectronStudy.h:53
TH1F * histoE3x3[NPBins+1][NEtaBins+1]
Definition: ElectronStudy.h:58
TH1F * histoE1x1[NPBins+1][NEtaBins+1]
Definition: ElectronStudy.h:57
edm::EDGetTokenT< edm::SimVertexContainer > tok_simVtx_
Definition: ElectronStudy.h:51
static const int NPBins
Definition: ElectronStudy.h:45
TH1F * histoR3[NPBins+1][NEtaBins+1]
Definition: ElectronStudy.h:57
double etaBins[NEtaBins+1]
Definition: ElectronStudy.h:46
TH1F * histoR1[NPBins+1][NEtaBins+1]
Definition: ElectronStudy.h:56
edm::EDGetTokenT< edm::PCaloHitContainer > tok_EBhit_
Definition: ElectronStudy.h:48
std::string sourceLabel
Definition: ElectronStudy.h:53
TH1F * histoE5x5[NPBins+1][NEtaBins+1]
Definition: ElectronStudy.h:58
edm::EDGetTokenT< edm::PCaloHitContainer > tok_EEhit_
Definition: ElectronStudy.h:49
double pBins[NPBins+1]
Definition: ElectronStudy.h:46
void analyze(const edm::Event &e, const edm::EventSetup &c) override
static const int NEtaBins
Definition: ElectronStudy.h:44