]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AlirootRun_MUONtestAlign.sh
Memory leak fixes in the AOD and MC loops (M. Putis)
[u/mrichter/AliRoot.git] / MUON / AlirootRun_MUONtestAlign.sh
index 821a6a5eb0e84f33916050346ad778fa33016a37..7d3dbdef6fe17870dab3578aabcdc645438e9959 100755 (executable)
@@ -20,7 +20,10 @@ echo "Generating misalignment ..."
 
 aliroot -b >& testMisalign.out << EOF
 AliMpCDB::LoadMpSegmentation2();
-gAlice->Init("$ALICE_ROOT/MUON/Config.C");
+TString configFileName = "$ALICE_ROOT/MUON/Config.C";
+gROOT->LoadMacro(configFileName.Data());
+gInterpreter->ProcessLine(gAlice->GetConfigFunction());
+gAlice->GetMCApp()->Init();
 gGeoManager->Export("geometry.root");
 .L $ALICE_ROOT/MUON/MUONCheckMisAligner.C+
 MUONCheckMisAligner(0., 0.03, 0., 0.03, 0., 0.03, "FullMisAlignCDB");
@@ -60,8 +63,6 @@ aliroot -b >& testReco.out << EOF
 //man->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
 //man->SetSpecificStorage("MUON/Align/Data","local://$ALICE_ROOT/OCDB/MUON/FullMisAlignCDB");
 gRandom->SetSeed($SEED);
-AliMagFMaps* field = new AliMagFMaps("Maps","Maps", 1, 1., 10., AliMagFMaps::k5kG);
-AliTracker::SetFieldMap(field, kFALSE);
 AliReconstruction MuonRec("galice.root");
 MuonRec.SetInput("$FULLPATH/raw.root");
 MuonRec.SetRunVertexFinder(kFALSE);
@@ -92,6 +93,6 @@ MUONAlignment();
 EOF
 
 echo "Finished"  
-echo "... see results in test_align"
+echo "... see results in " $OUTDIR
 
 cd $CURDIR