]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
ALIROOT-5576 Can never use OCDB for trigger configurations in simulations. Fixes...
authorhristov <Peter.Hristov@cern.ch>
Thu, 25 Sep 2014 07:56:28 +0000 (09:56 +0200)
committermkrzewic <mikolaj.krzewicki@cern.ch>
Mon, 29 Sep 2014 08:47:51 +0000 (10:47 +0200)
STEER/STEER/AliCentralTrigger.cxx
STEER/STEER/AliSimulation.cxx

index 372949a836f7003cc7929d422c9b57e64992236d..1cb2a2ddcc23f9bbef88505f89449ea33d18f8a8 100644 (file)
@@ -169,7 +169,7 @@ Bool_t AliCentralTrigger::LoadConfiguration( TString & config )
   DeleteConfiguration();
 
    // Load the selected configuration
-   if (!config.IsNull()) {
+  if (!config.IsNull() && !config.EqualTo("ocdb",TString::kIgnoreCase)) {
      fConfiguration = AliTriggerConfiguration::LoadConfiguration( config );
      SetOwner();
      if(fConfiguration)
index aba83883e4da5b934e8de03dcb486760b2d588b9..e57f0e783a047eb2da701fbd7d24b081ebcb9e63 100644 (file)
 // The number of events per file has to be set before the simulation of      //
 // hits. Otherwise it has no effect.                                         //
 //                                                                           //
+// The trigger configuration is set by the method SetTriggerConfig(X)        //
+// X can take three kinds of values                                          //
+//                                                                           //
+//  - The exact string "none" - case insensitive.  In this case, not trigger //
+//    information is generated from the digits.                              //
+//  - The empty string or "ocdb" - case insensitive.  In this case the       //
+//    trigger configuration is read from OCDB                                //
+//  - Some string - say "p-p" - in which case the configuration is read from //
+//    fixed files in $ALICE_ROOT/GRP/CTP/ - say $ALICE_ROOT/GRP/CTP/p-p.cfg  //
+//                                                                           //
+// Default is to read from OCDB.                                             //
+//                                                                           //
 ///////////////////////////////////////////////////////////////////////////////
 
 #include <TFile.h>
@@ -731,8 +743,13 @@ Bool_t AliSimulation::Run(Int_t nEvents)
   AliSysInfo::AddStamp("Hits2Digits");
   
   
-  // digits -> trigger
-  if (!fTriggerConfig.IsNull() && !RunTrigger(fTriggerConfig,fMakeDigits)) {
+  // digits -> trigger.  Set trigger configuration to "none" - any
+  // case - to not generate the trigger information.  Set the trigger
+  // configuration to some string X to read from file at
+  // $ALICE_ROOT/GRP/CTP/X.  Set the trigger configuration to the
+  // empty string or "ocdb" - any case - to read from OCDB.
+  if (!fTriggerConfig.EqualTo("none",TString::kIgnoreCase) && 
+      !RunTrigger(fTriggerConfig,fMakeDigits)) {
     if (fStopOnError) return kFALSE;
   }