ROOT logo
AliRoot » ITS » AliITSOnlineSPDphys

class AliITSOnlineSPDphys

Author: Henrik Tydesjo
Interface class to the containers of an online scan.
Directly connected to a TFile with all containers.
Handles reading and writing of this TFile. Hitmaps are
stored in this file (AliITSOnlineSPDHitArray).
Also some general information is stored
(AliITSOnlineSPDphysInfo).

Function Members (Methods)

protected:
voidInitHitmap()
voidReadHitmap()
voidSaveHitmap()

Data Members

protected:
TFile*fFilefile to read and write from
TStringfFileNamefilename of file to read write
AliITSOnlineSPDHitArray*fHitArray[6]hit array, one for each halfstave
Bool_tfInfoModifiedis the overall phys information modified (needs saving)?
Bool_tfModifiedis the hitmap modified (needs saving)?
AliITSOnlineSPDphysInfo*fPhysInfooverall phys information
Bool_tfWriteis file opened for writing?

Class Charts

Inheritance Chart:
AliITSOnlineSPDphys

Function documentation

AliITSOnlineSPDphys(const Char_t* fileName, Bool_t readFromGridFile = kFALSE)
 constructor, open file for reading or writing
 look for a previously saved info object
 (if file not found create a new one and return, else read)
AliITSOnlineSPDphys(const AliITSOnlineSPDphys& phys)
~AliITSOnlineSPDphys()
 destructor
AliITSOnlineSPDphys& operator=(const AliITSOnlineSPDphys& phys)
 assignment operator (should not be used)
void ClearThis()
 clear this phys, close file and open new
void InitHitmap()
 init hit arrays and hit events
void AddPhys(AliITSOnlineSPDphys* phys2)
 add hitmap and info from another phys object
void ReadHitmap()
 read hitmap into memory
void SaveHitmap()
 save hitmap to file
void SetHits(UInt_t hs, UInt_t chipi, UInt_t coli, UInt_t rowi, UInt_t val)
 set nr of hits for pixel
void AddHits(UInt_t hs, UInt_t chipi, UInt_t coli, UInt_t rowi, Int_t val)
 add val nr of hits for pixel (val could be negative)
void IncrementHits(UInt_t hs, UInt_t chipi, UInt_t coli, UInt_t rowi)
 increment nr of hits for pixel
UInt_t GetHits(UInt_t hs, UInt_t chipi, UInt_t coli, UInt_t rowi)
 get nr of hits for pixel
Float_t GetHitsEfficiency(UInt_t hs, UInt_t chipi, UInt_t coli, UInt_t rowi)
 get the hit efficiency for pixel
Float_t GetHitsEfficiencyError(UInt_t hs, UInt_t chipi, UInt_t coli, UInt_t rowi)
 get error in hit efficiency for pixel
Float_t GetAverageMultiplicity(UInt_t hs, UInt_t chipi)
 get average multiplicity for a chip
Float_t GetAverageMultiplicityTot(UInt_t hs)
 get average multiplicity for 10 chips
void AddRunNr(UInt_t val)
 add a run nr
void SetEqNr(UInt_t val)
 set router nr
void SetNrEvents(UInt_t val)
 set nr of events
void AddNrEvents(Int_t val)
 add val nr of events (val could be negative)
void IncrementNrEvents()
 increment nr of events
UInt_t GetNrRuns() const
UInt_t GetRunNr(UInt_t posi) const
UInt_t GetEqNr() const
UInt_t GetNrEvents() const
AliITSOnlineSPDphys()
{for(Int_t ihs=0; ihs<6; ihs++) fHitArray[ihs]=0x0;}
void InitializeHitMap()
 SET METHODS ***********************************