ATLAS Offline Software
Reconstruction
Jet
JetEDM
Root
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
7
#include "
JetEDM/BaseIndexedConstituentUserInfo.h
"
8
#include "
JetEDM/LabelIndex.h
"
9
10
//**********************************************************************
11
12
jet::BaseIndexedConstituentUserInfo::BaseIndexedConstituentUserInfo
()
13
: m_idx(0), m_pli(nullptr) { }
14
15
//**********************************************************************
16
17
jet::BaseIndexedConstituentUserInfo::
18
BaseIndexedConstituentUserInfo
(
Index
idx
,
const
jet::LabelIndex
* pli)
19
: m_idx(
idx
), m_pli(pli) { }
20
21
//**********************************************************************
22
23
const
SG::AuxElement
*
jet::BaseIndexedConstituentUserInfo::element
()
const
{
24
return
particle
();
25
}
26
27
//**********************************************************************
28
29
jet::BaseIndexedConstituentUserInfo::Label
30
jet::BaseIndexedConstituentUserInfo::label
()
const
{
31
if
( m_pli ==
nullptr
)
return
""
;
32
return
m_pli->label(abs(m_idx));
33
}
34
35
//**********************************************************************
36
37
jet::BaseIndexedConstituentUserInfo::Index
38
jet::BaseIndexedConstituentUserInfo::index
()
const
{
39
return
abs(m_idx);
40
}
41
42
//**********************************************************************
43
44
const
jet::LabelIndex
*
jet::BaseIndexedConstituentUserInfo::labelMap
()
const
{
45
return
m_pli;
46
}
47
48
//**********************************************************************
49
50
bool
jet::BaseIndexedConstituentUserInfo::isGhost
()
const
{
51
// valid m_idx are guaranteed to be != 0 when constructed by LabelIndex
52
return
m_idx < 0;
53
}
54
55
//**********************************************************************
56
57
xAOD::JetConstitScale
jet::BaseIndexedConstituentUserInfo::constitScale
()
const
{
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
Generated on Sun Dec 22 2024 21:07:22 for ATLAS Offline Software by
1.8.18