]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EMCAL/AliEMCALParton.cxx
Fixed violations
[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 //*-- Author: Renan Cabrera (Creighton U.)
19
20 #include "AliEMCALParton.h"
21 #include "Ecommon.h"
22 #include <Riostream.h>
23 ClassImp(AliEMCALParton)   
24     
25 //____________________________________________________________________________
26 AliEMCALParton::AliEMCALParton()
27 {
28   // Default constructor
29 //  fTrackEnergy = 0;
30 //  fTrackEta    = 0;
31 //  fTrackPhi    = 0;
32 //  fTrackPDG    = 0;
33   fNTracks     = 0;
34 }
35
36 AliEMCALParton::AliEMCALParton(Float_t energy, Float_t phi, Float_t eta)
37 {
38   // Constructor
39   fEnergy = energy;
40   fPhi    = phi;
41   fEta    = eta;
42 //  fTrackEnergy = 0;
43 //  fTrackEta    = 0;
44 //  fTrackPhi    = 0;
45 //  fTrackPDG    = 0;
46   fNTracks     = 0;
47 }
48
49 void AliEMCALParton::SetTrackList(Int_t NTracks, Float_t* Energy,  Float_t* Eta, Float_t* Phi, Int_t* PDG)
50 {
51
52   fNTracks     = NTracks;
53   for (Int_t i=0;i<NTracks;i++)
54   {
55     fTrackEnergy[i] = Energy[i] ;
56     fTrackEta[i]    = Eta[i];
57     fTrackPhi[i]    = Phi[i];
58     fTrackPDG[i]    = PDG[i];
59   }
60 }
61
62 void AliEMCALParton::GetTrackList(Float_t* Energy,  Float_t* Eta, Float_t* Phi, Int_t* PDG)
63 {
64   for (Int_t i=0;i<fNTracks;i++)
65   {
66     Energy[i] = fTrackEnergy[i] ;
67     Eta[i]    = fTrackEta[i];
68     Phi[i]    = fTrackPhi[i];
69     PDG[i]    = fTrackPDG[i];
70   } 
71 }
72
73
74 //____________________________________________________________________________
75
76 AliEMCALParton::~AliEMCALParton()
77 {
78   // Destructor
79   
80 }