vCascade,
kTRUE, // usedForVtxFit = kFALSE ? FIXME
vtx->UsesTrack(esdCascadeBach->GetID()),
- AliAODTrack::kSecondary,
+ AliAODTrack::kFromDecayVtx,
selectInfo);
aodTrack->SetPIDForTracking(esdCascadeBach->GetPIDForTracking());
aodTrack->SetTPCFitMap(esdCascadeBach->GetTPCFitMap());
vV0FromCascade,
kTRUE, // usedForVtxFit = kFALSE ? FIXME
vtx->UsesTrack(esdCascadePos->GetID()),
- AliAODTrack::kSecondary,
+ AliAODTrack::kFromDecayVtx,
selectInfo);
aodTrack->SetPIDForTracking(esdCascadePos->GetPIDForTracking());
aodTrack->SetTPCFitMap(esdCascadePos->GetTPCFitMap());
vV0FromCascade,
kTRUE, // usedForVtxFit = kFALSE ? FIXME
vtx->UsesTrack(esdCascadeNeg->GetID()),
- AliAODTrack::kSecondary,
+ AliAODTrack::kFromDecayVtx,
selectInfo);
aodTrack->SetPIDForTracking(esdCascadeNeg->GetPIDForTracking());
aodTrack->SetTPCFitMap(esdCascadeNeg->GetTPCFitMap());
vV0,
kTRUE, // check if this is right
vtx->UsesTrack(esdV0Pos->GetID()),
- AliAODTrack::kSecondary,
+ AliAODTrack::kFromDecayVtx,
selectInfo);
aodTrack->SetPIDForTracking(esdV0Pos->GetPIDForTracking());
aodTrack->SetTPCFitMap(esdV0Pos->GetTPCFitMap());
vV0,
kTRUE, // check if this is right
vtx->UsesTrack(esdV0Neg->GetID()),
- AliAODTrack::kSecondary,
+ AliAODTrack::kFromDecayVtx,
selectInfo);
aodTrack->SetPIDForTracking(esdV0Neg->GetPIDForTracking());
aodTrack->SetTPCFitMap(esdV0Neg->GetTPCFitMap());
vkink,
kTRUE, // check if this is right
vtx->UsesTrack(esdTrack->GetID()),
- AliAODTrack::kSecondary,
+ AliAODTrack::kFromDecayVtx,
selectInfo);
daughter->SetPIDForTracking(esdTrackD->GetPIDForTracking());
daughter->SetTPCFitMap(esdTrackD->GetTPCFitMap());
vV0FromCascade,
kTRUE, // check if this is right
kFALSE, // check if this is right
- AliAODTrack::kSecondary)
+ AliAODTrack::kFromDecayVtx)
);
aodTrack->ConvertAliPIDtoAODPID();
}
vV0FromCascade,
kTRUE, // check if this is right
kFALSE, // check if this is right
- AliAODTrack::kSecondary)
+ AliAODTrack::kFromDecayVtx)
);
aodTrack->ConvertAliPIDtoAODPID();
}
vcascade,
kTRUE, // check if this is right
kFALSE, // check if this is right
- AliAODTrack::kSecondary)
+ AliAODTrack::kFromDecayVtx)
);
aodTrack->ConvertAliPIDtoAODPID();
}
vV0,
kTRUE, // check if this is right
kFALSE, // check if this is right
- AliAODTrack::kSecondary)
+ AliAODTrack::kFromDecayVtx)
);
aodTrack->ConvertAliPIDtoAODPID();
}
vV0,
kTRUE, // check if this is right
kFALSE, // check if this is right
- AliAODTrack::kSecondary)
+ AliAODTrack::kFromDecayVtx)
);
aodTrack->ConvertAliPIDtoAODPID();
}
Int_t type=aod_track->GetType();
if(type==AliAODTrack::kPrimary) fPtPrim->Fill(aod_track->Pt());
- if(type==AliAODTrack::kSecondary) fPtSec->Fill(aod_track->Pt());
+ if(type==AliAODTrack::kFromDecayVtx) fPtSec->Fill(aod_track->Pt());
//Int_t type2=track->GetType();
if(type==AliAODTrack::kPrimary) fPtPrim2->Fill(track->Pt());
- if(type==AliAODTrack::kSecondary) fPtSec2->Fill(track->Pt());
+ if(type==AliAODTrack::kFromDecayVtx) fPtSec2->Fill(track->Pt());
}
const AliTOFHeader* AliAODTrack::GetTOFHeader() const {
return fAODEvent->GetTOFHeader();
}
+//_______________________________________________________
+Int_t AliAODTrack::GetNcls(Int_t idet) const
+{
+ // Get number of clusters by subdetector index
+ //
+ Int_t ncls = 0;
+ switch(idet){
+ case 0:
+ ncls = GetITSNcls();
+ break;
+ case 1:
+ ncls = (Int_t)GetTPCNcls();
+ break;
+ case 2:
+ ncls = (Int_t)GetTRDncls();
+ break;
+ case 3:
+ break;
+ /*if (fTOFindex != -1)
+ ncls = 1;*/
+ break;
+ case 4: //PHOS
+ break;
+ case 5: //HMPID
+ break;
+ if ((GetHMPIDcluIdx() >= 0) && (GetHMPIDcluIdx() < 7000000)) {
+ if ((GetHMPIDcluIdx()%1000000 != 9999) && (GetHMPIDcluIdx()%1000000 != 99999)) {
+ ncls = 1;
+ }
+ }
+ break;
+ default:
+ break;
+ }
+ return ncls;
+}
enum AODTrk_t {kUndef = -1,
kPrimary,
- kSecondary,
- kOrphan};
+ kFromDecayVtx,
+ kOrphan}; // Please note that this flag does not guarantee that the particle is a Physical Primary, it simply identifies the algorithm which was used to filter the track. In general, the following associations are used (check the filter macro to be sure, as this comment may be outdated):
+ //kPrimary: TPC only tracks, global constrained tracks, primary tracks, kink mothers;
+ //kFromDecayVtx: bachelor tracks from cascades, tracks from V0, kink daughters;
+ //kUndef:TRD matched tracks
enum AODTrkBits_t {
kIsDCA=BIT(14), // set if fPosition is the DCA and not the position of the first point
UShort_t GetTPCNcls() const { return GetTPCncls(); }
+ Int_t GetNcls(Int_t idet) const;
+
virtual Double_t M() const { return M(GetMostProbablePID()); }
Double_t M(AODTrkPID_t pid) const;
virtual Double_t E() const { return E(GetMostProbablePID()); }
void RemoveCovMatrix() {delete fCovMatrix; fCovMatrix=NULL;}
- Double_t XAtDCA() const { return fPositionAtDCA[0]; }
- Double_t YAtDCA() const { return fPositionAtDCA[1]; }
+ Double_t XAtDCA() const { return fPositionAtDCA[0]; } //makes sense only for constrained tracks, returns dummy values for all other tracks
+ Double_t YAtDCA() const { return fPositionAtDCA[1]; } //makes sense only for constrained tracks, returns dummy values for all other tracks
Double_t ZAtDCA() const {
if (IsMuonTrack()) return fPosition[2];
else if (TestBit(kIsDCA)) return fPosition[1];
- else return -999.; }
+ else return -999.; } //makes sense only for constrained tracks, returns dummy values for all other tracks
Bool_t XYZAtDCA(Double_t x[3]) const { x[0] = XAtDCA(); x[1] = YAtDCA(); x[2] = ZAtDCA(); return kTRUE; }
Double_t DCA() const {
else if (TestBit(kIsDCA)) return fPosition[0];
else return -999.; }
- Double_t PxAtDCA() const { return fMomentumAtDCA[0]; }
- Double_t PyAtDCA() const { return fMomentumAtDCA[1]; }
- Double_t PzAtDCA() const { return fMomentumAtDCA[2]; }
+ Double_t PxAtDCA() const { return fMomentumAtDCA[0]; } //makes sense only for constrained tracks, returns dummy values for all other tracks
+ Double_t PyAtDCA() const { return fMomentumAtDCA[1]; } //makes sense only for constrained tracks, returns dummy values for all other tracks
+ Double_t PzAtDCA() const { return fMomentumAtDCA[2]; } //makes sense only for constrained tracks, returns dummy values for all other tracks
Double_t PAtDCA() const { return TMath::Sqrt(PxAtDCA()*PxAtDCA() + PyAtDCA()*PyAtDCA() + PzAtDCA()*PzAtDCA()); }
Bool_t PxPyPzAtDCA(Double_t p[3]) const { p[0] = PxAtDCA(); p[1] = PyAtDCA(); p[2] = PzAtDCA(); return kTRUE; }
Short_t fID; // unique track ID, points back to the ESD track
Char_t fCharge; // particle charge
- Char_t fType; // Track Type
+ Char_t fType; // Track Type, explanation close to the enum AODTrk_t
Char_t fPIDForTracking; // pid using for tracking of ESD track
secondary,
kFALSE, // no fit performed
kFALSE, // no fit performed
- AliAODTrack::kSecondary));
+ AliAODTrack::kFromDecayVtx));
currTrack = (AliAODTrack*)tracks.Last();
SetChargeAndPID(part->GetPdgCode(), currTrack);
Bool_t GetOuterExternalParameters
(Double_t &alpha, Double_t &x, Double_t p[5]) const;
Bool_t GetOuterExternalCovariance(Double_t cov[15]) const;
-
+
Bool_t GetOuterHmpExternalParameters
(Double_t &alpha, Double_t &x, Double_t p[5]) const;
- Bool_t GetOuterHmpExternalCovariance(Double_t cov[15]) const;
-
+ Bool_t GetOuterHmpExternalCovariance(Double_t cov[15]) const;
Int_t GetNcls(Int_t idet) const;
Int_t GetClusters(Int_t idet, Int_t *idx) const;