AliRoot Core  da88d91 (da88d91)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMpSlatMotifMap.h
Go to the documentation of this file.
1 #ifndef ALIMPSLATMOTIFMAP_H
2 #define ALIMPSLATMOTIFMAP_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 
14 // Author Laurent Aphecetche, Subatech
15 
16 #ifndef ROOT_TMap
17 # include "TMap.h"
18 #endif
19 
20 class AliMpVMotif;
21 class AliMpMotifType;
22 class TString;
23 
24 class AliMpSlatMotifMap : public TObject
25 {
26 public:
28  virtual ~AliMpSlatMotifMap();
29 
30  AliMpVMotif* FindMotif(const TString& id) const;
31  AliMpMotifType* FindMotifType(const TString& id) const;
32 
33  Bool_t AddMotif(AliMpVMotif* motif, Bool_t warn=kTRUE);
34  Bool_t AddMotifType(AliMpMotifType* motifType, Bool_t warn=kTRUE);
35 
36  void Print(Option_t* opt="") const;
37 
38  void Reset();
39 
40 private:
45 
46  TMap fMotifs;
47  TMap fMotifTypes;
48 
49  ClassDef(AliMpSlatMotifMap,3) // Slat motif map
50 };
51 
52 #endif
Bool_t AddMotifType(AliMpMotifType *motifType, Bool_t warn=kTRUE)
TMap fMotifs
collection of motifs
AliMpSlatMotifMap & operator=(const AliMpSlatMotifMap &rhs)
Not implemented.
A container to keep track of allocated motifs and motifTypes for slats (both St345 and trigger ones)...
void Print(Option_t *opt="") const
AliMpVMotif * FindMotif(const TString &id) const
Abstract base class for a motif with its unique ID and the motif type.
Definition: AliMpVMotif.h:24
AliMpMotifType * FindMotifType(const TString &id) const
Bool_t AddMotif(AliMpVMotif *motif, Bool_t warn=kTRUE)
TMap fMotifTypes
collection of motifTypes
Class that defines the motif properties.
return kTRUE
Definition: AliFMDv1.cxx:97