SiliconDetectorHits reader class.
More...
#include <dataproviders/readers/event/GGSSiliconDetectorHitsReader.h>
SiliconDetectorHits reader class.
Class for reading the SiliconDetectorHits object from a GGS simulation file.
◆ DetectorType
◆ GGSSiliconDetectorHitsReader()
Herd::Readers::GGSSiliconDetectorHitsReader::GGSSiliconDetectorHitsReader |
( |
std::shared_ptr< GGSTRootReader > |
ggsReader, |
|
|
DetectorType |
type |
|
) |
| |
|
inline |
◆ FreeObjects()
std::vector< std::string > Herd::Readers::GGSSiliconDetectorHitsReader::FreeObjects |
( |
const std::vector< std::string > & |
objs, |
|
|
Memory::Status |
memStatus |
|
) |
| |
Free the memory of unneeded objects.
Currently this method frees the memory of the provided objects if memStatus
is EXHAUSTED. This reader frees the following objects:
- stkWaferHitsCollGGS
- stkWaferParticleHitsCollGGS
- scdWaferHitsCollGGS
- scdWaferParticleHitsCollGGS
- Parameters
-
objs | The list of objects to be freed. |
memStatus | The current memory occupation status. |
- Returns
- a list of freed objects.
◆ GetSiliconDetectorHitsColl()
RetrievalResult Herd::Readers::GGSSiliconDetectorHitsReader::GetSiliconDetectorHitsColl |
( |
ObjectWrapper & |
wrapper | ) |
|
Get the SiliconDetector Hits.
- Parameters
-
- Returns
- RetrievalResult The result of the operation (SUCCESS or ERROR)
◆ GetSiliconDetectorWaferParticleHitsColl()
RetrievalResult Herd::Readers::GGSSiliconDetectorHitsReader::GetSiliconDetectorWaferParticleHitsColl |
( |
ObjectWrapper & |
wrapper | ) |
|
Get the SiliconDetector Particle Hits.
- Parameters
-
- Returns
- RetrievalResult The result of the operation (SUCCESS or ERROR)
◆ IsSiliconDetectorHitsCollAvailable()
bool Herd::Readers::GGSSiliconDetectorHitsReader::IsSiliconDetectorHitsCollAvailable |
( |
| ) |
|
Checks if SiliconDetector hits are available in the simulation file.
Check the GGS reader for the presence of SiliconDetector hits
- Returns
- true
-
false
◆ IsSiliconDetectorWaferParticleHitsCollAvailable()
bool Herd::Readers::GGSSiliconDetectorHitsReader::IsSiliconDetectorWaferParticleHitsCollAvailable |
( |
| ) |
|
|
inline |
Checks if SiliconDetector particle hits are available in the simulation file.
Check the GGS reader for the presence of SiliconDetector particle hits N.B: we assume that if we simulated wafers we always have particle hits
- Returns
- true
-
false
◆ SetSideDetectorFirstWaferID()
void Herd::Readers::GGSSiliconDetectorHitsReader::SetSideDetectorFirstWaferID |
( |
std::array< int, 4 > |
sideSDFirstWaferID | ) |
|
|
inline |
Set the GGS volID of the first wafer for each side SD detector.
- Parameters
-
sideSDFirstWaferID | an array containing the first GGS volumeID for side SD layers. |
◆ SetSiliconDetectorGeoParamsColl()
void Herd::Readers::GGSSiliconDetectorHitsReader::SetSiliconDetectorGeoParamsColl |
( |
observer_ptr< SiliconDetectorGeoParamsColl > |
sdGeoParamsColl | ) |
|
Set the reference for the SD geometric parameters.
Sets the SD geometric parameters to be used for GGSID -> VolumeID conversion.
- Parameters
-
sdGeoParamsColl | an observer_ptr to the geoparams collection. |
◆ SetupSDReadout()
bool Herd::Readers::GGSSiliconDetectorHitsReader::SetupSDReadout |
( |
| ) |
|
|
private |
◆ firstRun
bool Herd::Readers::GGSSiliconDetectorHitsReader::firstRun = true |
|
private |
◆ m_ggsReader
std::shared_ptr<GGSTRootReader> Herd::Readers::GGSSiliconDetectorHitsReader::m_ggsReader |
|
private |
Set the GGS volID of the first strip for each side SD detector.
- Parameters
-
sideSDFirstStripID | an array containing the first GGS volumeID for side SD layers. |
◆ m_hitReader
GGSTHitsReader* Herd::Readers::GGSSiliconDetectorHitsReader::m_hitReader = nullptr |
|
private |
◆ m_lastHitsReadEvent
long long int Herd::Readers::GGSSiliconDetectorHitsReader::m_lastHitsReadEvent = std::numeric_limits<long long int>::max() |
|
private |
◆ m_lastPartHitsReadEvent
long long int Herd::Readers::GGSSiliconDetectorHitsReader::m_lastPartHitsReadEvent = std::numeric_limits<long long int>::max() |
|
private |
◆ m_sdGeoParamsColl
◆ m_sdHitsColl
◆ m_sdWaferParticleHitsColl
◆ m_sideSDFirstWaferID
std::array<int, 4> Herd::Readers::GGSSiliconDetectorHitsReader::m_sideSDFirstWaferID {} |
|
private |
◆ m_sideSDHDetIndex
int Herd::Readers::GGSSiliconDetectorHitsReader::m_sideSDHDetIndex = std::numeric_limits<int>::lowest() |
|
private |
◆ m_sideSDVDetIndex
int Herd::Readers::GGSSiliconDetectorHitsReader::m_sideSDVDetIndex = std::numeric_limits<int>::lowest() |
|
private |
◆ m_topSDDetIndex
int Herd::Readers::GGSSiliconDetectorHitsReader::m_topSDDetIndex = std::numeric_limits<int>::lowest() |
|
private |
◆ m_type
DetectorType Herd::Readers::GGSSiliconDetectorHitsReader::m_type |
|
private |
The documentation for this class was generated from the following files: