**************************************************************************/
// $Id$
-//
-// ----------------------------
+
+//-----------------------------------------------------------------------------
// Class AliMUONGeometry
// ----------------------------
// Manager class for geometry construction via geometry builders.
// Author: Ivana Hrivnacova, IPN Orsay
+//-----------------------------------------------------------------------------
#include "AliMUONGeometry.h"
#include "AliMUONGeometryTransformer.h"
#include "AliMUONGeometryModule.h"
#include "AliMUONStringIntMap.h"
-#include "AliMUONGeometryStore.h"
+
+#include "AliMpDEManager.h"
#include "AliLog.h"
#include <iostream>
+/// \cond CLASSIMP
ClassImp(AliMUONGeometry)
+/// \endcond
//______________________________________________________________________________
AliMUONGeometry::AliMUONGeometry(Bool_t isOwner)
fModules->SetOwner(isOwner);
// Geometry parametrisation
- fTransformer = new AliMUONGeometryTransformer(false);
+ fTransformer = new AliMUONGeometryTransformer();
+ fTransformer->SetOwner(false);
}
//______________________________________________________________________________
/// Default constructor
}
-//______________________________________________________________________________
-AliMUONGeometry::AliMUONGeometry(const AliMUONGeometry& right)
- : TObject(right)
-{
-/// Copy constructor (not implemented)
-
- AliFatal("Copy constructor not provided.");
-}
-
//______________________________________________________________________________
AliMUONGeometry::~AliMUONGeometry()
{
delete fTransformer;
}
-//______________________________________________________________________________
-AliMUONGeometry&
-AliMUONGeometry::operator=(const AliMUONGeometry& right)
-{
-/// Assignement operator (not implemented)
-
- // check assignement to self
- if (this == &right) return *this;
-
- AliFatal("Assignement operator not provided.");
-
- return *this;
-}
-
//
// private methods
//
TString AliMUONGeometry::ComposePath(const TString& volName,
Int_t copyNo) const
{
-// Compose path from given volName and copyNo
-// ---
+/// Compose path from given volName and copyNo
TString path(volName);
path += ".";
void AliMUONGeometry::FillData3(const TString& sensVolumePath,
Int_t detElemId)
{
-// Fill the mapping of the sensitive volume path to the detection element.
-// ---
+/// Fill the mapping of the sensitive volume path to the detection element.
// Module Id
- Int_t moduleId = AliMUONGeometryStore::GetModuleId(detElemId);
+ Int_t moduleId = AliMpDEManager::GetGeomModuleId(detElemId);
// Get module
AliMUONGeometryModule* module
//______________________________________________________________________________
TString AliMUONGeometry::ReadData3(ifstream& in)
{
-// Reads SV maps from a file
-// Returns true, if reading finished correctly.
-// ---
+/// Read SV maps from a file.
+/// Return true, if reading finished correctly.
TString key("SV");
while ( key == TString("SV") ) {
//______________________________________________________________________________
void AliMUONGeometry::WriteData3(ofstream& out) const
{
-// Writes association of sensitive volumes and detection elements
-// from the sensitive volume map
-// ---
+/// Write association of sensitive volumes and detection elements
+/// from the sensitive volume map
for (Int_t i=0; i<fModules->GetEntriesFast(); i++) {
AliMUONGeometryModule* geometry
//_____________________________________________________________________________
void AliMUONGeometry::AddModule(AliMUONGeometryModule* module)
{
-/// Add the geometrymodule to the array
+/// Add the geometry module to the array
fModules->Add(module);
Bool_t
AliMUONGeometry::ReadSVMap(const TString& fileName)
{
-// Reads the sensitive volume maps from a file
-// Returns true, if reading finished correctly.
-// ---
+/// Read the sensitive volume maps from a file.
+/// Return true, if reading finished correctly.
// No reading
// if builder is not associated with any geometry module
Bool_t
AliMUONGeometry::WriteSVMap(const TString& fileName) const
{
-// Writes sensitive volume map into a file
-// Returns true, if writing finished correctly.
-// ---
+/// Write sensitive volume map into a file.
+/// Return true, if writing finished correctly.
// No writing
// if builder is not associated with any geometry module
const AliMUONGeometryModule*
AliMUONGeometry::GetModuleByDEId(Int_t detElemId, Bool_t warn) const
{
-/// Return the geometry module specified by index
+/// Return the geometry module specified by detElemId
// Get module index
- Int_t index = AliMUONGeometryStore::GetModuleId(detElemId);
+ Int_t index = AliMpDEManager::GetGeomModuleId(detElemId);
return GetModule(index, warn);
}