]> git.uio.no Git - u/mrichter/AliRoot.git/blame - STEER/AliCentralTrigger.h
Check the overlaps above 1cm after the (mis)alignment (Raffaele)
[u/mrichter/AliRoot.git] / STEER / AliCentralTrigger.h
CommitLineData
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// //
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
bacbe0fd 28class TTree;
e8d02863 29class AliRunLoader;
30
a5a091ce 31class AliCentralTrigger : public TObject {
32
33public:
34 AliCentralTrigger();
35 AliCentralTrigger( TString & descriptor );
bacbe0fd 36 AliCentralTrigger( const AliCentralTrigger& ctp );
a5a091ce 37 virtual ~AliCentralTrigger();
38
39 Bool_t LoadDescriptor( TString & descriptor );
40 Bool_t RunTrigger( AliRunLoader * runloader );
41 Long_t CheckConditions();
bacbe0fd 42 void Reset();
43 void DeleteDescriptors();
44 void MakeBranch( TString name, TTree * tree );
a5a091ce 45 // Getters
46 TString GetDetectors();
92c1978f 47 ULong64_t GetClassMask() const { return fClassMask; }
7a03541c 48 UChar_t GetClusterMask();
a5a091ce 49 TObjArray* GetLoadedDescriptors() { return &fDescriptors; }
50 TObjArray* GetResultConditions();
51 void Print( const Option_t* opt ="" ) const;
52protected:
53 // TString fRunCondition; // Running modes Ej. Pb-Pb, p-p, p-A
bacbe0fd 54 ULong64_t fClassMask; // UID ( bitwise OR of conditions mask )
a5a091ce 55 TObjArray fDescriptors; // Array of Trigger Descriptors (AliTriggerDescriptor)
56 TObjArray fInputs; //! Array of Trigger Inputs
57
58private:
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