From 7ecf374b4668e302acacec1619e8670b8a68dc0f Mon Sep 17 00:00:00 2001 From: ivana Date: Wed, 8 Feb 2006 15:12:29 +0000 Subject: [PATCH] - Using AliMUONStringIntMap instead of AliMUONGeometrySVMap - Reordered includes, forward declarations --- MUON/AliMUONGeometry.cxx | 20 ++++++++++---------- MUON/AliMUONGeometry.h | 5 ++--- MUON/AliMUONv1.cxx | 21 +++++++++++---------- MUON/AliMUONv1.h | 4 ++-- 4 files changed, 25 insertions(+), 25 deletions(-) diff --git a/MUON/AliMUONGeometry.cxx b/MUON/AliMUONGeometry.cxx index 26732fa6b87..16f901db974 100644 --- a/MUON/AliMUONGeometry.cxx +++ b/MUON/AliMUONGeometry.cxx @@ -21,19 +21,19 @@ // // Author: Ivana Hrivnacova, IPN Orsay -#include - -#include -#include -#include - #include "AliMUONGeometry.h" #include "AliMUONGeometryTransformer.h" #include "AliMUONGeometryModule.h" -#include "AliMUONGeometrySVMap.h" +#include "AliMUONStringIntMap.h" #include "AliMUONGeometryStore.h" + #include "AliLog.h" +#include +#include +#include + +#include ClassImp(AliMUONGeometry) @@ -135,7 +135,7 @@ void AliMUONGeometry::FillData3(const TString& sensVolumePath, } // Get module sensitive volumes map - AliMUONGeometrySVMap* svMap = module->GetSVMap(); + AliMUONStringIntMap* svMap = module->GetSVMap(); // Map the sensitive volume to detection element svMap->Add(sensVolumePath, detElemId); @@ -182,10 +182,10 @@ void AliMUONGeometry::WriteData3(ofstream& out) const for (Int_t i=0; iGetEntriesFast(); i++) { AliMUONGeometryModule* geometry = (AliMUONGeometryModule*)fModules->At(i); - AliMUONGeometrySVMap* svMap + AliMUONStringIntMap* svMap = geometry->GetSVMap(); - svMap->WriteMap(out); + svMap->Print("SV", out); out << endl; } } diff --git a/MUON/AliMUONGeometry.h b/MUON/AliMUONGeometry.h index 90631613371..4e732d3cba3 100644 --- a/MUON/AliMUONGeometry.h +++ b/MUON/AliMUONGeometry.h @@ -15,11 +15,11 @@ #include #include -class TObjArray; - class AliMUONGeometryModule; class AliMUONGeometryTransformer; +class TObjArray; + class AliMUONGeometry : public TObject { public: @@ -33,7 +33,6 @@ class AliMUONGeometry : public TObject Bool_t ReadSVMap(const TString& fileName); Bool_t WriteSVMap(const TString& fileName) const; - // get methods const AliMUONGeometryModule* GetModule( Int_t index, Bool_t warn = true) const; diff --git a/MUON/AliMUONv1.cxx b/MUON/AliMUONv1.cxx index e9381365437..d26135d7192 100644 --- a/MUON/AliMUONv1.cxx +++ b/MUON/AliMUONv1.cxx @@ -19,15 +19,7 @@ // Manager and hits classes for set:MUON version 1 // ///////////////////////////////////////////////////////// -#include -#include -#include -#include -#include -#include - #include "AliMUONv1.h" -#include "AliConst.h" #include "AliMUONConstants.h" #include "AliMUONSegFactory.h" #include "AliMUONResponseFactory.h" @@ -38,13 +30,22 @@ #include "AliMUONGeometry.h" #include "AliMUONGeometryTransformer.h" #include "AliMUONGeometryModule.h" -#include "AliMUONGeometrySVMap.h" +#include "AliMUONStringIntMap.h" #include "AliMUONGeometryDetElement.h" + +#include "AliConst.h" #include "AliMagF.h" #include "AliRun.h" #include "AliMC.h" #include "AliLog.h" +#include +#include +#include +#include +#include +#include + #include ClassImp(AliMUONv1) @@ -249,7 +250,7 @@ TString AliMUONv1::CurrentVolumePath() const gMC->CurrentVolOffID(imother++, copyNo); TString add = "/"; add += name; - add += "."; + add += "_"; add += copyNo; path.Insert(0,add); } diff --git a/MUON/AliMUONv1.h b/MUON/AliMUONv1.h index 6ef8bd722e8..eb057d99e33 100644 --- a/MUON/AliMUONv1.h +++ b/MUON/AliMUONv1.h @@ -14,10 +14,10 @@ // Manager and hits classes for set:MUON version 1 // ///////////////////////////////////////////////////////// -#include - #include "AliMUON.h" +#include + class TF1; class TGeoCombiTrans; class TString; -- 2.43.0