ROOT logo
AliRoot » STEER » STEER » AliSimulation

class AliSimulation: public TNamed


class for running generation, simulation and digitization

Hits, sdigits and digits are created for all detectors by typing:

AliSimulation sim;
sim.Run();

The Run method returns kTRUE in case of successful execution.
The number of events can be given as argument to the Run method or it
can be set by

sim.SetNumberOfEvents(n);

The name of the configuration file can be passed as argument to the
AliSimulation constructor or can be specified by

sim.SetConfigFile("...");

The generation of particles and the simulation of detector hits can be
switched on or off by

sim.SetRunGeneration(kTRUE);   // generation of primary particles
sim.SetRunSimulation(kFALSE);  // but no tracking

For which detectors sdigits and digits will be created, can be steered
by

sim.SetMakeSDigits("ALL");     // make sdigits for all detectors
sim.SetMakeDigits("ITS TPC");  // make digits only for ITS and TPC

The argument is a (case sensitive) string with the names of the
detectors separated by a space. An empty string ("") can be used to
disable the creation of sdigits or digits. The special string "ALL"
selects all available detectors. This is the default.

The creation of digits from hits instead of from sdigits can be selected
by

sim.SetMakeDigitsFromHits("TRD");

The argument is again a string with the selected detectors. Be aware that
this feature is not available for all detectors and that merging is not
possible, when digits are created directly from hits.

Background events can be merged by calling

sim.MergeWith("background/galice.root", 2);

The first argument is the file name of the background galice file. The
second argument is the number of signal events per background event.
By default this number is calculated from the number of available
background events. MergeWith can be called several times to merge more
than two event streams. It is assumed that the sdigits were already
produced for the background events.

The output of raw data can be switched on by calling

sim.SetWriteRawData("MUON");   // write raw data for MUON

The default output format of the raw data are DDL files. They are
converted to a DATE file, if a file name is given as second argument.
For this conversion the program "dateStream" is required. If the file
name has the extension ".root", the DATE file is converted to a root
file. The program "alimdc" is used for this purpose. For the conversion
to DATE and root format the two conversion programs have to be installed.
Only the raw data in the final format is kept if the third argument is
kTRUE.

The methods RunSimulation, RunSDigitization, RunDigitization,
RunHitsDigitization and WriteRawData can be used to run only parts of
the full simulation chain. The creation of raw data DDL files and their
conversion to the DATE or root format can be run directly by calling
the methods WriteRawFiles, ConvertRawFilesToDate and ConvertDateToRoot.

The default number of events per file, which is usually set in the
config file, can be changed for individual detectors and data types
by calling

sim.SetEventsPerFile("PHOS", "Reconstructed Points", 3);

The first argument is the detector, the second one the data type and the
last one the number of events per file. Valid data types are "Hits",
"Summable Digits", "Digits", "Reconstructed Points" and "Tracks".
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.


Function Members (Methods)

