]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/Config.C
New class AliESDEvent, backward compatibility with the old AliESD (Christian)
[u/mrichter/AliRoot.git] / MUON / Config.C
index 81387cbd48e9c82b18bc79b8f14ad542a45555c5..be3eadc276821119ee7fbc6ba6e0c17c4e3ad4c8 100644 (file)
@@ -2,7 +2,7 @@
 // Remember to define the directory and option
 // gAlice->SetConfigFunction("Config('$HOME','box');");
 
-void Config(char directory[100]="", char option[6]="param")
+void Config(char directory[100]="", char option[6]="param", const char* digitstore="AliMUONDigitStoreV2S")
 {
   //=====================================================================
   // Config file for MUON test
@@ -75,11 +75,11 @@ void Config(char directory[100]="", char option[6]="param")
     gener->SetSigma(0.0, 0.0, 0.0);         //Sigma in (X,Y,Z) (cm) on IP position
   }
   if (!strcmp(option,"gun")) {
-    AliGenFixed *gener = new AliGenFixed(ntracks);
+    AliGenFixed *gener = new AliGenFixed(1);
     gener->SetMomentum(10);
     gener->SetPhiRange(0.);
     gener->SetThetaRange(0.);
-    gener->SetOrigin(30,30,1200);//vertex position
+    gener->SetOrigin(30,30,-1200);//vertex position
     gener->SetPart(13);          //GEANT particle type  13 is muons
   }
   if (!strcmp(option,"scan")) {
@@ -174,8 +174,13 @@ void Config(char directory[100]="", char option[6]="param")
   // activate trigger chamber efficiency by cells (0=default, 1=trigger efficiency according to AliMUONTriggerEfficiencyCells
   //  MUON->SetTriggerEffCells(0);
 
-  // To get same as above w/o noise-only digits for the tracker do  :
-  // MUON->SetDigitizerWithNoise(kKALSE);
+  // Use SetDigitStoreClassName() to change the digitStore implementation used by (s)digitizer
+  MUON->SetDigitStoreClassName(digitstore);
+  
+  cout << "MUON DigitStore is " << MUON->DigitStoreClassName().Data() << endl;
+  
+  // Noise-only digits in tracker/trigger (0=no noise, 1=default (noise in tracker), 2=noise in tracker and trigger):
+  //MUON->SetDigitizerWithNoise(kFALSE);
 
   //
   // If SetAlign, the detection elements transformations
@@ -193,7 +198,3 @@ void Config(char directory[100]="", char option[6]="param")
   //  MUON->AddGeometryBuilder(new AliMUONSlatGeometryBuilder(MUON));
   //  MUON->AddGeometryBuilder(new AliMUONTriggerGeometryBuilder(MUON));
 }
-
-Float_t EtaToTheta(Float_t arg){
-  return (180./TMath::Pi())*2.*atan(exp(-arg));
-}