42 std::vector<CandidatePtr>::const_iterator itParticle;
43 for (itParticle=ccp.begin();itParticle!=ccp.end();++itParticle){
48 width_ +=
pow(phiangle(castorcand->
phi() - jet.
phi()),2)*castorcand->
energy();
49 fhot_ += castorcand->
fhot()*castorcand->
energy();
55 double Ecell = cell_p->energy();
56 zmean += Ecell*cell_p->z();
57 z2mean += Ecell*cell_p->z()*cell_p->z();
64 depth_ = depth_/jet.
energy();
66 fhot_ = fhot_/jet.
energy();
67 fem_ = emEnergy_/jet.
energy();
69 zmean = zmean/jet.
energy();
70 z2mean = z2mean/jet.
energy();
71 double sigmaz2 = z2mean - zmean*zmean;
72 if(sigmaz2 > 0) sigmaz_ =
sqrt(sigmaz2);
CastorCell_iterator cellsEnd() const
last iterator over CastorCell constituents
double emEnergy() const
tower em energy
CastorCell_iterator cellsBegin() const
fist iterator over CastorCell constituents
Jets made from CaloTowers.
virtual double energy() const
energy
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 energy() const
tower energy
ROOT::Math::PositionVector3D< ROOT::Math::Cartesian3D< double > > XYZPointD
point in space with cartesian internal representation
double fhot() const
tower hotcell/tot ratio
double depth() const
tower depth in z
double hadEnergy() const
tower had energy
virtual double phi() const
momentum azimuthal angle
double phi() const
azimuthal angle of tower centroid
Power< A, B >::type pow(const A &a, const B &b)
virtual Constituents getJetConstituents() const
list of constituents