CMS 3D CMS Logo

ContainmentCorrectionAnalyzer.h
Go to the documentation of this file.
1 #ifndef Validation_EcalClusters_ContainmentCorrectionAnalyzer_h
2 #define Validation_EcalClusters_ContainmentCorrectionAnalyzer_h
3 
4 // system include files
5 #include <memory>
6 
7 // user include files
17 //
28 //
32 //
34 //
35 #include "CLHEP/Units/GlobalPhysicalConstants.h"
36 #include "TF1.h"
37 #include "TFile.h"
38 #include "TH1.h"
39 #include <algorithm>
40 #include <iostream>
41 #include <map>
42 #include <string>
43 #include <vector>
44 class TFile;
45 
47 
49 public:
52 
53  void analyze(const edm::Event &, const edm::EventSetup &) override;
54  void beginJob() override;
55  void endJob() override;
56 
57 private:
58  float ecalEta(float EtaParticle, float Zvertex, float plane_Radius);
59  std::vector<EcalSimPhotonMCTruth> findMcTruth(std::vector<SimTrack> &theSimTracks,
60  std::vector<SimVertex> &theSimVertices);
61  void fillMcTruth(std::vector<SimTrack> &theSimTracks, std::vector<SimVertex> &theSimVertices);
62 
69 
71  std::vector<float> mcEnergy, mcEta, mcPhi, mcPt;
72  std::vector<int> isConverted;
73  std::vector<float> x_vtx, y_vtx, z_vtx;
76  std::vector<float> e1, e9, e25;
77  std::vector<int> seedXtal;
78  std::vector<int> iMC;
79 
80  std::map<unsigned, unsigned> geantToIndex_;
81 
88  TH1F *h_EB_eTrue;
89  TH1F *h_EE_eTrue;
92 };
93 #endif
std::vector< EcalSimPhotonMCTruth > findMcTruth(std::vector< SimTrack > &theSimTracks, std::vector< SimVertex > &theSimVertices)
edm::EDGetTokenT< EcalRecHitCollection > reducedEndcapRecHitCollection_
std::map< unsigned, unsigned > geantToIndex_
edm::EDGetTokenT< edm::SimTrackContainer > SimTrackCollection_
edm::EDGetTokenT< reco::SuperClusterCollection > BarrelSuperClusterCollection_
float ecalEta(float EtaParticle, float Zvertex, float plane_Radius)
edm::EDGetTokenT< edm::SimVertexContainer > SimVertexCollection_
edm::EDGetTokenT< EcalRecHitCollection > reducedBarrelRecHitCollection_
void analyze(const edm::Event &, const edm::EventSetup &) override
edm::EDGetTokenT< reco::SuperClusterCollection > EndcapSuperClusterCollection_
ContainmentCorrectionAnalyzer(const edm::ParameterSet &)
void fillMcTruth(std::vector< SimTrack > &theSimTracks, std::vector< SimVertex > &theSimVertices)