]>
Commit | Line | Data |
---|---|---|
73e3f083 | 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 | ||
16 | /* $Id: */ | |
17 | /* | |
18 | $Log$ | |
88cb7938 | 19 | Revision 1.5.4.1 2003/07/08 17:16:50 schutz |
20 | NewIO | |
21 | ||
22 | Revision 1.5 2003/03/17 17:29:54 hristov | |
23 | Using Riostream.h instead of iostream.h | |
24 | ||
5d3836c4 | 25 | Revision 1.4 2003/03/17 14:26:06 morsch |
26 | Updates by M. Horner and J. Klay | |
27 | ||
561356e3 | 28 | Revision 1.3 2003/02/05 17:24:25 morsch |
29 | Modifiactions by M. Horner. | |
30 | ||
d8ac6858 | 31 | Revision 1.2 2002/10/14 14:55:35 hristov |
32 | Merging the VirtualMC branch to the main development branch (HEAD) | |
33 | ||
b9d0a01d | 34 | Revision 1.1.2.1 2002/08/28 15:06:50 alibrary |
35 | Updating to v3-09-01 | |
36 | ||
37 | Revision 1.1 2002/08/21 10:29:29 schutz | |
38 | New classes (by Renan) | |
39 | ||
73e3f083 | 40 | */ |
41 | ||
42 | //*-- Author: Renan Cabrera (Creighton U.) | |
43 | ||
44 | #include "AliEMCALParton.h" | |
45 | #include "Ecommon.h" | |
5d3836c4 | 46 | #include <Riostream.h> |
73e3f083 | 47 | ClassImp(AliEMCALParton) |
48 | ||
49 | //____________________________________________________________________________ | |
50 | AliEMCALParton::AliEMCALParton() | |
51 | { | |
52 | // Default constructor | |
561356e3 | 53 | // fTrackEnergy = 0; |
54 | // fTrackEta = 0; | |
55 | // fTrackPhi = 0; | |
56 | // fTrackPDG = 0; | |
d8ac6858 | 57 | fNTracks = 0; |
73e3f083 | 58 | } |
59 | ||
60 | AliEMCALParton::AliEMCALParton(Float_t energy, Float_t phi, Float_t eta) | |
61 | { | |
62 | // Constructor | |
63 | fEnergy = energy; | |
64 | fPhi = phi; | |
65 | fEta = eta; | |
561356e3 | 66 | // fTrackEnergy = 0; |
67 | // fTrackEta = 0; | |
68 | // fTrackPhi = 0; | |
69 | // fTrackPDG = 0; | |
d8ac6858 | 70 | fNTracks = 0; |
71 | } | |
72 | ||
73 | void AliEMCALParton::SetTrackList(Int_t NTracks, Float_t* Energy, Float_t* Eta, Float_t* Phi, Int_t* PDG) | |
74 | { | |
75 | ||
d8ac6858 | 76 | fNTracks = NTracks; |
d8ac6858 | 77 | for (Int_t i=0;i<NTracks;i++) |
78 | { | |
79 | fTrackEnergy[i] = Energy[i] ; | |
80 | fTrackEta[i] = Eta[i]; | |
81 | fTrackPhi[i] = Phi[i]; | |
82 | fTrackPDG[i] = PDG[i]; | |
561356e3 | 83 | } |
d8ac6858 | 84 | } |
85 | ||
86 | void AliEMCALParton::GetTrackList(Float_t* Energy, Float_t* Eta, Float_t* Phi, Int_t* PDG) | |
87 | { | |
88 | for (Int_t i=0;i<fNTracks;i++) | |
89 | { | |
90 | Energy[i] = fTrackEnergy[i] ; | |
91 | Eta[i] = fTrackEta[i]; | |
92 | Phi[i] = fTrackPhi[i]; | |
93 | PDG[i] = fTrackPDG[i]; | |
94 | } | |
73e3f083 | 95 | } |
96 | ||
d8ac6858 | 97 | |
73e3f083 | 98 | //____________________________________________________________________________ |
99 | ||
100 | AliEMCALParton::~AliEMCALParton() | |
101 | { | |
102 | // Destructor | |
d8ac6858 | 103 | |
73e3f083 | 104 | } |