]>
Commit | Line | Data |
---|---|---|
b802839b | 1 | #ifndef ALI_MP_SEG_FACTORY_H |
2 | #define ALI_MP_SEG_FACTORY_H | |
3 | ||
cf9a1555 | 4 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * |
5 | * See cxx source for full Copyright notice */ | |
6 | ||
700013f0 | 7 | // $Id$ |
13985652 | 8 | // $MpId: AliMpSegFactory.h,v 1.7 2006/05/24 13:58:16 ivana Exp $ |
cf9a1555 | 9 | |
10 | /// \ingroup management | |
11 | /// \class AliMpSegFactory | |
12 | /// \brief The factory for building mapping segmentations | |
13 | // | |
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. | |
18 | /// | |
13985652 | 19 | /// \author Ivana Hrivnacova, IPN Orsay |
cf9a1555 | 20 | |
b802839b | 21 | #ifndef ROOT_TObject |
2a7ea2e6 | 22 | # include <TObject.h> |
b802839b | 23 | #endif |
cf9a1555 | 24 | |
b802839b | 25 | #ifndef ALI_MP_STRING_OBJ_MAP_H |
26 | # include "AliMpStringObjMap.h" | |
27 | #endif | |
cf9a1555 | 28 | |
b802839b | 29 | class AliMpExMap; |
cf9a1555 | 30 | class AliMpVSegmentation; |
31 | ||
32 | class AliMpSegFactory : public TObject { | |
33 | ||
34 | public: | |
35 | AliMpSegFactory(); | |
36 | virtual ~AliMpSegFactory(); | |
37 | ||
38 | // methods | |
b802839b | 39 | AliMpVSegmentation* CreateMpSegmentation( |
40 | Int_t detElemId, Int_t cath); | |
41 | ||
42 | AliMpVSegmentation* CreateMpSegmentationByElectronics( | |
43 | Int_t detElemId, Int_t elCardID); | |
44 | ||
744ae0cb | 45 | void DeleteSegmentations(); |
cf9a1555 | 46 | |
13e7956b | 47 | private: |
cf9a1555 | 48 | AliMpSegFactory(const AliMpSegFactory& rhs); |
49 | AliMpSegFactory& operator=(const AliMpSegFactory& rhs); | |
50 | ||
b802839b | 51 | AliMpExMap* FillMpMap(Int_t detElemId); |
cf9a1555 | 52 | |
829425a5 | 53 | AliMpStringObjMap fMpSegmentations;///< Map of mapping segmentations to DE names |
54 | AliMpExMap* fMpMap; ///< Map of el. cards IDs to segmentations | |
b802839b | 55 | |
829425a5 | 56 | ClassDef(AliMpSegFactory,0) // The factory for building mapping segmentations |
cf9a1555 | 57 | }; |
58 | ||
59 | #endif //ALI_MP_SEG_FACTORY_H | |
60 | ||
61 | ||
62 | ||
63 | ||
64 | ||
65 | ||
66 | ||
67 | ||
68 | ||
69 | ||
70 | ||
71 | ||
72 | ||
73 | ||
74 |