1 #ifndef ALI_MP_SEG_FACTORY_H
2 #define ALI_MP_SEG_FACTORY_H
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
8 // $MpId: AliMpSegFactory.h,v 1.5 2006/03/17 11:35:58 ivana Exp $
10 /// \ingroup management
11 /// \class AliMpSegFactory
12 /// \brief The factory for building mapping segmentations
14 /// The factory does not delete the created segmentation objects.
15 /// They have to be deleted in the client code.
16 /// As the same segmentation objects can be shared with more detection elements,
17 /// the class provides Clear() method for a safe deleting.
19 /// Authors: Ivana Hrivnacova, IPN Orsay
25 #ifndef ALI_MP_STRING_OBJ_MAP_H
26 # include "AliMpStringObjMap.h"
30 class AliMpVSegmentation;
32 class AliMpSegFactory : public TObject {
36 virtual ~AliMpSegFactory();
39 AliMpVSegmentation* CreateMpSegmentation(
40 Int_t detElemId, Int_t cath);
42 AliMpVSegmentation* CreateMpSegmentationByElectronics(
43 Int_t detElemId, Int_t elCardID);
45 void DeleteSegmentations();
48 AliMpSegFactory(const AliMpSegFactory& rhs);
49 AliMpSegFactory& operator=(const AliMpSegFactory& rhs);
52 AliMpExMap* FillMpMap(Int_t detElemId);
56 AliMpStringObjMap fMpSegmentations;// Map of mapping segmentations to DE names
57 AliMpExMap* fMpMap; // Map of el. cards IDs to segmentations
59 ClassDef(AliMpSegFactory,0) // MUON Factory for Chambers and Segmentation
62 #endif //ALI_MP_SEG_FACTORY_H