AliRoot Core  edcc906 (edcc906)
AliVHeader.h
Go to the documentation of this file.
1 #ifndef AliVHeader_H
2 #define AliVHeader_H
3 /* Copyright(c) 1998-2007, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice */
5 
6 /* $Id$ */
7 
8 //-------------------------------------------------------------------------
9 // Event header base class
10 // Author: Markus Oldenburg, CERN
11 //-------------------------------------------------------------------------
12 
13 #include <TNamed.h>
14 #include <TBits.h>
15 class TList;
16 class AliVHeader : public TNamed {
17 
18  public :
19  AliVHeader();
20  virtual ~AliVHeader() { };
21  AliVHeader(const AliVHeader& evt);
22  AliVHeader& operator=(const AliVHeader& evt);
23 
24  virtual UShort_t GetBunchCrossNumber() const = 0;
25  virtual UInt_t GetOrbitNumber() const = 0;
26  virtual UInt_t GetPeriodNumber() const = 0;
27  virtual UInt_t GetTimeStamp() const = 0;
28  virtual ULong64_t GetTriggerMask() const = 0;
29  virtual ULong64_t GetTriggerMaskNext50() const = 0;
30  virtual UChar_t GetTriggerCluster() const = 0;
31  virtual UInt_t GetEventType() const = 0;
32  virtual TList* GetCocktailHeaders() {return 0;}
33  ULong64_t GetEventIdAsLong() const;
34  virtual Bool_t IsTriggerInputFired(const char* /*name*/) const {return kFALSE;}
35 
36  /*
37  virtual void SetBunchCrossNumber(UShort_t nBx) = 0;
38  virtual void SetOrbitNumber(UInt_t nOr) = 0;
39  virtual void SetPeriodNumber(UInt_t nPer) = 0;
40  virtual void SetTriggerMask(ULong64_t trigMsk) = 0;
41  virtual void SetTriggerCluster(UChar_t trigClus) = 0;
42  virtual void SetEventType(UInt_t evttype) = 0;
43  */
44  virtual UInt_t GetL0TriggerInputs() const {return 0;}
45  virtual UInt_t GetL1TriggerInputs() const {return 0;}
46  virtual UShort_t GetL2TriggerInputs() const {return 0;}
47  virtual TBits GetIRInt2InteractionMap() const { static TBits dummy; return dummy; }
48  virtual TBits GetIRInt1InteractionMap() const { static TBits dummy; return dummy; }
49 
50  virtual Int_t GetIRInt2ClosestInteractionMap() const {return 0;}
51  virtual Int_t GetIRInt1ClosestInteractionMap(Int_t =3/*gap = 3*/) const {return 0;}
52 
53 
54  virtual void Print(Option_t* option = "") const = 0;
55 
56  ClassDef(AliVHeader,1);
57 };
58 
59 #endif
ULong64_t GetEventIdAsLong() const
Definition: AliVHeader.cxx:46
virtual UShort_t GetBunchCrossNumber() const =0
virtual UChar_t GetTriggerCluster() const =0
virtual UInt_t GetEventType() const =0
virtual UInt_t GetOrbitNumber() const =0
virtual ~AliVHeader()
Definition: AliVHeader.h:20
virtual ULong64_t GetTriggerMaskNext50() const =0
virtual void Print(Option_t *option="") const =0
virtual UInt_t GetL1TriggerInputs() const
Definition: AliVHeader.h:45
virtual UInt_t GetTimeStamp() const =0
virtual Int_t GetIRInt2ClosestInteractionMap() const
Definition: AliVHeader.h:50
virtual TList * GetCocktailHeaders()
Definition: AliVHeader.h:32
virtual UShort_t GetL2TriggerInputs() const
Definition: AliVHeader.h:46
virtual TBits GetIRInt2InteractionMap() const
Definition: AliVHeader.h:47
virtual Int_t GetIRInt1ClosestInteractionMap(Int_t=3) const
Definition: AliVHeader.h:51
virtual TBits GetIRInt1InteractionMap() const
Definition: AliVHeader.h:48
virtual UInt_t GetL0TriggerInputs() const
Definition: AliVHeader.h:44
virtual ULong64_t GetTriggerMask() const =0
virtual UInt_t GetPeriodNumber() const =0
virtual Bool_t IsTriggerInputFired(const char *) const
Definition: AliVHeader.h:34
AliVHeader & operator=(const AliVHeader &evt)
Definition: AliVHeader.cxx:36