]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/MUONTest.C
Simplifying calling test, explicite functions for each type of test
[u/mrichter/AliRoot.git] / MUON / MUONTest.C
index f4e6621a0d0db8f9766b0747cb71e6721f1e10aa..384d070f8cbb417173af5ea0254ea0fefe35e9df 100644 (file)
 // and segmentations
 // To be run from aliroot:
 // .L MUONTest.C
-// MUONTest(option, testNumber); > testN.out
+//  MUONTest(option); > test.out
 //     option     = "./Config.C", 
-//                  "default", "FactoryV2", "FactoryV3","FactoryV4", "FactoryNew"
-//     testNumber = 1, 2, 3
+//                  "default", "FactoryV2", "FactoryV3","FactoryV4"
+//
 //
 //  Author: I. Hrivnacova, IPN Orsay
 
-void MUONTest(const TString& option = "./Config.C", 
-              Int_t testNumber = 1)
+void MUONTest(const TString& option = "./Config.C")
 {
+  // Load tests library
+  gSystem->Load("libMUONtests");
+
   AliMUONTest test(option);
-  switch (testNumber) {
-    case 1: test.DetElemTransforms();  break;
-    case 2: test.ForWhole(kPrintPads); break; 
-    case 3: test.ForWhole(kDrawPads);  break; 
-    default: ;
-  }    
+  
+  // Print pads for all DEs
+  // test.PrintPadsForAll();
+  
+  // Print pads for first chamber, first cathod
+  // test.PrintPadsForSegmentation(0, 0);
+
+  // Print pads for detElem 100, first cathod
+  // test.PrintPadsForDetElement(100, 0);
+
+  
+  // Print pads for all DEs
+  test.DrawPadsForAll();
+  
+  // Draw pads for first chamber, first cathod
+  // test.DrawForSegmentation(0, 0);
+
+  // Draw pads for detElem 100, first cathod
+  // test.DrawForDetElement(100, 0);
 }