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;
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();