73 prof_name =
"bcEE_PV";
74 title =
"Basic Clusters EE vs. PV";
79 prof_name =
"scEB_PV";
80 title =
"Super Clusters EB vs. PV";
85 prof_name =
"scEE_PV";
86 title =
"Super Clusters EE vs. PV";
91 prof_name =
"scEtEB_PV";
92 title =
"Super Clusters Et EB vs. PV";
97 prof_name =
"scEtEE_PV";
98 title =
"Super Clusters Et EE vs. PV";
103 prof_name =
"recHitEtEB_PV";
104 title =
"Reconstructed Hit Et EB vs. PV";
109 prof_name =
"recHitEtEE_PV";
110 title =
"Reconstructed Hit Et EE vs. PV";
115 prof_name =
"emIso_PV";
116 title =
"EM Isolation vs. PV";
122 title =
"EM Isolation";
127 prof_name =
"scHitEtEB";
128 title =
"Super Cluster Hit Et EB";
133 prof_name =
"scHitEtEE";
134 title =
"Super Cluster Hit Et EE";
179 prof_name =
"scSigmaIetaIeta_EB";
180 title =
"Super Cluster sigmaIetaIeta EB";
185 prof_name =
"scSigmaIetaIeta_EE";
186 title =
"Super Cluster sigmaIetaIeta EE";
192 prof_name =
"scSigmaIetaIphi_EB";
193 title =
"Super Cluster sigmaIetaIphi EB";
198 prof_name =
"scSigmaIetaIphi_EE";
199 title =
"Super Cluster sigmaIetaIphi EE";
219 prof_name =
"recHitEtEB";
220 title =
"RecHit Et EB";
225 prof_name =
"recHitEtEE";
226 title =
"RecHit Et EE";
238 if (!PVCollection_h.
isValid()) {
243 e.getByToken(
EleTag_, electronCollection_h);
244 if (!electronCollection_h.
isValid()) {
252 if (!basicClusters_EB_h.
isValid()) {
256 bcEB_PV->
Fill(PVCollection_h->size(), basicClusters_EB_h->size());
262 if (!basicClusters_EE_h.
isValid()) {
266 bcEE_PV->
Fill(PVCollection_h->size(), basicClusters_EE_h->size());
271 if (!basicClusters_h.
isValid()) {
308 if (!superClusters_EE_h.
isValid()) {
314 if (electronCollection_h.
isValid()) {
315 for (reco::GsfElectronCollection::const_iterator recoElectron = electronCollection_h->begin();
316 recoElectron != electronCollection_h->end();
318 double IsoEcal = recoElectron->dr03EcalRecHitSumEt();
325 scEE_PV->
Fill(PVCollection_h->size(), superClusters_EE_h->size());
327 for (reco::SuperClusterCollection::const_iterator itSC = superClusters_EE_h->begin();
328 itSC != superClusters_EE_h->end();
330 double scEE_Et = itSC->energy() *
sin(2. * atan(
exp(-itSC->position().eta())));
343 const auto &cov = EcalClusterTools::localCovariances(seedCluster, eeRecHits, p_topology);
345 float sigmaIetaIphi = cov[1];
347 float e3x3 = EcalClusterTools::e3x3(seedCluster, eeRecHits, p_topology);
348 float r9 = e3x3 / itSC->rawEnergy();
365 if (!superClusters_EB_h.
isValid()) {
368 scEB_PV->
Fill(PVCollection_h->size(), superClusters_EB_h->size());
370 for (reco::SuperClusterCollection::const_iterator itSC = superClusters_EB_h->begin();
371 itSC != superClusters_EB_h->end();
373 double scEB_Et = itSC->energy() *
sin(2. * atan(
exp(-itSC->position().eta())));
386 const auto &cov = EcalClusterTools::localCovariances(seedCluster, ebRecHits, p_topology);
388 float sigmaIetaIphi = cov[1];
390 float e3x3 = EcalClusterTools::e3x3(seedCluster, ebRecHits, p_topology);
391 float r9 = e3x3 / itSC->rawEnergy();
403 double RecHitEt_EB = 0;
409 RecHitEt_EB += itr->energy() *
sin(
position.theta());
416 double RecHitEt_EE = 0;
420 RecHitEt_EE += itr->energy() *
sin(
position.theta());