]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWGCF/Correlations/JCORRAN/AliJJet.h
Merge branch 'feature-movesplit'
[u/mrichter/AliRoot.git] / PWGCF / Correlations / JCORRAN / AliJJet.h
1 /* Copyright(c) 1998-2014, ALICE Experiment at CERN, All rights reserved. *
2  * See cxx source for full Copyright notice */
3
4 // Short comment describing what this class does needed!
5
6 // $Id: AliJBaseTrack.h,v 1.5 2008/05/08 15:19:52 djkim Exp $
7
8 ///////////////////////////////////////////////////
9 /*
10  \file AliJBaseTrack.h
11  \brief
12  \author J. Rak, D.J.Kim, R.Diaz (University of Jyvaskyla)
13  \email: djkim@jyu.fi
14  \version $Revision: 1.5 $
15  \date $Date: 2008/05/08 15:19:52 $
16  */
17 ///////////////////////////////////////////////////
18
19 #ifndef ALIJJET_H
20 #define ALIJJET_H
21
22 #ifndef ROOT_TObject
23 #include <TObject.h>
24 #endif
25
26 #include <iostream>
27 #include <TLorentzVector.h>
28 #include <TObjArray.h>
29 #include  "AliJConst.h"
30 #include "AliJBaseTrack.h"
31
32 using namespace std;
33
34 class AliJJet : public AliJBaseTrack {
35 public:
36   AliJJet();
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);
40   virtual ~AliJJet(){
41       ; 
42   }    //destructor
43   AliJJet& operator=(const AliJJet& trk);
44   
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]; }
53   void ReSum();
54   int LeadingParticleId(){ return fLeadingTrackId; }
55   double LeadingParticlePt(){ return fLeadingTrackPt; }
56   double LeadingParticleE(){ return fLeadingTrackE; }
57   
58 private:
59   int      fLeadingTrackId;     //! id of leading track in constituents
60   double   fLeadingTrackPt;
61   double   fLeadingTrackE;
62   double   fNConstituent;
63   Double_t fArea;              // Area of the jet
64   TObjArray fConstituents;     //! Constituent tracks of the jets
65
66   
67   ClassDef(AliJJet,1)
68 };
69 #endif