"Setting correct gains for Pb-p in simulation"
[u/mrichter/AliRoot.git] / T0 / AliT0Dqclass.h
CommitLineData
dc7ca31d 1#ifndef DAQ
2#define DAQ
3
4/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
6
7////////////////////////////////////////////////
8// class for T0 DAQ output //
9////////////////////////////////////////////////
10
11#include "TNamed.h"
12
13
14class AliT0Dqclass: public TNamed {
15
16 public:
17 AliT0Dqclass( );
18 AliT0Dqclass(const char* name);
19 virtual ~AliT0Dqclass();
20 void Reset();
21 virtual void Print(Option_t *) const;
22 //
23
24 Float_t GetTime(Int_t channel) const {return fTime[channel];}
25 Float_t* GetTime() const {return (float*)fTime;}
26 Float_t GetAmplitude(Int_t channel) const {return fAmplitude[channel];}
27 Float_t* GetAmplitude() const {return (float*)fAmplitude;}
28
29 void SetTime(Int_t channel, Float_t val) {fTime[channel]=val;}
30 void SetAmplitude(Int_t channel, Float_t val) {fAmplitude[channel]=val;}
31
32
33 protected:
34 // --- Pedestals
35 Float_t fTime[24]; // Mean pedestal values
36 Float_t fAmplitude[24]; // Mean pedestal values
37 Float_t fTotTime[24];
38
39 ClassDef(AliT0Dqclass,1) // DAQ data
40};
41
42typedef AliT0Dqclass AliSTARTDqclass; // for backward compatibility
43
44#endif