Public Member Functions | |
| QTower () | |
| constructor  | |
| virtual | ~QTower () | 
| destructor  | |
| const QGeomVector & | GetPosition () const | 
| get the position of this tower   | |
| bool | AddCrystal (int channel, const QCrystal &crystal) | 
| add crystal to tower   | |
| const QCrystal * | GetCrystal (int channel) const | 
| get crystal   | |
| const std::map< int, QCrystal > & | GetCrystals () const | 
| get crystals map  | |
| QError | LoadMap (const std::string &fileName) | 
| load detector map   | |
Private Member Functions | |
| QError | LoadFromFile (const std::string &fileName) | 
| load detector map from file   | |
| QError | LoadFromDb () | 
| load detector map from db. Still to be implemented.  | |
Private Attributes | |
| std::map< int, QCrystal > | fCrystals | 
| QGeomVector | fPosition | 
| const QGeomVector& QTower::GetPosition | ( | ) |  const [inline] | 
        
get the position of this tower
References fPosition.
| bool QTower::AddCrystal | ( | int | channel, | |
| const QCrystal & | crystal | |||
| ) | 
add crystal to tower
| channel | channel associated to the crystal | |
| crystal | crystal to be added | 
| const QCrystal * QTower::GetCrystal | ( | int | channel | ) | const | 
get crystal
Referenced by QPositionFilter::GetDistance(), and MCoincidenceTester::GetMinimumSumOfDistances().
| QError QTower::LoadMap | ( | const std::string & | fileName | ) | 
load detector map
| fileName | file from which the detector map will be read. It can be a standard file name or "DB". In this case the detector map is read from database. | 
References LoadFromDb(), and LoadFromFile().
Referenced by QPositionFilter::LoadDetectorMap(), and MCoincidenceTester::ProduceSummaryPlots().
| QError QTower::LoadFromFile | ( | const std::string & | fileName | ) |  [private] | 
        
load detector map from file
| fileName | name of the file containing the detector map | 
Positions and dimensions are in mm. The position refers to the center of the crystal. For example, a crystal with positionZ = 0 and dimensionZ=10 will have the top face at Z=-5 and the bottom face at Z=5.
Referenced by LoadMap().
QGeomVector QTower::fPosition [private]           | 
        
position of the tower
Referenced by GetPosition().
 1.5.6