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