Update master to aliroot
[u/mrichter/AliRoot.git] / STEER / STEERBase / AliTOFTriggerMask.h
CommitLineData
1f4ce44e 1#ifndef ALITOFTRIGGERMASK_H
2#define ALITOFTRIGGERMASK_H
3
4/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
6/* $Id$ */
7
8// *
9// *
10// *
11// * this class defines the TOF object to be stored
12// * in OCDB on a run-by-run basis in order to have the status
13// * of TOF trigger inputs. it stores 32 bit masks for each crate
14// *
15// *
16// *
17// *
18
19#include "TObject.h"
5977c99f 20#include "TMath.h"
09c70ff8 21#include "TH2F.h"
1f4ce44e 22
23class AliTOFTriggerMask :
24public TObject
25{
26
27 public:
28
29 AliTOFTriggerMask(); // default constructor
30 virtual ~AliTOFTriggerMask(); // default destructor
31 AliTOFTriggerMask(const AliTOFTriggerMask &source); // copy constructor
32 AliTOFTriggerMask &operator=(const AliTOFTriggerMask &source); // operator=
33
34 UInt_t GetTriggerMask(UInt_t icrate) const {return icrate < 72 ? fTriggerMask[icrate] : 0;}; // get trigger mask
35 UInt_t *GetTriggerMaskArray() {return fTriggerMask;}; // get trigger mask array
36
37 void SetTriggerMaskArray(UInt_t *array); // set trigger mask array
38
49a1368d 39 void ResetMask();
40 void SetON(Int_t icrate,Int_t ich);
41 Bool_t IsON(Int_t icrate,Int_t ich);
42
09c70ff8 43 Int_t GetNumberMaxiPadOn(); // return number of active MP
44 TH2F *GetHistoMask(); // return active MP map
5977c99f 45
1f4ce44e 46 private:
49a1368d 47 static Int_t fPowerMask[24]; // 2-power mask table
1f4ce44e 48
49a1368d 49 UInt_t fTriggerMask[72]; //[0,16777215,23] trigger mask array
1f4ce44e 50
49a1368d 51 ClassDef(AliTOFTriggerMask, 2);
1f4ce44e 52};
53
54#endif /* ALITOFTRIGGERMASK_H */