X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=MUON%2FAlirootRun_MUONtestlong.sh;h=be1ddb937947ba40cccefaad1a4711a91821fa95;hb=49d622ec8cd5d9dc3d429c40e7f61af358506633;hp=64e1e7882893a7b10e6acdf47a3cda1d13c50b33;hpb=71d495df14c83a8512ffbb1f29e4c29ebff5bb0f;p=u%2Fmrichter%2FAliRoot.git diff --git a/MUON/AlirootRun_MUONtestlong.sh b/MUON/AlirootRun_MUONtestlong.sh index 64e1e788289..be1ddb93794 100755 --- a/MUON/AlirootRun_MUONtestlong.sh +++ b/MUON/AlirootRun_MUONtestlong.sh @@ -6,49 +6,70 @@ OUTDIR=testlong_out rm -fr $OUTDIR mkdir $OUTDIR -cp .rootrc $OUTDIR +cp $ALICE_ROOT/MUON/.rootrc $ALICE_ROOT/MUON/rootlogon.C $OUTDIR cd $OUTDIR +# Minimum number of events to have enough stat. for invariant mass fit +# 10000 is ok, 20000 is really fine +NEVENTS=10000 +SEED=1234567 + + echo "Running simulation ..." aliroot -b >& testSim.out << EOF -AliSimulation MuonSim -MuonSim.SetConfigFile("$ALICE_ROOT/MUON/Config.C") -// Minimum number of events to have enough stat. for invariant mass fit -// 10000 is ok, 20000 is really fine -MuonSim.Run(10000) +// 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/OCDB"); +// man->SetSpecificStorage("MUON/Align/Data","local://$ALICE_ROOT/OCDB/MUON/ResMisAlignCDB"); +AliSimulation MuonSim("$ALICE_ROOT/MUON/Config.C"); +MuonSim.SetSeed($SEED); +MuonSim.SetMakeTrigger("MUON"); +MuonSim.Run($NEVENTS); .q EOF echo "Running reconstruction ..." aliroot -b >& testReco.out << EOF -TPluginManager* pluginManager = gROOT->GetPluginManager(); -pluginManager->AddHandler("AliReconstructor", "MUON","AliMUONReconstructor", "MUON","AliMUONReconstructor()") -AliReconstruction MuonRec("galice.root") -MuonRec.SetRunTracking("") -MuonRec.SetRunVertexFinder(kFALSE) -MuonRec.SetRunLocalReconstruction("MUON") -MuonRec.SetFillESD("MUON") -MuonRec.Run() +man->SetDefaultStorage("local://$ALICE_ROOT/OCDB"); +gRandom->SetSeed($SEED); +AliMagFMaps* field = new AliMagFMaps("Maps","Maps", 1, 1., 10., AliMagFMaps::k5kG); +AliTracker::SetFieldMap(field, kFALSE); +AliReconstruction MuonRec("galice.root"); +MuonRec.SetRunVertexFinder(kFALSE); +MuonRec.SetRunLocalReconstruction("MUON"); +MuonRec.SetRunTracking("MUON"); +MuonRec.SetFillESD("MUON"); +MuonRec.SetLoadAlignData("MUON"); +MuonRec.SetNumberOfEventsPerFile($NEVENTS); +MuonRec.Run(); +.q +EOF + +echo "Running Trigger efficiency ..." + +aliroot -b >& testTriggerResults.out << EOF +.L $ALICE_ROOT/MUON/MUONTriggerEfficiency.C+ +MUONTriggerEfficiency("galice.root", "galice.root",0); .q EOF echo "Running efficiency ..." aliroot -b >& testEfficiency.out << EOF -.includepath $ALICE_ROOT/STEER -.includepath $ALICE_ROOT/MUON -.L $ALICE_ROOT/MUON/MUONefficiency.C++ +.L $ALICE_ROOT/MUON/MUONefficiency.C+ // no argument assumes Upsilon but MUONefficiency(443) handles Jpsi -MUONefficiency(); +MUONefficiency("galice.root"); .q EOF aliroot -b >& testResults.out << EOF // no argument assumes Upsilon but MUONplotefficiency(443) handles Jpsi -.x $ALICE_ROOT/MUON/MUONplotefficiency.C +.L $ALICE_ROOT/MUON/MUONplotefficiency.C+ +MUONplotefficiency(); .q EOF @@ -59,11 +80,11 @@ more testSim.out | grep 'RunDigitization: Execution time:' >> testTime.out more testReco.out | grep 'RunLocalReconstruction: Execution time for MUON' >> testTime.out more testReco.out | grep 'Execution time for filling ESD ' >> testTime.out -rm gphysi.dat -rm *.root -rm testSim.out -rm testReco.out -rm *.eps +#rm gphysi.dat +#rm *.root +#rm testSim.out +#rm testReco.out +#rm *.eps echo "Finished" echo "... see results in testlong_out"