public:
AliSimulation(const char* configFileName = "Config.C", const char* name = "AliSimulation", const char* title = "generation, simulation and digitization")
virtual~AliSimulation()
voidTObject::AbstractMethod(const char* method) const
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidTObject::Browse(TBrowser* b)
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidTNamed::Clear(Option_t* option = "")
virtual TObject*TNamed::Clone(const char* newname = "") const
virtual Int_tTNamed::Compare(const TObject* obj) const
virtual Bool_tConvertDateToRoot(const char* dateFileName = "raw.date", const char* rootFileName = "raw.root")
virtual Int_tConvertRaw2SDigits(const char* rawDirectory, const char* esdFile = "", Int_t N = -1, Int_t nSkip = 0)
virtual Bool_tConvertRawFilesToDate(const char* dateFileName = "raw.date", const char* rootFileName = "")
virtual voidTNamed::Copy(TObject& named) const
virtual Bool_tCreateHLT()
virtual voidTObject::Delete(Option_t* option = "")MENU
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
virtual voidTObject::Draw(Option_t* option = "")
virtual voidTObject::DrawClass() constMENU
virtual TObject*TObject::DrawClone(Option_t* option = "") constMENU
virtual voidTObject::Dump() constMENU
voidEmbedInto(const char* fileName, Int_t nSignalPerBkgrd = 0)
virtual voidTObject::Error(const char* method, const char* msgfmt) const
virtual voidTObject::Execute(const char* method, const char* params, Int_t* error = 0)
virtual voidTObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0)
virtual voidTObject::ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
virtual voidTNamed::FillBuffer(char*& buffer)
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
virtual voidFinishRun()
time_tGenerateTimeStamp() const
Int_tGetDetIndex(const char* detector)
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
virtual const Char_t*GetGeometryFile() const
virtual const char*TObject::GetIconName() const
virtual const char*TNamed::GetName() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
virtual const char*TNamed::GetTitle() const
const Char_t*GetTriggerConfig() const
virtual UInt_tTObject::GetUniqueID() const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTNamed::Hash() const
virtual voidTObject::Info(const char* method, const char* msgfmt) const
virtual Bool_tTObject::InheritsFrom(const char* classname) const
virtual Bool_tTObject::InheritsFrom(const TClass* cl) const
voidInitQA()
virtual voidTObject::Inspect() constMENU
static AliSimulation*Instance()
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsFolder() const
virtual Bool_tIsGeometryFromFile() const
virtual Bool_tIsLegoRun() const
Bool_tTObject::IsOnHeap() const
virtual Bool_tTNamed::IsSortable() const
Bool_tTObject::IsZombie() const
AliLego*Lego() const
virtual voidTNamed::ls(Option_t* option = "") const
voidTObject::MayNotUse(const char* method) const
voidMergeWith(const char* fileName, Int_t nSignalPerBkgrd = 0)
Bool_tMisalignGeometry(AliRunLoader* runLoader = NULL)
virtual Bool_tTObject::Notify()
voidTObject::Obsolete(const char* method, const char* asOfVers, const char* removedFromVers) const
static voidTObject::operator delete(void* ptr)
static voidTObject::operator delete(void* ptr, void* vp)
static voidTObject::operator delete[](void* ptr)
static voidTObject::operator delete[](void* ptr, void* vp)
void*TObject::operator new(size_t sz)
void*TObject::operator new(size_t sz, void* vp)
void*TObject::operator new[](size_t sz)
void*TObject::operator new[](size_t sz, void* vp)
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
virtual voidTNamed::Print(Option_t* option = "") const
voidProcessEnvironmentVars()
virtual Int_tTObject::Read(const char* name)
virtual voidTObject::RecursiveRemove(TObject* obj)
voidTObject::ResetBit(UInt_t f)
virtual Bool_tRun(Int_t nEvents = 0)
virtual Bool_tRunDigitization(const char* detectors = "ALL", const char* excludeDetectors = "")
virtual Bool_tRunGeneratorOnly()
virtual Bool_tRunHitsDigitization(const char* detectors = "ALL")
virtual Bool_tRunHLT()
virtual Bool_tRunLego(const char* setup = "Config.C", Int_t nc1 = 60, Float_t c1min = 2, Float_t c1max = 178, Int_t nc2 = 60, Float_t c2min = 0, Float_t c2max = 360, Float_t rmin = 0, Float_t rmax = 430, Float_t zmax = 10000, AliLegoGenerator* gener = NULL, Int_t nev = -1)
Bool_tRunQA()
virtual Bool_tRunSDigitization(const char* detectors = "ALL")
virtual Bool_tRunSimulation(Int_t nEvents = 0)
virtual Bool_tRunTrigger(const char* descriptors = "", const char* detectors = "ALL")
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU
virtual voidTObject::SavePrimitive(basic_ostream<char,char_traits<char> >& out, Option_t* option = "")
voidSetAlignObjArray(TObjArray* array)
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
voidSetCDBSnapshotMode(const char* snapshotFileName)
voidSetConfigFile(const char* fileName)
voidSetDefaultStorage(const char* uri)
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
voidSetEventSpecie(AliRecoParam::EventSpecie_t es)
voidSetEventsPerFile(const char* detector, const char* type, Int_t nEvents)
voidSetGAliceFile(const char* fileName)
virtual voidSetGeometryFile(const Char_t* filename)
voidSetGRPWriteLocation(char* loc)
voidSetLoadAlignData(const char* detectors)
voidSetLoadAlignFromCDB(Bool_t load)
voidSetMakeDigits(const char* detectors)
voidSetMakeDigitsFromHits(const char* detectors)
voidSetMakeSDigits(const char* detectors)
virtual voidTNamed::SetName(const char* name)MENU
virtual voidTNamed::SetNameTitle(const char* name, const char* title)
voidSetNumberOfEvents(Int_t nEvents)
static voidTObject::SetObjectStat(Bool_t stat)
voidSetQACycles(AliQAv1::DETECTORINDEX_t det, const Int_t cycles)
voidSetQARefDefaultStorage(const char* uri)
voidSetQAWriteExpert(AliQAv1::DETECTORINDEX_t det)
voidSetRegionOfInterest(Bool_t flag)
voidSetRunGeneration(Bool_t run)
voidSetRunGeneratorOnly(Bool_t val)
voidSetRunHLT(const char* options)
voidSetRunNumber(Int_t run)
Bool_tSetRunQA(TString detAndAction = "ALL:ALL")
voidSetRunSimulation(Bool_t run)
voidSetSeed(Int_t seed)
voidSetSpecificStorage(const char* calibType, const char* uri)
virtual voidTNamed::SetTitle(const char* title = "")MENU
voidSetTriggerConfig(TString conf)
virtual voidTObject::SetUniqueID(UInt_t uid)
voidSetUseBkgrdVertex(Bool_t useBkgrdVertex)
voidSetUseMonitoring(Bool_t flag = kTRUE)
voidSetWriteGRPEntry(Bool_t flag = kTRUE)
voidSetWriteQAExpert()
voidSetWriteRawData(const char* detectors, const char* fileName = NULL, Bool_t deleteIntermediateFiles = kFALSE)
voidSetWriteSelRawData(Bool_t sel = kTRUE)
virtual voidShowMembers(TMemberInspector&)
virtual Int_tTNamed::Sizeof() const
voidStoreUsedCDBMaps() const
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
virtual voidTObject::UseCurrentStyle()
voidUseMagFieldFromGRP()
voidUseTimeStampFromCDB()
voidUseVertexFromCDB()
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0)
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) const
voidWriteGRPEntry()
virtual Bool_tWriteRawData(const char* detectors = "ALL", const char* fileName = NULL, Bool_t deleteIntermediateFiles = kFALSE, Bool_t selrawdata = kFALSE)
virtual Bool_tWriteRawFiles(const char* detectors = "ALL")
virtual Bool_tWriteTriggerRawData()
protected:
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
voidTObject::MakeZombie()
private:
AliSimulation(const AliSimulation&)
Int_tGetNSignalPerBkgrd(Int_t nEvents = 0) const
voidInitCDB()
voidInitRunNumber()
Bool_tIsSelected(TString detName, TString& detectors) const
AliRunLoader*LoadRun(const char* mode = "UPDATE") const
AliSimulation&operator=(const AliSimulation&)
voidSetCDBLock()
Bool_tSetRunNumberFromData()

