3 // Track class with minimal number of information
4 // (targets at selection of primary tracks)
7 #include "AliPicoTrack.h"
9 //_________________________________________________________________________________________________
10 AliPicoTrack::AliPicoTrack() :
12 fPt(0), fEta(0), fPhi(0), fQ(0), fLabel(-1), fEtaEmc(0), fPhiEmc(0), fEmcal(0)
14 // Default constructor.
17 //_________________________________________________________________________________________________
18 AliPicoTrack::AliPicoTrack(Double_t pt, Double_t eta, Double_t phi, Byte_t q, Byte_t lab,
19 Double_t etaemc, Double_t phiemc, Bool_t ise) :
21 fPt(pt), fEta(eta), fPhi(phi), fQ(q), fLabel(lab),
22 fEtaEmc(etaemc), fPhiEmc(phiemc), fEmcal(ise)
27 //_________________________________________________________________________________________________
28 AliPicoTrack::AliPicoTrack(const AliPicoTrack &pc) :
30 fPt(pc.fPt), fEta(pc.fEta), fPhi(pc.fPhi),
31 fQ(pc.fQ), fLabel(pc.fLabel),
32 fEtaEmc(pc.fEtaEmc), fPhiEmc(pc.fPhiEmc), fEmcal(pc.fEmcal)
37 //_________________________________________________________________________________________________
38 AliPicoTrack &AliPicoTrack::operator=(const AliPicoTrack &pc)
40 // Assignment operator.
43 AliVTrack::operator=(pc);
57 //_________________________________________________________________________________________________
58 Int_t AliPicoTrack::Compare(const TObject* obj) const
60 // Compare this class with an other instance of this class used in a
61 // TCollection::Sort()/TClonesArray::Sort() which is descending.
62 // Returns 0 when equal, 1 when this is smaller and -1 when bigger.
64 const AliPicoTrack *t = dynamic_cast<const AliPicoTrack*>(obj);