]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EMCAL/AliEMCALJet.cxx
Smaller changes
[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 /*
18 $Log$
19 */
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
49 void AliEMCALJet::SetTrackList(Int_t n, Float_t* pt, Float_t* eta, Float_t* phi, Int_t* pdg)
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];
58         fPdgT[i]  = pdg[i];
59     }
60 }
61
62
63
64 Int_t AliEMCALJet::TrackList(Float_t* pt, Float_t* eta, Float_t* phi, Int_t* pdg)
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];
72         pdg[i] = fPdgT[i];
73     }
74     return fNt;
75 }
76
77
78
79
80
81
82