Merge branch 'master' of https://git.cern.ch/reps/AliRoot
[u/mrichter/AliRoot.git] / TRD / AliTRDdigitsParam.h
CommitLineData
966f6939 1#ifndef ALITRDDIGITSPARAM_H
2#define ALITRDDIGITSPARAM_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6///////////////////////////////////////////////////////////////////////////////
7// //
8// Class containing parameters for digits //
9// //
10///////////////////////////////////////////////////////////////////////////////
11
12/* $Id: AliTRDdigitsParam.h 34070 2009-08-04 15:34:53Z cblume $ */
13
14#include "TObject.h"
15
16class AliTRDdigitsParam : public TObject
17{
18
19 public:
20
21 AliTRDdigitsParam();
22 AliTRDdigitsParam(const AliTRDdigitsParam &p);
23 AliTRDdigitsParam &operator=(const AliTRDdigitsParam &p);
24 virtual ~AliTRDdigitsParam();
25
26 virtual void Copy(TObject &p) const;
27
a0446ff1 28 void SetNTimeBins(Int_t det, Int_t ntb) { fNTimeBins[det] = ntb; }
fbb3a256 29 void SetPretriggerPhase(Int_t det, UInt_t phase) { fPretriggerPhase[det] = phase; }
a0446ff1 30 void SetADCbaseline(Int_t det, Int_t baseline) { fADCbaseline[det] = baseline; }
966f6939 31
a0446ff1 32 void SetNTimeBinsAll(Int_t ntb) { for (Int_t i = 0; i < 540; i++)
33 { fNTimeBins[i] = ntb; } }
34 void SetPretriggerPhaseAll(UInt_t phase) { for (Int_t i = 0; i < 540; i++)
35 { fPretriggerPhase[i] = phase; } }
36 void SetADCbaselineAll(Int_t baseline) { for (Int_t i = 0; i < 540; i++)
37 { fADCbaseline[i] = baseline; } }
38
39 Int_t GetNTimeBins(Int_t det) const { return fNTimeBins[det]; }
fbb3a256 40 UInt_t GetPretriggerPhase(Int_t det) const { return fPretriggerPhase[det]; }
a0446ff1 41 Int_t GetADCbaseline(Int_t det) const { return fADCbaseline[det]; }
966f6939 42
43 protected:
44
a0446ff1 45 Int_t fNTimeBins[540]; // Number of timebins for each detector
bb1f50e8 46 UInt_t fPretriggerPhase[540]; // Pretrigger phase for each detector
a0446ff1 47 Int_t fADCbaseline[540]; // ADC baseline for each detector, given in ADC channels
bb1f50e8 48
a0446ff1 49 ClassDef(AliTRDdigitsParam,5) // The parameters for digits
966f6939 50
51};
52#endif