1 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2 * See cxx source for full Copyright notice */
7 /// \class AliMUONSegmentation
8 /// \brief Container class for modules segmentations
10 /// It provides access to segmentations on all levels:
11 /// - mapping segmentation
12 /// - DE segmentation (operating in local DE reference frame)
13 /// - module segmentation (operating in global reference frame)
14 /// As some detection element are sharing the same objects
15 /// (AliMpVSegmentation, AliMUONVGeometryDESegmentation),
16 /// all segmentations objects have to be always deleted
17 /// altogether via deleting this container object.
19 /// Author: Ivana Hrivnacova, IPN Orsay
21 #ifndef ALI_MUON_SEGMENTATION_H
22 #define ALI_MUON_SEGMENTATION_H
25 #include <TGeoMatrix.h>
29 class AliMpVSegmentation;
31 class AliMUONGeometrySegmentation;
32 class AliMUONVGeometryDESegmentation;
34 class AliMUONSegmentation : public TObject
37 AliMUONSegmentation(Int_t nofModules);
38 AliMUONSegmentation();
39 virtual ~AliMUONSegmentation();
42 void AddMpSegmentation(AliMpVSegmentation* segmentation);
43 void AddDESegmentation(AliMUONVGeometryDESegmentation* segmentation);
45 void AddModuleSegmentation(Int_t moduleId, Int_t cathod,
46 AliMUONGeometrySegmentation* segmentation);
48 // This function should not be needed;
49 // the segmentations should be built in a valid state
56 // Geometry segmentations
58 AliMUONGeometrySegmentation* GetModuleSegmentation(
59 Int_t moduleId, Int_t cathod, Bool_t warn = true) const;
61 AliMUONGeometrySegmentation* GetModuleSegmentationByDEId(
62 Int_t detElemId, Int_t cathod, Bool_t warn = true) const;
66 const AliMUONVGeometryDESegmentation* GetDESegmentation(
67 Int_t detElemId, Int_t cathod, Bool_t warn = true) const;
69 // Mapping segmentations
71 const AliMpVSegmentation* GetMpSegmentation(
72 Int_t detElemId, Int_t cathod, Bool_t warn = true) const;
76 Bool_t HasDE(Int_t detElemId, Int_t cathod = 0) const;
77 TString GetDEName(Int_t detElemId, Int_t cathod = 0) const;
80 AliMUONSegmentation(const AliMUONSegmentation& right);
81 AliMUONSegmentation& operator = (const AliMUONSegmentation& right);
85 TObjArray* fMpSegmentations; // array of mapping segmentations
86 TObjArray* fDESegmentations; // array of DE segmentations
87 TObjArray* fModuleSegmentations[2]; // array of module segmentations
90 ClassDef(AliMUONSegmentation,1) // Container class for module segmentations
93 #endif //ALI_MUON_SEGMENTATION_H