CMS 3D CMS Logo

ElectronSeedAnalyzer.h
Go to the documentation of this file.
1 #ifndef ElectronSeedAnalyzer_h
2 #define ElectronSeedAnalyzer_h
3 
4 //
5 // Package: RecoEgamma/ElectronTrackSeed
6 // Class: ElectronSeedAnalyzer
7 //
8 
9 //
10 // Original Author: Ursula Berthon, Claude Charlot
11 // Created: Mon Mar 27 13:22:06 CEST 2006
12 //
13 //
14 
21 
24 
26 
27 class MagneticField;
28 class TFile;
29 class TH1F;
30 class TH1I;
31 class TTree;
32 
34 public:
35  explicit ElectronSeedAnalyzer(const edm::ParameterSet &conf);
36  ~ElectronSeedAnalyzer() override;
37  void analyze(const edm::Event &, const edm::EventSetup &) override;
38  void beginJob() override;
39  void endJob() override;
40 
41 private:
43 
44  TFile *histfile_;
45  TTree *tree_;
46  float mcEnergy[10], mcEta[10], mcPhi[10], mcPt[10], mcQ[10];
48  float seedMomentum[10], seedEta[10], seedPhi[10], seedPt[10], seedQ[10];
49  int seedSubdet1[10], seedSubdet2[10];
50  int seedLayer1[10], seedLayer2[10];
51  int seedSide1[10], seedSide2[10];
52  float seedDphi1[10], seedDrz1[10], seedDphi2[10], seedDrz2[10];
53  float seedPhi1[10], seedRz1[10], seedPhi2[10], seedRz2[10];
54  TH1F *histeMC_;
58  TH1F *histp_;
59  TH1F *histeclu_;
60  TH1F *histpt_;
61  TH1F *histptMC_;
65  TH1F *histetclu_;
66  TH1F *histeffpt_;
67  TH1F *histeta_;
68  TH1F *histetaMC_;
72  TH1F *histetaclu_;
73  TH1F *histeffeta_;
74  TH1F *histq_;
75  TH1F *histeoverp_;
76  TH1I *histnrseeds_;
77  TH1I *histnbseeds_;
78  TH1I *histnbclus_;
79 
82  // std::vector<std::pair<const GeomDet*, TrajectoryStateOnSurface> > mapTsos_;
83  // std::vector<std::pair<std::pair<const GeomDet*,GlobalPoint>, TrajectoryStateOnSurface> > mapTsos2_;
84 };
85 
86 #endif
ElectronSeedAnalyzer::beginJob
void beginJob() override
Definition: ElectronSeedAnalyzer.cc:62
ElectronSeedAnalyzer::histecaldrivenetaMCmatched_
TH1F * histecaldrivenetaMCmatched_
Definition: ElectronSeedAnalyzer.h:70
ElectronSeedAnalyzer::superclusterEt
float superclusterEt[10]
Definition: ElectronSeedAnalyzer.h:47
Handle.h
ElectronSeedAnalyzer::histtrackerdriveneMCmatched_
TH1F * histtrackerdriveneMCmatched_
Definition: ElectronSeedAnalyzer.h:57
EDAnalyzer.h
ElectronSeedAnalyzer::histnbseeds_
TH1I * histnbseeds_
Definition: ElectronSeedAnalyzer.h:77
TrackerGeometry.h
ElectronSeedAnalyzer::histecaldriveneMCmatched_
TH1F * histecaldriveneMCmatched_
Definition: ElectronSeedAnalyzer.h:56
ElectronSeedAnalyzer::histfile_
TFile * histfile_
Definition: ElectronSeedAnalyzer.h:44
ElectronSeedAnalyzer::seedDrz1
float seedDrz1[10]
Definition: ElectronSeedAnalyzer.h:52
ElectronSeedAnalyzer::histpt_
TH1F * histpt_
Definition: ElectronSeedAnalyzer.h:60
ElectronSeedAnalyzer::histeta_
TH1F * histeta_
Definition: ElectronSeedAnalyzer.h:67
ElectronSeedAnalyzer::superclusterEta
float superclusterEta[10]
Definition: ElectronSeedAnalyzer.h:47
ElectronSeedAnalyzer::seedMomentum
float seedMomentum[10]
Definition: ElectronSeedAnalyzer.h:48
ElectronSeedAnalyzer::histtrackerdrivenetaMCmatched_
TH1F * histtrackerdrivenetaMCmatched_
Definition: ElectronSeedAnalyzer.h:71
ElectronSeedAnalyzer::mcEta
float mcEta[10]
Definition: ElectronSeedAnalyzer.h:46
ElectronSeedAnalyzer::histeMCmatched_
TH1F * histeMCmatched_
Definition: ElectronSeedAnalyzer.h:55
ElectronSeedAnalyzer::~ElectronSeedAnalyzer
~ElectronSeedAnalyzer() override
Definition: ElectronSeedAnalyzer.cc:173
ElectronSeedAnalyzer::seedSide2
int seedSide2[10]
Definition: ElectronSeedAnalyzer.h:51
edm::one::EDAnalyzer
Definition: EDAnalyzer.h:30
ElectronSeedAnalyzer::histeffpt_
TH1F * histeffpt_
Definition: ElectronSeedAnalyzer.h:66
ElectronSeedAnalyzer::ElectronSeedAnalyzer
ElectronSeedAnalyzer(const edm::ParameterSet &conf)
Definition: ElectronSeedAnalyzer.cc:56
ElectronSeedAnalyzer::seedSubdet1
int seedSubdet1[10]
Definition: ElectronSeedAnalyzer.h:49
ElectronSeedAnalyzer::seedPhi2
float seedPhi2[10]
Definition: ElectronSeedAnalyzer.h:53
ElectronSeedAnalyzer::histeffeta_
TH1F * histeffeta_
Definition: ElectronSeedAnalyzer.h:73
ElectronSeedAnalyzer::histtrackerdrivenptMCmatched_
TH1F * histtrackerdrivenptMCmatched_
Definition: ElectronSeedAnalyzer.h:64
ElectronSeedAnalyzer::histnrseeds_
TH1I * histnrseeds_
Definition: ElectronSeedAnalyzer.h:76
ElectronSeedAnalyzer::histnbclus_
TH1I * histnbclus_
Definition: ElectronSeedAnalyzer.h:78
ElectronSeedAnalyzer::endJob
void endJob() override
Definition: ElectronSeedAnalyzer.cc:125
ElectronSeedAnalyzer::seedDphi1
float seedDphi1[10]
Definition: ElectronSeedAnalyzer.h:52
ElectronSeedAnalyzer::seedLayer2
int seedLayer2[10]
Definition: ElectronSeedAnalyzer.h:50
ElectronSeedAnalyzer::mcPhi
float mcPhi[10]
Definition: ElectronSeedAnalyzer.h:46
ElectronSeedAnalyzer::seedPhi1
float seedPhi1[10]
Definition: ElectronSeedAnalyzer.h:53
ElectronSeedAnalyzer::seedPhi
float seedPhi[10]
Definition: ElectronSeedAnalyzer.h:48
ElectronSeedAnalyzer::histetaMC_
TH1F * histetaMC_
Definition: ElectronSeedAnalyzer.h:68
ElectronSeedAnalyzer::histeclu_
TH1F * histeclu_
Definition: ElectronSeedAnalyzer.h:59
ElectronSeedAnalyzer::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: ElectronSeedAnalyzer.cc:182
ElectronSeedAnalyzer
Definition: ElectronSeedAnalyzer.h:33
ElectronSeedAnalyzer::seedDrz2
float seedDrz2[10]
Definition: ElectronSeedAnalyzer.h:52
edm::ParameterSet
Definition: ParameterSet.h:36
ElectronSeedAnalyzer::histeMC_
TH1F * histeMC_
Definition: ElectronSeedAnalyzer.h:54
Event.h
ElectronSeedAnalyzer::tree_
TTree * tree_
Definition: ElectronSeedAnalyzer.h:45
TrajectoryStateTransform
Definition: TrajectoryStateTransform.h:47
ElectronSeedAnalyzer::histeoverp_
TH1F * histeoverp_
Definition: ElectronSeedAnalyzer.h:75
ElectronSeedAnalyzer::histecaldrivenptMCmatched_
TH1F * histecaldrivenptMCmatched_
Definition: ElectronSeedAnalyzer.h:63
ElectronSeedAnalyzer::mcEnergy
float mcEnergy[10]
Definition: ElectronSeedAnalyzer.h:46
ElectronSeedAnalyzer::histetaclu_
TH1F * histetaclu_
Definition: ElectronSeedAnalyzer.h:72
ElectronSeedAnalyzer::beamSpot_
edm::InputTag beamSpot_
Definition: ElectronSeedAnalyzer.h:81
ElectronSeedAnalyzer::histetaMCmatched_
TH1F * histetaMCmatched_
Definition: ElectronSeedAnalyzer.h:69
ElectronSeedAnalyzer::histetclu_
TH1F * histetclu_
Definition: ElectronSeedAnalyzer.h:65
edm::EventSetup
Definition: EventSetup.h:57
InputTag.h
ElectronSeedAnalyzer::histq_
TH1F * histq_
Definition: ElectronSeedAnalyzer.h:74
ElectronSeedAnalyzer::seedEta
float seedEta[10]
Definition: ElectronSeedAnalyzer.h:48
ElectronSeedAnalyzer::seedRz2
float seedRz2[10]
Definition: ElectronSeedAnalyzer.h:53
ElectronSeedAnalyzer::seedRz1
float seedRz1[10]
Definition: ElectronSeedAnalyzer.h:53
ElectronSeedAnalyzer::mcQ
float mcQ[10]
Definition: ElectronSeedAnalyzer.h:46
ElectronSeedAnalyzer::seedDphi2
float seedDphi2[10]
Definition: ElectronSeedAnalyzer.h:52
ElectronSeedAnalyzer::seedLayer1
int seedLayer1[10]
Definition: ElectronSeedAnalyzer.h:50
ElectronSeedAnalyzer::seedPt
float seedPt[10]
Definition: ElectronSeedAnalyzer.h:48
ElectronSeedAnalyzer::seedSide1
int seedSide1[10]
Definition: ElectronSeedAnalyzer.h:51
ElectronSeedAnalyzer::seedSubdet2
int seedSubdet2[10]
Definition: ElectronSeedAnalyzer.h:49
ElectronSeedAnalyzer::superclusterPhi
float superclusterPhi[10]
Definition: ElectronSeedAnalyzer.h:47
EventSetup.h
TrajectoryStateTransform.h
ElectronSeedAnalyzer::histptMC_
TH1F * histptMC_
Definition: ElectronSeedAnalyzer.h:61
ElectronSeedAnalyzer::mcPt
float mcPt[10]
Definition: ElectronSeedAnalyzer.h:46
ElectronSeedAnalyzer::superclusterEnergy
float superclusterEnergy[10]
Definition: ElectronSeedAnalyzer.h:47
ElectronSeedAnalyzer::histptMCmatched_
TH1F * histptMCmatched_
Definition: ElectronSeedAnalyzer.h:62
ParameterSet.h
ElectronSeedAnalyzer::histp_
TH1F * histp_
Definition: ElectronSeedAnalyzer.h:58
edm::Event
Definition: Event.h:73
ElectronSeedAnalyzer::inputCollection_
edm::InputTag inputCollection_
Definition: ElectronSeedAnalyzer.h:80
MagneticField
Definition: MagneticField.h:19
GlobalPoint.h
ElectronSeedAnalyzer::seedQ
float seedQ[10]
Definition: ElectronSeedAnalyzer.h:48
edm::InputTag
Definition: InputTag.h:15
ElectronSeedAnalyzer::transformer_
TrajectoryStateTransform transformer_
Definition: ElectronSeedAnalyzer.h:42