]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TRD/AliTRDCommonParam.h
Make use of new method AliRawReader::GetNumberOfEvents() - goinf to the last event...
[u/mrichter/AliRoot.git] / TRD / AliTRDCommonParam.h
CommitLineData
3551db50 1#ifndef AliTRDCOMMONPARAM_H
2#define AliTRDCOMMONPARAM_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6///////////////////////////////////////////////////////////////////////////////
7// //
2745a409 8// Class containing constant common parameters //
3551db50 9// //
10///////////////////////////////////////////////////////////////////////////////
11
12/* $Id$ */
13
14#include "TObject.h"
15
ba84a3e3 16class TRootIoCtor;
17
3551db50 18class AliTRDpadPlane;
19
20class AliTRDCommonParam : public TObject
21{
2745a409 22
3551db50 23 public:
3551db50 24
053767a4 25 enum { kNlayer = 6, kNstack = 5, kNsector = 18, kNdet = 540 };
3551db50 26
ba84a3e3 27 AliTRDCommonParam(TRootIoCtor *);
3551db50 28 AliTRDCommonParam(const AliTRDCommonParam &p);
29 AliTRDCommonParam &operator=(const AliTRDCommonParam &p);
671a9fcf 30 virtual ~AliTRDCommonParam();
31
2745a409 32 static AliTRDCommonParam *Instance();
671a9fcf 33 static void Terminate();
34
2745a409 35 virtual void Copy(TObject &p) const;
3551db50 36
5f6f5c22 37 void SetExB(Int_t exbOn = 1) { fExBOn = exbOn; }
38 void SetSamplingFrequency(Float_t freq) { fSamplingFrequency = freq; }
39 void SetSMstatus(Int_t sm, Char_t status) { fSMstatus[sm] = status; }
40
41 Bool_t ExBOn() const { return fExBOn; }
42 Float_t GetSamplingFrequency() const { return fSamplingFrequency; }
43 Char_t GetSMstatus(Int_t sm) const { return fSMstatus[sm]; }
b43a3e17 44
3551db50 45 protected:
2745a409 46
5f6f5c22 47 void Init();
b43a3e17 48
5f6f5c22 49 static AliTRDCommonParam *fgInstance; // Instance of this class (singleton implementation)
50 static Bool_t fgTerminated; // Defines if this class has already been terminated
51 Int_t fExBOn; // Switch for the ExB effects
52 Float_t fSamplingFrequency; // Sampling Frequency in MHz
53 Char_t fSMstatus[kNsector]; // Super module status byte
3551db50 54
3551db50 55 private:
2745a409 56
57 // This is a singleton, constructor is private!
3551db50 58 AliTRDCommonParam();
3551db50 59
5f6f5c22 60 ClassDef(AliTRDCommonParam,5) // The constant parameters common to simulation and reconstruction
f162af62 61
3551db50 62};
63
64#endif