]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Removed option from CreateSegmentation(), no alternative options
authorivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 3 Nov 2006 15:24:30 +0000 (15:24 +0000)
committerivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 3 Nov 2006 15:24:30 +0000 (15:24 +0000)
for segmentations are supported anymore

MUON/AliMUONSegFactory.cxx
MUON/AliMUONSegFactory.h

index 954ef51bc237d2a212215c8d5a091dfe6385ad16..8ed2e58091e0bb21fd5bfcc8b142b0ca472f39f9 100644 (file)
@@ -33,7 +33,6 @@
 #include "AliMUONGeometrySegmentation.h"
 #include "AliMUONSt12QuadrantSegmentation.h"
 #include "AliMUONSt345SlatSegmentation.h"
-#include "AliMUONSt345SlatSegmentationV2.h"
 #include "AliMUONTriggerSegmentation.h"
 
 #include "AliMpDEManager.h"
@@ -205,7 +204,7 @@ AliMUONSegFactory::CreateDESegmentation(Int_t detElemId, Int_t cath)
         break;
         
       case kStation345:                  
-        deSegmentation = new AliMUONSt345SlatSegmentationV2(
+        deSegmentation = new AliMUONSt345SlatSegmentation(
                                 mpSegmentation, detElemId, planeType); 
         //cout << "   new AliMUONSt345SlatSegmentationV2 "                       
        //     << StationTypeName(stationType) << "  "  
@@ -254,28 +253,10 @@ AliMUONSegFactory::CreateModuleSegmentations(Int_t chamberId, Int_t cath)
     
 //______________________________________________________________________________
 AliMUONSegmentation*  
-AliMUONSegFactory::CreateSegmentation(const TString& option)
+AliMUONSegFactory::CreateSegmentation()
 {
 /// Create segmentations on all levels and return their container.
 
-  // Check options
-  if ( option != "default"   && 
-       option != "FactoryV2" && 
-       option != "FactoryV3" &&
-       option != "FactoryV4" &&
-       option != "new") {
-
-    AliErrorStream() << "Option " << option << " not defined." << endl;
-    return 0;
-  }         
-  if ( option == "FactoryV2" || option == "FactoryV3" ) { 
-
-    AliErrorStream() 
-      << "Option " << option << " not supported anymore." << endl;
-    return 0;
-  }         
-
   for (Int_t chamberId = 0; chamberId<AliMUONConstants::NCh(); chamberId++)
     for (Int_t cath = 0; cath < 2; cath++) {
       if ( IsGeometryDefined(chamberId) )
index 1f71b0d2942fcdba36765ed52bbaa1be3cea8b8e..5ba535797c172c1e6e6d9c4a42f25481ce6a450f 100644 (file)
@@ -58,8 +58,7 @@ class AliMUONSegFactory : public  TObject {
     // Build methods
     //
     
-    AliMUONSegmentation*  
-      CreateSegmentation(const TString& option = "default"); 
+    AliMUONSegmentation* CreateSegmentation(); 
               // Create segmentations on all levels and return their container.
     
     //