]> git.uio.no Git - u/mrichter/AliRoot.git/blame - EMCAL/AliEMCALParton.cxx
Boost method added.
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALParton.cxx
CommitLineData
73e3f083 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/* $Id: */
17/*
18 $Log$
5d3836c4 19 Revision 1.4 2003/03/17 14:26:06 morsch
20 Updates by M. Horner and J. Klay
21
561356e3 22 Revision 1.3 2003/02/05 17:24:25 morsch
23 Modifiactions by M. Horner.
24
d8ac6858 25 Revision 1.2 2002/10/14 14:55:35 hristov
26 Merging the VirtualMC branch to the main development branch (HEAD)
27
b9d0a01d 28 Revision 1.1.2.1 2002/08/28 15:06:50 alibrary
29 Updating to v3-09-01
30
31 Revision 1.1 2002/08/21 10:29:29 schutz
32 New classes (by Renan)
33
73e3f083 34*/
35
36//*-- Author: Renan Cabrera (Creighton U.)
37
38#include "AliEMCALParton.h"
39#include "Ecommon.h"
5d3836c4 40#include <Riostream.h>
73e3f083 41ClassImp(AliEMCALParton)
42
43//____________________________________________________________________________
44AliEMCALParton::AliEMCALParton()
45{
46 // Default constructor
561356e3 47// fTrackEnergy = 0;
48// fTrackEta = 0;
49// fTrackPhi = 0;
50// fTrackPDG = 0;
d8ac6858 51 fNTracks = 0;
73e3f083 52}
53
54AliEMCALParton::AliEMCALParton(Float_t energy, Float_t phi, Float_t eta)
55{
56 // Constructor
57 fEnergy = energy;
58 fPhi = phi;
59 fEta = eta;
561356e3 60// fTrackEnergy = 0;
61// fTrackEta = 0;
62// fTrackPhi = 0;
63// fTrackPDG = 0;
d8ac6858 64 fNTracks = 0;
65}
66
67void AliEMCALParton::SetTrackList(Int_t NTracks, Float_t* Energy, Float_t* Eta, Float_t* Phi, Int_t* PDG)
68{
69
d8ac6858 70 fNTracks = NTracks;
d8ac6858 71 for (Int_t i=0;i<NTracks;i++)
72 {
73 fTrackEnergy[i] = Energy[i] ;
74 fTrackEta[i] = Eta[i];
75 fTrackPhi[i] = Phi[i];
76 fTrackPDG[i] = PDG[i];
561356e3 77 }
d8ac6858 78}
79
80void AliEMCALParton::GetTrackList(Float_t* Energy, Float_t* Eta, Float_t* Phi, Int_t* PDG)
81{
82 for (Int_t i=0;i<fNTracks;i++)
83 {
84 Energy[i] = fTrackEnergy[i] ;
85 Eta[i] = fTrackEta[i];
86 Phi[i] = fTrackPhi[i];
87 PDG[i] = fTrackPDG[i];
88 }
73e3f083 89}
90
d8ac6858 91
73e3f083 92//____________________________________________________________________________
93
94AliEMCALParton::~AliEMCALParton()
95{
96 // Destructor
d8ac6858 97
73e3f083 98}