LCOV - code coverage report
Current view: top level - ITS/ITSrec - AliITSOnlineSPDscanInfoMultiple.cxx (source / functions) Hit Total Coverage
Test: coverage.info Lines: 1 16 6.2 %
Date: 2016-06-14 17:26:59 Functions: 1 9 11.1 %

          Line data    Source code
       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             : 
      12         116 : ClassImp(AliITSOnlineSPDscanInfoMultiple)
      13             : 
      14             : AliITSOnlineSPDscanInfoMultiple::AliITSOnlineSPDscanInfoMultiple() :
      15           0 :   AliITSOnlineSPDscanInfo(), fDacId(-1), fDacValues(TArrayI())
      16           0 : {}
      17             : 
      18           0 : AliITSOnlineSPDscanInfoMultiple::~AliITSOnlineSPDscanInfoMultiple() {}
      19             : 
      20             : UInt_t AliITSOnlineSPDscanInfoMultiple::AddScanStep() {
      21             :   // add a new scan step, allocate space in the TArrayI
      22           0 :   UInt_t returnval = AliITSOnlineSPDscanInfo::AddScanStep();
      23           0 :   fDacValues.Set(fNSteps);
      24           0 :   fDacValues.AddAt(-1, fNSteps-1);
      25           0 :   return returnval;
      26             : }
      27             : 
      28             : void AliITSOnlineSPDscanInfoMultiple::SetDacValue(UInt_t nsi, Int_t val) {
      29             :   // set the dac value for step nsi
      30           0 :   if (nsi<fNSteps) {
      31           0 :     fDacValues.AddAt(val, nsi);
      32           0 :   }
      33           0 : }
      34             : 
      35             : Int_t AliITSOnlineSPDscanInfoMultiple::GetDacValue(UInt_t nsi) const {
      36             :   // get the dac value for step nsi
      37           0 :   if (nsi<fNSteps) {
      38           0 :     return fDacValues.At(nsi);
      39             :   }
      40           0 :   else return -1;
      41           0 : }

Generated by: LCOV version 1.11