]> git.uio.no Git - u/mrichter/AliRoot.git/blame - EMCAL/jetfinder/AliEMCALJet.cxx
updates for Effective C++ compiler flags
[u/mrichter/AliRoot.git] / EMCAL / jetfinder / AliEMCALJet.cxx
CommitLineData
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
17/* $Id$ */
18
19//*-- Author: Andreas Morsch (CERN)
20
21#include "AliEMCALJet.h"
22#include "Ecommon.h"
23
24ClassImp(AliEMCALJet)
25
26//____________________________________________________________________________
27AliEMCALJet::AliEMCALJet()
18a21c7c 28 : fEnergy(0.), fEMCALEnergy(0.),
29 fEMCALEnergyBGSub(0), fTrackEnergy(0.),
30 fTrackEnergyPtCut(0.), fHCEnergy(0.),
31 fIsWeightedEnergy(kFALSE), fEta(0.),
32 fPhi(0.), fNt(0), fPtT(0), fEtaT(0),
33 fPhiT(0), fPdgT(0)
45a58699 34{
35// Default constructor
36}
37
38AliEMCALJet::AliEMCALJet(Float_t energy, Float_t phi, Float_t eta)
18a21c7c 39 : fEnergy(energy), fEMCALEnergy(0.),
40 fEMCALEnergyBGSub(0), fTrackEnergy(0.),
41 fTrackEnergyPtCut(0.), fHCEnergy(0.),
42 fIsWeightedEnergy(kFALSE), fEta(eta),
43 fPhi(phi), fNt(0), fPtT(0), fEtaT(0),
44 fPhiT(0), fPdgT(0)
45a58699 45{
46// Constructor
18a21c7c 47}
48
49AliEMCALJet::AliEMCALJet(const AliEMCALJet& jet)
50 : TObject(jet), fEnergy(jet.fEnergy), fEMCALEnergy(jet.fEMCALEnergy),
51 fEMCALEnergyBGSub(jet.fEMCALEnergyBGSub),
52 fTrackEnergy(jet.fTrackEnergy),
53 fTrackEnergyPtCut(jet.fTrackEnergyPtCut),
54 fHCEnergy(jet.fHCEnergy),
55 fIsWeightedEnergy(jet.fIsWeightedEnergy),
56 fEta(jet.fEta),fPhi(jet.fPhi), fNt(jet.fNt),
57 fPtT(jet.fPtT), fEtaT(jet.fEtaT),
58 fPhiT(jet.fPhiT), fPdgT(jet.fPdgT)
59{
60// Copy Constructor
45a58699 61}
62
63//____________________________________________________________________________
64AliEMCALJet::~AliEMCALJet()
65{
66// Destructor
67}
68
69
70void AliEMCALJet::SetTrackList(Int_t n, Float_t* pt, Float_t* eta, Float_t* phi, Int_t* pdg)
71{
72//
73//
74 fNt = n;
75 for (Int_t i = 0; i < n; i++) {
76 fPtT [i] = pt [i];
77 fEtaT[i] = eta[i];
78 fPhiT[i] = phi[i];
79 fPdgT[i] = pdg[i];
80 }
81}
82
83
84
85Int_t AliEMCALJet::TrackList(Float_t* pt, Float_t* eta, Float_t* phi, Int_t* pdg) const
86{
87//
88//
89 for (Int_t i = 0; i < fNt; i++) {
90 pt [i] = fPtT [i];
91 eta[i] = fEtaT[i];
92 phi[i] = fPhiT[i];
93 pdg[i] = fPdgT[i];
94 }
95 return fNt;
96}
97
98
99
100
101
102
103