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)
42 if (!result)
throw cms::Exception(
"Invalid Constituent") <<
"GenJet constituent is not of the type GenParticle";
50 for (; --index >= 0 && daugh !=
end (); daugh++) {}
51 if (daugh !=
end ()) {
59 std::vector <const GenParticle*>
result;
73 std::ostringstream
out;
75 <<
" GenJet specific:" << std::endl
76 <<
" em/had/invisible/aux energies: "
78 out <<
" MC particles:" << std::endl;
80 for (
unsigned i = 0;
i < mcparts.size ();
i++) {
83 out <<
" #" <<
i <<
" PDG code:" << mcpart->
pdgId()
84 <<
", p/pt/eta/phi: " << mcpart->
p() <<
'/' << mcpart->
pt() <<
'/' << mcpart->
eta() <<
'/' << mcpart->
phi() << std::endl;
87 out <<
" #" <<
i <<
" No information about constituent" << std::endl;
value_type const * get() const
static float detectorEta(float fZVertex, float fPhysicsEta)
static function to convert physics eta to detector eta
float auxiliaryEnergy() const
Base class for all types of Jets.
virtual double phi() const final
momentum azimuthal angle
std::vector< Constituent > Constituents
float detectorEta(float fZVertex) const
Detector Eta (use reference Z and jet kinematics only)
virtual bool hasMasterClone() const =0
virtual size_t numberOfDaughters() const
number of daughters
virtual std::string print() const
Print object.
virtual std::string print() const
Print object.
const_iterator end() const
last daughter const_iterator
Jets made from MC generator particles.
virtual std::vector< const GenParticle * > getGenConstituents() const
get all constituents
float invisibleEnergy() const
math::XYZTLorentzVector LorentzVector
Lorentz vector.
virtual double p() const final
magnitude of momentum vector
virtual int pdgId() const final
PDG identifier.
virtual bool overlap(const Candidate &) const
Polymorphic overlap.
virtual const GenParticle * getGenConstituent(unsigned fIndex) const
get specific constituent
const_iterator begin() const
first 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 double eta() const final
momentum pseudorapidity
virtual double pt() const final
transverse momentum
virtual const CandidateBaseRef & masterClone() const =0