]>
Commit | Line | Data |
---|---|---|
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 | |
38af6cae | 17 | /* |
18 | $Log$ | |
19 | Revision 1.4 2002/10/14 14:55:35 hristov | |
20 | Merging the VirtualMC branch to the main development branch (HEAD) | |
21 | ||
22 | Revision 1.2.6.2 2002/07/24 10:06:16 alibrary | |
23 | Updating VirtualMC | |
24 | ||
25 | Revision 1.3 2002/05/22 13:48:43 morsch | |
26 | Pdg code added to track list. | |
27 | ||
28 | */ | |
471f69dc | 29 | |
30 | //*-- Author: Andreas Morsch (CERN) | |
31 | ||
32 | #include "AliEMCALJet.h" | |
33 | #include "Ecommon.h" | |
34 | ||
35 | ClassImp(AliEMCALJet) | |
36 | ||
37 | //____________________________________________________________________________ | |
38 | AliEMCALJet::AliEMCALJet() | |
39 | { | |
40 | // Default constructor | |
41 | } | |
42 | ||
43 | AliEMCALJet::AliEMCALJet(Float_t energy, Float_t phi, Float_t eta) | |
44 | { | |
45 | // Constructor | |
46 | fEnergy = energy; | |
47 | fPhi = phi; | |
48 | fEta = eta; | |
49 | } | |
50 | ||
51 | //____________________________________________________________________________ | |
52 | AliEMCALJet::~AliEMCALJet() | |
53 | { | |
54 | // Destructor | |
55 | } | |
56 | ||
57 | ||
975127ed | 58 | void AliEMCALJet::SetTrackList(Int_t n, Float_t* pt, Float_t* eta, Float_t* phi, Int_t* pdg) |
a8f2e59f | 59 | { |
60 | // | |
61 | // | |
62 | fNt = n; | |
63 | for (Int_t i = 0; i < n; i++) { | |
64 | fPtT [i] = pt [i]; | |
65 | fEtaT[i] = eta[i]; | |
66 | fPhiT[i] = phi[i]; | |
975127ed | 67 | fPdgT[i] = pdg[i]; |
a8f2e59f | 68 | } |
69 | } | |
70 | ||
471f69dc | 71 | |
72 | ||
975127ed | 73 | Int_t AliEMCALJet::TrackList(Float_t* pt, Float_t* eta, Float_t* phi, Int_t* pdg) |
a8f2e59f | 74 | { |
75 | // | |
76 | // | |
77 | for (Int_t i = 0; i < fNt; i++) { | |
78 | pt [i] = fPtT [i]; | |
79 | eta[i] = fEtaT[i]; | |
80 | phi[i] = fPhiT[i]; | |
975127ed | 81 | pdg[i] = fPdgT[i]; |
a8f2e59f | 82 | } |
83 | return fNt; | |
84 | } | |
471f69dc | 85 | |
86 | ||
87 | ||
88 | ||
89 | ||
90 | ||
91 |