]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/mapping/AliMpSegFactory.h
Updates (N. Bastid)
[u/mrichter/AliRoot.git] / MUON / mapping / AliMpSegFactory.h
CommitLineData
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 29class AliMpExMap;
cf9a1555 30class AliMpVSegmentation;
31
32class 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
47 protected:
48 AliMpSegFactory(const AliMpSegFactory& rhs);
49 AliMpSegFactory& operator=(const AliMpSegFactory& rhs);
50
51 private:
b802839b 52 AliMpExMap* FillMpMap(Int_t detElemId);
53
54 private:
cf9a1555 55
829425a5 56 AliMpStringObjMap fMpSegmentations;///< Map of mapping segmentations to DE names
57 AliMpExMap* fMpMap; ///< Map of el. cards IDs to segmentations
b802839b 58
829425a5 59 ClassDef(AliMpSegFactory,0) // The factory for building mapping segmentations
cf9a1555 60};
61
62#endif //ALI_MP_SEG_FACTORY_H
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77