]> git.uio.no Git - u/mrichter/AliRoot.git/blob - STEER/AliCentralTrigger.h
First prototype of the trigger classes (E. Lopez Torres)
[u/mrichter/AliRoot.git] / STEER / AliCentralTrigger.h
1 #ifndef ALICENTRALTRIGGER_H
2 #define ALICENTRALTRIGGER_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 // This class for running the Central Trigger Processor                      //
12 //                                                                           //
13 //                                                                           //
14 //    Load Descriptors                                                       //
15 //    Make a list the trigger detectors involve from the descriptors         //
16 //    For the each event                                                     //
17 //           Run the Trigger for the each detector                           //
18 //           Get the inputs                                                  //
19 //           Check the condition classes                                     //
20 //           Create the class mask                                           //
21 //           Save result                                                     //
22 //                                                                           //
23 ///////////////////////////////////////////////////////////////////////////////
24
25 #include <TObject.h>
26 #include <TObjArray.h>
27
28 class AliCentralTrigger : public TObject {
29
30 public:
31                           AliCentralTrigger();
32                           AliCentralTrigger( TString & descriptor );
33                virtual   ~AliCentralTrigger();
34
35                 Bool_t    LoadDescriptor( TString & descriptor );
36                 Bool_t    RunTrigger( AliRunLoader * runloader );
37                 Long_t    CheckConditions();
38   //  Getters
39                TString    GetDetectors();
40                 Long_t    GetClassMask() const { return fClassMask; }
41              TObjArray*   GetLoadedDescriptors() { return &fDescriptors; }
42              TObjArray*   GetResultConditions();
43                   void    Print( const Option_t* opt ="" ) const;
44 protected:
45        //        TString    fRunCondition;     // Running modes Ej. Pb-Pb, p-p, p-A
46                 Long_t    fClassMask;          // UID ( bitwise OR of conditions mask )
47              TObjArray    fDescriptors;        // Array of Trigger Descriptors (AliTriggerDescriptor)
48              TObjArray    fInputs;             //! Array of Trigger Inputs
49
50 private:
51                 Bool_t    IsSelected( TString detName, TString& detectors ) const;
52
53    ClassDef( AliCentralTrigger, 1 )  // class for running the Central Trigger Processor
54 };
55
56
57 #endif