PandaRoot
BSEmcFwEndcapDetIdToAlveoleMap Class Reference

#include <BSEmcFwEndcapDetIdToAlveoleMap.h>

Classes

struct  BSEmcFwEndcapCrystal_t
 

Public Member Functions

 BSEmcFwEndcapDetIdToAlveoleMap ()
 
virtual ~BSEmcFwEndcapDetIdToAlveoleMap ()
 
void SetFileName (const TString &t_filename)
 
BSEmcFwEndcapCrystal_t GetAlveoleId (const Int_t t_detectorId) const
 
std::vector< Int_t > GetAlveoleCrystals (const Int_t t_xindex, const Int_t t_yindex) const
 
std::vector< Int_t > GetAlveoleCrystals (const TString t_key) const
 
std::vector< Int_t > GetAlveoleCrystals (const Int_t t_detectorId) const
 
TString ConvertToKey (const Int_t t_xindex, const Int_t t_yindex) const
 

Detailed Description

Definition at line 21 of file BSEmcFwEndcapDetIdToAlveoleMap.h.

Constructor & Destructor Documentation

◆ BSEmcFwEndcapDetIdToAlveoleMap()

BSEmcFwEndcapDetIdToAlveoleMap::BSEmcFwEndcapDetIdToAlveoleMap ( )
inline

Definition at line 27 of file BSEmcFwEndcapDetIdToAlveoleMap.h.

27 { LoadMap(); };

◆ ~BSEmcFwEndcapDetIdToAlveoleMap()

virtual BSEmcFwEndcapDetIdToAlveoleMap::~BSEmcFwEndcapDetIdToAlveoleMap ( )
inlinevirtual

Definition at line 28 of file BSEmcFwEndcapDetIdToAlveoleMap.h.

28 {};

Member Function Documentation

◆ ConvertToKey()

TString BSEmcFwEndcapDetIdToAlveoleMap::ConvertToKey ( const Int_t  t_xindex,
const Int_t  t_yindex 
) const
inline

Definition at line 39 of file BSEmcFwEndcapDetIdToAlveoleMap.h.

Referenced by GetAlveoleCrystals().

39 { return "X" + TString{std::to_string(t_xindex)} + "Y" + TString{std::to_string(t_yindex)}; }

◆ GetAlveoleCrystals() [1/3]

std::vector<Int_t> BSEmcFwEndcapDetIdToAlveoleMap::GetAlveoleCrystals ( const Int_t  t_xindex,
const Int_t  t_yindex 
) const
inline

Definition at line 35 of file BSEmcFwEndcapDetIdToAlveoleMap.h.

References ConvertToKey(), and GetAlveoleCrystals().

Referenced by GetAlveoleCrystals().

35 { return GetAlveoleCrystals(ConvertToKey(t_xindex, t_yindex)); };
TString ConvertToKey(const Int_t t_xindex, const Int_t t_yindex) const
std::vector< Int_t > GetAlveoleCrystals(const Int_t t_xindex, const Int_t t_yindex) const

◆ GetAlveoleCrystals() [2/3]

std::vector<Int_t> BSEmcFwEndcapDetIdToAlveoleMap::GetAlveoleCrystals ( const TString  t_key) const
inline

Definition at line 36 of file BSEmcFwEndcapDetIdToAlveoleMap.h.

References GetAlveoleCrystals().

36 { return fAlveoleDetIds.at(t_key); }

◆ GetAlveoleCrystals() [3/3]

std::vector<Int_t> BSEmcFwEndcapDetIdToAlveoleMap::GetAlveoleCrystals ( const Int_t  t_detectorId) const

◆ GetAlveoleId()

BSEmcFwEndcapCrystal_t BSEmcFwEndcapDetIdToAlveoleMap::GetAlveoleId ( const Int_t  t_detectorId) const
inline

Definition at line 34 of file BSEmcFwEndcapDetIdToAlveoleMap.h.

34 { return fDetIdToAlveole.at(t_detectorId); }

◆ SetFileName()

void BSEmcFwEndcapDetIdToAlveoleMap::SetFileName ( const TString &  t_filename)
inline

Definition at line 29 of file BSEmcFwEndcapDetIdToAlveoleMap.h.

30  {
31  fFilename = t_filename;
32  LoadMap();
33  }

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