Claude Pruneau's AddTask macro
[u/mrichter/AliRoot.git] / MFT / AliMuonForwardTrackFinder.C
CommitLineData
820b4d9e 1//================================================================================================================================
2
3void AliMuonForwardTrackFinder(Int_t run=0,
b5ab1ac4 4 Double_t zVertexError=0.010,
d4643a10 5 Int_t matching=0,
820b4d9e 6 const Char_t *readDir= ".",
7 const Char_t *outDir = ".",
8 Int_t nEventsToAnalyze = -1) {
9
10 // TGeoGlobalMagField::Instance()->SetField(new AliMagF("Maps","Maps", -1., -1, AliMagF::k5kG));
11
d4643a10 12 // AliLog::SetClassDebugLevel("AliMuonForwardTrackFinder", 1);
13
820b4d9e 14 AliCDBManager* man = AliCDBManager::Instance();
15 man->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
16 man->SetSpecificStorage("GRP/GRP/Data", Form("local://%s",gSystem->pwd()));
17
18 AliMuonForwardTrackFinder *finder = new AliMuonForwardTrackFinder();
19 finder->SetDraw(kFALSE);
20 finder->Init(run, readDir, outDir, nEventsToAnalyze);
21
22 finder -> SetSigmaSpectrometerCut(4.0);
23 finder -> SetSigmaClusterCut(4.0);
24 finder -> SetChi2GlobalCut(2.0);
25 finder -> SetRAbsorberCut(0.0);
26 // finder -> SetRAbsorberCut(26.4);
27 finder -> SetLowPtCut(0.0);
28 // finder -> SetLowPtCut(0.5);
b5ab1ac4 29 finder -> SetVertexError(0.015, 0.015, zVertexError);
9805ceb3 30 finder -> SetMatchingMode(matching); // 0 -> real matching 1 -> ideal matching
b5ab1ac4 31// finder -> SetMinResearchRadiusAtPlane(4, 0.0);
32 finder -> SetMinResearchRadiusAtPlane(4, 0.50);
33 finder -> SetMinResearchRadiusAtPlane(3, 0.05);
820b4d9e 34
35 while (finder->LoadNextTrack()) continue;
36
37 if (finder->GetNRealTracksAnalyzed()) finder->Terminate();
38
39}
40
41//================================================================================================================================
42