Go to the documentation of this file.
33 ev.getByLabel(redEBRecHits, pEBRecHits);
39 ev.getByLabel(redEERecHits, pEERecHits);
52 float seedBCEnergy = (scluster.
seed())->
energy();
68 if ((*bcIt)->energy() >
69 sqrt(eSeed * eSeed +
xi *
xi * seedBCEnergy * seedBCEnergy / cosh((*bcIt)->eta()) / cosh((*bcIt)->eta()))) {
80 ClusterE += (*bcIt)->energy();
81 posX += (*bcIt)->energy() * (*bcIt)->position().X();
82 posY += (*bcIt)->energy() * (*bcIt)->position().Y();
83 posZ += (*bcIt)->energy() * (*bcIt)->position().Z();
112 std::cout <<
"The seed crystal of this SC is neither in EB nor in EE. This is a problem. Bailing out " << std::endl;
T const * product() const
T const * product() const
const CaloSubdetectorGeometry * getSubdetectorGeometry(const DetId &id) const
access the subdetector geometry for the given subdetector directly
void push_back(Ptr< T > const &iPtr)
XYZPointD XYZPoint
point in space with cartesian internal representation
const CaloClusterPtr & seed() const
seed BasicCluster
CaloCluster_iterator clustersBegin() const
fist iterator over BasicCluster constituents
double preshowerEnergy() const
energy deposited in preshower
void Calculate_Covariances(const reco::SuperCluster &passedCluster)
CaloCluster_iterator clustersEnd() const
last iterator over BasicCluster constituents