-// make PID, find V0s and cascades
-
- Double_t parITS[] = {34., 0.15, 10.};
- AliITSpidESD itsPID(parITS);
- itsPID.MakePID(esd);
-
- // V0 finding
- Double_t cuts[]={33, // max. allowed chi2
- 0.16,// min. allowed negative daughter's impact parameter
- 0.05,// min. allowed positive daughter's impact parameter
- 0.08,// max. allowed DCA between the daughter tracks
- 0.99,// max. allowed cosine of V0's pointing angle
- 0.9, // min. radius of the fiducial volume
- 2.9 // max. radius of the fiducial volume
- };
- AliV0vertexer vtxer(cuts);
- Double_t vtx[3], cvtx[6];
- esd->GetVertex()->GetXYZ(vtx);
- esd->GetVertex()->GetSigmaXYZ(cvtx);
- vtxer.SetVertex(vtx);
- vtxer.Tracks2V0vertices(esd);
-
- // cascade finding
- Double_t cts[]={33., // max. allowed chi2
- 0.05, // min. allowed V0 impact parameter
- 0.008, // window around the Lambda mass
- 0.035, // min. allowed bachelor's impact parameter
- 0.10, // max. allowed DCA between a V0 and a track
- 0.9985, //max. allowed cosine of the cascade pointing angle
- 0.9, // min. radius of the fiducial volume
- 2.9 // max. radius of the fiducial volume
- };
- AliCascadeVertexer cvtxer=AliCascadeVertexer(cts);
- cvtxer.SetVertex(vtx);
- cvtxer.V0sTracks2CascadeVertices(esd);
+// create the SPD trackeleter (for SPD PlaneEfficiency evaluation)
+ if(!GetRecoParam()->GetComputePlaneEff() || !GetRecoParam()->GetUseTrackletsPlaneEff()) return NULL;
+ //Int_t trackerOpt = GetRecoParam()->GetTracker();
+ AliTracker* trackleter;
+ trackleter = new AliITSTrackleterSPDEff();
+ AliITSTrackleterSPDEff *spdtrackleter=(AliITSTrackleterSPDEff*)trackleter;
+ // here set cuts (from RecoParam)
+ if(GetRecoParam()->GetBkgTrackletsPlaneEff()) spdtrackleter->SetReflectClusterAroundZAxisForLayer(1,kTRUE);
+ if(GetRecoParam()->GetMCTrackletsPlaneEff()) spdtrackleter->SetMC();
+ spdtrackleter->SetHistOn();
+ spdtrackleter->SetPhiWindowL2(GetRecoParam()->GetTrackleterPhiWindowL2());
+ spdtrackleter->SetZetaWindowL2(GetRecoParam()->GetTrackleterZetaWindowL2());
+ spdtrackleter->SetPhiWindowL1(GetRecoParam()->GetTrackleterPhiWindowL1());
+ spdtrackleter->SetZetaWindowL1(GetRecoParam()->GetTrackleterZetaWindowL1());
+ if(GetRecoParam()->GetUpdateOncePerEventPlaneEff()) spdtrackleter->SetUpdateOncePerEventPlaneEff();
+ spdtrackleter->SetMinContVtx(GetRecoParam()->GetMinContVtxPlaneEff());
+ return trackleter;