34 std::vector<CandidatePtr> ccp =
jet.getJetConstituents();
35 std::vector<CandidatePtr>::const_iterator itParticle;
36 for (itParticle = ccp.begin(); itParticle != ccp.end(); ++itParticle) {
37 const CastorTower* castorcand = dynamic_cast<const CastorTower*>(itParticle->get());
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();
51 int module =
id.module();
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);