]>
Commit | Line | Data |
---|---|---|
a5a091ce | 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 | // // | |
51f6d619 | 14 | // Load Configuration // |
15 | // Make a list the trigger detectors involved ( from the configuration) // | |
a5a091ce | 16 | // For the each event // |
17 | // Run the Trigger for the each detector // | |
18 | // Get the inputs // | |
51f6d619 | 19 | // Check the trigger classes // |
a5a091ce | 20 | // Create the class mask // |
21 | // Save result // | |
22 | // // | |
23 | /////////////////////////////////////////////////////////////////////////////// | |
24 | ||
25 | #include <TObject.h> | |
26 | #include <TObjArray.h> | |
27 | ||
bacbe0fd | 28 | class TTree; |
e8d02863 | 29 | class AliRunLoader; |
51f6d619 | 30 | class AliTriggerConfiguration; |
e8d02863 | 31 | |
a5a091ce | 32 | class AliCentralTrigger : public TObject { |
33 | ||
34 | public: | |
35 | AliCentralTrigger(); | |
51f6d619 | 36 | AliCentralTrigger( TString & config ); |
a5a091ce | 37 | virtual ~AliCentralTrigger(); |
38 | ||
51f6d619 | 39 | Bool_t LoadConfiguration( TString & config ); |
8480396b | 40 | Bool_t RunTrigger( AliRunLoader * runloader , const char* detectors); |
51f6d619 | 41 | ULong64_t TriggerClasses(); |
bacbe0fd | 42 | void Reset(); |
51f6d619 | 43 | void DeleteConfiguration(); |
bacbe0fd | 44 | void MakeBranch( TString name, TTree * tree ); |
a5a091ce | 45 | // Getters |
46 | TString GetDetectors(); | |
92c1978f | 47 | ULong64_t GetClassMask() const { return fClassMask; } |
51f6d619 | 48 | UChar_t GetClusterMask() const { return fClusterMask; } |
49 | AliTriggerConfiguration* GetConfiguration() { return fConfiguration; } | |
50 | TObjArray* GetFiredClasses() const; | |
a5a091ce | 51 | void Print( const Option_t* opt ="" ) const; |
67327b72 | 52 | TString GetTriggeredDetectors() const; |
a5a091ce | 53 | protected: |
bacbe0fd | 54 | ULong64_t fClassMask; // UID ( bitwise OR of conditions mask ) |
51f6d619 | 55 | UChar_t fClusterMask; // UID ( bitwise OR of clusters mask ) |
56 | AliTriggerConfiguration* fConfiguration; // Trigger Configuration used | |
a5a091ce | 57 | |
58 | private: | |
59 | Bool_t IsSelected( TString detName, TString& detectors ) const; | |
51f6d619 | 60 | AliCentralTrigger( const AliCentralTrigger& ctp ); |
a5a091ce | 61 | |
67327b72 | 62 | ClassDef( AliCentralTrigger, 3 ) // class for running the Central Trigger Processor |
a5a091ce | 63 | }; |
64 | ||
65 | ||
66 | #endif |