fReadMC(kFALSE),
fSelectedPdg(-1),
fUseDiamond(kFALSE),
+fSkipTrack(kTRUE),
fOutputitspureSARec(0),
fOutputitspureSASkip(0),
fOutputallPointRec(0),
fReadMC(kFALSE),
fSelectedPdg(-1),
fUseDiamond(kFALSE),
+fSkipTrack(kTRUE),
fOutputitspureSARec(0),
fOutputitspureSASkip(0),
fOutputallPointRec(0),
Int_t nTrks = esd->GetNumberOfTracks();
Bool_t highMult=(nTrks>500 ? kTRUE : kFALSE);
-
// diamond constraint
Float_t diamondcovxy[3];
skipped[0] = (Int_t)esdtrack->GetID();
vertexer.SetSkipTracks(1,skipped);
// create vertex with new!
- if(!highMult) {
+ if(!highMult && fSkipTrack) {
vtxESDSkip = (AliESDVertex*)vertexer.FindPrimaryVertex(esd);
if(vtxESDSkip->GetNContributors()<1) {
delete vtxESDSkip; vtxESDSkip=NULL;
void SetReadMC(Bool_t readMC) { fReadMC=readMC; return; }
void SetSelectedPdg(Int_t pdg) { fSelectedPdg=pdg; return; }
void SetUseDiamond(Bool_t use=kFALSE) { fUseDiamond=use; return; }
+ void SetSkipTrack(Bool_t skip=kFALSE) { fSkipTrack=skip; return; }
private:
Bool_t fReadMC; // flag used to switch on/off MC reading
Int_t fSelectedPdg; // only for a given particle species (-1 takes all tracks)
Bool_t fUseDiamond; // use diamond constraint in primary vertex
+ Bool_t fSkipTrack; // redo primary vertex for each track
TList *fOutputitspureSARec; //! ITS StandAlone: with track in vtx
TList *fOutputitspureSASkip; //! ITS StandAlone: w/o track in vtx
TList *fOutputallPointRec; //! ITS+TPC: 6 ITScls, with track in vtx
TH1F *fNentries; //! histogram of number of events
TH1F *fEstimVtx; //! vertex resolution
- ClassDef(AliAnalysisTaskSEImpParRes,3); // AliAnalysisTaskSE for the study of the impact parameter resolution
+ ClassDef(AliAnalysisTaskSEImpParRes,4); // AliAnalysisTaskSE for the study of the impact parameter resolution
};
#endif
AliAnalysisTaskSEImpParRes *AddTaskImpParRes(Bool_t readMC=kFALSE,
Int_t selPdg=-1,
- Bool_t diamond=kTRUE)
+ Bool_t diamond=kTRUE,
+ Bool_t skipTrack=kTRUE)
{
//
// Configuration for the study of the impact parameter resolution
d0ResTask->SetReadMC(readMC);
d0ResTask->SetSelectedPdg(selPdg);
d0ResTask->SetUseDiamond(diamond);
+ d0ResTask->SetSkipTrack(skipTrack);
mgr->AddTask(d0ResTask);
TString fname=Form("%s:ImpParRes_Performance",mgr->GetCommonFileName());