//______________________________________________________________________________
AliAODTrack::AliAODTrack() :
AliVirtualParticle(),
- fChi2(-999.),
+ fChi2perNDF(-999.),
fID(-999),
fLabel(-999),
fCovMatrix(NULL),
fProdVertex(0x0),
fCharge(-99),
- fITSClusterMap(0),
+ fITSMuonClusterMap(0),
fType(kUndef)
{
// default constructor
UChar_t itsClusMap,
Double_t pid[10],
AliAODVertex *prodVertex,
+ Bool_t usedForVtxFit,
Bool_t usedForPrimVtxFit,
AODTrk_t ttype) :
AliVirtualParticle(),
- fChi2(-999.),
+ fChi2perNDF(-999.),
fID(id),
fLabel(label),
fCovMatrix(NULL),
fProdVertex(prodVertex),
fCharge(charge),
- fITSClusterMap(itsClusMap),
+ fITSMuonClusterMap(itsClusMap),
fType(ttype)
{
// constructor
SetP(p, cartesian);
SetPosition(x, isDCA);
+ SetUsedForVtxFit(usedForVtxFit);
SetUsedForPrimVtxFit(usedForPrimVtxFit);
if(covMatrix) SetCovMatrix(covMatrix);
SetPID(pid);
UChar_t itsClusMap,
Float_t pid[10],
AliAODVertex *prodVertex,
+ Bool_t usedForVtxFit,
Bool_t usedForPrimVtxFit,
AODTrk_t ttype) :
AliVirtualParticle(),
- fChi2(-999.),
+ fChi2perNDF(-999.),
fID(id),
fLabel(label),
fCovMatrix(NULL),
fProdVertex(prodVertex),
fCharge(charge),
- fITSClusterMap(itsClusMap),
+ fITSMuonClusterMap(itsClusMap),
fType(ttype)
{
// constructor
SetP(p, cartesian);
SetPosition(x, isDCA);
+ SetUsedForVtxFit(usedForVtxFit);
SetUsedForPrimVtxFit(usedForPrimVtxFit);
if(covMatrix) SetCovMatrix(covMatrix);
SetPID(pid);
//______________________________________________________________________________
AliAODTrack::AliAODTrack(const AliAODTrack& trk) :
AliVirtualParticle(trk),
- fChi2(trk.fChi2),
+ fChi2perNDF(trk.fChi2perNDF),
fID(trk.fID),
fLabel(trk.fLabel),
fCovMatrix(NULL),
fProdVertex(trk.fProdVertex),
fCharge(trk.fCharge),
- fITSClusterMap(trk.fITSClusterMap),
+ fITSMuonClusterMap(trk.fITSMuonClusterMap),
fType(trk.fType)
{
// Copy constructor
trk.GetP(fMomentum);
trk.GetPosition(fPosition);
+ SetUsedForVtxFit(trk.GetUsedForVtxFit());
SetUsedForPrimVtxFit(trk.GetUsedForPrimVtxFit());
if(trk.fCovMatrix) fCovMatrix=new AliAODRedCov<6>(*trk.fCovMatrix);
SetPID(trk.fPID);
trk.GetPosition(fPosition);
trk.GetPID(fPID);
- fChi2 = trk.fChi2;
+ fChi2perNDF = trk.fChi2perNDF;
fID = trk.fID;
fLabel = trk.fLabel;
fProdVertex = trk.fProdVertex;
fCharge = trk.fCharge;
- fITSClusterMap = trk.fITSClusterMap;
+ fITSMuonClusterMap = trk.fITSMuonClusterMap;
+ SetUsedForVtxFit(trk.GetUsedForVtxFit());
SetUsedForPrimVtxFit(trk.GetUsedForPrimVtxFit());
fType = trk.fType;
}
{
// Returns the mass.
// In the case of elementary particles the hard coded mass values were taken
- // from the PDG. In all cases the error on the values does not affect
+ // from the PDG. In all cases the errors on the values do not affect
// the last digit.
printf(" 1/pt = %f\n", OneOverPt());
printf(" theta = %f\n", Theta());
printf(" phi = %f\n", Phi());
- printf(" chi2 = %f\n", Chi2());
+ printf(" chi2/NDF = %f\n", Chi2perNDF());
printf(" charge = %d\n", Charge());
printf(" PID object: %p\n", PID());
}