Data Members

protected:
TStringTNamed::fNameobject identifier
TStringTNamed::fTitleobject title
private:
TObjArray*fAlignObjArrayarray with the alignment objects to be applied to the geometry
TObjArray*fBkgrdFileNamesnames of background files for merging
TStringfCDBUri! Uri of the default CDB storage
TStringfConfigFileNamename of the config file
Bool_tfDeleteIntermediateFilesdelete intermediate raw data files
Bool_tfEmbeddingFlagFlag for embedding
AliRecoParam::EventSpecie_tfEventSpecietype of event (see AliRecoParam::EventSpecie_t)
TObjArrayfEventsPerFilenumber of events per file for given detectors and data types
TStringfGAliceFileNamename of the galice file
TStringfGRPWriteLocationLocation to write the GRP entry from simulation
TStringfGeometryFileGeometry file
Bool_tfInitCDBCalled! flag to check if CDB storages are already initialized
Bool_tfInitRunNumberCalled! flag to check if run number is already initialized
ULong64_tfKey! current CDB key
AliLego*fLego! Pointer to aliLego object if it exists
TStringfLoadAlObjsListOfDetsLoad alignment data from CDB for these detectors
Bool_tfLoadAlignFromCDBLoad alignment data from CDB and apply it to geometry or not
TStringfMakeDigitscreate digits for these detectors
TStringfMakeDigitsFromHitscreate digits from hits for these detectors
TStringfMakeSDigitscreate sdigits for these detectors
Int_tfNEventsnumber of events
TStringfQADetectorslist of detectors to be QA'ed
TStringfQARefUri! Uri of the default QA reference storage
TStringfQATaskslist of QA tasks to be performed
TStringfRawDataFileNamefile name for the raw data file
Bool_tfRegionOfInterestdigitization in region of interest
Int_tfRun! Run number, will be passed to CDB and gAlice!!
Bool_tfRunGenerationgenerate prim. particles or not
Bool_tfRunGeneratorOnlyrun code for a generator only production
TStringfRunHLT! HLT options, HLT is disabled if empty, default='default'
Bool_tfRunQARuns the QA at the end of simulation
Bool_tfRunSimulationsimulate detectors (hits) or not
Int_tfSeed! Seed for random number generator
Bool_tfSetRunNumberFromDataCalled! flag to check if run number is already loaded from run loader
TObjArrayfSpecCDBUri! Array with detector specific CDB storages
Bool_tfStopOnErrorstop or continue on errors
time_tfTimeEndEOR time-stamp
time_tfTimeStartSOR time-stamp
TStringfTriggerConfigrun trigger for these descriptors
Bool_tfUseBkgrdVertexuse vertex from background in case of merging
Bool_tfUseMagFieldFromGRPUse magnetic field settings from GRP
Bool_tfUseMonitoringmonitor simulation timing per volume
Bool_tfUseTimeStampFromCDBFlag to generate event time-stamps according to SOR/EOR from GRP
Bool_tfUseVertexFromCDBFlag to use Vertex from CDB
Bool_tfWriteGRPEntryWrite or not GRP entry corresponding to the settings in Config.C
Bool_tfWriteQAExpertData! decides wheter or not to write experts QA data; true by default
TStringfWriteRawDatawrite raw data for these detectors
Bool_tfWriteSelRawDatawrite detectors raw data in a separate file accoring to the trigger cluster
static AliSimulation*fgInstanceStatic pointer to object
static const char*fgkDetectorName[18]names of detectors
static const Int_tfgkNDetectorsnumber of detectors +FIT // alla
AliHLTSimulation*fpHLT! The instance of HLT simulation

