48 return p4().Rapidity();
61 return Type::Particle;
102 acc( *
this ) = value;
122 tracksAcc( *this ).push_back( newTrack );
148 if( ! link.isValid() ) {
Header file for AFPProton_v1 class representing a reconstructed proton measured in AFP detectors.
#define AUXSTORE_PRIMITIVE_GETTER_WITH_CAST(CL, PERSTYPE, TRANSTYPE, NAME)
Macro creating a getter function with a type conversion.
#define AUXSTORE_PRIMITIVE_GETTER(CL, TYPE, NAME)
Macro creating the reader function for a primitive auxiliary property.
#define AUXSTORE_PRIMITIVE_SETTER_AND_GETTER(CL, TYPE, NAME, SETTER)
Macro creating the accessors of primitive auxiliary properties.
Class representing a proton reconstructed in AFP.
void setPxPyPzE(float px, float py, float pz, float e)
Set the 4-momentum.
virtual double pt() const
The transverse momentum ( ) of the particle.
float pz() const
Get the z-component of the momentum.
void setE(float e)
Set the energy.
AFPProton_v1()
Default constructor.
void setPz(float pz)
Set the z-component of the momentum.
virtual double phi() const
The azimuthal angle ( ) of the particle (has range to .)
const AFPTrack * track(size_t index) const
Get one of the tracks that was used to reconstruct the proton.
virtual double m() const
The invariant mass of the particle.
virtual double rapidity() const
The true rapidity (y) of the particle.
void addAFPTrackLink(const AFPTrackLink_t &newTrack)
Add a link to a tracks used to reconstruct the proton.
void setPx(float px)
Set the x-component of the momentum.
virtual FourMom_t p4() const
The full 4-momentum of the particle.
float py() const
Get the y-component of the momentum.
virtual double eta() const
The pseudorapidity ( ) of the particle.
IParticle::FourMom_t FourMom_t
Definition of the 4-momentum type.
virtual double e() const
The total energy of the particle.
virtual Type::ObjectType type() const
The type of the object as a simple enumeration.
void setPy(float py)
Set the y-component of the momentum.
float px() const
Get the x-component of the momentum.
ElementLink< AFPTrackContainer > AFPTrackLink_t
Type of the track links.
size_t nTracks() const
Get the number of tracks that were used to reconstruct the proton.
SG::Accessor< T, ALLOC > Accessor
double chi2(TH1 *h0, TH1 *h1)
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
static setAFPTrackLinks const SG::AuxElement::Accessor< std::vector< AFPProton_v1::AFPTrackLink_t > > tracksAcc("afpTrackLinks")
Helper variable.
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER(BTagging_v1, float, IP2D_pb, setIP2D_pb) AUXSTORE_PRIMITIVE_SETTER_AND_GETTER(BTagging_v1
static const SG::AuxElement::Accessor< ElementLink< IParticleContainer > > acc("originalObjectLink")
Object used for setting/getting the dynamic decoration in question.
AUXSTORE_OBJECT_SETTER_AND_GETTER(CaloRings_v1, RingSetLinks, ringSetLinks, setRingSetLinks) unsigned CaloRings_v1