]> git.uio.no Git - u/mrichter/AliRoot.git/blame - STEER/AliTriggerDetector.h
remove bad modules BEFORE cleaning digits
[u/mrichter/AliRoot.git] / STEER / AliTriggerDetector.h
CommitLineData
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 17class TString;
18class AliTriggerInput;
19
20
21class AliTriggerDetector : public TNamed {
22
23public:
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 47protected:
48 Long_t fMask; // Trigger Mask ( bitwise OR of trigger inputs )
49 TObjArray fInputs; // Array of Triggers Inputs (AliTriggerInput class)
50
51f6d619 51private:
52 AliTriggerDetector& operator=(const AliTriggerDetector& de);
53
a5a091ce 54 ClassDef( AliTriggerDetector, 1 ) // Base Class for Detector specific Trigger
55};
56
57#endif