1 /////////////////////////////////////////////////////////////////
2 // Author: Henrik Tydesjo //
3 // This class is used as a container online. //
4 // It holds additional information needed for a scan with //
5 // multiple steps. (dac scan, min thr. mean thr. etc. //
6 // This class should only be used through the interface of the //
7 // AliITSOnlineSPDscanMultiple class. //
8 /////////////////////////////////////////////////////////////////
10 #include "AliITSOnlineSPDscanInfoMultiple.h"
12 ClassImp(AliITSOnlineSPDscanInfoMultiple)
14 AliITSOnlineSPDscanInfoMultiple::AliITSOnlineSPDscanInfoMultiple() :
15 AliITSOnlineSPDscanInfo(), fDacId(-1), fDacValues(TArrayI())
18 AliITSOnlineSPDscanInfoMultiple::~AliITSOnlineSPDscanInfoMultiple() {}
20 UInt_t AliITSOnlineSPDscanInfoMultiple::AddScanStep() {
21 // add a new scan step, allocate space in the TArrayI
22 UInt_t returnval = AliITSOnlineSPDscanInfo::AddScanStep();
23 fDacValues.Set(fNSteps);
24 fDacValues.AddAt(-1, fNSteps-1);
28 void AliITSOnlineSPDscanInfoMultiple::SetDacValue(UInt_t nsi, Int_t val) {
29 // set the dac value for step nsi
31 fDacValues.AddAt(val, nsi);
35 Int_t AliITSOnlineSPDscanInfoMultiple::GetDacValue(UInt_t nsi) const {
36 // get the dac value for step nsi
38 return fDacValues.At(nsi);