92 setNTRTHiThresholdHits )
126 return std::abs( trkEtaAtCalo() - caloEta() );
132 if( ! ( result <
M_PI ) ) {
133 result = 2 *
M_PI - result;
165 static const Accessor< EMClusterLink_t >
acc(
"emClusterLink" );
168 if( !
acc.isAvailable( *
this ) ) {
174 if( !
link.isValid() ) {
198 static const Accessor< TrackParticleLink_t >
acc(
"trackParticleLink" );
201 if( !
acc.isAvailable( *
this ) ) {
207 if( !
link.isValid() ) {
218 setTrackParticleLink )
236 const EMClusterLink_t& clLink,
277 if( tpPtr->summaryValue( TRTThresholdhits,
290 if( clLink.isValid() ) {
305 const float cl_EThad = clPtr->
ehad1() / std::cosh(
caloEta() );
334 const float tmp_cl_energy = clPtr->
energy();
336 if( std::abs( tmp_cl_energy ) > 0.00001 ) {
338 const float cl_e_frac_S0 =
339 ( clPtr->
energy( CaloSampling::PreSamplerB ) +
340 clPtr->
energy( CaloSampling::PreSamplerE ) ) / tmp_cl_energy;
341 setF0( cl_e_frac_S0 );
343 const float cl_e_frac_S1 =
344 ( clPtr->
energy( CaloSampling::EMB1 ) +
345 clPtr->
energy( CaloSampling::EME1 ) ) / tmp_cl_energy;
346 setF1( cl_e_frac_S1 );
348 const float cl_e_frac_S2 =
349 ( clPtr->
energy( CaloSampling::EMB2 ) +
350 clPtr->
energy( CaloSampling::EME2 ) ) / tmp_cl_energy;
351 setF2( cl_e_frac_S2 );
353 const float cl_e_frac_S3 =
354 ( clPtr->
energy( CaloSampling::EMB3 ) +
355 clPtr->
energy( CaloSampling::EME3 ) ) / tmp_cl_energy;
356 setF3( cl_e_frac_S3 );
#define AUXSTORE_PRIMITIVE_GETTER_WITH_CAST(CL, PERSTYPE, TRANSTYPE, NAME)
Macro creating a getter function with a type conversion.
#define AUXSTORE_PRIMITIVE_SETTER_WITH_CAST(CL, PERSTYPE, TRANSTYPE, NAME, SETTER)
Macro creating a setter function with a type conversion.
#define AUXSTORE_PRIMITIVE_SETTER_AND_GETTER(CL, TYPE, NAME, SETTER)
Macro creating the accessors of primitive auxiliary properties.
#define AUXSTORE_OBJECT_SETTER_AND_GETTER(CL, TYPE, NAME, SETTER)
Macro creating the accessors of complex auxiliary properties.
INav4MomToTrackParticleAssocs::asso_link TrackParticleLink_t
bool isValid() const
Check if the element can be found.
float ehad1() const
get hadronic Energy (first hadronic layer)
float emaxs1() const
get maximum energy in sampling 1 (strip layer)
float eta() const
get Eta (calibrated)
float e2tsts1() const
get second maximum energy in sampling 1 (strip layer)
float energy() const
get Energy (calibrated)
float phi() const
get Phi (calibrated)
float e277() const
get Energy in a 7x7 cluster (no calibration) around hottest cell
float et() const
get Et (calibrated)
float e237() const
get Energy in a 3x7 cluster (no calibration) around hottest cell
TLorentzVector FourMom_t
Definition of the 4-momentum type.
Class describing an electron reconstructed in the HLT.
virtual FourMom_t p4() const
The full 4-momentum of the particle.
const TrigEMCluster * emCluster() const
The associated EM cluster, as a simple pointer.
void setEratio(float eratio)
Documentation to be added.
void setNTRTHiThresholdHits(int nTRTHiThresholdHits)
Set the number of high-threshold TRT hits used in the reconstruction.
ROOT::Math::LorentzVector< ROOT::Math::PtEtaPhiM4D< double > > GenVecFourMom_t
Base 4 Momentum type for egamma.
float trkEtaAtCalo() const
Get the track's pseudorapidity extrapolated to the calorimeter.
virtual double phi() const
The azimuthal angle ( ) of the particle.
void setZvtx(float zVtx)
Set the Z position of the vertex that the electron is associated to.
float trkPhiAtCalo() const
Get the track's azimuthal angle extrapolated to the calorimeter.
void setCaloEta(float caloEta)
Set the pseudorapidity ( ) of the electron in the calorimeter.
virtual double rapidity() const
The true rapidity (y) of the particle.
void setF0(float value)
Documentation to be added.
virtual double e() const
The total energy of the particle.
float etOverPt() const
Get for the electron.
void setEtOverPt(float etOverpt)
Set for the electron.
void setF3(float value)
Documentation to be added.
ElementLink< TrackParticleContainer > TrackParticleLink_t
The type of the track particle link.
void setTrkPhiAtCalo(float trPhi)
Set the track's azimuthal angle extrapolated to the calorimeter.
void setTrkEtaAtCalo(float trEta)
Set the track's pseudorapidity extrapolated to the calorimeter.
virtual double eta() const
The pseudorapidity ( ) of the particle.
void setF2(float value)
Documentation to be added.
void setF1(float value)
Documentation to be added.
void setNTRTHits(int nTRTHits)
Set the number of TRT hits that were used in the reconstruction.
void setTrackParticleLink(const TrackParticleLink_t &value)
Set the ElementLink pointing to the track particle constituent.
void setEmClusterLink(const EMClusterLink_t &value)
Set the ElementLink pointing to the EM cluster constituent.
ElementLink< TrigEMClusterContainer > EMClusterLink_t
Type of the EM cluster link.
virtual double pt() const
The transverse momentum ( ) of the particle.
float caloEta() const
Pseudorapidity ( ) of the electron in the calorimeter.
void setRcore(float rcore)
Documentation to be added.
void setCaloPhi(float caloPhi)
Set the azimuthal angle ( ) of the electron in the calorimeter.
const TrackParticle * trackParticle() const
The associated track particle, as a simple pointer.
void setRoiWord(uint32_t roi)
Set the RoI word that seeded the reconstruction of this object.
void init(uint32_t roi, float trkEtaAtCalo, float trkPhiAtCalo, float etOverPt, const EMClusterLink_t &clLink, const TrackParticleLink_t &tpLink)
Initialisation function, setting most properties of the object.
void setCharge(float charge)
Set the charge of the electron.
virtual double m() const
The invariant mass of the particle.
void setPt(double pt)
Set the transverse momentum ( ) of the electron.
void setEtHad(float etHad)
Documentation to be added.
TrigElectron_v1()
Default constructor.
void setEtHad1(float etHad1)
Documentation to be added.
float caloPhi() const
Azimuthal angle ( ) of the electron in the calorimeter.
float trkClusDphi() const
The absolute value of the track-calo phi measurement difference.
GenVecFourMom_t genvecP4() const
The full 4-momentum of the particle : internal egamma type.
pointer & link(pointer p) const
Return a reference to the link for an element.
@ e237
uncalibrated energy (sum of cells) of the middle sampling in a rectangle of size 3x7
@ emaxs1
energy of strip with maximal energy deposit
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
setCharge nTRTHiThresholdHits
setRcore setEtHad setFside pt
TrackParticle_v1 TrackParticle
Reference the current persistent version:
setEt setPhi setE277 setWeta2 setEta1 e2tsts1
setRcore setEtHad setFside setPt caloPhi
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER(BTagging_v1, float, IP2D_pb, setIP2D_pb) AUXSTORE_PRIMITIVE_SETTER_AND_GETTER(BTagging_v1
TrigEMCluster_v1 TrigEMCluster
Define the latest version of the trigger EM cluster class.
setCharge setNTRTHiThresholdHits setEratio etHad1
setCharge setNTRTHiThresholdHits setEratio setEtHad1 trkPhiAtCalo
@ numberOfTRTHits
number of TRT hits [unit8_t].
@ numberOfTRTHighThresholdHits
number of TRT hits which pass the high threshold (only xenon counted) [unit8_t].
setCharge setNTRTHiThresholdHits eratio
static const SG::AuxElement::Accessor< ElementLink< IParticleContainer > > acc("originalObjectLink")
Object used for setting/getting the dynamic decoration in question.