]> git.uio.no Git - u/mrichter/AliRoot.git/commit - macros/ConfigCharmPPR.C
This is a backward incompatible change in AliRoot. The following methods have been...
authorfca <fca@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 23 Mar 2010 10:56:12 +0000 (10:56 +0000)
committerfca <fca@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 23 Mar 2010 10:56:12 +0000 (10:56 +0000)
commit28da60d31fb9f89b97e43822483cbb52d5964770
tree3452c711b14a5447a7b0c016ba4a0d609fdfaeb2
parent2164f8b446fc9b2f5915542467214416a070f761
 This is a backward incompatible change in AliRoot. The following methods have been removed

-   const char*   AliRun:: GetTriggerDescriptor() const {return fTriggerDescriptor.Data();}
-   void                AliRun::SetTriggerDescriptor(const char *name) {fTriggerDescriptor = name;}

as their only function was to store temporarily the beam type in AliRun to be transferred to AliSimulation. This information is used for the trigger configuration. Instead, we have introduced the two methods

+  void                   AliSimulation::SetTriggerConfig(TString conf) {fTriggerConfig=conf;}
+  const Char_t*  AliSimulation::GetTriggerConfig() const {return fTriggerConfig.Data();}

To store and get directly this info from the AliSimulation class. This change is completely transparent, however what is NOT transparent is the setting of the beam type which is done in the Config.C. Typically the change is the following

-    gAlice->SetTriggerDescriptor("Pb-Pb");
+    AliSimulation::Instance()->SetTriggerConfig("Pb-Pb");

All the macros in AliRoot have been changed, but also all private macros will have to be changed. The symptom will be very easy to detect, as CINT will complain that there is no method SetTriggerConfig in AliRun.

One subtle point here is that with this change Config.C will require the presence of AliSimulation. If it is not there, it will be created by the Instance() call. This is not a problem in normal usage, but if Config.C is not used for simulation, it will create an instance of AliSimulation, that will not be used. Again, this should not be a problem, but users might as well be aware o fit.
66 files changed:
ACORDE/macros/Config.C
BCM/Config_BCM.C
EMCAL/macros/Config.C
FMD/scripts/pdc06_config.C
GRP/UpdateCDBGRPEntryMC.C
STEER/AliRun.cxx
STEER/AliRun.h
STEER/AliSimulation.cxx
STEER/AliSimulation.h
TFluka/macro/FlukaConfig.C
TPC/ConfigKr.C
TPC/testMC/ConfigCosmic.C
TPC/testMC/ConfigCosmic0Field.C
TPC/testMC/ConfigCosmicBox.C
TPC/testMC/ConfigCosmicField05.C
TPC/testMC/ConfigHM.C
TPC/testMC/ConfigHPT.C
TPC/testMC/ConfigHPT1.C
TPC/testMC/ConfigLM.C
TPC/testMC/ConfigPP.C
TPC/testMC/Config_AliGenCosmicsParam.C
macros/Config.C
macros/ConfigBeautyPPR.C
macros/ConfigCharmPPR.C
macros/ConfigHBT.C
macros/ConfigPPR.C
macros/Config_AliGenCosmicsParam.C
macros/Config_PDC06.C
macros/Config_PDC06_MUON.C
macros/Config_PDC07_MBias_MUON.C
macros/Config_PythiaHeavyFlavours.C
macros/g4ConfigCommon.C
macros/g4ConfigCommon1.C
prod/LHC08d10/Config.C
prod/LHC08d11/Config.C
prod/LHC08d12/Config.C
prod/LHC08d13/Config.C
prod/LHC08d14/Config.C
prod/LHC08d15/Config.C
prod/LHC08d16/Config.C
prod/LHC08d17/Config.C
prod/LHC08d5/Config.C
prod/LHC08d6/Config.C
prod/LHC08d8/Config.C
prod/LHC08d9/Config.C
prod/LHC09a1/Config.C
prod/LHC09c1/Config.C
prod/LHC09d1/Config.C
prod/LHC09d2/Config.C
prod/LHC09d3/Config.C
prod/LHC09d4/Config.C
prod/LHC09d5/Config.C
prod/LHC09d6/Config.C
prod/fpprod/Config.C
test/PbPbbench/Config.C
test/QA/Config.C
test/embedding/Config.C
test/genkine/sim/Config.C
test/gun/Config.C
test/merge/backgr/Config.C
test/merge/signal/Config.C
test/pileup/Config.C
test/ppbench/Config.C
test/pploadlibs/Config.C
test/vmctest/gun/commonConfig.C
test/vmctest/ppbench/commonConfig.C