CMS 3D CMS Logo

PFClusterValidation.h
Go to the documentation of this file.
1 #ifndef PFClusterValidation_h
2 #define PFClusterValidation_h
3 
14 
18 
21 
22 // including PFCluster
27 
29 
31 
39 
40 // end include PFCluster
41 #include <vector>
42 #include <utility>
43 #include <iostream>
44 #include <string>
45 #include <algorithm>
46 #include <cmath>
49 
51 public:
53  ~PFClusterValidation() override;
54  void analyze(edm::Event const& e, edm::EventSetup const& c) override;
55  void bookHistograms(DQMStore::IBooker&, edm::Run const&, edm::EventSetup const&) override;
56 
57 private:
58  double dR(double eta1, double phi1, double eta2, double phi2);
61  //std::string mc_;
62  bool mc_;
63 
65 
71 
72  int imc;
73 
74  // this acts throught the entire class
75  // no reinitialization required
76  const double partR = 0.3; // dr cutoff
77  double eta_MC, phi_MC, energy_MC = 9999.;
78 
79  //************Modules
80 
84 
89 
93 
97 
101 
105 
109 
112 
123 
125 };
126 
127 #endif
PFClusterValidation::Ratio_Esummed_ECAL_HCAL_0
MonitorElement * Ratio_Esummed_ECAL_HCAL_0
Definition: PFClusterValidation.h:113
dqm::impl::MonitorElement
Definition: MonitorElement.h:98
PFClusterValidation::tok_evt_
edm::EDGetTokenT< edm::HepMCProduct > tok_evt_
Definition: PFClusterValidation.h:66
PFClusterValidation::bookHistograms
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Definition: PFClusterValidation.cc:36
PFClusterValidation::emean_vs_eta_HF
MonitorElement * emean_vs_eta_HF
Definition: PFClusterValidation.h:85
MessageLogger.h
PFClusterValidation::emean_vs_eta_EHF
MonitorElement * emean_vs_eta_EHF
Definition: PFClusterValidation.h:87
PFClusterValidation::PFClusterHCALTok_
edm::EDGetTokenT< reco::PFClusterCollection > PFClusterHCALTok_
Definition: PFClusterValidation.h:68
PFClusterValidation::Ratio_Esummed_ECAL_HCAL_1
MonitorElement * Ratio_Esummed_ECAL_HCAL_1
Definition: PFClusterValidation.h:115
PFClusterValidation::Ratio_Esummed_ECAL_3
MonitorElement * Ratio_Esummed_ECAL_3
Definition: PFClusterValidation.h:102
PFClusterValidation::Ratio_Esummed_HF_5
MonitorElement * Ratio_Esummed_HF_5
Definition: PFClusterValidation.h:110
ESHandle.h
PFBlockElementCluster.h
PFCandidate.h
PFClusterValidation::emean_vs_eta_EH
MonitorElement * emean_vs_eta_EH
Definition: PFClusterValidation.h:83
PFClusterValidation::Vector
math::RhoEtaPhiVector Vector
Definition: PFClusterValidation.h:64
edm::Run
Definition: Run.h:45
edm::EDGetTokenT< edm::HepMCProduct >
PFClusterValidation::Ratio_Esummed_HCAL_4
MonitorElement * Ratio_Esummed_HCAL_4
Definition: PFClusterValidation.h:107
HLT_2018_cff.eta1
eta1
Definition: HLT_2018_cff.py:8220
PFClusterValidation::Ratio_Esummed_HO_3
MonitorElement * Ratio_Esummed_HO_3
Definition: PFClusterValidation.h:104
DQMStore.h
PFClusterValidation::Ratio_Esummed_ECAL_4
MonitorElement * Ratio_Esummed_ECAL_4
Definition: PFClusterValidation.h:106
PFClusterValidation::Ratio_Esummed_ECAL_HCAL_2
MonitorElement * Ratio_Esummed_ECAL_HCAL_2
Definition: PFClusterValidation.h:117
PFClusterValidation::Ratio_Esummed_HF_6
MonitorElement * Ratio_Esummed_HF_6
Definition: PFClusterValidation.h:111
EDAnalyzer.h
PFClusterValidation::Ratio_Esummed_ECAL_HCAL_HO_1
MonitorElement * Ratio_Esummed_ECAL_HCAL_HO_1
Definition: PFClusterValidation.h:116
PFClusterValidation::Ratio_Esummed_ECAL_HCAL_3
MonitorElement * Ratio_Esummed_ECAL_HCAL_3
Definition: PFClusterValidation.h:119
math::RhoEtaPhiVector
RhoEtaPhiVectorD RhoEtaPhiVector
spatial vector with cylindrical internal representation using pseudorapidity
Definition: Vector3D.h:33
edm::Handle
Definition: AssociativeIterator.h:50
PFClusterValidation::emean_vs_eta_HO
MonitorElement * emean_vs_eta_HO
Definition: PFClusterValidation.h:86
PFClusterValidation::eta_MC
double eta_MC
Definition: PFClusterValidation.h:77
PFClusterValidation::PFClusterHOTok_
edm::EDGetTokenT< reco::PFClusterCollection > PFClusterHOTok_
Definition: PFClusterValidation.h:69
PFRecHit.h
PFLayer.h
MakerMacros.h
PFClusterValidation::mc_
bool mc_
Definition: PFClusterValidation.h:62
PFClusterValidation::analyze
void analyze(edm::Event const &e, edm::EventSetup const &c) override
Definition: PFClusterValidation.cc:137
Service.h
PFClusterValidation::outputFile_
std::string outputFile_
Definition: PFClusterValidation.h:60
PFCluster.h
CaloClusterFwd.h
PFClusterValidation::Ratio_Esummed_HCAL_1
MonitorElement * Ratio_Esummed_HCAL_1
Definition: PFClusterValidation.h:95
HLT_2018_cff.eta2
eta2
Definition: HLT_2018_cff.py:8221
DQMEDAnalyzer.h
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
DQMEDAnalyzer
Definition: DQMEDAnalyzer.py:1
edm::ParameterSet
Definition: ParameterSet.h:36
PFClusterValidation::dR
double dR(double eta1, double phi1, double eta2, double phi2)
Definition: PFClusterValidation.cc:240
Event.h
PFClusterValidation::PFClusterHFTok_
edm::EDGetTokenT< reco::PFClusterCollection > PFClusterHFTok_
Definition: PFClusterValidation.h:70
PFClusterValidation::Ratio_Esummed_ECAL_HCAL_4
MonitorElement * Ratio_Esummed_ECAL_HCAL_4
Definition: PFClusterValidation.h:121
PFClusterValidation::PFClusterECALTok_
edm::EDGetTokenT< reco::PFClusterCollection > PFClusterECALTok_
Definition: PFClusterValidation.h:67
PFClusterValidation::Ratio_Esummed_HCAL_2
MonitorElement * Ratio_Esummed_HCAL_2
Definition: PFClusterValidation.h:99
PFClusterValidation::Ratio_Esummed_ECAL_HCAL_HO_4
MonitorElement * Ratio_Esummed_ECAL_HCAL_HO_4
Definition: PFClusterValidation.h:122
PackedCandidate.h
ModuleDef.h
PFClusterValidation::Ratio_Esummed_HCAL_0
MonitorElement * Ratio_Esummed_HCAL_0
Definition: PFClusterValidation.h:91
PFClusterValidation::phi_MC
double phi_MC
Definition: PFClusterValidation.h:77
PFClusterFwd.h
PFClusterValidation::Ratio_Esummed_HO_2
MonitorElement * Ratio_Esummed_HO_2
Definition: PFClusterValidation.h:100
PFClusterValidation::PFClusterValidation
PFClusterValidation(edm::ParameterSet const &conf)
Definition: PFClusterValidation.cc:9
CaloTowerDetId.h
edm::EventSetup
Definition: EventSetup.h:57
PFClusterValidation::Ratio_Esummed_HO_0
MonitorElement * Ratio_Esummed_HO_0
Definition: PFClusterValidation.h:92
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
PFClusterValidation::partR
const double partR
Definition: PFClusterValidation.h:76
PFClusterValidation
Definition: PFClusterValidation.h:50
PFClusterValidation::imc
int imc
Definition: PFClusterValidation.h:72
PFClusterValidation::emean_vs_eta_E
MonitorElement * emean_vs_eta_E
Definition: PFClusterValidation.h:81
PFClusterValidation::Ratio_Esummed_ECAL_2
MonitorElement * Ratio_Esummed_ECAL_2
Definition: PFClusterValidation.h:98
PFClusterValidation::Ratio_Esummed_ECAL_1
MonitorElement * Ratio_Esummed_ECAL_1
Definition: PFClusterValidation.h:94
PFRecHitFraction.h
PFClusterValidation::~PFClusterValidation
~PFClusterValidation() override
Definition: PFClusterValidation.cc:34
CaloTowerCollection.h
PFBlock.h
PFClusterValidation::sumEnergy
double sumEnergy(edm::Handle< reco::PFClusterCollection > pfCluster1)
Definition: PFClusterValidation.cc:254
DetId.h
Frameworkfwd.h
PFClusterValidation::emean_vs_eta_H
MonitorElement * emean_vs_eta_H
Definition: PFClusterValidation.h:82
PFClusterValidation::Ratio_Esummed_ECAL_HCAL_HO_0
MonitorElement * Ratio_Esummed_ECAL_HCAL_HO_0
Definition: PFClusterValidation.h:114
EventSetup.h
PFClusterValidation::Egen_MC
MonitorElement * Egen_MC
Definition: PFClusterValidation.h:124
dqm::implementation::IBooker
Definition: DQMStore.h:43
PFClusterValidation::Ratio_Esummed_ECAL_HCAL_HO_3
MonitorElement * Ratio_Esummed_ECAL_HCAL_HO_3
Definition: PFClusterValidation.h:120
PFClusterValidation::energy_MC
double energy_MC
Definition: PFClusterValidation.h:77
PFClusterValidation::Ratio_Esummed_ECAL_0
MonitorElement * Ratio_Esummed_ECAL_0
Definition: PFClusterValidation.h:90
PFClusterValidation::Ratio_Esummed_HCAL_3
MonitorElement * Ratio_Esummed_HCAL_3
Definition: PFClusterValidation.h:103
ParameterSet.h
HepMCProduct.h
edm::Event
Definition: Event.h:73
PFClusterValidation::Ratio_Esummed_HO_4
MonitorElement * Ratio_Esummed_HO_4
Definition: PFClusterValidation.h:108
Vector3D.h
PFBlockElementTrack.h
PFClusterValidation::Ratio_Esummed_HO_1
MonitorElement * Ratio_Esummed_HO_1
Definition: PFClusterValidation.h:96
CaloCluster.h
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37
PFClusterValidation::emean_vs_eta_EHFO
MonitorElement * emean_vs_eta_EHFO
Definition: PFClusterValidation.h:88
PFClusterValidation::Ratio_Esummed_ECAL_HCAL_HO_2
MonitorElement * Ratio_Esummed_ECAL_HCAL_HO_2
Definition: PFClusterValidation.h:118