HerdSoftware  0.3.2
Classes | Public Member Functions | Private Member Functions | Private Attributes | List of all members
Herd::Readers::ParametricGeoCaloReader Class Reference

CaloGeoParams reader class. More...

#include <dataproviders/readers/event/ParametricGeoCaloReader.h>

Classes

struct  CaloGeoParamsHelpValues
 

Public Member Functions

 ParametricGeoCaloReader (std::shared_ptr< GGSTRootReader > ggsReader)
 
bool IsCaloGeoParamsAvailable ()
 
RetrievalResult GetCaloGeoParams (ObjectWrapper &wrapper)
 
std::function< unsigned int(const float *)> CaloHitIDFromGGSPos ()
 Get the volID calculator for the calorimeter. More...
 
bool SameIDs ()
 Tells if GGS and HS volume IDs are the same for the current CALO geometry. More...
 

Private Member Functions

unsigned int CaloHitIDFromGGSID (int iGGSCubeID, CaloGeoParamsHelpValues caloValues)
 

Private Attributes

std::shared_ptr< GGSTRootReader > m_ggsReader
 
CaloGeoParams m_caloGeoParams
 
std::function< unsigned int(const float *)> m_caloVolIDFromGGSPos
 
bool m_geoParamsRead = false
 
bool m_sameIDs
 

Detailed Description

CaloGeoParams reader class.

Class for reading the CaloGeoParams object from a GGS simulation file using the ParametricGeo geometry.

Constructor & Destructor Documentation

◆ ParametricGeoCaloReader()

Herd::Readers::ParametricGeoCaloReader::ParametricGeoCaloReader ( std::shared_ptr< GGSTRootReader >  ggsReader)
inline

Member Function Documentation

◆ CaloHitIDFromGGSID()

unsigned int Herd::Readers::ParametricGeoCaloReader::CaloHitIDFromGGSID ( int  iGGSCubeID,
CaloGeoParamsHelpValues  caloValues 
)
private

◆ CaloHitIDFromGGSPos()

std::function<unsigned int(const float *)> Herd::Readers::ParametricGeoCaloReader::CaloHitIDFromGGSPos ( )
inline

Get the volID calculator for the calorimeter.

Returns the function that handles the computation of the volumeID for a calo cell at a given position. If the position does not match that of any cube the returned function throws an exception.

Returns
the conversion function.
Exceptions
ExceptionThe returned function throws an Exception when the given position does not match any cube.

◆ GetCaloGeoParams()

RetrievalResult Herd::Readers::ParametricGeoCaloReader::GetCaloGeoParams ( ObjectWrapper &  wrapper)

◆ IsCaloGeoParamsAvailable()

bool Herd::Readers::ParametricGeoCaloReader::IsCaloGeoParamsAvailable ( )

◆ SameIDs()

bool Herd::Readers::ParametricGeoCaloReader::SameIDs ( )
inline

Tells if GGS and HS volume IDs are the same for the current CALO geometry.

Returns
true if GGS ID == HS ID for all the cubes.

Member Data Documentation

◆ m_caloGeoParams

CaloGeoParams Herd::Readers::ParametricGeoCaloReader::m_caloGeoParams
private

◆ m_caloVolIDFromGGSPos

std::function<unsigned int(const float *)> Herd::Readers::ParametricGeoCaloReader::m_caloVolIDFromGGSPos
private

◆ m_geoParamsRead

bool Herd::Readers::ParametricGeoCaloReader::m_geoParamsRead = false
private

◆ m_ggsReader

std::shared_ptr<GGSTRootReader> Herd::Readers::ParametricGeoCaloReader::m_ggsReader
private

◆ m_sameIDs

bool Herd::Readers::ParametricGeoCaloReader::m_sameIDs
private

The documentation for this class was generated from the following files: