]> git.uio.no Git - u/mrichter/AliRoot.git/blob - STEER/AliTriggerBCMask.h
ALICE interface to Pythia8
[u/mrichter/AliRoot.git] / STEER / AliTriggerBCMask.h
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 //                                                                           //
11 // The Mask contains name and 3565 bits for each bunch-crossing in an orbit  //
12 //                                                                           //
13 //                                                                           //
14 ///////////////////////////////////////////////////////////////////////////////
15
16 #include <TNamed.h>
17
18 class AliTriggerBCMask : public TNamed {
19
20 public:
21                           AliTriggerBCMask();
22                           AliTriggerBCMask( TString & name);
23                           AliTriggerBCMask( TString & name, TString & mask );
24                           AliTriggerBCMask( const AliTriggerBCMask& mask );
25                virtual   ~AliTriggerBCMask();
26   AliTriggerBCMask&   operator=(const AliTriggerBCMask& mask);
27
28            const UChar_t* GetFullMask () const {return fBCMask; }
29                   Bool_t  GetMask(UShort_t index) const;
30                     void  Print( const Option_t* ) const;
31   
32   enum {kNBytesPerBCMask = 446}; // Number of bytes to store the 3565 bits of BC mask
33
34 private:
35                 void   CreateMask(TString &/*mask*/) {} 
36
37                 UChar_t   fBCMask[kNBytesPerBCMask];         // Bunch cross mask (3565 bit)
38
39    ClassDef( AliTriggerBCMask, 1 )  // Define a trigger bunch-crossing mask
40 };
41
42 #endif