]> git.uio.no Git - u/mrichter/AliRoot.git/blame - EMCAL/AliEMCALJet.cxx
Adaption to new fluka common blocks (E. Futo)
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALJet.cxx
CommitLineData
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$
b9d0a01d 19Revision 1.2.6.2 2002/07/24 10:06:16 alibrary
20Updating VirtualMC
21
22Revision 1.3 2002/05/22 13:48:43 morsch
23Pdg code added to track list.
24
975127ed 25*/
471f69dc 26
27//*-- Author: Andreas Morsch (CERN)
28
29#include "AliEMCALJet.h"
30#include "Ecommon.h"
31
32ClassImp(AliEMCALJet)
33
34//____________________________________________________________________________
35AliEMCALJet::AliEMCALJet()
36{
37// Default constructor
38}
39
40AliEMCALJet::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//____________________________________________________________________________
49AliEMCALJet::~AliEMCALJet()
50{
51// Destructor
52}
53
54
975127ed 55void AliEMCALJet::SetTrackList(Int_t n, Float_t* pt, Float_t* eta, Float_t* phi, Int_t* pdg)
a8f2e59f 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];
975127ed 64 fPdgT[i] = pdg[i];
a8f2e59f 65 }
66}
67
471f69dc 68
69
975127ed 70Int_t AliEMCALJet::TrackList(Float_t* pt, Float_t* eta, Float_t* phi, Int_t* pdg)
a8f2e59f 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];
975127ed 78 pdg[i] = fPdgT[i];
a8f2e59f 79 }
80 return fNt;
81}
471f69dc 82
83
84
85
86
87
88