AliRoot Core  ee782a0 (ee782a0)
AliTriggerDetector.h
Go to the documentation of this file.
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 
10 // //
11 // Base Class for Detector specific Trigger // //
12 // //
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:
25  virtual ~AliTriggerDetector();
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:
53 
54  ClassDef( AliTriggerDetector, 1 ) // Base Class for Detector specific Trigger
55 };
56 
57 #endif
TObjArray * GetInputs()
void SetInput(TString &name)
virtual void AssignInputs(const TObjArray &inputs)
#define TObjArray
virtual void Print(const Option_t *opt="") const
Long_t GetMask() const
AliTriggerInput * GetInput(TString &name)
AliTriggerInput * GetInput(const char *name)
void AddInput(TObject *input)
virtual void CreateInputs()
AliTriggerDetector & operator=(const AliTriggerDetector &de)