Calculation of new variables needed for Non-id HBT added. (Z. Chajecki)
[u/mrichter/AliRoot.git] / JETAN / AliJet.h
CommitLineData
d7c6ab14 1#ifndef ALIJET_H
2#define ALIJET_H
3
4/* $Id$ */
5
6///////////////////////////////////////////////////////////////////
7//
8// class AliJet
9//
10// loizides@ikf.uni-frankfurt.de
11//
12///////////////////////////////////////////////////////////////////
13
14#include <TObject.h>
15#include <TClonesArray.h>
16#include <TObjString.h>
17#include <TString.h>
18class TParticle;
19class AliJetParticle;
20
21class AliJet: public TObject
22{
23 public:
24#if 0
25 AliJetEvent(Int_t size=1000);
26 AliJetEvent(const AliJetEvent& source);
27 virtual ~AliJetEvent();
28
29 void SetVertex(Float_t v[3]){fVertexX=v[0];fVertexY=v[1];fVertexZ=v[2];}
30 void SetVertex(Float_t v1,Float_t v2, Float_t v3){fVertexX=v1;fVertexY=v2;fVertexZ=v3;}
31 void SetHeader(TString& s){fHeader=s;}
32 void Reset(Int_t size=-1); //deletes all entries
33
34 //adds particle to the event
35 void AddParticle(AliJetParticle* p);
36 void AddParticle(const AliJetParticle* p);
37 void AddParticle(const TParticle* part,Int_t idx=-1, Int_t l=0);
38 void AddParticle(Float_t px, Float_t py, Float_t pz, Float_t etot, Int_t idx=-1, Int_t l=0);
39 void AddParticle(Float_t px, Float_t py, Float_t pz, Float_t etot, Int_t idx, Int_t l,
40 Float_t pt, Float_t phi, Float_t eta);
41
42 const AliJetParticle* GetParticle(Int_t n) //gets particle without boundary check
43 {return (const AliJetParticle*)fParticles->At(n);}
44 const AliJetParticle* GetParticleSafely(Int_t n);
45 Int_t GetNParticles() const {return fNParticles;}
46 const TClonesArray* GetParticles() const {return fParticles;}
47 Float_t GetVertexX() const {return fVertexX;}
48 Float_t GetVertexY() const {return fVertexY;}
49 Float_t GetVertexZ() const {return fVertexZ;}
50
51 void Print(Option_t *t="") const;
52
53 protected:
54 TString fHeader; // event description
55 Int_t fNParticles; // number of particles read
56 TClonesArray *fParticles; //-> particles in event
57
58 Float_t fVertexX; //vertex x
59 Float_t fVertexY; //vertex y
60 Float_t fVertexZ; //vertex z
61#endif
62 ClassDef(AliJet,1) //class AliJet
63};
64#endif