ATLAS Offline Software
Loading...
Searching...
No Matches
TrigBmuxState Class Reference

State class for TrigBmuxComboHypo algorithm. More...

#include <TrigBmuxComboHypo.h>

Inheritance diagram for TrigBmuxState:
Collaboration diagram for TrigBmuxState:

Classes

struct  Muon

Public Member Functions

 TrigBmuxState ()=delete
 TrigBmuxState (const EventContext &context, const TrigCompositeUtils::DecisionContainer &previousDecisions, TrigCompositeUtils::DecisionContainer &decisions, xAOD::TrigBphysContainer *trigBphysCollection=nullptr, const InDet::BeamSpotData *beamSpotData=nullptr)
virtual ~TrigBmuxState ()=default
xAOD::TrigBphysaddTriggerObject (size_t muonIndex)
std::vector< xAOD::TrigBphys * > addTriggerObjects (size_t n, size_t muonIndex)
const EventContext & context () const
const TrigCompositeUtils::DecisionContainerpreviousDecisions () const
TrigCompositeUtils::DecisionContainerdecisions ()
xAOD::TrigBphysContainertrigBphysCollection ()
void setTrigBphysCollection (xAOD::TrigBphysContainer *trigBphysCollection)
Amg::Vector3D beamSpotPosition () const
const xAOD::VertexbeamSpot () const

Public Attributes

std::vector< Muonmuons
std::vector< size_t > trigBphysMuonIndices

Private Attributes

const EventContext * m_context
const TrigCompositeUtils::DecisionContainerm_previousDecisions
TrigCompositeUtils::DecisionContainerm_decisions
xAOD::TrigBphysContainerm_trigBphysCollection
const InDet::BeamSpotDatam_beamSpotData
xAOD::Vertex m_beamSpotVertex

Detailed Description

State class for TrigBmuxComboHypo algorithm.

Definition at line 45 of file TrigBmuxComboHypo.h.

Constructor & Destructor Documentation

◆ TrigBmuxState() [1/2]

TrigBmuxState::TrigBmuxState ( )
delete

◆ TrigBmuxState() [2/2]

TrigBmuxState::TrigBmuxState ( const EventContext & context,
const TrigCompositeUtils::DecisionContainer & previousDecisions,
TrigCompositeUtils::DecisionContainer & decisions,
xAOD::TrigBphysContainer * trigBphysCollection = nullptr,
const InDet::BeamSpotData * beamSpotData = nullptr )
inline

Definition at line 48 of file TrigBmuxComboHypo.h.

TrigCompositeUtils::DecisionContainer & decisions()
ITrigBphysState()=delete
const TrigCompositeUtils::DecisionContainer & previousDecisions() const
xAOD::TrigBphysContainer & trigBphysCollection()
const EventContext & context() const

◆ ~TrigBmuxState()

virtual TrigBmuxState::~TrigBmuxState ( )
virtualdefault

Member Function Documentation

◆ addTriggerObject()

xAOD::TrigBphys * TrigBmuxState::addTriggerObject ( size_t muonIndex)
inline

Definition at line 64 of file TrigBmuxComboHypo.h.

64 {
66 trigBphysMuonIndices.push_back(muonIndex);
67 return trigBphysCollection().back();
68 }
const T * back() const
Access the last element in the collection as an rvalue.
value_type push_back(value_type pElem)
Add an element to the end of the collection.
std::vector< size_t > trigBphysMuonIndices
TrigBphys_v1 TrigBphys
Definition TrigBphys.h:18

◆ addTriggerObjects()

std::vector< xAOD::TrigBphys * > TrigBmuxState::addTriggerObjects ( size_t n,
size_t muonIndex )
inline

Definition at line 70 of file TrigBmuxComboHypo.h.

70 {
71 std::vector<xAOD::TrigBphys*> triggerObjects(n, nullptr);
72 for (size_t i = 0; i < n; i++) {
73 triggerObjects[i] = addTriggerObject(muonIndex);
74 }
75 return triggerObjects;
76 }
xAOD::TrigBphys * addTriggerObject(size_t muonIndex)

◆ beamSpot()

const xAOD::Vertex & ITrigBphysState::beamSpot ( ) const
inlineinherited

Definition at line 48 of file ITrigBphysState.h.

48{ return m_beamSpotVertex; }
xAOD::Vertex m_beamSpotVertex

◆ beamSpotPosition()

Amg::Vector3D ITrigBphysState::beamSpotPosition ( ) const
inlineinherited

Definition at line 47 of file ITrigBphysState.h.

47{ return (m_beamSpotData ? m_beamSpotData->beamPos() : Amg::Vector3D::Zero(3)); }
const InDet::BeamSpotData * m_beamSpotData

◆ context()

const EventContext & ITrigBphysState::context ( ) const
inlineinherited

Definition at line 42 of file ITrigBphysState.h.

42{ return *m_context; }
const EventContext * m_context

◆ decisions()

TrigCompositeUtils::DecisionContainer & ITrigBphysState::decisions ( )
inlineinherited

Definition at line 44 of file ITrigBphysState.h.

44{ return *m_decisions; }
TrigCompositeUtils::DecisionContainer * m_decisions

◆ previousDecisions()

const TrigCompositeUtils::DecisionContainer & ITrigBphysState::previousDecisions ( ) const
inlineinherited

Definition at line 43 of file ITrigBphysState.h.

43{ return *m_previousDecisions; }
const TrigCompositeUtils::DecisionContainer * m_previousDecisions

◆ setTrigBphysCollection()

void ITrigBphysState::setTrigBphysCollection ( xAOD::TrigBphysContainer * trigBphysCollection)
inlineinherited

Definition at line 46 of file ITrigBphysState.h.

xAOD::TrigBphysContainer * m_trigBphysCollection

◆ trigBphysCollection()

xAOD::TrigBphysContainer & ITrigBphysState::trigBphysCollection ( )
inlineinherited

Definition at line 45 of file ITrigBphysState.h.

45{ return *m_trigBphysCollection; }

Member Data Documentation

◆ m_beamSpotData

const InDet::BeamSpotData* ITrigBphysState::m_beamSpotData
privateinherited

Definition at line 55 of file ITrigBphysState.h.

◆ m_beamSpotVertex

xAOD::Vertex ITrigBphysState::m_beamSpotVertex
privateinherited

Definition at line 56 of file ITrigBphysState.h.

◆ m_context

const EventContext* ITrigBphysState::m_context
privateinherited

Definition at line 51 of file ITrigBphysState.h.

◆ m_decisions

TrigCompositeUtils::DecisionContainer* ITrigBphysState::m_decisions
privateinherited

Definition at line 53 of file ITrigBphysState.h.

◆ m_previousDecisions

const TrigCompositeUtils::DecisionContainer* ITrigBphysState::m_previousDecisions
privateinherited

Definition at line 52 of file ITrigBphysState.h.

◆ m_trigBphysCollection

xAOD::TrigBphysContainer* ITrigBphysState::m_trigBphysCollection
privateinherited

Definition at line 54 of file ITrigBphysState.h.

◆ muons

std::vector<Muon> TrigBmuxState::muons

Definition at line 61 of file TrigBmuxComboHypo.h.

◆ trigBphysMuonIndices

std::vector<size_t> TrigBmuxState::trigBphysMuonIndices

Definition at line 62 of file TrigBmuxComboHypo.h.


The documentation for this class was generated from the following file: