1 /**************************************************************************
2 * Copyright(c) 2008-2010, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
18 ////////////////////////////////////////////////////////////////
19 // Author: A. Mastroserio //
20 // This class is used within the detector algorithm framework //
21 // to collect information on how the scan was arranged. //
22 ////////////////////////////////////////////////////////////////
24 #include "AliITSOnlineSPDfoInfo.h"
26 ClassImp(AliITSOnlineSPDfoInfo)
28 //_____________________________________________________________________
29 AliITSOnlineSPDfoInfo::AliITSOnlineSPDfoInfo():
30 fRunNumber(0), fRouter(999), fNumTriggers(0),
31 fDBversion(0), fNumDACindex(0), fDACindex(0)
33 //_____________________________________________________________________
34 AliITSOnlineSPDfoInfo::~AliITSOnlineSPDfoInfo()
36 //_____________________________________________________________________
37 void AliITSOnlineSPDfoInfo::ClearThis() {
38 // reset all values for this object
46 //_____________________________________________________________________
47 void AliITSOnlineSPDfoInfo::AddDACindex(Short_t index) {
48 // add a new DAC index, allocate space for TArrayS
50 fDACindex.Set(fNumDACindex);
51 fDACindex.AddAt(index, fNumDACindex-1);
53 //_____________________________________________________________________
54 Short_t AliITSOnlineSPDfoInfo::GetDACindex(UShort_t id) const {
55 // returns the DAC index at position id of TArrayS
56 if (id>=fNumDACindex) return -1;
57 else return fDACindex.At(id);