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