30 edm::LogInfo(
"OutputInfo") <<
" Hcal RecHit Task histograms will NOT be saved";
42 -5.191, -4.889, -4.716, -4.538, -4.363, -4.191, -4.013, -3.839, -3.664, -3.489, -3.314, -3.139, -2.964, -2.853,
43 -2.65, -2.5, -2.322, -2.172, -2.043, -1.93, -1.83, -1.74, -1.653, -1.566, -1.479, -1.392, -1.305, -1.218,
44 -1.131, -1.044, -0.957, -0.879, -0.783, -0.696, -0.609, -0.522, -0.435, -0.348, -0.261, -0.174, -0.087, 0,
45 0.087, 0.174, 0.261, 0.348, 0.435, 0.522, 0.609, 0.696, 0.783, 0.879, 0.957, 1.044, 1.131, 1.218,
46 1.305, 1.392, 1.479, 1.566, 1.653, 1.74, 1.83, 1.93, 2.043, 2.172, 2.322, 2.5, 2.65, 2.853,
47 2.964, 3.139, 3.314, 3.489, 3.664, 3.839, 4.013, 4.191, 4.363, 4.538, 4.716, 4.889, 5.191};
51 sprintf(histo,
"emean_vs_eta_E");
53 sprintf(histo,
"emean_vs_eta_H");
55 sprintf(histo,
"emean_vs_eta_EH");
58 sprintf(histo,
"emean_vs_eta_HF");
60 sprintf(histo,
"emean_vs_eta_HO");
63 sprintf(histo,
"emean_vs_eta_EHF");
65 sprintf(histo,
"emean_vs_eta_EHFO");
70 sprintf(histo,
"Ratio_Esummed_ECAL_0");
72 sprintf(histo,
"Ratio_Esummed_HCAL_0");
74 sprintf(histo,
"Ratio_Esummed_HO_0");
76 sprintf(histo,
"Ratio_Esummed_ECAL_HCAL_0");
78 sprintf(histo,
"Ratio_Esummed_ECAL_HCAL_HO_0");
81 sprintf(histo,
"Ratio_Esummed_ECAL_1");
83 sprintf(histo,
"Ratio_Esummed_HCAL_1");
85 sprintf(histo,
"Ratio_Esummed_HO_1");
87 sprintf(histo,
"Ratio_Esummed_ECAL_HCAL_1");
89 sprintf(histo,
"Ratio_Esummed_ECAL_HCAL_HO_1");
92 sprintf(histo,
"Ratio_Esummed_ECAL_2");
94 sprintf(histo,
"Ratio_Esummed_HCAL_2");
96 sprintf(histo,
"Ratio_Esummed_HO_2");
98 sprintf(histo,
"Ratio_Esummed_ECAL_HCAL_2");
100 sprintf(histo,
"Ratio_Esummed_ECAL_HCAL_HO_2");
103 sprintf(histo,
"Ratio_Esummed_ECAL_3");
105 sprintf(histo,
"Ratio_Esummed_HCAL_3");
107 sprintf(histo,
"Ratio_Esummed_HO_3");
109 sprintf(histo,
"Ratio_Esummed_ECAL_HCAL_3");
111 sprintf(histo,
"Ratio_Esummed_ECAL_HCAL_HO_3");
114 sprintf(histo,
"Ratio_Esummed_ECAL_4");
116 sprintf(histo,
"Ratio_Esummed_HCAL_4");
118 sprintf(histo,
"Ratio_Esummed_HO_4");
120 sprintf(histo,
"Ratio_Esummed_ECAL_HCAL_4");
122 sprintf(histo,
"Ratio_Esummed_ECAL_HCAL_HO_4");
125 sprintf(histo,
"Ratio_Esummed_HF_5");
127 sprintf(histo,
"Ratio_Esummed_HF_6");
130 sprintf(histo,
"Egen_MC");
142 edm::LogWarning(
"Module named pfclusterAnalyzer") <<
"no HepMCProduct found";
146 double maxPt = -99999.;
149 for (HepMC::GenEvent::particle_const_iterator
p = myGenEvent->particles_begin();
p != myGenEvent->particles_end();
151 double phip = (*p)->momentum().phi();
152 double etap = (*p)->momentum().eta();
153 double pt = (*p)->momentum().perp();
154 double energy = (*p)->momentum().e();
241 const double PI = 3.1415926535898;
242 double deltaphi = phi1 - phi2;
244 deltaphi = phi2 - phi1;
247 deltaphi = 2. * PI - deltaphi;
249 double deltaeta = eta2 -
eta1;
250 double tmp =
sqrt(deltaeta * deltaeta + deltaphi * deltaphi);
255 reco::PFClusterCollection::const_iterator
pf;
256 double sumenergy = 0.;
257 for (pf = pfCluster1->begin(); pf != pfCluster1->end(); ++
pf) {
258 double eta = pf->eta();
259 double phi = pf->phi();
260 double en = pf->energy();
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX)
T getUntrackedParameter(std::string const &, T const &) const
double dR(double eta1, double phi1, double eta2, double phi2)
void analyze(edm::Event const &e, edm::EventSetup const &c) override
PFClusterValidation(edm::ParameterSet const &conf)
MonitorElement * Ratio_Esummed_HO_0
MonitorElement * Ratio_Esummed_ECAL_HCAL_HO_2
MonitorElement * Ratio_Esummed_ECAL_HCAL_1
void setCurrentFolder(std::string const &fullpath)
MonitorElement * Ratio_Esummed_ECAL_2
MonitorElement * Ratio_Esummed_HCAL_1
MonitorElement * Ratio_Esummed_ECAL_HCAL_HO_4
MonitorElement * Ratio_Esummed_ECAL_HCAL_4
MonitorElement * emean_vs_eta_EHFO
MonitorElement * Ratio_Esummed_ECAL_HCAL_HO_0
MonitorElement * Ratio_Esummed_HCAL_0
MonitorElement * Ratio_Esummed_HF_6
MonitorElement * Ratio_Esummed_ECAL_4
MonitorElement * Ratio_Esummed_ECAL_HCAL_0
MonitorElement * emean_vs_eta_HO
MonitorElement * emean_vs_eta_HF
edm::EDGetTokenT< reco::PFClusterCollection > PFClusterHOTok_
edm::EDGetTokenT< reco::PFClusterCollection > PFClusterHCALTok_
MonitorElement * Ratio_Esummed_HF_5
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
#define DEFINE_FWK_MODULE(type)
MonitorElement * Ratio_Esummed_HCAL_2
MonitorElement * Ratio_Esummed_HO_1
MonitorElement * bookProfile(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, char const *option="s")
MonitorElement * Ratio_Esummed_ECAL_HCAL_2
edm::EDGetTokenT< edm::HepMCProduct > tok_evt_
MonitorElement * Ratio_Esummed_HO_2
MonitorElement * Ratio_Esummed_ECAL_HCAL_HO_3
MonitorElement * Ratio_Esummed_ECAL_1
MonitorElement * emean_vs_eta_EH
~PFClusterValidation() override
edm::EDGetTokenT< reco::PFClusterCollection > PFClusterHFTok_
MonitorElement * Ratio_Esummed_HCAL_4
edm::EDGetTokenT< reco::PFClusterCollection > PFClusterECALTok_
const HepMC::GenEvent * GetEvent() const
MonitorElement * Ratio_Esummed_HO_3
MonitorElement * Ratio_Esummed_HCAL_3
MonitorElement * Ratio_Esummed_HO_4
double sumEnergy(edm::Handle< reco::PFClusterCollection > pfCluster1)
MonitorElement * emean_vs_eta_H
MonitorElement * Ratio_Esummed_ECAL_HCAL_3
MonitorElement * Ratio_Esummed_ECAL_HCAL_HO_1
MonitorElement * emean_vs_eta_E
MonitorElement * emean_vs_eta_EHF
MonitorElement * Ratio_Esummed_ECAL_0
MonitorElement * Ratio_Esummed_ECAL_3