43 std::vector<CandidatePtr>::const_iterator itParticle;
44 for (itParticle=ccp.begin();itParticle!=ccp.end();++itParticle){
49 width_ +=
pow(phiangle(castorcand->
phi() - jet.
phi()),2)*castorcand->
energy();
50 fhot_ += castorcand->
fhot()*castorcand->
energy();
55 double Erechit = rechit_p->energy();
59 if (module < 3) zrechit = -14390 - 24.75 - 49.5*(module-1);
60 if (module > 2) zrechit = -14390 - 99 - 49.5 - 99*(module-3);
61 zmean += Erechit*zrechit;
62 z2mean += Erechit*zrechit*zrechit;
69 depth_ = depth_/jet.
energy();
71 fhot_ = fhot_/jet.
energy();
72 fem_ = emEnergy_/jet.
energy();
74 zmean = zmean/jet.
energy();
75 z2mean = z2mean/jet.
energy();
76 double sigmaz2 = z2mean - zmean*zmean;
77 if(sigmaz2 > 0) sigmaz_ =
sqrt(sigmaz2);
double emEnergy() const
tower em energy
virtual double energy() const final
energy
virtual double phi() const final
momentum azimuthal angle
CastorRecHitRefs::iterator rechitsBegin() const
fist iterator over CastorRecHit constituents
virtual Constituents getJetConstituents() const
list of constituents
Jets made from CaloTowers.
ProductID id() const
Accessor for product ID.
void calculate(const edm::Event &event, const reco::BasicJet &jet)
double phiangle(double testphi)
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
double fhot() const
tower hotcell/tot ratio
Geom::Phi< T > phi() const
double depth() const
tower depth in z
double hadEnergy() const
tower had energy
CastorRecHitRefs::iterator rechitsEnd() const
last iterator over CastorRecHit constituents
Power< A, B >::type pow(const A &a, const B &b)