]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWGHF/hfe/AliHFEpidObject.cxx
Merge branch 'master' of https://git.cern.ch/reps/AliRoot
[u/mrichter/AliRoot.git] / PWGHF / hfe / AliHFEpidObject.cxx
CommitLineData
8c1c76e9 1/**************************************************************************
2* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3* *
4* Author: The ALICE Off-line Project. *
5* Contributors are mentioned in the code where appropriate. *
6* *
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**************************************************************************/
15//
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
19//
20// Authors:
21// Markus Fasel <M.Fasel@gsi.de>
22//
23#include "AliHFEpidObject.h"
24#include "AliHFEtools.h"
25
26//___________________________________________________________________
27AliHFEpidObject &AliHFEpidObject::operator=(const AliHFEpidObject &ref){
28 //
29 // Assignment operator
30 //
31 if(&ref != this){
32 fkRecTrack = ref.fkRecTrack;
33 fAnalysisType = ref.fAnalysisType;
34 fAbInitioPID = ref.fAbInitioPID;
35 fCentrality = ref.fCentrality;
959ea9d8 36 fMultiplicity = ref.fMultiplicity;
38be5083 37 fCorrTPCnSigma = ref.fCorrTPCnSigma;
38 fIsPbPb = ref.fIsPbPb;
39 fIspPb = ref.fIspPb;
40 fHasCorrTPCnSigma = ref.fHasCorrTPCnSigma;
8c1c76e9 41 }
42 return *this;
43}
44
45//___________________________________________________________________
46void AliHFEpidObject::SetMCTrack(const AliVParticle *mctrack){
47 //
48 // Set the aprioriPID information coming from the MC truth
49 //
50 if(mctrack) fAbInitioPID = AliHFEtools::PDG2AliPID(AliHFEtools::GetPdg(mctrack));
51}
52