]>
Commit | Line | Data |
---|---|---|
202e63df | 1 | #ifndef ALITRIGGERBCMASK_H |
2 | #define ALITRIGGERBCMASK_H | |
3 | ||
4 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
5 | * See cxx source for full Copyright notice */ | |
6 | ||
7 | /////////////////////////////////////////////////////////////////////////////// | |
8 | // // | |
9 | // This class represents the CTP bunch-crossing mask // | |
10 | // // | |
710035a8 | 11 | // The Mask contains name and 3564 bits for each bunch-crossing in an orbit // |
202e63df | 12 | // // |
13 | // // | |
14 | /////////////////////////////////////////////////////////////////////////////// | |
15 | ||
51f6d619 | 16 | #include <TNamed.h> |
710035a8 | 17 | #include <TBits.h> |
202e63df | 18 | |
19 | class AliTriggerBCMask : public TNamed { | |
20 | ||
21 | public: | |
22 | AliTriggerBCMask(); | |
51f6d619 | 23 | AliTriggerBCMask( TString & name); |
24 | AliTriggerBCMask( TString & name, TString & mask ); | |
202e63df | 25 | AliTriggerBCMask( const AliTriggerBCMask& mask ); |
26 | virtual ~AliTriggerBCMask(); | |
27 | AliTriggerBCMask& operator=(const AliTriggerBCMask& mask); | |
28 | ||
51f6d619 | 29 | const UChar_t* GetFullMask () const {return fBCMask; } |
202e63df | 30 | Bool_t GetMask(UShort_t index) const; |
710035a8 | 31 | void Print( const Option_t* opt) const; |
cfb266f2 | 32 | |
33 | Bool_t SetMask (const char *mask); | |
202e63df | 34 | |
710035a8 | 35 | enum {kNBytesPerBCMask = 446, // Number of bytes to store the 3564 bits of BC mask |
36 | kNBits = 3564 // BC mask contains 3564 bits | |
37 | }; | |
202e63df | 38 | |
39 | private: | |
710035a8 | 40 | Bool_t CreateMask(TString &mask); |
41 | Bool_t Bcm2Bits(TObjArray *tokens, Int_t &index, TBits &bits, Int_t &ibit, Int_t &level) const; | |
51f6d619 | 42 | |
710035a8 | 43 | UChar_t fBCMask[kNBytesPerBCMask]; // Bunch cross mask (3564 bits) |
202e63df | 44 | |
710035a8 | 45 | ClassDef( AliTriggerBCMask, 2 ) // Define a trigger bunch-crossing mask |
202e63df | 46 | }; |
47 | ||
48 | #endif |