ATLAS Offline Software
BaseIndexedConstituentUserInfo.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 // BaseIndexedConstituentUserInfo.cxx
6 
8 #include "JetEDM/LabelIndex.h"
9 
10 //**********************************************************************
11 
13 : m_idx(0), m_pli(nullptr) { }
14 
15 //**********************************************************************
16 
19 : m_idx(idx), m_pli(pli) { }
20 
21 //**********************************************************************
22 
24  return particle();
25 }
26 
27 //**********************************************************************
28 
31  if ( m_pli == nullptr ) return "";
32  return m_pli->label(abs(m_idx));
33 }
34 
35 //**********************************************************************
36 
39  return abs(m_idx);
40 }
41 
42 //**********************************************************************
43 
45  return m_pli;
46 }
47 
48 //**********************************************************************
49 
51  // valid m_idx are guaranteed to be != 0 when constructed by LabelIndex
52  return m_idx < 0;
53 }
54 
55 //**********************************************************************
56 
58  if ( m_pli == nullptr ) return xAOD::CalibratedJetConstituent;
59  return m_pli->constitScale( abs(m_idx) );
60 }
61 
62 //**********************************************************************
jet::LabelIndex
Definition: LabelIndex.h:22
jet::BaseIndexedConstituentUserInfo::label
Label label() const
Return the label.
Definition: BaseIndexedConstituentUserInfo.cxx:30
Trk::ParticleSwitcher::particle
constexpr ParticleHypothesis particle[PARTICLEHYPOTHESES]
the array of masses
Definition: ParticleHypothesis.h:76
SG::AuxElement
Base class for elements of a container that can have aux data.
Definition: AuxElement.h:483
jet::BaseIndexedConstituentUserInfo::BaseIndexedConstituentUserInfo
BaseIndexedConstituentUserInfo()
Definition: BaseIndexedConstituentUserInfo.cxx:12
jet::BaseIndexedConstituentUserInfo::constitScale
xAOD::JetConstitScale constitScale() const
Return the constituent scale used to build the PseudoJet.
Definition: BaseIndexedConstituentUserInfo.cxx:57
jet::IConstituentUserInfo::Label
std::string Label
Definition: IConstituentUserInfo.h:31
jet::BaseIndexedConstituentUserInfo::index
Index index() const
Return the index.
Definition: BaseIndexedConstituentUserInfo.cxx:38
jet::BaseIndexedConstituentUserInfo::element
const SG::AuxElement * element() const
Return the particle pointer.
Definition: BaseIndexedConstituentUserInfo.cxx:23
jet::IConstituentUserInfo::Index
int Index
Definition: IConstituentUserInfo.h:30
xAOD::CalibratedJetConstituent
@ CalibratedJetConstituent
Definition: JetTypes.h:22
xAOD::JetConstitScale
JetConstitScale
Definition: JetTypes.h:20
BaseIndexedConstituentUserInfo.h
LabelIndex.h
jet::BaseIndexedConstituentUserInfo::isGhost
bool isGhost() const
Returns true if this constituent is a ghost.
Definition: BaseIndexedConstituentUserInfo.cxx:50
jet::BaseIndexedConstituentUserInfo::labelMap
const LabelIndex * labelMap() const
Return the index-to-label map.
Definition: BaseIndexedConstituentUserInfo.cxx:44
LArNewCalib_DelayDump_OFC_Cali.idx
idx
Definition: LArNewCalib_DelayDump_OFC_Cali.py:69