1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
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 **************************************************************************/
19 //*-- Author: Andreas Morsch (CERN)
21 #include "AliEMCALJet.h"
26 //____________________________________________________________________________
27 AliEMCALJet::AliEMCALJet()
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),
35 // Default constructor
38 AliEMCALJet::AliEMCALJet(Float_t energy, Float_t phi, Float_t eta)
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),
49 AliEMCALJet::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)
63 //____________________________________________________________________________
64 AliEMCALJet::~AliEMCALJet()
70 void AliEMCALJet::SetTrackList(Int_t n, Float_t* pt, Float_t* eta, Float_t* phi, Int_t* pdg)
75 for (Int_t i = 0; i < n; i++) {
85 Int_t AliEMCALJet::TrackList(Float_t* pt, Float_t* eta, Float_t* phi, Int_t* pdg) const
89 for (Int_t i = 0; i < fNt; i++) {