now it is completely handled by the framework.
OUTDIR=""
CURDIR=`pwd`
-RUN=0 # run number for OCDB access
+#RUN=0 # run number for OCDB access
SEED=1234567 # random number generator seed
SIMDIR="generated" # sub-directory where to move simulated files prior to reco
DUMPEVENT=5 # event to be dump on files
echo "Running simulation ..."
- aliroot -b -q runSimulation.C\($RUN,$SEED,$NEVENTS,\""$SIMCONFIG"\"\) >& $OUTDIR/testSim.out
+ aliroot -b -q runSimulation.C\($SEED,$NEVENTS,\""$SIMCONFIG"\"\) >& $OUTDIR/testSim.out
echo "Moving generated files to $SIMDIR"
mkdir $OUTDIR/$SIMDIR
cd $OUTDIR
- aliroot -b -q runReconstruction\.C\($RUN,$SEED,\""$OUTDIR/raw.root"\",\""$RECOPTIONS"\"\) >& $OUTDIR/testReco.out
+ aliroot -b -q runReconstruction\.C\($SEED,\""$OUTDIR/raw.root"\",\""$RECOPTIONS"\"\) >& $OUTDIR/testReco.out
fi
//#include <TObjectTable.h>
#endif
-void runReconstruction(int run, int seed, const char* input, const char* recoptions)
+void runReconstruction(int seed, const char* input, const char* recoptions)
{
AliCDBManager* man = AliCDBManager::Instance();
man->SetDefaultStorage("local://$ALICE_ROOT");
- AliCDBManager::Instance()->SetRun(run);
gRandom->SetSeed(seed);
#include <TRandom.h>
#endif
-void runSimulation(int run, int seed, int nevents, const char* config)
+void runSimulation(int seed, int nevents, const char* config)
{
// Uncoment following lines to run simulation with local residual mis-alignment
// (generated via MUONGenerateGeometryData.C macro)
// AliCDBManager* man = AliCDBManager::Instance();
// man->SetDefaultStorage("local://$ALICE_ROOT");
// man->SetSpecificStorage("MUON/Align/Data","local://$ALICE_ROOT/MUON/ResMisAlignCDB");
+
AliSimulation MuonSim(config);
- MuonSim.SetRunNumber(run);
MuonSim.SetSeed(seed);
MuonSim.SetMakeTrigger("MUON");
MuonSim.SetWriteRawData("MUON","raw.root",kTRUE);