/************************************************************************** * 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" ClassImp(AliAODPid) //______________________________________________________________________________ AliAODPid::AliAODPid(): fITSsignal(0), fTPCsignal(0), fTRDnSlices(0), fTRDslices(0x0), fTOFesdsignal(0), fHMPIDsignal(0) { // default constructor for(Int_t i=0; iGetITSsignal(); fTPCsignal=track->GetTPCsignal(); fTRDnSlices=track->GetNumberOfTRDslices()*kTRDnPlanes; track->GetIntegratedTimes(fIntTime); fTOFesdsignal=track->GetTOFsignal()-timezero; //TO BE FIXED fHMPIDsignal=track->GetHMPIDsignal(); fTRDslices=new Double32_t[fTRDnSlices]; for(Int_t iSl =0; iSl < track->GetNumberOfTRDslices(); iSl++) { for(Int_t iPl =0; iPlGetNumberOfTRDslices()+iSl] = track->GetTRDslice(iPl,iSl); } } //________________________________________________________________________________ void AliAODPid::GetIntegratedTimes(Double_t timeint[5]) { // Returns the array with integrated times for each particle hypothesis for(Int_t i=0; i