Class Charts

Inheritance Chart:
TNamed
AliSimulation

Function documentation

AliSimulation(const char* configFileName = "Config.C", const char* name = "AliSimulation", const char* title = "generation, simulation and digitization")
 create simulation object with default parameters
~AliSimulation()
 clean up
void SetNumberOfEvents(Int_t nEvents)
 set the number of events for one run
void InitQA()
 activate a default CDB storage
 First check if we have any CDB storage set, because it is used
 to retrieve the calibration and alignment constants
void InitCDB()
 activate a default CDB storage
 First check if we have any CDB storage set, because it is used
 to retrieve the calibration and alignment constants
void InitRunNumber()
 check run number. If not set, set it to 0 !!!!
void SetCDBLock()
 Set CDB lock: from now on it is forbidden to reset the run number
 or the default storage or to activate any further storage!
void SetDefaultStorage(const char* uri)
 Store the desired default CDB storage location
 Activate it later within the Run() method
void SetQARefDefaultStorage(const char* uri)
 Store the desired default CDB storage location
 Activate it later within the Run() method
void SetSpecificStorage(const char* calibType, const char* uri)
 Store a detector-specific CDB storage location
 Activate it later within the Run() method
void SetRunNumber(Int_t run)
 sets run number
 Activate it later within the Run() method
void SetSeed(Int_t seed)
 sets seed number
 Activate it later within the Run() method
Bool_t SetRunNumberFromData()
 Set the CDB manager run number
 The run number is retrieved from gAlice
void SetConfigFile(const char* fileName)
 set the name of the config file
void SetGAliceFile(const char* fileName)
 set the name of the galice file
 the path is converted to an absolute one if it is relative
void SetEventsPerFile(const char* detector, const char* type, Int_t nEvents)
 set the number of events per file for the given detector and data type
 ("Hits", "Summable Digits", "Digits", "Reconstructed Points" or "Tracks")
Bool_t MisalignGeometry(AliRunLoader* runLoader = NULL)
 Read the alignment objects from CDB.
 Each detector is supposed to have the
 alignment objects in DET/Align/Data CDB path.
 All the detector objects are then collected,
 sorted by geometry level (starting from ALIC) and
 then applied to the TGeo geometry.
 Finally an overlaps check is performed.
void MergeWith(const char* fileName, Int_t nSignalPerBkgrd = 0)
 add a file with background events for merging
