|
ATLAS Offline Software
|
Go to the documentation of this file.
25 declareProperty(
"InnerRadius" ,
m_ri=0. );
26 declareProperty(
"OuterRadius" ,
m_ro=1148. );
40 for(
auto region : m_regionListProperty.value()) {
42 ATH_MSG_ERROR(
"Unknown Region (" << region <<
") specified. Please check your configuration.");
43 return StatusCode::FAILURE;
48 return StatusCode::SUCCESS;
56 return StatusCode::SUCCESS;
63 double r = std::sqrt(t_pos.x()*t_pos.x()+t_pos.y()*t_pos.y()+t_pos.z()*t_pos.z());
66 bool onSurf = (
r>m_ri) && (
r<m_ro);
73 return std::find( m_regionListProperty.begin(),
74 m_regionListProperty.end(),
75 geoID ) != m_regionListProperty.end();
double m_ri
inner cylinder radius
virtual StatusCode initialize() override
virtual const HepMC::FourVector & position() const =0
Return HepMC position of the truth vertex.
std::string find(const std::string &s)
return a remapped string
virtual StatusCode finalize() override
double m_ro
outer cylinder radius
~CylinderVolumeTruthStrategy()
Destructor.
#define ATH_MSG_VERBOSE(x)
CylinderVolumeTruthStrategy(const std::string &t, const std::string &n, const IInterface *p)
Constructor with parameters.
::StatusCode StatusCode
StatusCode definition for legacy code.
IntegerArrayProperty m_regionListProperty
virtual bool pass(ITruthIncident &incident) const override
true if the ITruthStrategy implementation applies to the given ITruthIncident
virtual bool appliesToRegion(unsigned short geoID) const override