]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AlirootRun_MUONtestAlign.sh
Changes to the DEtaDPhi corr fun (making 0 in the center of the bin in the histogram...
[u/mrichter/AliRoot.git] / MUON / AlirootRun_MUONtestAlign.sh
index 1d240887bf4767e34b8e9c04fe689c3d371d5b05..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");
@@ -33,7 +36,7 @@ aliroot -b  >& testSim.out << EOF
 // 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);
@@ -57,11 +60,9 @@ aliroot -b >& testReco.out << EOF
 // 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);
@@ -92,6 +93,6 @@ MUONAlignment();
 EOF
 
 echo "Finished"  
-echo "... see results in test_align"
+echo "... see results in " $OUTDIR
 
 cd $CURDIR