ATLAS Offline Software
Loading...
Searching...
No Matches
xAOD::BTaggingUtilities Namespace Reference

Typedefs

typedef SG::AuxElement::Accessor< ElementLink< BTaggingContainer > > Accessor_t
 Convenience type for the accessor.
typedef SG::AuxElement::Decorator< ElementLink< BTaggingContainer > > Decorator_t
 Convenience type for the decorator.

Functions

const BTagginggetBTagging (const SG::AuxElement &part)
 Access the default xAOD::BTagging object associated to an object.
const BTagginggetBTagging (const SG::AuxElement &part, const std::string &linkName)
 Access a non-standard xAOD::BTagging object associated to an object.
const ElementLink< xAOD::BTaggingContainer > & getBTaggingLink (const SG::AuxElement &part)
 Access the default xAOD::BTagging link for an object.
const ElementLink< xAOD::BTaggingContainer > & getBTaggingLink (const SG::AuxElement &part, const std::string &linkName)
 Access a non-standard xAOD::BTagging link for an object.
void setBTaggingLink (const SG::AuxElement &part, const ElementLink< BTaggingContainer > &link)
 Set the default xAOD::BTagging link for an object.
void setBTaggingLink (const SG::AuxElement &part, const ElementLink< BTaggingContainer > &link, const std::string &linkName)
 Set a non-standard xAOD::BTagging link for an object.

Variables

static const Accessor_t DEFAULT_ACC (DEFAULT_BTAG_LINK_NAME)
 Accessor for the default xAOD::BTagging link.
static const Decorator_t DEFAULT_DEC (DEFAULT_BTAG_LINK_NAME)
 Decorator for the default xAOD::BTagging link.
static const std::string DEFAULT_BTAG_LINK_NAME = "btaggingLink"
 The default key for the xAOD::BTagging link.

Typedef Documentation

◆ Accessor_t

Convenience type for the accessor.

Definition at line 12 of file BTaggingUtilities.cxx.

◆ Decorator_t

Convenience type for the decorator.

Definition at line 18 of file BTaggingUtilities.cxx.

Function Documentation

◆ getBTagging() [1/2]

const BTagging * xAOD::BTaggingUtilities::getBTagging ( const SG::AuxElement & part)

Access the default xAOD::BTagging object associated to an object.

Definition at line 37 of file BTaggingUtilities.cxx.

37 {
38
39 return getBTagging( part, DEFAULT_ACC );
40 }
const BTagging * getBTagging(const SG::AuxElement &part)
Access the default xAOD::BTagging object associated to an object.
static const Accessor_t DEFAULT_ACC(DEFAULT_BTAG_LINK_NAME)
Accessor for the default xAOD::BTagging link.

◆ getBTagging() [2/2]

const BTagging * xAOD::BTaggingUtilities::getBTagging ( const SG::AuxElement & part,
const std::string & linkName )

Access a non-standard xAOD::BTagging object associated to an object.

Definition at line 42 of file BTaggingUtilities.cxx.

43 {
44
45 const Accessor_t btagAcc( linkName );
46 return getBTagging( part, btagAcc );
47 }
SG::AuxElement::Accessor< ElementLink< BTaggingContainer > > Accessor_t
Convenience type for the accessor.

◆ getBTaggingLink() [1/2]

const ElementLink< BTaggingContainer > & xAOD::BTaggingUtilities::getBTaggingLink ( const SG::AuxElement & part)

Access the default xAOD::BTagging link for an object.

Definition at line 50 of file BTaggingUtilities.cxx.

50 {
51
52 // cppcheck-suppress returnTempReference; false positive
53 return DEFAULT_ACC( part );
54 }

◆ getBTaggingLink() [2/2]

const ElementLink< BTaggingContainer > & xAOD::BTaggingUtilities::getBTaggingLink ( const SG::AuxElement & part,
const std::string & linkName )

Access a non-standard xAOD::BTagging link for an object.

Definition at line 57 of file BTaggingUtilities.cxx.

58 {
59
60 const Accessor_t btagAcc( linkName );
61 return btagAcc( part );
62 }

◆ setBTaggingLink() [1/2]

void xAOD::BTaggingUtilities::setBTaggingLink ( const SG::AuxElement & part,
const ElementLink< xAOD::BTaggingContainer > & el )

Set the default xAOD::BTagging link for an object.

Definition at line 64 of file BTaggingUtilities.cxx.

65 {
66
67 DEFAULT_DEC( part ) = el;
68 }
static const Decorator_t DEFAULT_DEC(DEFAULT_BTAG_LINK_NAME)
Decorator for the default xAOD::BTagging link.

◆ setBTaggingLink() [2/2]

void xAOD::BTaggingUtilities::setBTaggingLink ( const SG::AuxElement & part,
const ElementLink< xAOD::BTaggingContainer > & el,
const std::string & linkName )

Set a non-standard xAOD::BTagging link for an object.

Definition at line 70 of file BTaggingUtilities.cxx.

72 {
73
74 const Decorator_t btagDec( linkName );
75 btagDec( part ) = el;
76 }
SG::AuxElement::Decorator< ElementLink< BTaggingContainer > > Decorator_t
Convenience type for the decorator.

Variable Documentation

◆ DEFAULT_ACC

const Accessor_t xAOD::BTaggingUtilities::DEFAULT_ACC(DEFAULT_BTAG_LINK_NAME) ( DEFAULT_BTAG_LINK_NAME )
static

Accessor for the default xAOD::BTagging link.

◆ DEFAULT_BTAG_LINK_NAME

const std::string xAOD::BTaggingUtilities::DEFAULT_BTAG_LINK_NAME = "btaggingLink"
static

The default key for the xAOD::BTagging link.

Definition at line 20 of file BTaggingUtilities.h.

◆ DEFAULT_DEC

const Decorator_t xAOD::BTaggingUtilities::DEFAULT_DEC(DEFAULT_BTAG_LINK_NAME) ( DEFAULT_BTAG_LINK_NAME )
static

Decorator for the default xAOD::BTagging link.