AliRoot Core  ee782a0 (ee782a0)
AliTriggerCluster.h
Go to the documentation of this file.
1 #ifndef ALITRIGGERCLUSTER_H
2 #define ALITRIGGERCLUSTER_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 
10 //
11 // Class to define a Trigger Cluster
12 //
13 // A Trigger Cluster is a group of detector to be trigger together
14 //
16 class TObject;
17 class TString;
18 
19 class AliTriggerCluster : public TNamed {
20 
21 public:
23  AliTriggerCluster( TString & name, UChar_t index, TString & detectors );
24  AliTriggerCluster( const AliTriggerCluster &clus );
25  virtual ~AliTriggerCluster() {}
26 
27  // Getters
28  const char* GetDetectorsInCluster() const { return GetTitle(); }
29  Bool_t IsDetectorInCluster( TString & det );
30  UChar_t GetClusterMask() const { return fClusterMask; }
31 
32  virtual void Print( const Option_t* opt ="" ) const;
33 
34 private:
35  UChar_t fClusterMask; // The trigger cluster mask pattern
36  Bool_t IsSelected( TString detName, TString & detectors ) const;
38 
39  ClassDef( AliTriggerCluster, 1 ) // Define a Trigger Cluster
40 };
41 
42 #endif
virtual ~AliTriggerCluster()
Bool_t IsSelected(TString detName, TString &detectors) const
Bool_t IsDetectorInCluster(TString &det)
const char * GetDetectorsInCluster() const
AliTriggerCluster & operator=(const AliTriggerCluster &clus)
virtual void Print(const Option_t *opt="") const
UChar_t GetClusterMask() const