AliRoot Core  edcc906 (edcc906)
AliMUONGeometry.h
Go to the documentation of this file.
1 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2  * See cxx source for full Copyright notice */
3 
4 // $Id$
5 
11 
12 #ifndef ALI_MUON_GEOMETRY_H
13 #define ALI_MUON_GEOMETRY_H
14 
15 #include <TObject.h>
16 #include <TGeoMatrix.h>
17 
20 
21 class TObjArray;
22 
23 using std::ifstream;
24 using std::ofstream;
25 
26 class AliMUONGeometry : public TObject
27 {
28  public:
29  AliMUONGeometry(Bool_t isOwner);
31  virtual ~AliMUONGeometry();
32 
33  // methods
34  void AddModule(AliMUONGeometryModule* module);
35 
36  Bool_t ReadSVMap(const TString& fileName);
37  Bool_t WriteSVMap(const TString& fileName) const;
38 
39  // get methods
41  Int_t index, Bool_t warn = true) const;
42 
44  Int_t detElemId, Bool_t warn = true) const;
45 
47 
48 
49  protected:
51  AliMUONGeometry(const AliMUONGeometry& right);
54 
55  private:
56  //methods
57  TString ComposePath(const TString& volName, Int_t copyNo) const;
58 
59  void FillData3(const TString& sensVolumePath, Int_t detElemId);
60  TString ReadData3(ifstream& in);
61  void WriteData3(ofstream& out) const;
62 
63  // data members
66 
67  ClassDef(AliMUONGeometry,1) // Geometry parametrisation
68 };
69 
72 { return fTransformer; }
73 
74 #endif //ALI_MUON_GEOMETRY_H
75 
76 
77 
78 
79 
80 
81 
virtual ~AliMUONGeometry()
TString ComposePath(const TString &volName, Int_t copyNo) const
void AddModule(AliMUONGeometryModule *module)
AliMUONGeometryTransformer * GetTransformer() const
Return geometry transformer.
#define TObjArray
Top container class for geometry transformations.
Bool_t WriteSVMap(const TString &fileName) const
const AliMUONGeometryModule * GetModuleByDEId(Int_t detElemId, Bool_t warn=true) const
TString fileName(const char *dir, int runNumber, const char *da, int i, const char *type)
void WriteData3(ofstream &out) const
Container class for geometry modules.
void FillData3(const TString &sensVolumePath, Int_t detElemId)
TString ReadData3(ifstream &in)
TObjArray * fModules
Array of geometry modules.
const AliMUONGeometryModule * GetModule(Int_t index, Bool_t warn=true) const
Geometry parameters for detector module.
Bool_t ReadSVMap(const TString &fileName)
AliMUONGeometryTransformer * fTransformer
Geometry transformer.
AliMUONGeometry & operator=(const AliMUONGeometry &right)
Not implemented.