16 m_specific (fSpecific)
22 :
Jet (fP4, fVertex, fConstituents),
23 m_specific (fSpecific)
29 :
Jet (fP4,
Point(0,0,0), fConstituents),
30 m_specific (fSpecific)
82 throw cms::Exception(
"Invalid Constituent") <<
"CaloJet constituent is not of CaloTowere type";
94 std::vector <CaloTowerPtr>
result;
109 std::ostringstream
out;
111 <<
" CaloJet specific:" << std::endl
115 <<
" constituent towers area: " <<
towersArea() << std::endl;
116 out <<
" Towers:" << std::endl;
118 for (
unsigned i = 0;
i < towers.size ();
i++) {
119 if (towers[
i].
get ()) {
120 out <<
" #" <<
i <<
" " << *(towers[
i]) << std::endl;
123 out <<
" #" <<
i <<
" tower is not available in the event" << std::endl;
134 std::vector<CaloTowerDetId>
result;
136 for (
unsigned i = 0;
i < towers.size(); ++
i) {
137 result.push_back (towers[
i]->
id());
float hadEnergyInHE() const
float emEnergyInEE() const
Jets made from CaloTowers.
LorentzVector detectorP4() const
detector p4 for full 3d vertex correction.
CandidatePtr daughterPtr(size_type i) const
reference to daughter at given position
virtual const Point & vertex() const
vertex position (overwritten by PF...)
T const * get() const
Returns C++ pointer to the item.
Base class for all types of Jets.
virtual CaloTowerPtr getCaloConstituent(unsigned fIndex) const
Physics Eta (loop over constituents)
std::vector< Constituent > Constituents
float emEnergyInHF() const
virtual std::vector< CaloTowerPtr > getCaloConstituents() const
get all constituents
float hadEnergyInHO() const
virtual CaloJet * clone() const
Polymorphic clone.
daughters dau
collection of references to daughters
virtual size_t numberOfDaughters() const
number of daughters
virtual std::string print() const
Print object.
virtual bool overlap(const Candidate &) const
Polymorphic overlap.
edm::Ptr< CaloTower > CaloTowerPtr
float emEnergyInEB() const
math::XYZPoint Point
point in the space
bool isNonnull() const
Checks for non-null.
virtual std::string print() const
Print object.
LorentzVector physicsP4(const Particle::Point &vertex) const
Physics Eta (use jet Z and kinematics only)
std::vector< CaloTowerDetId > getTowerIndices() const
CaloTowers indexes.
static Candidate::LorentzVector detectorP4(const Candidate::Point &vertex, const Candidate &inParticle)
ProductID id() const
Accessor for product ID.
math::XYZTLorentzVector LorentzVector
Lorentz vector.
float energyFractionHadronic() const
float hadEnergyInHB() const
math::XYZPoint Point
point in the space
static Candidate::LorentzVector physicsP4(const Candidate::Point &newVertex, const Candidate &inParticle, const Candidate::Point &oldVertex=Candidate::Point(0, 0, 0))
float hadEnergyInHF() const
float emEnergyFraction() const