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 // AliITSOnlineSPDscan class. //
7 /////////////////////////////////////////////////////////////////
9 #include "AliITSOnlineSPDscanInfo.h"
11 ClassImp(AliITSOnlineSPDscanInfo)
13 AliITSOnlineSPDscanInfo::AliITSOnlineSPDscanInfo():
28 AliITSOnlineSPDscanInfo::~AliITSOnlineSPDscanInfo() {
31 void AliITSOnlineSPDscanInfo::ClearThis() {
32 // reset all values for this object
40 for (Int_t i=0; i<10; i++) {
41 fChipPresent[i]=kTRUE;
45 UInt_t AliITSOnlineSPDscanInfo::AddScanStep() {
46 // add a new scan step, allocate space for TArrayI
48 fTriggers.Set(fNSteps);
49 fTriggers.AddAt(0, fNSteps-1);
53 void AliITSOnlineSPDscanInfo::IncrementTriggers(UInt_t nsi) {
54 // increment the nr of triggers for step nsi
56 fTriggers.AddAt(GetTriggers(nsi)+1,nsi);
59 void AliITSOnlineSPDscanInfo::SetTriggers(UInt_t nsi, UInt_t val) {
60 // set the nr of triggers for step nsi
62 fTriggers.AddAt(val,nsi);
66 UInt_t AliITSOnlineSPDscanInfo::GetTriggers(UInt_t nsi) const {
67 // get the nr of triggers for step nsi
68 if (nsi<fNSteps) return fTriggers.At(nsi);