31 if(
this == &o)
return *
this;
68 return jetP4().Rapidity();
73 return FourMom_t(p.Px(), p.Py(), p.Pz(), p.E() );
120 int idx = c->index();
126 el.toIndexedElement( *(
dynamic_cast< const IParticleContainer*
>( c->container() ) ), c->index() );
187 std::cerr <<
" Error p4(P4SignalState) unknown state "<< s << std::endl;
210 std::cerr <<
" Error p4(P4SignalState) unknown state "<< s << std::endl;
217 if(statename==
"JetAssignedScaleMomentum")
return jetP4();
222 return jetP4(statename);
std::vector< size_t > vec
This header defines wrapper classes around SG::AuxElement::Accessor used internally in the Jet EDM.
void makePrivateStore()
Create a new (empty) private store for this object.
bool hasStore() const
Return true if this object has an associated store.
SG::Accessor< T, ALLOC > Accessor
const SG::AuxVectorData * container() const
Return the container holding this element.
virtual FastJetLinkBase * clone()
IParticle & operator=(const IParticle &)=default
Specialiazed accessor for JetFourMom_t : internally stores the JetFourMom_t as 4 floats in the Aux St...
A vector of jet constituents at the scale used during jet finding.
void reset()
Function making sure that the object is ready for persistification.
FastJetLinkBase * m_fastJetLink
Pointer to the fastjet object this jet is build from.
virtual double phi() const
The azimuthal angle ( ) of the particle.
void setAlgorithmType(JetAlgorithmType::ID a)
void setAttribute(const std::string &name, const T &v)
JetAlgorithmType::ID getAlgorithmType() const
void addConstituent(const ElementLink< IParticleContainer > &link, float weight=1.0)
Add a constituent directly in the ElementLink format.
size_t numConstituents() const
Number of constituents in this jets (this is valid even when reading a file where the constituents ha...
virtual FourMom_t p4() const
The full 4-momentum of the particle.
JetFourMom_t genvecP4() const
The full 4-momentum of the particle : internal jet type (same).
const std::vector< ElementLink< IParticleContainer > > & constituentLinks() const
Direct access to constituents. WARNING expert use only.
void setJetP4(const JetFourMom_t &p4)
JetConstitScale getConstituentsSignalState() const
The state at which constituents were when this jet was found.
void setConstituentsSignalState(JetConstitScale t)
Set the state at which constituents were when this jet was found. This function is called by jet buil...
float py() const
The y-component of the jet's momentum.
JetConstituentVector getConstituents() const
Return a vector of consituents. The object behaves like vector<const IParticle*>. See JetConstituentV...
virtual double pt() const
The transverse momentum ( ) of the particle.
virtual double rapidity() const
The true rapidity (y) of the particle.
float px() const
The x-component of the jet's momentum.
float getSizeParameter() const
IParticle::FourMom_t FourMom_t
Definition of the 4-momentum type.
const fastjet::PseudoJet * getPseudoJet() const
float pz() const
The z-component of the jet's momentum.
const IParticle * rawConstituent(size_t i) const
Direct access to constituents. WARNING expert use only.
void setSizeParameter(float p)
virtual double m() const
The invariant mass of the particle.
bool getAttribute(AttributeID type, T &value) const
Retrieve attribute moment by enum.
void setInputType(JetInput::Type t)
JetInput::Type getInputType() const
Jet_v1()
Default constructor.
Jet_v1 & operator=(const Jet_v1 &other)
virtual double eta() const
The pseudorapidity ( ) of the particle.
virtual double e() const
The total energy of the particle.
JetFourMom_t jetP4() const
The full 4-momentum of the particle : internal jet type.
virtual Type::ObjectType type() const
The type of the object as a simple enumeration.
ID
//////////////////////////////////////// JetAlgorithmType::ID defines most common physics jet finding...
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
static const SG::AuxElement::Accessor< int > constitScaleAcc("ConstituentScale")
static const JetAttributeAccessor::AccessorWrapper< JetFourMom_t > jetConstitScaleAcc("JetConstitScaleMomentum")
static const JetAttributeAccessor::AccessorWrapper< JetFourMom_t > jetEMScaleAcc("JetEMScaleMomentum")
static const SG::AuxElement::Accessor< int > algAcc("AlgorithmType")
static const SG::AuxElement::Accessor< std::vector< ElementLink< IParticleContainer > > > constituentAcc("constituentLinks")
The accessor for the cluster element links.
static const SG::AuxElement::Accessor< float > spAcc("SizeParameter")
static const SG::AuxElement::Accessor< std::vector< float > > constituentWeightAcc("constituentWeights")
@ JetAssignedScaleMomentum
@ JetConstitScaleMomentum
static const JetAttributeAccessor::AccessorWrapper< JetFourMom_t > momentumAcc
DataVector< IParticle > IParticleContainer
Simple convenience declaration of IParticleContainer.
static const SG::AuxElement::Accessor< int > inputAcc("InputType")
ROOT::Math::LorentzVector< ROOT::Math::PtEtaPhiM4D< double > > JetFourMom_t
Base 4 Momentum type for Jet.