1 /* Copyright(c) 1998-2014, ALICE Experiment at CERN, All rights reserved. *
2 * See cxx source for full Copyright notice */
4 // Short comment describing what this class does needed!
6 // $Id: AliJBaseTrack.h,v 1.5 2008/05/08 15:19:52 djkim Exp $
8 ///////////////////////////////////////////////////
12 \author J. Rak, D.J.Kim, R.Diaz (University of Jyvaskyla)
14 \version $Revision: 1.5 $
15 \date $Date: 2008/05/08 15:19:52 $
17 ///////////////////////////////////////////////////
27 #include <TLorentzVector.h>
28 #include <TObjArray.h>
29 #include "AliJConst.h"
30 #include "AliJBaseTrack.h"
34 class AliJJet : public AliJBaseTrack {
37 AliJJet(float px,float py, float pz, float e, Int_t id, Short_t ptype, Char_t charge); // constructor
38 AliJJet(const AliJJet& a);
39 AliJJet(const TLorentzVector & a);
43 AliJJet& operator=(const AliJJet& trk);
45 void SetArea(double a){ fArea = a; }
46 Double_t GetArea() const{ return fArea; }
47 Double_t Area() const{ return fArea; }
48 void AddConstituent(TObject* t){ fConstituents.Add(t); }
49 TObjArray* GetConstituents(){ return &fConstituents; }
50 int GetNConstituents(){ return fNConstituent; }
51 //int GetNConstituents(){ return fConstituents.GetEntriesFast(); }
52 AliJBaseTrack * GetConstituent(int i) const{ return (AliJBaseTrack*)fConstituents[i]; }
54 int LeadingParticleId(){ return fLeadingTrackId; }
55 double LeadingParticlePt(){ return fLeadingTrackPt; }
56 double LeadingParticleE(){ return fLeadingTrackE; }
59 int fLeadingTrackId; //! id of leading track in constituents
60 double fLeadingTrackPt;
61 double fLeadingTrackE;
63 Double_t fArea; // Area of the jet
64 TObjArray fConstituents; //! Constituent tracks of the jets