Transition to NewIO
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALJet.cxx
CommitLineData
471f69dc 1/**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3 * *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
6 * *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
15
975127ed 16
17/*
18$Log$
88cb7938 19Revision 1.2.4.2 2003/07/07 14:13:31 schutz
20NewIO
21
22Revision 1.4 2002/10/14 14:55:35 hristov
23Merging the VirtualMC branch to the main development branch (HEAD)
24
b9d0a01d 25Revision 1.2.6.2 2002/07/24 10:06:16 alibrary
26Updating VirtualMC
27
28Revision 1.3 2002/05/22 13:48:43 morsch
29Pdg code added to track list.
30
975127ed 31*/
471f69dc 32
33//*-- Author: Andreas Morsch (CERN)
34
35#include "AliEMCALJet.h"
36#include "Ecommon.h"
37
38ClassImp(AliEMCALJet)
39
40//____________________________________________________________________________
41AliEMCALJet::AliEMCALJet()
42{
43// Default constructor
44}
45
46AliEMCALJet::AliEMCALJet(Float_t energy, Float_t phi, Float_t eta)
47{
48// Constructor
49 fEnergy = energy;
50 fPhi = phi;
51 fEta = eta;
52}
53
54//____________________________________________________________________________
55AliEMCALJet::~AliEMCALJet()
56{
57// Destructor
58}
59
60
975127ed 61void AliEMCALJet::SetTrackList(Int_t n, Float_t* pt, Float_t* eta, Float_t* phi, Int_t* pdg)
a8f2e59f 62{
63//
64//
65 fNt = n;
66 for (Int_t i = 0; i < n; i++) {
67 fPtT [i] = pt [i];
68 fEtaT[i] = eta[i];
69 fPhiT[i] = phi[i];
975127ed 70 fPdgT[i] = pdg[i];
a8f2e59f 71 }
72}
73
471f69dc 74
75
975127ed 76Int_t AliEMCALJet::TrackList(Float_t* pt, Float_t* eta, Float_t* phi, Int_t* pdg)
a8f2e59f 77{
78//
79//
80 for (Int_t i = 0; i < fNt; i++) {
81 pt [i] = fPtT [i];
82 eta[i] = fEtaT[i];
83 phi[i] = fPhiT[i];
975127ed 84 pdg[i] = fPdgT[i];
a8f2e59f 85 }
86 return fNt;
87}
471f69dc 88
89
90
91
92
93
94