]> git.uio.no Git - u/mrichter/AliRoot.git/blob - STEER/AliTriggerDetector.h
Make it find libraries independently of location
[u/mrichter/AliRoot.git] / STEER / AliTriggerDetector.h
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>
16 #include <TNamed.h>
17 class TString;
18 class AliTriggerInput;
19
20
21 class AliTriggerDetector : public TNamed {
22
23 public:
24                           AliTriggerDetector();
25                virtual   ~AliTriggerDetector();
26                AliTriggerDetector(const AliTriggerDetector & de );
27
28           virtual void    AssignInputs(const TObjArray& inputs);
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 );
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                           }
45           virtual void    Print( const Option_t* opt ="" ) const;
46
47 protected:
48                 Long_t    fMask;      // Trigger Mask ( bitwise OR of trigger inputs )
49              TObjArray    fInputs;    // Array of Triggers Inputs (AliTriggerInput class)
50
51 private:
52              AliTriggerDetector&   operator=(const AliTriggerDetector& de);
53
54    ClassDef( AliTriggerDetector, 1 )  // Base Class for Detector specific Trigger
55 };
56
57 #endif