]> git.uio.no Git - u/mrichter/AliRoot.git/blob - STEER/AliCentralTrigger.h
Update rawdata format for trigger (Christian)
[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 TTree;
29 class AliRunLoader;
30
31 class AliCentralTrigger : public TObject {
32
33 public:
34                           AliCentralTrigger();
35                           AliCentralTrigger( TString & descriptor );
36                           AliCentralTrigger( const AliCentralTrigger& ctp );
37                virtual   ~AliCentralTrigger();
38
39                 Bool_t    LoadDescriptor( TString & descriptor );
40                 Bool_t    RunTrigger( AliRunLoader * runloader );
41                 Long_t    CheckConditions();
42                   void    Reset();
43                   void    DeleteDescriptors();
44                   void    MakeBranch( TString name, TTree * tree );
45   //  Getters
46                TString    GetDetectors();
47              ULong64_t    GetClassMask() const { return fClassMask; }
48                UChar_t    GetClusterMask();
49              TObjArray*   GetLoadedDescriptors() { return &fDescriptors; }
50              TObjArray*   GetResultConditions();
51                   void    Print( const Option_t* opt ="" ) const;
52 protected:
53        //        TString    fRunCondition;     // Running modes Ej. Pb-Pb, p-p, p-A
54              ULong64_t    fClassMask;          // UID ( bitwise OR of conditions mask )
55              TObjArray    fDescriptors;        // Array of Trigger Descriptors (AliTriggerDescriptor)
56              TObjArray    fInputs;             //! Array of Trigger Inputs
57
58 private:
59                 Bool_t    IsSelected( TString detName, TString& detectors ) const;
60
61    ClassDef( AliCentralTrigger, 1 )  // class for running the Central Trigger Processor
62 };
63
64
65 #endif