In WriteSVMaps() - added argument writeEnvelopes;
authorivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 21 Mar 2007 11:19:33 +0000 (11:19 +0000)
committerivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 21 Mar 2007 11:19:33 +0000 (11:19 +0000)
this makes possible to choose this option from outside
(needed for running with Geant4 geometry)

MUON/AliMUONGeometryBuilder.cxx
MUON/AliMUONGeometryBuilder.h

index 5e39d96..d676631 100644 (file)
@@ -589,7 +589,7 @@ void AliMUONGeometryBuilder::InitGeometry(const TString& svmapFileName)
 
 //______________________________________________________________________________
 void AliMUONGeometryBuilder::WriteSVMaps(const TString& fileName, 
-                                         Bool_t rebuild)
+                                         Bool_t rebuild, Bool_t writeEnvelopes)
 {
 /// Write sensitive volume maps into files per builder
 
@@ -601,9 +601,6 @@ void AliMUONGeometryBuilder::WriteSVMaps(const TString& fileName,
       AliMUONVGeometryBuilder* builder
         = (AliMUONVGeometryBuilder*)fGeometryBuilders->At(i);
 
-      Bool_t writeEnvelopes = false;
-      if ( gMC->IsRootGeometrySupported() ) writeEnvelopes = true;
-
       builder->RebuildSVMaps(writeEnvelopes);
     }  
     
index 3744af2..a6b8a8c 100644 (file)
@@ -46,7 +46,8 @@ class AliMUONGeometryBuilder : public TObject
     void  InitGeometry(const TString& svmapFileName);
 
     void  WriteSVMaps();
-    void  WriteSVMaps(const TString& fileName, Bool_t rebuild = true);
+    void  WriteSVMaps(const TString& fileName, 
+                      Bool_t rebuild = true, Bool_t writeEnvelopes = true);
     
     // Geometry parametrisation
     const AliMUONGeometry*            GetGeometry() const;