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 // For more information see the implementation file
19 #ifndef ALIHFEPIDOBJECT_H
20 #define ALIHFEPIDOBJECT_H
27 class AliHFEpidObject{
35 fAnalysisType(kESDanalysis),
38 fIsPbPb(kFALSE) // Default: pp
41 AliHFEpidObject(const AliHFEpidObject &ref):
42 fkRecTrack(ref.fkRecTrack),
43 fAnalysisType(ref.fAnalysisType),
44 fAbInitioPID(ref.fAbInitioPID),
45 fCentrality(ref.fCentrality),
49 AliHFEpidObject &operator=(const AliHFEpidObject &ref);
52 void SetRecTrack(const AliVTrack * recTrack) {fkRecTrack = recTrack; }
53 void SetMCTrack(const AliVParticle * mcTrack);
54 void SetAnalysisType(AnalysisType_t type) { fAnalysisType = type; }
55 void SetAbInitioPID(Int_t abInitioPID) { fAbInitioPID = abInitioPID; }
56 void SetCentrality(Int_t centrality) { fCentrality = centrality; }
57 void SetPbPb() { fIsPbPb = kTRUE; }
58 void SetPP() { fIsPbPb = kFALSE; }
60 const AliVTrack *GetRecTrack() const { return fkRecTrack; }
61 Int_t GetAbInitioPID() const { return fAbInitioPID; }
62 Int_t GetCentrality() const { return fCentrality; }
63 Bool_t IsAODanalysis() const { return fAnalysisType == static_cast<UChar_t>(kAODanalysis); }
64 Bool_t IsESDanalysis() const { return fAnalysisType == static_cast<UChar_t>(kESDanalysis); }
65 Bool_t IsPbPb() const { return fIsPbPb; }
68 const AliVTrack *fkRecTrack; // Reconstructed track
69 UChar_t fAnalysisType; // Analysis Mode (ESD or AOD)
70 Int_t fAbInitioPID; // AbInitio PID
71 Int_t fCentrality; // Centrality Information
72 Bool_t fIsPbPb; // Collision type