Fixes for Coverity warnings (M. van Leeuwen)
[u/mrichter/AliRoot.git] / ITS / AliITSFOSignalsSPD.h
CommitLineData
ad7f2bfa 1#ifndef ALIITS_FOSIGNALSSPD_H
2#define ALIITS_FOSIGNALSSPD_H
3
4/////////////////////////////////////////////////////////////////////
5// Author: Henrik Tydesjo //
6// //
7// This class is used to store information on generated Fast-OR //
8// signals. 1200 bits, one per pixel chip. //
9// //
10/////////////////////////////////////////////////////////////////////
11
12#include <TObject.h>
13#include <TBits.h>
14
15class AliITSFOSignalsSPD : public TObject {
16
17 public:
18 AliITSFOSignalsSPD();
19 virtual ~AliITSFOSignalsSPD();
20 AliITSFOSignalsSPD(const AliITSFOSignalsSPD& fo);
21 AliITSFOSignalsSPD& operator=(const AliITSFOSignalsSPD& fo);
22
23 virtual void ResetSignals() {fSignals.ResetAllBits();}
24 virtual void SetSignal(UInt_t eq, UInt_t hs, UInt_t chip, Bool_t setVal=kTRUE);
25 virtual Bool_t GetSignal(UInt_t eq, UInt_t hs, UInt_t chip) const;
26
27 virtual Bool_t GetNextSignal(Int_t& eq, Int_t& hs, Int_t& chip) const;
28 virtual void DumpSignals();
29
30 protected:
31 TBits fSignals; // FO signals, one bit per chip
32
33 UInt_t GetChipKey(Int_t eq, Int_t hs, Int_t chip) const;
34 void GetChipFromKey(UInt_t key, Int_t& eq, Int_t& hs, Int_t& chip) const;
35
36 ClassDef(AliITSFOSignalsSPD,1)
37};
38
39#endif