17 m_specific (fSpecific)
23 :
Jet (fP4, fVertex, fConstituents),
24 m_specific (fSpecific)
30 :
Jet (fP4,
Point(0,0,0), fConstituents),
31 m_specific (fSpecific)
43 if (!result)
throw cms::Exception(
"Invalid Constituent") <<
"GenJet constituent is not of the type GenParticle";
51 for (; --index >= 0 && daugh !=
end (); daugh++) {}
52 if (daugh !=
end ()) {
60 std::vector <const GenParticle*>
result;
74 std::ostringstream
out;
76 <<
" GenJet specific:" << std::endl
77 <<
" em/had/invisible/aux energies: "
79 out <<
" MC particles:" << std::endl;
81 for (
unsigned i = 0;
i < mcparts.size ();
i++) {
84 out <<
" #" <<
i <<
" PDG code:" << mcpart->
pdgId()
85 <<
", p/pt/eta/phi: " << mcpart->
p() <<
'/' << mcpart->
pt() <<
'/' << mcpart->
eta() <<
'/' << mcpart->
phi() << std::endl;
88 out <<
" #" <<
i <<
" No information about constituent" << std::endl;
float auxiliaryEnergy() const
static float detectorEta(float fZVertex, float fPhysicsEta)
static function to convert physics eta to detector eta
virtual double p() const GCC11_FINAL
magnitude of momentum vector
virtual int pdgId() const GCC11_FINAL
PDG identifier.
Base class for all types of Jets.
std::vector< Constituent > Constituents
float detectorEta(float fZVertex) const
Detector Eta (use reference Z and jet kinematics only)
virtual float phi() const GCC11_FINAL
momentum azimuthal angle
virtual bool hasMasterClone() const =0
virtual size_t numberOfDaughters() const
number of daughters
virtual std::string print() const
Print object.
Jets made from MC generator particles.
virtual std::vector< const GenParticle * > getGenConstituents() const
get all constituents
float invisibleEnergy() const
virtual float eta() const GCC11_FINAL
momentum pseudorapidity
virtual const_iterator begin() const
first daughter const_iterator
math::XYZTLorentzVector LorentzVector
Lorentz vector.
virtual bool overlap(const Candidate &) const
Polymorphic overlap.
virtual const GenParticle * getGenConstituent(unsigned fIndex) const
get specific constituent
virtual const_iterator end() const
last daughter const_iterator
math::XYZPoint Point
point in the space
static const GenParticle * genParticle(const reco::Candidate *fConstituent)
convert generic constituent to specific type
virtual GenJet * clone() const
Polymorphic clone.
virtual std::string print() const
Print object.
virtual float pt() const GCC11_FINAL
transverse momentum
value_type const * get() const
virtual const CandidateBaseRef & masterClone() const =0