GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » CBM » CBMROOT » General » Configuration files outside gconfig directory
Re: Configuration files outside gconfig directory [message #7548 is a reply to message #7531] Fri, 21 November 2008 18:32 Go to previous messageGo to previous message
Volker Friese is currently offline  Volker Friese
Messages: 365
Registered: April 2004
Location: GSI CBM
first-grade participant
From: *gsi.de
Dear Mohammad,

thanks for acting so quickly. I will test this as soon as possible.

However, I would like to propose a more user-friendly way to achieve the flexibility w.r.t. the transport configuration, which I think is easy to be implemented. It would require the user to define the configuration (and SetCut) script in the macro, e.g. by

// -----   Create simulation run  
  CbmRunSim* fRun = new CbmRunSim();
  fRun->SetName("TGeant3");              // Transport engine

  // ---> new
  fRun->SetConfig("myConfigFile.C");
  fRun->SetCuts("myCuts.C")

  fRun->SetOutputFile(outFile);          // Output file
  CbmRuntimeDb* rtdb = fRun->GetRuntimeDb();
// ---------


In my opinion, this is an easier way than defining a path with environment variables, which is somehow error prone. Moreover, all settings are now documented in the run macro. It requires only two additional (string) members in CbmRunSim with the appropriate setters. These variables are then given to the MCApplication at initialisation.

As in your solution, the default files (from VMCWORKDIR) should be taken if these variables are not set in the macro.
 
Read Message
Read Message
Read Message
Previous Topic: New external packages fairsoft_July08
Next Topic: Mass production DEC08 with full ECAL
Goto Forum:
  


Current Time: Sat Dec 21 14:46:32 CET 2024

Total time taken to generate the page: 0.00654 seconds