3 // Class AliMUONGeometryTransformStore
4 // -----------------------------------
5 // The class contains the array of transformations fDETransforms
6 // of the detection elements from a defined reference frame (MUON chamber )
7 // to the detection element frame.
8 // The detection elements numbering:
9 // DetElemId = chamberId*100 + [50] + detElemNum
10 // where chamberId = 1, 2, ..., 14
11 // detElemNum = 0, 1, ...
12 // The number 50 is added to distinguish detector elements
13 // in the left and the right hemispheres.
15 // Author: Ivana Hrivnacova, IPN Orsay
17 #ifndef ALI_MUON_GEOMETRY_TRANSFORM_STORE_H
18 #define ALI_MUON_GEOMETRY_TRANSFORM_STORE_H
20 #include <Riostream.h>
22 #include <TObjArray.h>
25 #include "AliMUONGeometrySVMap.h"
28 class TGeoTranslation;
30 class AliMUONGeometryTransformStore : public TObject
33 AliMUONGeometryTransformStore(
34 Int_t firstDetElemId, Int_t nofDetElems,
35 AliMUONGeometrySVMap* svMap);
36 AliMUONGeometryTransformStore();
37 virtual ~AliMUONGeometryTransformStore();
40 void Add(Int_t detElemId,
41 const TString& alignedVolume,
42 const TGeoCombiTrans& transformation);
44 virtual void Print(Option_t* /*option*/) const;
47 const TGeoCombiTrans* Get(Int_t detElemId) const;
48 const TGeoCombiTrans* FindBySensitiveVolume(const TString& volumePath) const;
51 AliMUONGeometryTransformStore(const AliMUONGeometryTransformStore& rhs);
54 AliMUONGeometryTransformStore& operator
55 = (const AliMUONGeometryTransformStore& rhs);
59 Int_t GetDetElementIndex(Int_t detElemId) const;
60 Int_t GetDetElementId(Int_t detElemIndex) const;
63 static const Int_t fgkHemisphere; // The constant to distinguish
64 // the left/right hemispere
66 Int_t fFirstDetElemId; // The first detection element Id
67 Int_t fNofDetElems; // Number of detection elements
68 TObjArray fDETransforms; // The array of transformations
69 AliMUONGeometrySVMap* fSVMap; // The map of sensitive volumes
70 // and detector element id
72 ClassDef(AliMUONGeometryTransformStore,1) // MUON transformations store
75 #endif //ALI_MUON_GEOMETRY_TRANSFORM_STORE_H