ATLAS Offline Software
Loading...
Searching...
No Matches
MuonSimHit_v1.h
Go to the documentation of this file.
1
2/*
3 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
4*/
5#ifndef XAODMUONSIMHIT_VERSION_MUONSIMHIT_V1_H
6#define XAODMUONSIMHIT_VERSION_MUONSIMHIT_V1_H
7
9
10#include <Identifier/Identifier.h>
14
15namespace xAOD {
16
17
19 public:
20
21 MuonSimHit_v1() = default;
23
28
33
35 float stepLength() const;
37 void setStepLength(const float length);
39 float mass() const;
41 void setMass(const float m);
43 float kineticEnergy() const;
45 void setKineticEnergy(const float energy);
47 float beta() const;
49 float globalTime() const;
51 void setGlobalTime(const float time);
52
54 int pdgId() const;
55 int pdg_id() const {return pdgId();}; // alternate interface to match other EDM classes
57 void setPdgId(int id);
58
60 Identifier identify() const;
62 void setIdentifier(const Identifier& id);
63
65 float energyDeposit() const;
67 void setEnergyDeposit(const float deposit);
68
69
70
74 void setGenParticleLink(const HepMcParticleLink& link);
75private:
77};
78}
81#endif
Cached unique_ptr with atomic update.
std::vector< size_t > vec
An STL vector of pointers that by default owns its pointed-to elements.
#define DATAVECTOR_BASE(T, BASE)
Declare base class info to DataVector.
Definition DataVector.h:649
double length(const pvec &v)
Base class for elements of a container that can have aux data.
Definition AuxElement.h:483
void setGenParticleLink(const HepMcParticleLink &link)
Sets the link to the HepMC particle producing this hit.
void setGlobalTime(const float time)
Sets the time of the traversing particle.
CxxUtils::CachedUniquePtr< HepMcParticleLink > m_hepMCLink
void setLocalDirection(MeasVector< 3 > vec)
Sets the local direction of the traversing particle.
void setEnergyDeposit(const float deposit)
Sets the energy deposited by the traversing particle inside the gas volume.
void setMass(const float m)
set the rest-mass of the traversing particle
ConstVectorMap< 3 > localDirection() const
Returns the local direction of the traversing particle.
int pdgId() const
Returns the pdgID of the traversing particle.
float beta() const
returns beta (fraction of speed of light)
void setIdentifier(const Identifier &id)
Sets the global ATLAS identifier.
float mass() const
Returns the rest-mass of the traversing particle.
float stepLength() const
Returns the path length of the G4 step.
void setStepLength(const float length)
Set the path length of the G4 step.
Identifier identify() const
Returns the global ATLAS identifier of the SimHit.
float energyDeposit() const
Returns the energy deposited by the traversing particle inside the gas volume.
ConstVectorMap< 3 > localPosition() const
Returns the local postion of the traversing particle.
void setKineticEnergy(const float energy)
Sets the kinetic energy of the traversing particle.
const HepMcParticleLink & genParticleLink() const
Returns the link to the HepMC particle producing this hit.
MuonSimHit_v1 & operator=(const MuonSimHit_v1 &other)
void setLocalPosition(MeasVector< 3 > vec)
Sets the local position of the traversing particle.
void setPdgId(int id)
Sets the pdgID of the traversing particle.
MuonSimHit_v1()=default
float kineticEnergy() const
Returns the kinetic energy of the traversing particle.
float globalTime() const
Returns the time ellapsed since the collision of the traversing particle.
CachedUniquePtrT< const T > CachedUniquePtr
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Eigen::Matrix< float, N, 1 > MeasVector
Abrivation of the Matrix & Covariance definitions.
Eigen::Map< const MeasVector< N > > ConstVectorMap