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 **************************************************************************/
17 ///////////////////////////////////////////////////////////////////////////////
19 // PID tender: Do combined PID //
22 ///////////////////////////////////////////////////////////////////////////////
25 #include <AliESDpid.h>
26 #include <AliESDEvent.h>
27 #include <AliESDInputHandler.h>
28 #include "AliTender.h"
30 #include "AliPIDTenderSupply.h"
32 AliPIDTenderSupply::AliPIDTenderSupply() :
40 //_____________________________________________________
41 AliPIDTenderSupply::AliPIDTenderSupply(const char *name, const AliTender *tender) :
42 AliTenderSupply(name,tender)
49 //_____________________________________________________
50 void AliPIDTenderSupply::ProcessEvent()
53 // Combine PID information
56 AliESDEvent *event=fTender->GetEvent();
59 AliESDpid *pid=fTender->GetESDhandler()->GetESDpid();
62 // recalculate combined PID probabilities
64 Int_t ntracks=event->GetNumberOfTracks();
65 for(Int_t itrack = 0; itrack < ntracks; itrack++)
66 pid->CombinePID(event->GetTrack(itrack));