QTowerArray Class Reference

List of all members.

Detailed Description

geometric description of an array of QTowers

Author:
Sergio Di Domizio
This class handles a collection of QTower objects.


Public Member Functions

 QTowerArray ()
 constructor
virtual ~QTowerArray ()
 destructor
const QGeomVectorGetPosition () const
 get detector position
bool LoadMap (const std::string &fromWhere)
 load cuore array map
const std::map< int, QTower > & GetTowers () const
 get the map of towers contained in the array
const QTowerGetTower (int towerId) const
 get const pointer to a specific tower
const QCrystalGetCrystal (int lgChannel) const
 get crystal associated to the requested logical channel

Private Attributes

std::map< int, QTowerfTowers
QGeomVector fPosition


Member Function Documentation

const QGeomVector& QTowerArray::GetPosition (  )  const [inline]

get detector position

Returns:
const reference to the QGeomVector containing the position of the array

bool QTowerArray::LoadMap ( const std::string &  fromWhere  ) 

load cuore array map

Parameters:
fromWhere string specifying where to find the detector map. It can be "DB" (the map is read from the database) or a standard filename.
Returns:
true if the tower map was loaded successfully, false otherwise

const std::map<int, QTower>& QTowerArray::GetTowers (  )  const

get the map of towers contained in the array

Returns:
const reference to the tower map stored in this object

const QTower * QTowerArray::GetTower ( int  towerId  )  const

get const pointer to a specific tower

Parameters:
towerId id of the tower to be returned
Returns:
const pointer to requested tower or null pointer if specified id does not match any element in the tower map

const QCrystal * QTowerArray::GetCrystal ( int  lgChannel  )  const

get crystal associated to the requested logical channel

Parameters:
lgChannel logical channel
Returns:
const pointer to requested crystal, or NULL pointer if it is not present in the array


Member Data Documentation

std::map<int, QTower> QTowerArray::fTowers [private]

map of tower id and corresponding tower

QGeomVector QTowerArray::fPosition [private]

position of the detector array


The documentation for this class was generated from the following files:
Generated on Fri Mar 6 13:40:44 2009 for CUORE Software by  doxygen 1.5.1