AliRoot Core  ee782a0 (ee782a0)
AliESDHLTDecision.h
Go to the documentation of this file.
1 //-*- Mode: C++ -*-
2 // $Id$
3 #ifndef ALIESDHLTDECISION_H
4 #define ALIESDHLTDECISION_H
5 /* This file is property of and copyright by the ALICE HLT Project *
6  * ALICE Experiment at CERN, All rights reserved. *
7  * See cxx source for full Copyright notice */
8 
13 
14 #include "TNamed.h"
15 #include "TArrayI.h"
16 #include "TArrayL64.h"
17 #include "TClonesArray.h"
18 
19 class AliESDHLTDecision : public TNamed
20 {
21  public:
25  AliESDHLTDecision(bool result, const char* description);
32 
34  void SetTriggerResult(bool result) {SetBit(kTriggerResult, result);}
35 
37  int SetTriggerItems(TArrayI items) {fTriggerItems=items; return 0;}
38 
40  int SetCounters(TArrayL64 counters) {fCounters=counters; return 0;}
41 
43  const char* GetDescription() const;
44 
46  bool Result() const { return TestBit(kTriggerResult) == 1; }
47 
50  virtual Option_t *GetOption() const {return Result()?"1":"0";}
51 
54  Bool_t IsTriggerFired(const char* name=NULL) const;
55 
57  virtual void Print(Option_t* option = "") const;
58 
60  virtual void Copy(TObject &object) const;
61 
63  virtual TObject *Clone(const char *newname="") const;
64 
65  enum {
67  kTriggerResult = BIT(15),
69  kTriggerDecision = BIT(16)
70  };
71 
72  static const char* Name() {return fgkName;}
73 
74  protected:
75  private:
80  TClonesArray fInputObjectInfo; // TNamed objects
81 
83  TArrayI fTriggerItems; // list of fired trigger items
84 
86  TArrayL64 fCounters; // event counters for trigger items
87 
89  static const char* fgkName; // the name of the HLT decision
90 
91  ClassDef(AliESDHLTDecision, 1)
92 };
93 #endif //ALIESDHLTDECISION_H
const char * GetDescription() const
get the description og the global trigger decision
virtual Option_t * GetOption() const
AliESDHLTDecision & operator=(const AliESDHLTDecision &src)
assignment operator
trigger result true/false
static const char * fgkName
object name for the HLT decision
int SetTriggerItems(TArrayI items)
set the active HLT trigger items
AliESDHLTDecision()
constructor
virtual void Copy(TObject &object) const
Inherited from TObject. Copy this to the specified object.
TArrayI fTriggerItems
array of fired trigger item ids from the HLT trigger menu
virtual void Print(Option_t *option="") const
Inherited from TObject. Print Information.
~AliESDHLTDecision()
destructor
TClonesArray fInputObjectInfo
static const char * Name()
Bool_t IsTriggerFired(const char *name=NULL) const
void SetTriggerResult(bool result)
set trigger result
virtual TObject * Clone(const char *newname="") const
Inherited from TObject. Create a new clone.
indicate trigger decision object
bool Result() const
trigger result
TArrayL64 fCounters
trigger counters for HLT trigger items
int SetCounters(TArrayL64 counters)
set the event counters for HLT trigger items