]>
Commit | Line | Data |
---|---|---|
45a58699 | 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() | |
18a21c7c | 27 | : fEnergy(0.), fEta(0.), fPhi(0.), |
28 | fNTracks(0), fPartonCode(0) | |
45a58699 | 29 | { |
30 | // Default constructor | |
45a58699 | 31 | } |
32 | ||
33 | AliEMCALParton::AliEMCALParton(Float_t energy, Float_t phi, Float_t eta) | |
18a21c7c | 34 | : fEnergy(energy), fEta(eta), fPhi(phi), |
35 | fNTracks(0), fPartonCode(0) | |
45a58699 | 36 | { |
37 | // Constructor | |
45a58699 | 38 | } |
39 | ||
40 | void AliEMCALParton::SetTrackList(Int_t NTracks, Float_t* Energy, Float_t* Eta, Float_t* Phi, Int_t* PDG) | |
41 | { | |
42 | // Set the stored tracklist | |
43 | fNTracks = NTracks; | |
44 | for (Int_t i=0;i<NTracks;i++) | |
45 | { | |
46 | fTrackEnergy[i] = Energy[i] ; | |
47 | fTrackEta[i] = Eta[i]; | |
48 | fTrackPhi[i] = Phi[i]; | |
49 | fTrackPDG[i] = PDG[i]; | |
50 | } | |
51 | } | |
52 | ||
53 | void AliEMCALParton::GetTrackList(Float_t* Energy, Float_t* Eta, Float_t* Phi, Int_t* PDG) const | |
54 | { | |
55 | // retrieves the stored tracklist | |
56 | for (Int_t i=0;i<fNTracks;i++) | |
57 | { | |
58 | Energy[i] = fTrackEnergy[i] ; | |
59 | Eta[i] = fTrackEta[i]; | |
60 | Phi[i] = fTrackPhi[i]; | |
61 | PDG[i] = fTrackPDG[i]; | |
62 | } | |
63 | } | |
64 | ||
65 | ||
66 | //____________________________________________________________________________ | |
67 | ||
68 | AliEMCALParton::~AliEMCALParton() | |
69 | { | |
70 | // Destructor | |
71 | ||
72 | } |