/************************************************************************** * Copyright(c) 1998-2007, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * * Contributors are mentioned in the code where appropriate. * * * * Permission to use, copy, modify and distribute this software and its * * documentation strictly for non-commercial purposes is hereby granted * * without fee, provided that the above copyright notice appears in all * * copies and that both the copyright notice and this permission notice * * appear in the supporting documentation. The authors make no claims * * about the suitability of this software for any purpose. It is * * provided "as is" without express or implied warranty. * **************************************************************************/ /* $Id$ */ //------------------------------------------------------------------------- // AOD Pid class to store additional pid information // Author: Annalisa Mastroserio //------------------------------------------------------------------------- #include "AliAODPid.h" #include "AliESDtrack.h" #include "AliLog.h" #include "AliPID.h" #include "AliTPCdEdxInfo.h" ClassImp(AliAODPid) //______________________________________________________________________________ AliAODPid::AliAODPid(): fITSsignal(0), fTPCsignal(0), fTPCsignalN(0), fTPCmomentum(0), fTRDnSlices(0), fTRDntls(0), fTRDslices(0x0), fTRDsignal(0), fTRDChi2(0x0), fTOFesdsignal(0), fTPCdEdxInfo(0) { // default constructor for(Int_t i=0; i 0) fTRDslices = new Double32_t[fTRDnSlices]; } if (fTRDslices && pid.fTRDslices) memcpy(fTRDslices, pid.fTRDslices, fTRDnSlices*sizeof(Double32_t)); fTRDntls = pid.fTRDntls; for(Int_t i = 0; i < 6; i++){ fTRDmomentum[i] = pid.fTRDmomentum[i]; fTRDncls[i] = pid.fTRDncls[i]; } fTRDChi2 = pid.fTRDChi2; fTOFesdsignal=pid.fTOFesdsignal; for (Int_t i = 0; i < 5; i++) fTOFpidResolution[i]=pid.fTOFpidResolution[i]; for (Int_t i = 0; i < 5; i++) fIntTime[i]=pid.fIntTime[i]; SetTPCdEdxInfo(pid.fTPCdEdxInfo); } return *this; } //_______________________________________________________________________________ void AliAODPid::GetIntegratedTimes(Double_t timeint[AliPID::kSPECIES]) const { // Returns the array with integrated times for each particle hypothesis for(Int_t i=0; i