void EmbedInto(const char* fileName, Int_t nSignalPerBkgrd = 0)
 add a file with background events for embeddin
Bool_t Run(Int_t nEvents = 0)
 run the generation, simulation and digitization
Bool_t RunLego(const char* setup = "Config.C", Int_t nc1 = 60, Float_t c1min = 2, Float_t c1max = 178, Int_t nc2 = 60, Float_t c2min = 0, Float_t c2max = 360, Float_t rmin = 0, Float_t rmax = 430, Float_t zmax = 10000, AliLegoGenerator* gener = NULL, Int_t nev = -1)
 Generates lego plots of:
    - radiation length map phi vs theta
    - radiation length map phi vs eta
    - interaction length map
    - g/cm2 length map

  ntheta    bins in theta, eta
  themin    minimum angle in theta (degrees)
  themax    maximum angle in theta (degrees)
  nphi      bins in phi
  phimin    minimum angle in phi (degrees)
  phimax    maximum angle in phi (degrees)
  rmin      minimum radius
  rmax      maximum radius


  The number of events generated = ntheta*nphi
  run input parameters in macro setup (default="Config.C")

  Use macro "lego.C" to visualize the 3 lego plots in spherical coordinates

/* */

/* */

/* */

Bool_t RunTrigger(const char* descriptors = "", const char* detectors = "ALL")
 run the trigger
Bool_t WriteTriggerRawData()
 Writes the CTP (trigger) DDL raw data
 Details of the format are given in the
 trigger TDR - pages 134 and 135.
Bool_t RunSimulation(Int_t nEvents = 0)
 run the generation and simulation
Bool_t RunGeneratorOnly()
 Execute Config.C
Bool_t RunSDigitization(const char* detectors = "ALL")
 run the digitization and produce summable digits
Bool_t RunDigitization(const char* detectors = "ALL", const char* excludeDetectors = "")
 run the digitization and produce digits from sdigits
Bool_t RunHitsDigitization(const char* detectors = "ALL")
 run the digitization and produce digits from hits
Bool_t WriteRawData(const char* detectors = "ALL", const char* fileName = NULL, Bool_t deleteIntermediateFiles = kFALSE, Bool_t selrawdata = kFALSE)
 convert the digits to raw data
 First DDL raw data files for the given detectors are created.
 If a file name is given, the DDL files are then converted to a DATE file.
 If deleteIntermediateFiles is true, the DDL raw files are deleted
 afterwards.
 If the file name has the extension ".root", the DATE file is converted
 to a root file.
 If deleteIntermediateFiles is true, the DATE file is deleted afterwards.
 'selrawdata' flag can be used to enable writing of detectors raw data
 accoring to the trigger cluster.
Bool_t WriteRawFiles(const char* detectors = "ALL")
 convert the digits to raw data DDL files
Bool_t ConvertRawFilesToDate(const char* dateFileName = "raw.date", const char* rootFileName = "")
 convert raw data DDL files to a DATE file with the program "dateStream"
 The second argument is not empty when the user decides to write
 the detectors raw data according to the trigger cluster.
Bool_t ConvertDateToRoot(const char* dateFileName = "raw.date", const char* rootFileName = "raw.root")
 convert a DATE file to a root file with the program "alimdc"
AliRunLoader* LoadRun(const char* mode = "UPDATE") const
 delete existing run loaders, open a new one and load gAlice
Int_t GetNSignalPerBkgrd(Int_t nEvents = 0) const
 get or calculate the number of signal events per background event
Bool_t IsSelected(TString detName, TString& detectors) const
 check whether detName is contained in detectors
 if yes, it is removed from detectors
Int_t ConvertRaw2SDigits(const char* rawDirectory, const char* esdFile = "", Int_t N = -1, Int_t nSkip = 0)
 Steering routine  to convert raw data in directory rawDirectory/ to fake SDigits.
 These can be used for embedding of MC tracks into RAW data using the standard
 merging procedure.

 If an ESD file is given the reconstructed vertex is taken from it and stored in the event header.

void FinishRun()
 Called at the end of the run.

Int_t GetDetIndex(const char* detector)
 return the detector index corresponding to detector
Bool_t CreateHLT()
 Init the HLT simulation.
 The function  loads the library and creates the instance of AliHLTSimulation.
 the main reason for the decoupled creation is to set the transient OCDB
 objects before the OCDB is locked
