]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EMCAL/AliEMCALParton.cxx
Class version incremented
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALParton.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 /* $Id:  */
17 /*
18   $Log$
19   Revision 1.4  2003/03/17 14:26:06  morsch
20   Updates by M. Horner and J. Klay
21
22   Revision 1.3  2003/02/05 17:24:25  morsch
23   Modifiactions by M. Horner.
24
25   Revision 1.2  2002/10/14 14:55:35  hristov
26   Merging the VirtualMC branch to the main development branch (HEAD)
27
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
34 */
35
36 //*-- Author: Renan Cabrera (Creighton U.)
37
38 #include "AliEMCALParton.h"
39 #include "Ecommon.h"
40 #include <Riostream.h>
41 ClassImp(AliEMCALParton)   
42     
43 //____________________________________________________________________________
44 AliEMCALParton::AliEMCALParton()
45 {
46   // Default constructor
47 //  fTrackEnergy = 0;
48 //  fTrackEta    = 0;
49 //  fTrackPhi    = 0;
50 //  fTrackPDG    = 0;
51   fNTracks     = 0;
52 }
53
54 AliEMCALParton::AliEMCALParton(Float_t energy, Float_t phi, Float_t eta)
55 {
56   // Constructor
57   fEnergy = energy;
58   fPhi    = phi;
59   fEta    = eta;
60 //  fTrackEnergy = 0;
61 //  fTrackEta    = 0;
62 //  fTrackPhi    = 0;
63 //  fTrackPDG    = 0;
64   fNTracks     = 0;
65 }
66
67 void AliEMCALParton::SetTrackList(Int_t NTracks, Float_t* Energy,  Float_t* Eta, Float_t* Phi, Int_t* PDG)
68 {
69
70   fNTracks     = NTracks;
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];
77   }
78 }
79
80 void 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   } 
89 }
90
91
92 //____________________________________________________________________________
93
94 AliEMCALParton::~AliEMCALParton()
95 {
96   // Destructor
97   
98 }