#include "AliESDMuonTrack.h"
#include "AliESDMuonCluster.h"
+#include "AliESDEvent.h"
#include <TClonesArray.h>
#include <TLorentzVector.h>
fZUncorrected(0),
fBendingCoorUncorrected(0),
fNonBendingCoorUncorrected(0),
+ fRAtAbsorberEnd(0),
fChi2(0),
fChi2MatchTrigger(0),
fLocalTrigger(0),
fHitsPatternInTrigCh(0),
fNHit(0),
fClusters(0x0),
- fLabel(-1)
+ fLabel(-1),
+ fESDEvent(0)
+
{
//
/// Default constructor
fZUncorrected(muonTrack.fZUncorrected),
fBendingCoorUncorrected(muonTrack.fBendingCoorUncorrected),
fNonBendingCoorUncorrected(muonTrack.fNonBendingCoorUncorrected),
+ fRAtAbsorberEnd(muonTrack.fRAtAbsorberEnd),
fChi2(muonTrack.fChi2),
fChi2MatchTrigger(muonTrack.fChi2MatchTrigger),
fLocalTrigger(muonTrack.fLocalTrigger),
fHitsPatternInTrigCh(muonTrack.fHitsPatternInTrigCh),
fNHit(muonTrack.fNHit),
fClusters(0x0),
- fLabel(muonTrack.fLabel)
+ fLabel(muonTrack.fLabel),
+ fESDEvent(muonTrack.fESDEvent)
{
//
/// Copy constructor
for (Int_t i = 0; i < 15; i++) fCovariances[i] = muonTrack.fCovariances[i];
+ fRAtAbsorberEnd = muonTrack.fRAtAbsorberEnd;
+
fChi2 = muonTrack.fChi2;
fNHit = muonTrack.fNHit;
fMuonClusterMap = muonTrack.fMuonClusterMap;
fLabel = muonTrack.fLabel;
+
+ fESDEvent = muonTrack.fESDEvent;
// necessary to make a copy of the objects and not only the pointers in TClonesArray
delete fClusters;
fZUncorrected = 0.;
fBendingCoorUncorrected = 0.;
fNonBendingCoorUncorrected = 0.;
+ fRAtAbsorberEnd = 0.;
fChi2 = 0.;
fChi2MatchTrigger = 0.;
fLocalTrigger = 0;
delete fClusters; fClusters = 0x0;
for (Int_t i = 0; i < 15; i++) fCovariances[i] = 0.;
fLabel = -1;
+ fESDEvent = 0;
}
//_____________________________________________________________________________
vP.SetPxPyPzE(pX, pY, pZ, e);
}
+//_____________________________________________________________________________
+Int_t AliESDMuonTrack::GetNDF() const
+{
+ /// return the number of degrees of freedom
+
+ Int_t ndf = 2 * static_cast<Int_t>(fNHit) - 5;
+ return (ndf > 0) ? ndf : 0;
+}
+
+//_____________________________________________________________________________
+Double_t AliESDMuonTrack::GetNormalizedChi2() const
+{
+ /// return the chi2 value divided by the number of degrees of freedom
+
+ Int_t ndf = GetNDF();
+ return (ndf > 0) ? fChi2 / static_cast<Double_t>(ndf) : 0.;
+}
+
//_____________________________________________________________________________
Int_t AliESDMuonTrack::GetMatchTrigger() const
{