34 std::vector<CandidatePtr> ccp =
jet.getJetConstituents();
35 std::vector<CandidatePtr>::const_iterator itParticle;
36 for (itParticle = ccp.begin(); itParticle != ccp.end(); ++itParticle) {
40 depth_ += castorcand->
depth() * castorcand->
energy();
41 width_ +=
pow(phiangle(castorcand->
phi() -
jet.phi()), 2) * castorcand->
energy();
42 fhot_ += castorcand->
fhot() * castorcand->
energy();
49 double Erechit = rechit_p->energy();
54 zrechit = -14390 - 24.75 - 49.5 * (
module - 1);
56 zrechit = -14390 - 99 - 49.5 - 99 * (
module - 3);
57 zmean += Erechit * zrechit;
58 z2mean += Erechit * zrechit * zrechit;
65 depth_ = depth_ /
jet.energy();
66 width_ =
sqrt(width_ /
jet.energy());
67 fhot_ = fhot_ /
jet.energy();
68 fem_ = emEnergy_ /
jet.energy();
70 zmean = zmean /
jet.energy();
71 z2mean = z2mean /
jet.energy();
72 double sigmaz2 = z2mean - zmean * zmean;
74 sigmaz_ =
sqrt(sigmaz2);
ProductID id() const
Accessor for product ID.
CastorRecHitRefs::iterator rechitsBegin() const
fist iterator over CastorRecHit constituents
double depth() const
tower depth in z
Jets made from CaloTowers.
double emEnergy() const
tower em energy
double hadEnergy() const
tower had energy
void calculate(const edm::Event &event, const reco::BasicJet &jet)
double phiangle(double testphi)
double fhot() const
tower hotcell/tot ratio
CastorRecHitRefs::iterator rechitsEnd() const
last iterator over CastorRecHit constituents
double phi() const final
momentum azimuthal angle
Power< A, B >::type pow(const A &a, const B &b)
double energy() const final
energy