Bool_t RunHLT()
 Run the HLT simulation
 HLT simulation is implemented in HLT/sim/AliHLTSimulation
 Disabled if fRunHLT is empty, default vaule is "default".
 AliSimulation::SetRunHLT can be used to set the options for HLT simulation
 The default simulation depends on the HLT component libraries and their
 corresponding agents which define components and chains to run. See
 http://web.ift.uib.no/~kjeks/doc/alice-hlt-current
 http://web.ift.uib.no/~kjeks/doc/alice-hlt-current/classAliHLTModuleAgent.html

 The libraries to be loaded can be specified as an option.
 <pre>
 AliSimulation sim;
 sim.SetRunHLT("libAliHLTSample.so");
 </pre>
 will only load <tt>libAliHLTSample.so</tt>
Bool_t RunQA()
 run the QA on summable hits, digits or digits
Bool_t SetRunQA(TString detAndAction = "ALL:ALL")
 Allows to run QA for a selected set of detectors
 and a selected set of tasks among HITS, SDIGITS and DIGITS
 all selected detectors run the same selected tasks
void ProcessEnvironmentVars()
 Extract run number and random generator seed from env variables
void WriteGRPEntry()
 Get the necessary information from galice (generator, trigger etc) and
 write a GRP entry corresponding to the settings in the Config.C used
 note that Hall probes and Cavern and Surface Atmos pressures are not simulated.
time_t GenerateTimeStamp() const
 Generate event time-stamp according to
 SOR/EOR time from GRP
void StoreUsedCDBMaps() const
 write in galice.root maps with used CDB paths


AliSimulation(const char* configFileName = "Config.C", const char* name = "AliSimulation", const char* title = "generation, simulation and digitization")
AliSimulation * Instance()
void SetRunGeneratorOnly(Bool_t val)
void SetRunGeneration(Bool_t run)
void SetRunSimulation(Bool_t run)
void SetLoadAlignFromCDB(Bool_t load)
void SetLoadAlignData(const char* detectors)
{fLoadAlObjsListOfDets = detectors;}
void SetMakeSDigits(const char* detectors)
{fMakeSDigits = detectors;}
void SetUseBkgrdVertex(Bool_t useBkgrdVertex)
{fUseBkgrdVertex = useBkgrdVertex;}
void SetRegionOfInterest(Bool_t flag)
void SetMakeDigits(const char* detectors)
{fMakeDigits = detectors;}
void SetMakeDigitsFromHits(const char* detectors)
{fMakeDigitsFromHits = detectors;}
void SetWriteRawData(const char* detectors, const char* fileName = NULL, Bool_t deleteIntermediateFiles = kFALSE)
void SetWriteSelRawData(Bool_t sel = kTRUE)
void SetTriggerConfig(TString conf)
const Char_t* GetTriggerConfig() const
{return fTriggerConfig.Data();}
void SetAlignObjArray(TObjArray* array)
void SetUseMonitoring(Bool_t flag = kTRUE)
{fUseMonitoring = flag;}
void SetCDBSnapshotMode(const char* snapshotFileName)
{AliCDBManager::Instance()->SetSnapshotMode(snapshotFileName);}
void SetGeometryFile(const Char_t* filename)
 Sets the name of the file from which the geometry is loaded
{fGeometryFile=filename;}
const Char_t* GetGeometryFile() const
{return fGeometryFile.Data();}
Bool_t IsGeometryFromFile() const
{return !fGeometryFile.IsNull();}
void SetRunHLT(const char* options)
 HLT
{fRunHLT=options;}
Bool_t IsLegoRun() const
{return (fLego!=0);}
void SetQACycles(AliQAv1::DETECTORINDEX_t det, const Int_t cycles)
{ AliQAManager::QAManager()->SetCycleLength(det, cycles) ; }
void SetQAWriteExpert(AliQAv1::DETECTORINDEX_t det)
void SetEventSpecie(AliRecoParam::EventSpecie_t es)
{ fEventSpecie = es ; }
void SetWriteQAExpert()
void SetWriteGRPEntry(Bool_t flag = kTRUE)
{ fWriteGRPEntry = flag; }
void UseVertexFromCDB()
void UseMagFieldFromGRP()
void SetGRPWriteLocation(char* loc)
void UseTimeStampFromCDB()