]>
Commit | Line | Data |
---|---|---|
a5a091ce | 1 | #ifndef ALITRIGGERCONDITION_H |
2 | #define ALITRIGGERCONDITION_H | |
3 | ||
4 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
5 | * See cxx source for full Copyright notice */ | |
6 | ||
7 | /* $Id$ */ | |
8 | ||
9 | /////////////////////////////////////////////////////////////////////////////// | |
10 | // | |
11 | // Class to define a Trigger Condition | |
12 | // // | |
13 | // A Trigger condition is defined from logical combination of trigger | |
14 | // inputs names (boolean expression) | |
15 | // | |
16 | /////////////////////////////////////////////////////////////////////////////// | |
17 | ||
18 | class TNamed; | |
19 | class TObjArray; | |
20 | class TString; | |
21 | ||
22 | class AliTriggerCondition : public TNamed { | |
23 | ||
24 | public: | |
25 | AliTriggerCondition(); | |
26 | AliTriggerCondition( const AliTriggerCondition &cond ); | |
27 | AliTriggerCondition( TString & condition, TString & name, | |
92c1978f | 28 | TString & description, ULong64_t mask ); |
a5a091ce | 29 | virtual ~AliTriggerCondition() {} |
30 | AliTriggerCondition& operator=(const AliTriggerCondition& rhs); | |
31 | ||
32 | void Trigger( TObjArray & inputs ); | |
33 | Bool_t CheckInputs( TObjArray & inputs ); | |
34 | // Setters | |
35 | void Reset() { fStatus = kFALSE; } | |
36 | // Getters | |
92c1978f | 37 | ULong64_t GetValue() const { return (fStatus) ? fClassMask : 0; } |
38 | ULong64_t GetMask() const { return fClassMask; } | |
a5a091ce | 39 | Bool_t GetStatus() const { return fStatus; } |
40 | virtual void Print( const Option_t* opt ="" ) const; | |
41 | protected: | |
92c1978f | 42 | ULong64_t fClassMask; // UID "class mask" should set only 1 bit from the position 0 to 50 |
a5a091ce | 43 | TString fCondition; // Definition of the condition |
44 | Bool_t fStatus; // true = Condition has been satisfied after Trigger | |
45 | ||
92c1978f | 46 | ClassDef( AliTriggerCondition, 2 ) // Define a Trigger Condition |
a5a091ce | 47 | }; |
48 | ||
49 | #endif |