1 #ifndef ALICENTRALTRIGGER_H
2 #define ALICENTRALTRIGGER_H
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
9 ///////////////////////////////////////////////////////////////////////////////
11 // This class for running the Central Trigger Processor //
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 //
19 // Check the condition classes //
20 // Create the class mask //
23 ///////////////////////////////////////////////////////////////////////////////
26 #include <TObjArray.h>
28 class AliCentralTrigger : public TObject {
32 AliCentralTrigger( TString & descriptor );
33 virtual ~AliCentralTrigger();
35 Bool_t LoadDescriptor( TString & descriptor );
36 Bool_t RunTrigger( AliRunLoader * runloader );
37 Long_t CheckConditions();
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;
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
51 Bool_t IsSelected( TString detName, TString& detectors ) const;
53 ClassDef( AliCentralTrigger, 1 ) // class for running the Central Trigger Processor