PbScSector Class Reference

#include <PbScSector.h>

Inherits EmcSector.

Inheritance diagram for PbScSector:

Inheritance graph
[legend]
List of all members.

Detailed Description

PbSc implementation of EmcSector.

Its Basic function is to store Enrgy Calibration data ordered in the sequence of towers within one Sector (numbering starts at 0 in the leftmost bottom corner of the Sector viewed from the readout side and grows left to right, bottom to top).

Any class which needs direct access to calibration data must either be declared as a friend below or to use indirect access using public access functions provided by class.

Author:
: E.Kistenev
Created: 03/01/99

Last modification: June-16-2001 by L. Aphecetche

Definition at line 32 of file PbScSector.h.

Public Member Functions

 PbScSector (int &, PHTimeStamp *ts=0)
virtual ~PbScSector ()
virtual EmcSuperModulegetSuperModule (int SMNumber)
virtual void GetEnergyCalibration (int, float &, float &, float &)
 Probably the most important to off-line - this is the approved access path to initial energy calibration for PbSc Calorimeter.
void CorrectEnergyCalibration (const char *fname)

Static Public Member Functions

static size_t GetSize (void)
static size_t size (void)
static size_t Size (void)
static size_t NumberOfSuperModules (void)

Protected Attributes

std::vector< EmcSuperModule * > SM
std::vector< float > fECalib
std::vector< float > fNorm0

Private Member Functions

void BuildFromFiles (void)
void BuildFromDB (PHTimeStamp *)
void Reset (void)

Static Private Attributes

static size_t fgSize = 2592
static size_t fgNumberOfSuperModules = 18


Constructor & Destructor Documentation

PbScSector::PbScSector int &  ,
PHTimeStamp *  ts = 0
 

Definition at line 32 of file PbScSector.C.

References BuildFromDB(), fECalib, fgNumberOfSuperModules, fgSize, fNorm0, EmcSector::SectorN, and SM.

PbScSector::~PbScSector  )  [virtual]
 

Definition at line 60 of file PbScSector.C.

References Reset().


Member Function Documentation

void PbScSector::BuildFromDB PHTimeStamp *   )  [private]
 

Definition at line 134 of file PbScSector.C.

References PbScIndexer::buildPbScIndexer(), emcDataManager::Collect(), EMC_ERROR_MSG, fECalib, fgNumberOfSuperModules, EmcSector::fIsOK, fNorm0, emcDataManager::GetInstance(), emcCalibrationData::GetValue(), emcManageable::kDB_Objy, emcCalibrationData::kIniCal, emcManageable::SetSource(), and PbScIndexer::SMiSMTiST().

Referenced by PbScSector().

void PbScSector::BuildFromFiles void   )  [private]
 

Definition at line 87 of file PbScSector.C.

References EmcStaticData::buildEmcStaticData(), EmcSector::fIsOK, EmcStaticData::getPbScData(), and PbScCalibrationData::getStatus().

void PbScSector::CorrectEnergyCalibration const char *  fname  )  [virtual]
 

Reimplemented from EmcSector.

Definition at line 185 of file PbScSector.C.

References EMC_ERROR_MSG, fECalib, EmcSector::fIsOK, EmcIndexer::iCHiSMT(), and EmcIndexer::iSiSMiSMTiST().

void PbScSector::GetEnergyCalibration int  ,
float &  ,
float &  ,
float & 
[virtual]
 

Probably the most important to off-line - this is the approved access path to initial energy calibration for PbSc Calorimeter.

Implements EmcSector.

Definition at line 169 of file PbScSector.C.

References fECalib, and fNorm0.

static size_t PbScSector::GetSize void   )  [inline, static]
 

Definition at line 51 of file PbScSector.h.

References fgSize.

Referenced by Size(), and size().

virtual EmcSuperModule* PbScSector::getSuperModule int  SMNumber  )  [inline, virtual]
 

Implements EmcSector.

Definition at line 41 of file PbScSector.h.

References SM.

static size_t PbScSector::NumberOfSuperModules void   )  [inline, static]
 

Definition at line 55 of file PbScSector.h.

References fgNumberOfSuperModules.

void PbScSector::Reset void   )  [private]
 

Definition at line 67 of file PbScSector.C.

References SM.

Referenced by ~PbScSector().

static size_t PbScSector::Size void   )  [inline, static]
 

Definition at line 53 of file PbScSector.h.

References GetSize().

static size_t PbScSector::size void   )  [inline, static]
 

Definition at line 52 of file PbScSector.h.

References GetSize().


Member Data Documentation

std::vector<float> PbScSector::fECalib [protected]
 

Definition at line 68 of file PbScSector.h.

Referenced by BuildFromDB(), CorrectEnergyCalibration(), GetEnergyCalibration(), and PbScSector().

size_t PbScSector::fgNumberOfSuperModules = 18 [static, private]
 

Definition at line 73 of file PbScSector.h.

Referenced by BuildFromDB(), NumberOfSuperModules(), and PbScSector().

size_t PbScSector::fgSize = 2592 [static, private]
 

Definition at line 72 of file PbScSector.h.

Referenced by GetSize(), and PbScSector().

std::vector<float> PbScSector::fNorm0 [protected]
 

Definition at line 69 of file PbScSector.h.

Referenced by BuildFromDB(), GetEnergyCalibration(), and PbScSector().

std::vector<EmcSuperModule*> PbScSector::SM [protected]
 

Definition at line 67 of file PbScSector.h.

Referenced by getSuperModule(), PbScSector(), and Reset().


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