]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EMCAL/AliEMCALJet.cxx
new classes for track segments
[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 Revision 1.2.6.2  2002/07/24 10:06:16  alibrary
20 Updating VirtualMC
21
22 Revision 1.3  2002/05/22 13:48:43  morsch
23 Pdg code added to track list.
24
25 */
26
27 //*-- Author: Andreas Morsch (CERN)
28
29 #include "AliEMCALJet.h"
30 #include "Ecommon.h"
31
32 ClassImp(AliEMCALJet)
33
34 //____________________________________________________________________________
35 AliEMCALJet::AliEMCALJet()
36 {
37 // Default constructor
38 }
39
40 AliEMCALJet::AliEMCALJet(Float_t energy, Float_t phi, Float_t eta)
41 {
42 // Constructor
43     fEnergy = energy;
44     fPhi    = phi;
45     fEta    = eta;
46 }
47
48 //____________________________________________________________________________
49 AliEMCALJet::~AliEMCALJet()
50 {
51 // Destructor
52 }
53
54
55 void AliEMCALJet::SetTrackList(Int_t n, Float_t* pt, Float_t* eta, Float_t* phi, Int_t* pdg)
56 {
57 //
58 // 
59     fNt = n;
60     for (Int_t i = 0; i < n; i++) {
61         fPtT [i]  = pt [i];
62         fEtaT[i]  = eta[i];
63         fPhiT[i]  = phi[i];
64         fPdgT[i]  = pdg[i];
65     }
66 }
67
68
69
70 Int_t AliEMCALJet::TrackList(Float_t* pt, Float_t* eta, Float_t* phi, Int_t* pdg)
71 {
72 //
73 // 
74     for (Int_t i = 0; i < fNt; i++) {
75         pt [i] = fPtT [i];
76         eta[i] = fEtaT[i];
77         phi[i] = fPhiT[i];
78         pdg[i] = fPdgT[i];
79     }
80     return fNt;
81 }
82
83
84
85
86
87
88