Bug fix. Removed delete statement
[u/mrichter/AliRoot.git] / STEER / AliTriggerCluster.h
CommitLineData
51f6d619 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
9///////////////////////////////////////////////////////////////////////////////
10//
11// Class to define a Trigger Cluster
12//
13// A Trigger Cluster is a group of detector to be trigger together
14//
15//////////////////////////////////////////////////////////////////////////////
16class TObject;
17class TString;
18
19class AliTriggerCluster : public TNamed {
20
21public:
22 AliTriggerCluster();
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
34private:
35 UChar_t fClusterMask; // The trigger cluster mask pattern
36 Bool_t IsSelected( TString detName, TString & detectors ) const;
37 AliTriggerCluster& operator=(const AliTriggerCluster& clus);
38
39 ClassDef( AliTriggerCluster, 1 ) // Define a Trigger Cluster
40};
41
42#endif