Access simulation parameters in digitizers via file in OCDB, simulation parameter...
[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
fbb3a256 28 void SetNTimeBins(Int_t ntb) { fNTimeBins = ntb; }
29 void SetPretriggerPhase(Int_t det, UInt_t phase) { fPretriggerPhase[det] = phase; }
30 void SetADCbaseline(Int_t baseline) { fADCbaseline = baseline; }
966f6939 31
fbb3a256 32 Int_t GetNTimeBins() const { return fNTimeBins; }
33 UInt_t GetPretriggerPhase(Int_t det) const { return fPretriggerPhase[det]; }
34 Int_t GetADCbaseline() const { return fADCbaseline; }
966f6939 35
36 protected:
37
bb1f50e8 38 Int_t fNTimeBins; // Number of timebins
39 UInt_t fPretriggerPhase[540]; // Pretrigger phase for each detector
683855ce 40 Int_t fADCbaseline; // ADC baseline, given in ADC channels
bb1f50e8 41
5896bc23 42 ClassDef(AliTRDdigitsParam,4) // The parameters for digits
966f6939 43
44};
45#endif