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