29 if( !container() && !hasStore() ){
62 const static ConstAccessor< float >
acc(
"eta" );
68 const static Accessor< float >
acc(
"eta" );
75 const static ConstAccessor< float >
acc(
"phi" );
81 const static Accessor< float >
acc(
"phi" );
87 const static ConstAccessor< float >
acc(
"deta" );
93 const static Accessor< float >
acc(
"deta" );
99 const static ConstAccessor< float >
acc(
"dphi" );
105 const static Accessor< float >
acc(
"dphi" );
111 const static ConstAccessor< int >
acc(
"Id" );
117 const static Accessor< int >
acc(
"Id" );
123 const static ConstAccessor< int >
acc(
"sampling" );
129 const static Accessor< int >
acc(
"sampling" );
136 const static ConstAccessor< float >
acc(
"et" );
142 const static Accessor< float >
acc(
"et" );
148 return static_cast< double >(
et() );
163 return p4().Rapidity();
169 double PT = (
pt() > 0) ? 1000. *
static_cast< double >(
pt() ) : 0.01;
170 p4.SetPtEtaPhiM( PT ,
eta() ,
phi() ,
m() );
#define AUXSTORE_OBJECT_SETTER_AND_GETTER(CL, TYPE, NAME, SETTER)
Macro creating the accessors of complex auxiliary properties.
IParticle & operator=(const IParticle &)=default
Description of JGTower_v1.
virtual double e() const final
The total energy of the particle.
virtual double phi() const final
The azimuthal angle ( ) of the particle.
JGTower_v1 & operator=(const JGTower_v1 &other)
Assignment operator.
virtual double et() const final
virtual double dphi() const final
The azimuthal angle ( ) of the particle.
virtual double pt() const final
The transverse momentum ( ) of the particle.
virtual int sampling() const final
virtual double rapidity() const final
The true rapidity (y) of the particle.
virtual double deta() const final
The pseudorapidity ( ) of the particle.
IParticle::FourMom_t FourMom_t
Definition of the 4-momentum type.
JGTower_v1()
Default constructor.
virtual FourMom_t p4() const final
The full 4-momentum of the particle as a TLoretzVector.
virtual double m() const final
The invariant mass of the particle.
virtual int Id() const final
get coolId
virtual double eta() const final
The pseudorapidity ( ) of the particle.
virtual void initialize(const int Id, const float Eta, const float Phi, const float Et)
virtual Type::ObjectType type() const final
The type of the object as a simple enumeration, remains pure virtual in e/gamma.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
static const SG::AuxElement::Accessor< ElementLink< IParticleContainer > > acc("originalObjectLink")
Object used for setting/getting the dynamic decoration in question.