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 **************************************************************************/
16 // Object used in the electron identification
17 // Combines reconstructed tracks with additional information (like apriori PID, centrality)
18 // which are missing in the reconstructed track itself
21 // Markus Fasel <M.Fasel@gsi.de>
23 #include "AliHFEpidObject.h"
24 #include "AliHFEtools.h"
26 //___________________________________________________________________
27 AliHFEpidObject &AliHFEpidObject::operator=(const AliHFEpidObject &ref){
29 // Assignment operator
32 fkRecTrack = ref.fkRecTrack;
33 fAnalysisType = ref.fAnalysisType;
34 fAbInitioPID = ref.fAbInitioPID;
35 fCentrality = ref.fCentrality;
40 //___________________________________________________________________
41 void AliHFEpidObject::SetMCTrack(const AliVParticle *mctrack){
43 // Set the aprioriPID information coming from the MC truth
45 if(mctrack) fAbInitioPID = AliHFEtools::PDG2AliPID(AliHFEtools::GetPdg(mctrack));