]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EMCAL/AliEMCALJet.cxx
Separated TOF libraries (base,rec,sim)
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALJet.cxx
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
17 /* $Id$ */
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
47 void AliEMCALJet::SetTrackList(Int_t n, Float_t* pt, Float_t* eta, Float_t* phi, Int_t* pdg)
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];
56         fPdgT[i]  = pdg[i];
57     }
58 }
59
60
61
62 Int_t AliEMCALJet::TrackList(Float_t* pt, Float_t* eta, Float_t* phi, Int_t* pdg) const
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];
70         pdg[i] = fPdgT[i];
71     }
72     return fNt;
73 }
74
75
76
77
78
79
80