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");
// Uncoment following lines to run simulation with local full mis-alignment
// (generated via MUONGenerateGeometryData.C macro)
AliCDBManager* man = AliCDBManager::Instance();
-man->SetDefaultStorage("local://$ALICE_ROOT");
+man->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
man->SetSpecificStorage("MUON/Align/Data","local://FullMisAlignCDB");
AliSimulation MuonSim("$ALICE_ROOT/MUON/Config.C");
MuonSim.SetSeed($SEED);
// Uncoment following lines to run reconstruction with local full 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/FullMisAlignCDB");
+//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);
EOF
echo "Finished"
-echo "... see results in test_align"
+echo "... see results in " $OUTDIR
cd $CURDIR