X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=blobdiff_plain;f=RALICE%2FAliJet.h;h=c4b5a375e6d89137dbc060909f17759511012c31;hp=e0a557caf4097b7dbc6ccbced5abdc935dae3b25;hb=c1f25d1dcc851b2f7b14efd54955756e58981cc4;hpb=d88f97ccd1c218106504dbf4cbf5bc65038e2a78 diff --git a/RALICE/AliJet.h b/RALICE/AliJet.h index e0a557caf40..c4b5a375e6d 100644 --- a/RALICE/AliJet.h +++ b/RALICE/AliJet.h @@ -1,41 +1,9 @@ #ifndef ALIJET_H #define ALIJET_H -/////////////////////////////////////////////////////////////////////////// -// Class AliJet -// Creation and investigation of a jet of particle tracks. -// An AliJet can be constructed by adding AliTracks. -// -// Coding example to make 2 jets j1 and j2. -// ---------------------------------------- -// j1 contains the AliTracks 1 and 2 -// j2 contains the AliTracks 3 and 4 -// -// AliTrack t1,t2,t3,t4; -// ... -// ... // code to fill the AliTrack data -// ... -// AliJet j1(5); -// AliJet j2(12); -// j1.Add(t1); -// j1.Add(t2); -// j2.Add(t3); -// j2.Add(t4); -// -// j1.Info(); -// j2.Info("sph"); -// -// Float_t e1=j1.GetEnergy(); -// Float_t pnorm=j1->GetMomentum(); -// Ali3Vector p=j1->Get3Momentum(); -// Float_t m=j1.GetInvmass(); -// Int_t ntk=j1.GetNtracks(); -// AliTrack* tj=j1.GetTrack(1); -// -// Note : All quantities are in GeV, GeV/c or GeV/c**2 -// -//--- NvE 10-jul-1997 UU-SAP Utrecht -//--- Modified : NvE 06-apr-1999 UU-SAP Utrecht to inherit from Ali4Vector -/////////////////////////////////////////////////////////////////////////// +/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * + * See cxx source for full Copyright notice */ + +// $Id$ #include #include @@ -53,8 +21,8 @@ class AliJet : public TObject,public Ali4Vector AliJet(Int_t n); // Create a Jet to hold initially n Tracks ~AliJet(); // Default destructor void Reset(); // Reset all values - virtual void Add(AliTrack& t); // Add a track to the jet - virtual void Add(AliTrack* t) { Add(*t); } + virtual void AddTrack(AliTrack& t);// Add a track to the jet + virtual void AddTrack(AliTrack* t) { AddTrack(*t); } void Info(TString f); // Print jet information in coordinate frame f void List(TString f="car"); // Print jet prim. track information for coord. frame f void ListAll(TString f="car"); // Print jet prim. and decay track information for coord. frame f @@ -65,6 +33,14 @@ class AliJet : public TObject,public Ali4Vector Float_t GetCharge(); // Provide the total charge of the jet Int_t GetNtracks(); // Return the number of tracks in the jet AliTrack* GetTrack(Int_t i); // Provide i-th track of the jet (1=first track) + Double_t GetPt(); // Provide trans. momentum w.r.t. z-axis + Double_t GetPl(); // Provide long. momentum w.r.t. z-axis + Double_t GetEt(); // Provide trans. energy w.r.t. z-axis + Double_t GetEl(); // Provide long. energy w.r.t. z-axis + Double_t GetMt(); // Provide trans. mass w.r.t. z-axis + Double_t GetRapidity(); // Provide rapidity value w.r.t. z-axis + void SetTrackCopy(Int_t j); // (De)activate creation of private copies in fTracks + Int_t GetTrackCopy(); // Provide TrackCopy flag value protected: void SetNtinit(Int_t n=2); // Set the initial max. number of tracks for this Jet @@ -73,7 +49,8 @@ class AliJet : public TObject,public Ali4Vector Float_t fQ; // The total charge of the jet Int_t fNtrk; // The number of tracks in the jet TObjArray* fTracks; // Array to hold the pointers to the tracks of the jet + Int_t fTrackCopy; // Flag to denote creation of private copies in fTracks - ClassDef(AliJet,1) // Class definition to enable ROOT I/O + ClassDef(AliJet,1) // Creation and investigation of a jet of particle tracks. }; #endif