1 /////////////////////////////////////////////////////////////////
2 // Author: Henrik Tydesjo //
3 // This class is used as a container online. //
4 // It holds additional information needed for a mean threshold //
6 // This class should only be used through the interface of the //
7 // AliITSOnlineSPDscanMeanTh class. //
8 /////////////////////////////////////////////////////////////////
10 #include "AliITSOnlineSPDscanInfoMeanTh.h"
12 ClassImp(AliITSOnlineSPDscanInfoMeanTh)
14 AliITSOnlineSPDscanInfoMeanTh::AliITSOnlineSPDscanInfoMeanTh() :
15 AliITSOnlineSPDscanInfoMultiple() {}
17 AliITSOnlineSPDscanInfoMeanTh::~AliITSOnlineSPDscanInfoMeanTh() {}
19 UInt_t AliITSOnlineSPDscanInfoMeanTh::AddScanStep() {
20 // add a new scan step, allocate space in the TArrays
21 UInt_t returnval = AliITSOnlineSPDscanInfoMultiple::AddScanStep();
22 for (UInt_t hs=0; hs<6; hs++) {
23 fDacLow[hs].Set(fNSteps);
24 fDacLow[hs].AddAt(-1, fNSteps-1);
25 fDacHigh[hs].Set(fNSteps);
26 fDacHigh[hs].AddAt(-1, fNSteps-1);
27 fTPAmps[hs].Set(fNSteps);
28 fTPAmps[hs].AddAt(-1, fNSteps-1);
33 void AliITSOnlineSPDscanInfoMeanTh::SetDacLow(UInt_t nsi, UInt_t hs, Int_t val) {
34 if (nsi<fNSteps) fDacLow[hs].AddAt(val,nsi);
36 void AliITSOnlineSPDscanInfoMeanTh::SetDacHigh(UInt_t nsi, UInt_t hs, Int_t val) {
37 if (nsi<fNSteps) fDacHigh[hs].AddAt(val,nsi);
39 void AliITSOnlineSPDscanInfoMeanTh::SetTPAmp(UInt_t nsi, UInt_t hs, Int_t val) {
40 if (nsi<fNSteps) fTPAmps[hs].AddAt(val,nsi);
42 Int_t AliITSOnlineSPDscanInfoMeanTh::GetDacLow(UInt_t nsi, UInt_t hs) const {
43 if (nsi<fNSteps) return fDacLow[hs].At(nsi);
46 Int_t AliITSOnlineSPDscanInfoMeanTh::GetDacHigh(UInt_t nsi, UInt_t hs) const {
47 if (nsi<fNSteps) return fDacHigh[hs].At(nsi);
50 Int_t AliITSOnlineSPDscanInfoMeanTh::GetTPAmp(UInt_t nsi, UInt_t hs) const {
51 if (nsi<fNSteps) return fTPAmps[hs].At(nsi);