]>
Commit | Line | Data |
---|---|---|
a5a091ce | 1 | #ifndef ALITRIGGERDETECTOR_H |
2 | #define ALITRIGGERDETECTOR_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 | // Base Class for Detector specific Trigger // // | |
12 | // // | |
13 | /////////////////////////////////////////////////////////////////////////////// | |
14 | ||
15 | #include <TObjArray.h> | |
bacbe0fd | 16 | #include <TNamed.h> |
a5a091ce | 17 | class TString; |
18 | class AliTriggerInput; | |
19 | ||
20 | ||
21 | class AliTriggerDetector : public TNamed { | |
22 | ||
23 | public: | |
24 | AliTriggerDetector(); | |
51f6d619 | 25 | virtual ~AliTriggerDetector(); |
26 | AliTriggerDetector(const AliTriggerDetector & de ); | |
a5a091ce | 27 | |
51f6d619 | 28 | void CreateInputs(const TObjArray& inputs); |
a5a091ce | 29 | virtual void CreateInputs(); |
30 | virtual void Trigger(); | |
31 | // Setters | |
32 | void AddInput( TObject * input ) { fInputs.AddLast( input ); } | |
33 | void SetInput( TString & name ); | |
34 | void SetInput( const char * name ); | |
a5a091ce | 35 | // Getters |
36 | TObjArray* GetInputs() { return &fInputs; } | |
37 | Long_t GetMask() const { return fMask; } | |
38 | ||
39 | AliTriggerInput* GetInput( TString & name ) { | |
40 | return ((AliTriggerInput*)fInputs.FindObject( name.Data() )); | |
41 | } | |
42 | AliTriggerInput* GetInput( const char * name ) { | |
43 | return ((AliTriggerInput*)fInputs.FindObject( name )); | |
44 | } | |
bacbe0fd | 45 | virtual void Print( const Option_t* opt ="" ) const; |
46 | ||
a5a091ce | 47 | protected: |
48 | Long_t fMask; // Trigger Mask ( bitwise OR of trigger inputs ) | |
49 | TObjArray fInputs; // Array of Triggers Inputs (AliTriggerInput class) | |
50 | ||
51f6d619 | 51 | private: |
52 | AliTriggerDetector& operator=(const AliTriggerDetector& de); | |
53 | ||
a5a091ce | 54 | ClassDef( AliTriggerDetector, 1 ) // Base Class for Detector specific Trigger |
55 | }; | |
56 | ||
57 | #endif |