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 9 of file BSEmcFwEndcapDetIdToAlveoleMap.h.

Constructor & Destructor Documentation

◆ BSEmcFwEndcapDetIdToAlveoleMap()

BSEmcFwEndcapDetIdToAlveoleMap::BSEmcFwEndcapDetIdToAlveoleMap ( )
inline

Definition at line 15 of file BSEmcFwEndcapDetIdToAlveoleMap.h.

15 { LoadMap(); };

◆ ~BSEmcFwEndcapDetIdToAlveoleMap()

virtual BSEmcFwEndcapDetIdToAlveoleMap::~BSEmcFwEndcapDetIdToAlveoleMap ( )
inlinevirtual

Definition at line 16 of file BSEmcFwEndcapDetIdToAlveoleMap.h.

16 {};

Member Function Documentation

◆ ConvertToKey()

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

Definition at line 27 of file BSEmcFwEndcapDetIdToAlveoleMap.h.

Referenced by GetAlveoleCrystals().

27 { 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 23 of file BSEmcFwEndcapDetIdToAlveoleMap.h.

References ConvertToKey(), and GetAlveoleCrystals().

Referenced by GetAlveoleCrystals().

23 { 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 24 of file BSEmcFwEndcapDetIdToAlveoleMap.h.

References GetAlveoleCrystals().

24 { 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 22 of file BSEmcFwEndcapDetIdToAlveoleMap.h.

22 { return fDetIdToAlveole.at(t_detectorId); }

◆ SetFileName()

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

Definition at line 17 of file BSEmcFwEndcapDetIdToAlveoleMap.h.

18  {
19  fFilename = t_filename;
20  LoadMap();
21  }

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