store also difference in local Y
[u/mrichter/AliRoot.git] / ITS / AliITSOnlineSPDscanInfoMultiple.cxx
CommitLineData
b15de2d2 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/////////////////////////////////////////////////////////////////
9
10#include "AliITSOnlineSPDscanInfoMultiple.h"
11
12ClassImp(AliITSOnlineSPDscanInfoMultiple)
13
14AliITSOnlineSPDscanInfoMultiple::AliITSOnlineSPDscanInfoMultiple() :
470cfbd1 15 AliITSOnlineSPDscanInfo(), fDacId(-1), fDacValues(TArrayI())
b15de2d2 16{}
17
18AliITSOnlineSPDscanInfoMultiple::~AliITSOnlineSPDscanInfoMultiple() {}
19
20UInt_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);
25 return returnval;
26}
27
28void AliITSOnlineSPDscanInfoMultiple::SetDacValue(UInt_t nsi, Int_t val) {
29 // set the dac value for step nsi
30 if (nsi<fNSteps) {
31 fDacValues.AddAt(val, nsi);
32 }
33}
34
35Int_t AliITSOnlineSPDscanInfoMultiple::GetDacValue(UInt_t nsi) const {
36 // get the dac value for step nsi
37 if (nsi<fNSteps) {
38 return fDacValues.At(nsi);
39 }
40 else return -1;
41}