 |
ATLAS Offline Software
|
Go to the documentation of this file.
7 #ifndef XAODJET_JETCONSTITUENTSVECTOR_H
8 #define XAODJET_JETCONSTITUENTSVECTOR_H
45 #include "AthLinks/ElementLink.h"
68 double pt()
const {
return Pt();}
74 double m()
const {
return M();}
76 double e()
const {
return E();}
96 const std::string& clsname =
"" )
const;
157 typedef std::vector< ElementLink< IParticleContainer > >
ELvector;
168 size_t size()
const ;
201 const std::vector< ElementLink< IParticleContainer > > *
m_elVector;
212 const std::string& clsname )
const {
213 return m_part->template auxdata<TT>(
name, clsname);
217 #endif // not __GCCXML__
JetConstituent(const IParticle *part=0)
JetConstituent at(size_t i) const
Constituent proxy at position i.
JetConstituent operator[](size_t i) const
Constituent proxy at position i.
const JetConstituent * operator*()
iterator end() const
iterator after the last constituent
JetConstituent back() const
last constituent proxy
bool operator==(const iterator &other) const
virtual Type::ObjectType type() const =0
The type of the object as a simple enumeration.
size_t size() const
number of constituents
bool isValid() const
Check if element links are valid.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
const std::vector< ElementLink< IParticleContainer > > * m_elVector
Class providing the definition of the 4-vector interface.
std::vector< ElementLink< IParticleContainer > >::const_iterator ELiterator
bool empty() const
true if vector is empty()
double phi() const
The azimuthal angle ( ) of the particle.
TLorentzVector FourMom_t
Definition of the 4-momentum type.
iterator begin() const
iterator on the first constituent
const JetConstituent * operator->() const
operator-> allows to use JetConstituentVector with same syntax as vector<IParticle*>
ELiterator m_cachedMomIndex
const IParticle * rawConstituent() const
Access the real underlying IParticle.
JetConstituentVector(const ELvector *elv, JetConstitScale s)
ROOT::Math::LorentzVector< ROOT::Math::PtEtaPhiM4D< double > > JetFourMom_t
Base 4 Momentum type for Jet.
JetConstituent front() const
first constituent proxy
Type::ObjectType type() const
The full 4-momentum of the particle.
std::vector< ElementLink< IParticleContainer > > ELvector
JetConstitScale m_sigState
JetConstitScale m_sigState
const T & auxdata(const std::string &name, const std::string &clsname="") const
Access the underlying IParticle's aux data.
IParticle::FourMom_t FourMom_t
Definition of the 4-momentum type.
double rapidity() const
The true rapidity (y) of the particle.
std::vector< JetConstituent > asSTLVector()
Returns this vector as a std::vector Provided for convenience when dealing with the JetConstituentVec...
std::vector< const IParticle * > asIParticleVector() const
vector of pointer to the underlying IParticles.
bool operator!=(const iterator &other) const
double e() const
The total energy of the particle.
4-vector of jet constituent at the scale used during jet finding.
iterator(ELiterator it, JetConstitScale s)
A vector of jet constituents at the scale used during jet finding.
double eta() const
The pseudorapidity ( ) of the particle.
ObjectType
Type of objects that have a representation in the xAOD EDM.
double m() const
The invariant mass of the particle.
const JetConstituent * operator->()