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