CaloHits reader class.
More...
#include <dataproviders/readers/event/GGSCaloHitsReader.h>
CaloHits reader class.
Class for reading the CaloHits object from a GGS simulation file.
◆ GGSCaloHitsReader()
| Herd::Readers::GGSCaloHitsReader::GGSCaloHitsReader |
( |
std::shared_ptr< GGSTRootReader > |
ggsReader | ) |
|
|
inline |
◆ FreeObjects()
| std::vector< std::string > Herd::Readers::GGSCaloHitsReader::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:
- Parameters
-
| objs | The list of objects to be freed. |
| memStatus | The current memory occupation status. |
- Returns
- a list of freed objects.
◆ GetCaloHits()
| RetrievalResult Herd::Readers::GGSCaloHitsReader::GetCaloHits |
( |
ObjectWrapper & |
wrapper | ) |
|
Get the CALO Hits.
- Parameters
-
- Returns
- RetrievalResult The result of the operation (SUCCESS or ERROR)
◆ IsCaloHitsAvailable()
| bool Herd::Readers::GGSCaloHitsReader::IsCaloHitsAvailable |
( |
| ) |
|
Checks if CALO hits are available in the simulation file.
Check the GGS reader for the presence of CALO hits
- Returns
- true
-
false
◆ SetCaloHitIDFromGGSPos()
| void Herd::Readers::GGSCaloHitsReader::SetCaloHitIDFromGGSPos |
( |
std::function< unsigned int(const float *)> |
conversionFunction | ) |
|
|
inline |
Set the volID calculator for the calorimeter.
Sets the function that handles the computation of the volumeID for a calo cell at a given position.
- Parameters
-
| conversionFunction | the conversion function. |
◆ m_caloDetIndex
| int Herd::Readers::GGSCaloHitsReader::m_caloDetIndex = std::numeric_limits<int>::lowest() |
|
private |
◆ m_caloHits
| CaloHits Herd::Readers::GGSCaloHitsReader::m_caloHits |
|
private |
◆ m_caloVolIDFromGGSPos
| std::function<unsigned int(const float *)> Herd::Readers::GGSCaloHitsReader::m_caloVolIDFromGGSPos |
|
private |
◆ m_ggsReader
| std::shared_ptr<GGSTRootReader> Herd::Readers::GGSCaloHitsReader::m_ggsReader |
|
private |
◆ m_hitReader
| GGSTHitsReader* Herd::Readers::GGSCaloHitsReader::m_hitReader = nullptr |
|
private |
◆ m_lastReadEvent
| long long int Herd::Readers::GGSCaloHitsReader::m_lastReadEvent = std::numeric_limits<long long int>::max() |
|
private |
The documentation for this class was generated from the following files: