1 /////////////////////////////////////////////////////////////////
2 // Author: Henrik Tydesjo //
3 // This class is used as a container online. //
4 // It holds information needed for a scan. //
5 // This class should only be used through the interface of the //
6 // AliITSOnlineSPDphys class. //
7 /////////////////////////////////////////////////////////////////
9 #include "AliITSOnlineSPDphysInfo.h"
11 ClassImp(AliITSOnlineSPDphysInfo)
13 AliITSOnlineSPDphysInfo::AliITSOnlineSPDphysInfo():
20 AliITSOnlineSPDphysInfo::~AliITSOnlineSPDphysInfo() {}
22 void AliITSOnlineSPDphysInfo::ClearThis() {
23 // reset all values for this object
30 void AliITSOnlineSPDphysInfo::AddRunNr(UInt_t val) {
31 // add a new run nr, allocate space for TArrayI
34 fRunNrs.AddAt(val, fNrRuns-1);
37 UInt_t AliITSOnlineSPDphysInfo::GetRunNr(UInt_t posi) const {
40 return fRunNrs.At(posi);
47 void AliITSOnlineSPDphysInfo::AddNrEvents(Int_t val) {
48 // add val nr of events (val could be negative)
49 if (fNrEvents+val>0) {