ROOT logo
/* Copyright(c) 1998-2014, ALICE Experiment at CERN, All rights reserved. *
 * See cxx source for full Copyright notice */

// Short comment describing what this class does needed!

// $Id: AliJBaseTrack.h,v 1.5 2008/05/08 15:19:52 djkim Exp $

///////////////////////////////////////////////////
/*
 \file AliJBaseTrack.h
 \brief
 \author J. Rak, D.J.Kim, R.Diaz (University of Jyvaskyla)
 \email: djkim@jyu.fi
 \version $Revision: 1.5 $
 \date $Date: 2008/05/08 15:19:52 $
 */
///////////////////////////////////////////////////

#ifndef ALIJJET_H
#define ALIJJET_H

#ifndef ROOT_TObject
#include <TObject.h>
#endif

#include <iostream>
#include <TLorentzVector.h>
#include <TObjArray.h>
#include  "AliJConst.h"
#include "AliJBaseTrack.h"

using namespace std;

class AliJJet : public AliJBaseTrack {
public:
  AliJJet();
  AliJJet(float px,float py, float pz, float e, Int_t id, Short_t ptype, Char_t charge); // constructor
  AliJJet(const AliJJet& a);
  AliJJet(const TLorentzVector & a);
  virtual ~AliJJet(){
      ; 
  }    //destructor
  AliJJet& operator=(const AliJJet& trk);
  
  void SetArea(double a){ fArea = a; }
  Double_t GetArea() const{ return fArea; }
  Double_t Area() const{ return fArea; }
  void AddConstituent(TObject* t){ fConstituents.Add(t); }
  TObjArray* GetConstituents(){ return &fConstituents; }
  int GetNConstituents(){ return fNConstituent; }
  //int GetNConstituents(){ return fConstituents.GetEntriesFast(); }
  AliJBaseTrack * GetConstituent(int i) const{ return (AliJBaseTrack*)fConstituents[i]; }
  void ReSum();
  int LeadingParticleId(){ return fLeadingTrackId; }
  double LeadingParticlePt(){ return fLeadingTrackPt; }
  double LeadingParticleE(){ return fLeadingTrackE; }
  
private:
  int      fLeadingTrackId;     //! id of leading track in constituents
  double   fLeadingTrackPt;
  double   fLeadingTrackE;
  double   fNConstituent;
  Double_t fArea;              // Area of the jet
  TObjArray fConstituents;     //! Constituent tracks of the jets

  
  ClassDef(AliJJet,1)
};
#endif
 AliJJet.h:1
 AliJJet.h:2
 AliJJet.h:3
 AliJJet.h:4
 AliJJet.h:5
 AliJJet.h:6
 AliJJet.h:7
 AliJJet.h:8
 AliJJet.h:9
 AliJJet.h:10
 AliJJet.h:11
 AliJJet.h:12
 AliJJet.h:13
 AliJJet.h:14
 AliJJet.h:15
 AliJJet.h:16
 AliJJet.h:17
 AliJJet.h:18
 AliJJet.h:19
 AliJJet.h:20
 AliJJet.h:21
 AliJJet.h:22
 AliJJet.h:23
 AliJJet.h:24
 AliJJet.h:25
 AliJJet.h:26
 AliJJet.h:27
 AliJJet.h:28
 AliJJet.h:29
 AliJJet.h:30
 AliJJet.h:31
 AliJJet.h:32
 AliJJet.h:33
 AliJJet.h:34
 AliJJet.h:35
 AliJJet.h:36
 AliJJet.h:37
 AliJJet.h:38
 AliJJet.h:39
 AliJJet.h:40
 AliJJet.h:41
 AliJJet.h:42
 AliJJet.h:43
 AliJJet.h:44
 AliJJet.h:45
 AliJJet.h:46
 AliJJet.h:47
 AliJJet.h:48
 AliJJet.h:49
 AliJJet.h:50
 AliJJet.h:51
 AliJJet.h:52
 AliJJet.h:53
 AliJJet.h:54
 AliJJet.h:55
 AliJJet.h:56
 AliJJet.h:57
 AliJJet.h:58
 AliJJet.h:59
 AliJJet.h:60
 AliJJet.h:61
 AliJJet.h:62
 AliJJet.h:63
 AliJJet.h:64
 AliJJet.h:65
 AliJJet.h:66
 AliJJet.h:67
 AliJJet.h:68
 AliJJet.h:69