HerdSoftware  0.1.1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
Herd::CaloPMTTriggerGeoInfo Class Reference

Data structure for the CaloPMT trigger geometric info (trigger regions). More...

#include <dataobjects/CaloPMTTriggerGeoInfo.h>

Public Member Functions

 CaloPMTTriggerGeoInfo ()=default
 Default constructor. More...
 
virtual ~CaloPMTTriggerGeoInfo ()=default
 Virtual destructor. More...
 
CaloPMTTriggerRegion TriggerRegionID (unsigned int volID)
 Return the trigger region ID that corresponds to a crystal ID. More...
 
void SetCaloGeoParams (EA::observer_ptr< CaloGeoParams > caloGeoParams)
 Sets the CaloGeoParams to use. More...
 

Private Member Functions

void FillVolID2CaloPMTTriggerRegion ()
 Fill the private lookup table which converts crystal volume ID to trigger region ID. More...
 

Private Attributes

EA::observer_ptr< CaloGeoParams_caloGeoParams = nullptr
 Input with the geometric parameters of CALO. More...
 
std::vector< CaloPMTTriggerRegion_crystalTrigRegions
 Vector with the associated trigger region for each crystal ID. More...
 

Detailed Description

Data structure for the CaloPMT trigger geometric info (trigger regions).

Constructor & Destructor Documentation

◆ CaloPMTTriggerGeoInfo()

Herd::CaloPMTTriggerGeoInfo::CaloPMTTriggerGeoInfo ( )
default

Default constructor.

Creates a empty CaloPMTTriggerGeoInfo

◆ ~CaloPMTTriggerGeoInfo()

virtual Herd::CaloPMTTriggerGeoInfo::~CaloPMTTriggerGeoInfo ( )
virtualdefault

Virtual destructor.

Member Function Documentation

◆ FillVolID2CaloPMTTriggerRegion()

void Herd::CaloPMTTriggerGeoInfo::FillVolID2CaloPMTTriggerRegion ( )
private

Fill the private lookup table which converts crystal volume ID to trigger region ID.

◆ SetCaloGeoParams()

void Herd::CaloPMTTriggerGeoInfo::SetCaloGeoParams ( EA::observer_ptr< CaloGeoParams caloGeoParams)
inline

Sets the CaloGeoParams to use.

Parameters
caloGeoParamsthe geoparams to set

◆ TriggerRegionID()

CaloPMTTriggerRegion Herd::CaloPMTTriggerGeoInfo::TriggerRegionID ( unsigned int  volID)

Return the trigger region ID that corresponds to a crystal ID.

This method use a private lookup table which stores the conversion between each crystal ID and trigger region ID. This table is filled after the first request by this method.

Parameters
volIDinde of this crystal
Returns
int trigger region ID of this crystal

Member Data Documentation

◆ _caloGeoParams

EA::observer_ptr<CaloGeoParams> Herd::CaloPMTTriggerGeoInfo::_caloGeoParams = nullptr
private

Input with the geometric parameters of CALO.

◆ _crystalTrigRegions

std::vector<CaloPMTTriggerRegion> Herd::CaloPMTTriggerGeoInfo::_crystalTrigRegions
private

Vector with the associated trigger region for each crystal ID.


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