]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PWG/muondep/AccEffTemplates/sim.C
Adding Pythia6. Make the Packages selection simpler (as alien can find the root and...
[u/mrichter/AliRoot.git] / PWG / muondep / AccEffTemplates / sim.C
index 1c563e0e31335a05f4430d5159b63a66cc714edb..5a38e41e6f1aa92696bf5ab84aa6744b0fbe7fd4 100644 (file)
@@ -5,13 +5,22 @@ void sim(Int_t nev=100)
   }
 
   AliSimulation simulator;
-  simulator.SetTriggerConfig("MUON");
   simulator.SetRunQA("MUON:ALL");
   simulator.SetRunHLT("");
 
-  simulator.SetMakeSDigits("MUON");
-  simulator.SetMakeDigits("MUON");// ITS"); // ITS needed to propagate the simulated vertex
-  simulator.SetMakeDigitsFromHits("ITS"); // ITS needed to propagate the simulated vertex
+  if ( VAR_USE_ITS_RECO )
+  {
+    simulator.SetMakeSDigits("MUON T0 VZERO FMD"); // T0 and VZERO for trigger efficiencies, FMD for diffractive studies
+    simulator.SetMakeDigitsFromHits("ITS"); // ITS needed to propagate the simulated vertex
+    simulator.SetMakeDigits("MUON T0 VZERO FMD");// ITS"); // ITS needed to propagate the simulated vertex
+  }
+  else
+  {
+    simulator.SetTriggerConfig("MUON");
+    simulator.SetMakeSDigits("MUON");
+    simulator.SetMakeDigits("MUON");// ITS"); // ITS needed to propagate the simulated vertex
+  }
+  
 
   simulator.SetDefaultStorage(VAR_OCDB_PATH);
   
@@ -29,10 +38,13 @@ void sim(Int_t nev=100)
     // Mag.field from OCDB
     simulator.UseMagFieldFromGRP();
 
-    simulator.UseVertexFromCDB();  
+    if ( VAR_USE_ITS_RECO )
+    {
+      simulator.UseVertexFromCDB();
+    }
   }
   
-  // The rest
+   // The rest
   TStopwatch timer;
   timer.Start();
   simulator.Run(nev);