1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
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 **************************************************************************/
19 Revision 1.2 2002/10/14 14:55:35 hristov
20 Merging the VirtualMC branch to the main development branch (HEAD)
22 Revision 1.1.2.1 2002/08/28 15:06:50 alibrary
25 Revision 1.1 2002/08/21 10:29:29 schutz
26 New classes (by Renan)
30 //*-- Author: Renan Cabrera (Creighton U.)
32 #include "AliEMCALParton.h"
34 ClassImp(AliEMCALParton)
36 //____________________________________________________________________________
37 AliEMCALParton::AliEMCALParton()
39 // Default constructor
47 AliEMCALParton::AliEMCALParton(Float_t energy, Float_t phi, Float_t eta)
60 void AliEMCALParton::SetTrackList(Int_t NTracks, Float_t* Energy, Float_t* Eta, Float_t* Phi, Int_t* PDG)
65 delete[] fTrackEnergy;
71 fTrackEnergy = new Float_t[NTracks];
72 fTrackEta = new Float_t[NTracks];
73 fTrackPhi = new Float_t[NTracks];
74 fTrackPDG = new Int_t[NTracks];
76 for (Int_t i=0;i<NTracks;i++)
78 fTrackEnergy[i] = Energy[i] ;
79 fTrackEta[i] = Eta[i];
80 fTrackPhi[i] = Phi[i];
81 fTrackPDG[i] = PDG[i];
85 void AliEMCALParton::GetTrackList(Float_t* Energy, Float_t* Eta, Float_t* Phi, Int_t* PDG)
87 for (Int_t i=0;i<fNTracks;i++)
89 Energy[i] = fTrackEnergy[i] ;
90 Eta[i] = fTrackEta[i];
91 Phi[i] = fTrackPhi[i];
92 PDG[i] = fTrackPDG[i];
97 //____________________________________________________________________________
99 AliEMCALParton::~AliEMCALParton()
102 delete[] fTrackEnergy;