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