|
ATLAS Offline Software
|
#include <HoleSearchValidation.h>
|
| HoleSearchValidation (const std::string &name, ISvcLocator *pSvcLocator) |
| Standard Athena-Algorithm Constructor. More...
|
|
| ~HoleSearchValidation () |
| Default Destructor. More...
|
|
StatusCode | initialize () |
| standard Athena-Algorithm method More...
|
|
StatusCode | execute (const EventContext &ctx) const |
| standard Athena-Algorithm method More...
|
|
StatusCode | finalize () |
| standard Athena-Algorithm method More...
|
|
virtual StatusCode | sysInitialize () override |
| Override sysInitialize. More...
|
|
virtual bool | isClonable () const override |
| Specify if the algorithm is clonable. More...
|
|
virtual unsigned int | cardinality () const override |
| Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant. More...
|
|
virtual StatusCode | sysExecute (const EventContext &ctx) override |
| Execute an algorithm. More...
|
|
virtual const DataObjIDColl & | extraOutputDeps () const override |
| Return the list of extra output dependencies. More...
|
|
virtual bool | filterPassed (const EventContext &ctx) const |
|
virtual void | setFilterPassed (bool state, const EventContext &ctx) const |
|
ServiceHandle< StoreGateSvc > & | evtStore () |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | evtStore () const |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | detStore () const |
| The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
virtual StatusCode | sysStart () override |
| Handle START transition. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | inputHandles () const override |
| Return this algorithm's input handles. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | outputHandles () const override |
| Return this algorithm's output handles. More...
|
|
Gaudi::Details::PropertyBase & | declareProperty (Gaudi::Property< T > &t) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc="none") |
| Declare a new Gaudi property. More...
|
|
void | updateVHKA (Gaudi::Details::PropertyBase &) |
|
MsgStream & | msg () const |
|
MsgStream & | msg (const MSG::Level lvl) const |
|
bool | msgLvl (const MSG::Level lvl) const |
|
Definition at line 52 of file HoleSearchValidation.h.
◆ StoreGateSvc_t
◆ HoleSearchValidation()
HoleSearchValidation::HoleSearchValidation |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
Standard Athena-Algorithm Constructor.
Definition at line 30 of file HoleSearchValidation.cxx.
84 m_trackStats = std::vector< std::vector< unsigned int> >(0, std::vector< unsigned int>(0));
◆ ~HoleSearchValidation()
HoleSearchValidation::~HoleSearchValidation |
( |
| ) |
|
|
default |
◆ cardinality()
unsigned int AthReentrantAlgorithm::cardinality |
( |
| ) |
const |
|
overridevirtualinherited |
Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant.
Override this to return 0 for reentrant algorithms.
Override this to return 0 for reentrant algorithms.
Definition at line 55 of file AthReentrantAlgorithm.cxx.
◆ declareGaudiProperty() [1/4]
specialization for handling Gaudi::Property<SG::VarHandleKeyArray>
Definition at line 170 of file AthCommonDataStore.h.
175 hndl.documentation());
◆ declareGaudiProperty() [2/4]
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
161 hndl.documentation());
◆ declareGaudiProperty() [3/4]
specialization for handling Gaudi::Property<SG::VarHandleBase>
Definition at line 184 of file AthCommonDataStore.h.
189 hndl.documentation());
◆ declareGaudiProperty() [4/4]
◆ declareProperty() [1/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleBase
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 245 of file AthCommonDataStore.h.
250 this->declare(hndl.
vhKey());
251 hndl.
vhKey().setOwner(
this);
◆ declareProperty() [2/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleKey
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 221 of file AthCommonDataStore.h.
◆ declareProperty() [3/6]
◆ declareProperty() [4/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This is the generic version, for types that do not derive from SG::VarHandleKey
. It just forwards to the base class version of declareProperty
.
Definition at line 333 of file AthCommonDataStore.h.
◆ declareProperty() [5/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This dispatches to either the generic declareProperty
or the one for VarHandle/Key/KeyArray.
Definition at line 352 of file AthCommonDataStore.h.
◆ declareProperty() [6/6]
◆ detStore()
◆ doHoleSearch()
unsigned int HoleSearchValidation::doHoleSearch |
( |
const Trk::Track * |
track | ) |
const |
|
private |
Definition at line 476 of file HoleSearchValidation.cxx.
479 unsigned int nHoles(0);
481 std::unique_ptr<const Trk::TrackStates> holesOnTrack
488 nHoles = holesOnTrack->size();
491 it!=holesOnTrack->end(); ++
it) {
493 ATH_MSG_WARNING(
"TrackStateOnSurface from hole search tool == Null" ) ;
◆ evtStore() [1/2]
◆ evtStore() [2/2]
◆ execute()
StatusCode HoleSearchValidation::execute |
( |
const EventContext & |
ctx | ) |
const |
standard Athena-Algorithm method
Definition at line 151 of file HoleSearchValidation.cxx.
155 CLHEP::HepRandomEngine* engine = wrapper->
getEngine (ctx);
157 std::array<bool,Parts::kNParts> remove_parts{};
163 std::unique_ptr<TrackCollection> newTrackCollection(
m_saveNewTracksInSG ? std::make_unique<TrackCollection>() :
nullptr );
167 if (!tracks.isValid()) {
169 return StatusCode::FAILURE;
174 for ( ; trackIterator < tracks->end(); ++trackIterator) {
175 if (!((*trackIterator))) {
183 ATH_MSG_DEBUG(
"Perform hole search on unmodified track (" << *trackIterator <<
")"
184 <<
" which contains " << tsos->
size() <<
" track states" ) ;
188 auto vecTsos = std::make_unique<Trk::TrackStates>();
194 unsigned int nRemoved = 0;
196 std::vector< unsigned int > pixelHitsPerLayer = std::vector< unsigned int>(3);
197 std::vector< unsigned int > sctHitsPerLayer = std::vector< unsigned int>(9);
201 int maxPixelLayerBarrel = -1;
202 int maxPixelLayerEndcap = -1;
203 int maxSctLayerBarrel = -1;
204 int maxSctLayerEndcap = -1;
207 ATH_MSG_VERBOSE(
"Parsing track first to find end layers and maximal numbers" ) ;
208 for ( ; iTsos != iTsosEnd ; ++iTsos) {
221 maxPixelLayerBarrel = plLayer > maxPixelLayerBarrel ? plLayer : maxPixelLayerBarrel;
223 maxPixelLayerEndcap = plLayer > maxPixelLayerEndcap ? plLayer : maxPixelLayerEndcap;
229 maxSctLayerBarrel = plLayer > maxSctLayerBarrel ? plLayer : maxSctLayerBarrel;
231 maxSctLayerEndcap = plLayer > maxSctLayerEndcap ? plLayer : maxSctLayerEndcap;
236 maxPixelLayerBarrel = maxSctLayerBarrel > 0 ? -1 : maxPixelLayerBarrel;
237 maxPixelLayerEndcap = maxSctLayerEndcap > 0 ? -1 : maxPixelLayerEndcap;
239 iTsos = tsos->
begin();
243 for ( ; iTsos != iTsosEnd ; ++iTsos) {
250 unsigned int randomHoles = 0;
254 ATH_MSG_VERBOSE(
"Random mode chosen: will create " << randomHoles <<
" holes on the track.");
257 unsigned int maxPixel = maxPixelLayerBarrel > maxPixelLayerEndcap
258 ? maxPixelLayerBarrel : maxPixelLayerEndcap;
260 unsigned int maxSct = maxSctLayerBarrel > maxSctLayerEndcap
261 ? maxSctLayerBarrel : maxSctLayerEndcap;
263 int maxHit = maxPixel + maxSct;
264 int holesTriggered = 0;
267 for (
unsigned int ihole = 0; ihole < randomHoles && holesTriggered <
int(randomHoles); ++ihole){
269 unsigned int holeId = (
unsigned int)(maxHit*CLHEP::RandFlat::shoot(engine));
270 ATH_MSG_VERBOSE(
"Random mode : layer identifier " << holeId <<
" chosen." );
274 case 0 : { remove_parts[
Parts::kPix0] =
true; ++holesTriggered; };
break;
275 case 1 : { remove_parts[
Parts::kPix1] =
true; ++holesTriggered; };
break;
276 case 2 : { remove_parts[
Parts::kPix2] =
true; ++holesTriggered; };
break;
277 case 3 : { remove_parts[
Parts::kSct0] =
true; ++holesTriggered; };
break;
278 case 4 : { remove_parts[
Parts::kSct1] =
true; ++holesTriggered; };
break;
279 case 5 : { remove_parts[
Parts::kSct2] =
true; ++holesTriggered; };
break;
280 case 6 : { remove_parts[
Parts::kSct3] =
true; ++holesTriggered; };
break;
281 case 7 : { remove_parts[
Parts::kSct4] =
true; ++holesTriggered; };
break;
282 case 8 : { remove_parts[
Parts::kSct5] =
true; ++holesTriggered; };
break;
283 case 9 : { remove_parts[
Parts::kSct6] =
true; ++holesTriggered; };
break;
284 case 10 : { remove_parts[
Parts::kSct7] =
true; ++holesTriggered; };
break;
285 case 11 : { remove_parts[
Parts::kSct8] =
true; ++holesTriggered; };
break;
290 double sideDecision = CLHEP::RandFlat::shoot(engine);
291 if ( sideDecision < 1./3. )
293 else if ( sideDecision < 2./3. )
314 pixelHitsPerLayer[
layer]++;
320 ATH_MSG_VERBOSE(
"This pixel hit is not removed, it is at the track end." ) ;
344 sctHitsPerLayer[
layer]++;
353 ATH_MSG_VERBOSE(
"This SCT hit is not removed, it is at the track end." ) ;
406 vecTsos->push_back(newTsos);
409 ATH_MSG_DEBUG(
"Removed total of " << nRemoved <<
" TSoS on track." ) ;
415 unsigned int foundHoles = abs(
static_cast<int>(newHoles) -
static_cast<int>(oldHoles));
417 if ( foundHoles == nRemoved )
418 ATH_MSG_DEBUG(
"== OK : "<< nRemoved <<
" generated holes out of which all were found" ) ;
420 ATH_MSG_DEBUG(
"== PROBLEM : "<< nRemoved <<
" generated holes out of which "<< newHoles - oldHoles <<
" were found" ) ;
426 while (m_trackStats.size() < nRemoved+1) {
427 m_trackStats.emplace_back(0 );
429 while (m_trackStats[nRemoved].
size() < foundHoles+1) {
430 m_trackStats[nRemoved].push_back( 0 );
432 ATH_MSG_DEBUG(
"m_trackStats.size()= " << m_trackStats.size() );
434 m_trackStats[nRemoved][foundHoles]++;
439 newTrackCollection->push_back( newTrack );
449 if (newTrackCollection_handle.record( std::move(newTrackCollection) ).isFailure()){
451 return StatusCode::FAILURE;
454 return StatusCode::SUCCESS;
◆ extraDeps_update_handler()
Add StoreName to extra input/output deps as needed.
use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given
◆ extraOutputDeps()
const DataObjIDColl & AthReentrantAlgorithm::extraOutputDeps |
( |
| ) |
const |
|
overridevirtualinherited |
Return the list of extra output dependencies.
This list is extended to include symlinks implied by inheritance relations.
Definition at line 79 of file AthReentrantAlgorithm.cxx.
86 return Algorithm::extraOutputDeps();
◆ filterPassed()
virtual bool AthReentrantAlgorithm::filterPassed |
( |
const EventContext & |
ctx | ) |
const |
|
inlinevirtualinherited |
◆ finalize()
StatusCode HoleSearchValidation::finalize |
( |
| ) |
|
standard Athena-Algorithm method
Definition at line 457 of file HoleSearchValidation.cxx.
460 ATH_MSG_INFO(
"Printing statistics for hole search validation:" ) ;
461 ATH_MSG_INFO(
" # removed hits | # tracks / found holes | ... " ) ;
462 for (
unsigned int nRemoved = 0; nRemoved < m_trackStats.size(); ++nRemoved) {
463 unsigned int nTracks = 0;
464 for (
unsigned int holes = 0;
holes < m_trackStats[nRemoved].size(); ++
holes) nTracks += m_trackStats[nRemoved][
holes];
465 if ( nTracks == 0)
continue;
466 ATH_MSG_INFO(
"Removed " << nRemoved <<
" hits from track -- found: " ) ;
467 for (
unsigned int holes = 0;
holes < m_trackStats[nRemoved].size(); ++
holes) {
469 <<
"% of tracks with " <<
holes <<
" holes (" << m_trackStats[nRemoved][
holes] <<
" / " <<
float(nTracks) <<
")") ;
473 return StatusCode::SUCCESS;
◆ initialize()
StatusCode HoleSearchValidation::initialize |
( |
| ) |
|
standard Athena-Algorithm method
Definition at line 89 of file HoleSearchValidation.cxx.
96 return StatusCode::SUCCESS;
102 if (
sc.isFailure()) {
104 return StatusCode::SUCCESS;
109 if (
sc.isFailure()) {
111 return StatusCode::SUCCESS;
116 if (
sc.isFailure()) {
118 return StatusCode::SUCCESS;
123 if (
sc.isFailure()) {
125 return StatusCode::SUCCESS;
132 if (
sc.isFailure()) {
139 return StatusCode::FAILURE;
148 return StatusCode::SUCCESS;
◆ inputHandles()
Return this algorithm's input handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ isClonable()
bool AthReentrantAlgorithm::isClonable |
( |
| ) |
const |
|
overridevirtualinherited |
Specify if the algorithm is clonable.
Reentrant algorithms are clonable.
Reimplemented in Simulation::BeamEffectsAlg, InDet::SiTrackerSpacePointFinder, InDet::SCT_Clusterization, InDet::SiSPSeededTrackFinder, SCTRawDataProvider, InDet::GNNSeedingTrackMaker, SCT_PrepDataToxAOD, RoIBResultToxAOD, InDet::SiSPGNNTrackMaker, SCT_CablingCondAlgFromCoraCool, SCT_ReadCalibDataTestAlg, SCT_CablingCondAlgFromText, SCT_ReadCalibChipDataTestAlg, SCT_TestCablingAlg, SCT_ConfigurationConditionsTestAlg, ITkPixelCablingAlg, ITkStripCablingAlg, SCTEventFlagWriter, SCT_ConditionsSummaryTestAlg, SCT_ModuleVetoTestAlg, SCT_MonitorConditionsTestAlg, SCT_LinkMaskingTestAlg, SCT_MajorityConditionsTestAlg, SCT_RODVetoTestAlg, SCT_SensorsTestAlg, SCT_TdaqEnabledTestAlg, SCT_SiliconConditionsTestAlg, SCTSiLorentzAngleTestAlg, SCT_ByteStreamErrorsTestAlg, SCT_ConditionsParameterTestAlg, SCT_FlaggedConditionTestAlg, SCT_StripVetoTestAlg, SCT_RawDataToxAOD, and SCTSiPropertiesTestAlg.
Definition at line 44 of file AthReentrantAlgorithm.cxx.
◆ msg() [1/2]
◆ msg() [2/2]
◆ msgLvl()
◆ outputHandles()
Return this algorithm's output handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ printInfoTSoS()
◆ renounce()
◆ renounceArray()
◆ setFilterPassed()
virtual void AthReentrantAlgorithm::setFilterPassed |
( |
bool |
state, |
|
|
const EventContext & |
ctx |
|
) |
| const |
|
inlinevirtualinherited |
◆ sysExecute()
StatusCode AthReentrantAlgorithm::sysExecute |
( |
const EventContext & |
ctx | ) |
|
|
overridevirtualinherited |
Execute an algorithm.
We override this in order to work around an issue with the Algorithm base class storing the event context in a member variable that can cause crashes in MT jobs.
Definition at line 67 of file AthReentrantAlgorithm.cxx.
69 return Gaudi::Algorithm::sysExecute (ctx);
◆ sysInitialize()
StatusCode AthReentrantAlgorithm::sysInitialize |
( |
| ) |
|
|
overridevirtualinherited |
Override sysInitialize.
Override sysInitialize from the base class.
Loop through all output handles, and if they're WriteCondHandles, automatically register them and this Algorithm with the CondSvc
Scan through all outputHandles, and if they're WriteCondHandles, register them with the CondSvc
Reimplemented from AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >.
Reimplemented in InputMakerBase, and HypoBase.
Definition at line 96 of file AthReentrantAlgorithm.cxx.
107 if ( cs.retrieve().isFailure() ) {
109 return StatusCode::SUCCESS;
111 if (cs->regHandle(
this,*
h).isFailure()) {
112 sc = StatusCode::FAILURE;
113 ATH_MSG_ERROR(
"unable to register WriteCondHandle " <<
h->fullKey()
◆ sysStart()
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
◆ updateVHKA()
◆ ATLAS_THREAD_SAFE
std::vector< std::vector< unsigned int > > m_trackStats InDet::HoleSearchValidation::ATLAS_THREAD_SAFE |
|
mutableprivate |
tracks as function of [#generated holes, #found holes]. Guarded by m_trackStatsMutex
Definition at line 118 of file HoleSearchValidation.h.
◆ m_detStore
◆ m_evtStore
◆ m_extendedExtraObjects
DataObjIDColl AthReentrantAlgorithm::m_extendedExtraObjects |
|
privateinherited |
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
Empty if no symlinks were found.
Definition at line 153 of file AthReentrantAlgorithm.h.
◆ m_holeSearchTool
◆ m_idHelper
◆ m_ignoreTrackEnds
bool InDet::HoleSearchValidation::m_ignoreTrackEnds |
|
private |
◆ m_maxNumberOfHoles
unsigned int InDet::HoleSearchValidation::m_maxNumberOfHoles |
|
private |
◆ m_pixelID
◆ m_randomEngineName
std::string InDet::HoleSearchValidation::m_randomEngineName |
|
private |
◆ m_randomRemovalMode
bool InDet::HoleSearchValidation::m_randomRemovalMode |
|
private |
◆ m_removeOverlapHitsOnly
bool InDet::HoleSearchValidation::m_removeOverlapHitsOnly |
|
private |
◆ m_removeParts
◆ m_rndmGenSvc
◆ m_saveNewTracksInSG
bool InDet::HoleSearchValidation::m_saveNewTracksInSG |
|
private |
◆ m_sctID
◆ m_siliconID
◆ m_trackCollectionKey
◆ m_trackCollectionOutputKey
◆ m_trackStatsMutex
std::mutex InDet::HoleSearchValidation::m_trackStatsMutex |
|
mutableprivate |
◆ m_trtID
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
bool is_pixel(Identifier id) const
void setSeed(const std::string &algName, const EventContext &ctx)
Set the random seed using a string (e.g.
const TrackParameters * trackParameters() const
return ptr to trackparameters const overload
std::string m_randomEngineName
Name of the random number stream.
Const iterator class for DataVector/DataList.
const TrkDetElementBase * associatedDetectorElement() const
return associated Detector Element
bool is_sct(Identifier id) const
const Amg::Vector3D & position() const
Access method for the position.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
void printInfoTSoS(const Trk::TrackStateOnSurface *tsos) const
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce(T &h)
bool is_barrel(const Identifier &id) const
Test for barrel - generic, i.e. works for EITHER pixel or sct id.
bool m_removeParts[Parts::kNParts]
unsigned int m_maxNumberOfHoles
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
const MeasurementBase * measurementOnTrack() const
returns MeasurementBase const overload
ServiceHandle< IAthRNGSvc > m_rndmGenSvc
Random number generator.
virtual Identifier identify() const =0
Identifier.
#define ATH_MSG_VERBOSE(x)
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual void setOwner(IDataHandleHolder *o)=0
bool is_barrel(const Identifier &id) const
Test for barrel - WARNING: id MUST be pixel id, otherwise answer is not accurate. Use SiliconID for g...
std::mutex m_trackStatsMutex
AthReentrantAlgorithm()
Default constructor:
ToolHandle< Trk::ITrackHoleSearchTool > m_holeSearchTool
SG::ReadHandleKey< TrackCollection > m_trackCollectionKey
jobOption: name of the TrackCollection
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
::StatusCode StatusCode
StatusCode definition for legacy code.
unsigned int doHoleSearch(const Trk::Track *track) const
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
bool m_saveNewTracksInSG
jobOption: save new tracks to SG ?
DataObjIDColl m_extendedExtraObjects
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
const AtlasDetectorID * m_idHelper
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
int layer_disk(const Identifier &id) const
represents the track state (measurement, material, fit parameters and quality) at a surface.
virtual const Surface & associatedSurface() const =0
Interface method to get the associated Surface.
A wrapper class for event-slot-local random engines.
virtual StatusCode sysInitialize() override
Override sysInitialize.
int layer_disk(const Identifier &id) const
const PixelID * m_pixelID
CLHEP::HepRandomEngine * getEngine(const EventContext &ctx) const
Retrieve the random engine corresponding to the provided EventContext.
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
const SiliconID * m_siliconID
SG::WriteHandleKey< TrackCollection > m_trackCollectionOutputKey
jobOption: name of the TrackCollection
bool m_removeOverlapHitsOnly
#define ATH_MSG_WARNING(x)
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
int side(const Identifier &id) const
constexpr int pow(int base, int exp) noexcept
size_type size() const noexcept
Returns the number of elements in the collection.
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
@ Measurement
This is a measurement, and will at least contain a Trk::MeasurementBase.
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.
bool is_barrel(const Identifier &id) const
Test for barrel - WARNING: id MUST be sct id, otherwise answer is not accurate. Use SiliconID for gen...