SetMomentum(in.fPx,in.fPy,in.fPz,in.fE);
fIdxInEvent=in.fIdxInEvent;
fLabel=in.fLabel;
+ fType=in.fType;
}
AliJetParticle::AliJetParticle(const TParticle* p, Int_t idx, Int_t l) :
SetMomentum(p->Px(),p->Py(),p->Pz(),p->Energy());
fIdxInEvent=idx;
fLabel=l;
+ fType=0;
}
AliJetParticle::AliJetParticle(Float_t px, Float_t py, Float_t pz,
SetMomentum(px,py,pz,etot);
fIdxInEvent=idx;
fLabel=l;
+ fType=0;
}
AliJetParticle::AliJetParticle(Float_t px, Float_t py, Float_t pz,
Float_t pt, Float_t phi, Float_t eta) :
TObject(),
fPx(px),fPy(py),fPz(pz),
- fE(etot),fIdxInEvent(idx),fLabel(l),
+ fE(etot),fIdxInEvent(idx),
+ fType(0),fLabel(l),
fPt(pt),fEta(eta),fPhi(phi)
{
void AliJetParticle::Clear(Option_t* /*t*/)
{
+ fType=0;
fPx=0.;
fPy=0.;
fPz=0.;
void SetUID(Int_t id) {fIdxInEvent = id;}
void SetLabel(Int_t l){fLabel = l;}
-
+ void SetType(Int_t t) {fType = t;}
+
Float_t P() const {return TMath::Sqrt(fPx*fPx+fPy*fPy+fPz*fPz);}
Float_t Y() const {if (fE != fPz) return 0.5*TMath::Log((fE+fPz)/(fE-fPz));
else return 1.e30;}
Float_t Pz() const {return fPz;}
Float_t Energy() const {return fE;}
+ Int_t GetType() const {return fType;}
Float_t Pt() const {return fPt;}
Float_t Eta() const {return fEta;}
Float_t Phi() const {return fPhi;}
Float_t fPz; // z component of momentum at vertex
Float_t fE; // total energy
Int_t fIdxInEvent; // index of particle as appeared in complete event
- Int_t fLabel;
+ Int_t fType; // -123 if marked
+ Int_t fLabel; // assigned label
Float_t fPt; // normally calculated
Float_t fEta; // normally calculated
Float_t fPhi; // normally calculated
- ClassDef(AliJetParticle,1) // Basic Jet Particle class
+ ClassDef(AliJetParticle,2) // Basic Jet Particle class
};
#endif