]>
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 | |
ee6b678f | 17 | /* $Id$ */ |
471f69dc | 18 | |
19 | //*-- Author: Andreas Morsch (CERN) | |
20 | ||
21 | #include "AliEMCALJet.h" | |
22 | #include "Ecommon.h" | |
23 | ||
24 | ClassImp(AliEMCALJet) | |
25 | ||
26 | //____________________________________________________________________________ | |
27 | AliEMCALJet::AliEMCALJet() | |
28 | { | |
29 | // Default constructor | |
30 | } | |
31 | ||
32 | AliEMCALJet::AliEMCALJet(Float_t energy, Float_t phi, Float_t eta) | |
33 | { | |
34 | // Constructor | |
35 | fEnergy = energy; | |
36 | fPhi = phi; | |
37 | fEta = eta; | |
38 | } | |
39 | ||
40 | //____________________________________________________________________________ | |
41 | AliEMCALJet::~AliEMCALJet() | |
42 | { | |
43 | // Destructor | |
44 | } | |
45 | ||
46 | ||
975127ed | 47 | void AliEMCALJet::SetTrackList(Int_t n, Float_t* pt, Float_t* eta, Float_t* phi, Int_t* pdg) |
a8f2e59f | 48 | { |
49 | // | |
50 | // | |
51 | fNt = n; | |
52 | for (Int_t i = 0; i < n; i++) { | |
53 | fPtT [i] = pt [i]; | |
54 | fEtaT[i] = eta[i]; | |
55 | fPhiT[i] = phi[i]; | |
975127ed | 56 | fPdgT[i] = pdg[i]; |
a8f2e59f | 57 | } |
58 | } | |
59 | ||
471f69dc | 60 | |
61 | ||
70efac3e | 62 | Int_t AliEMCALJet::TrackList(Float_t* pt, Float_t* eta, Float_t* phi, Int_t* pdg) const |
a8f2e59f | 63 | { |
64 | // | |
65 | // | |
66 | for (Int_t i = 0; i < fNt; i++) { | |
67 | pt [i] = fPtT [i]; | |
68 | eta[i] = fEtaT[i]; | |
69 | phi[i] = fPhiT[i]; | |
975127ed | 70 | pdg[i] = fPdgT[i]; |
a8f2e59f | 71 | } |
72 | return fNt; | |
73 | } | |
471f69dc | 74 | |
75 | ||
76 | ||
77 | ||
78 | ||
79 | ||
80 |