ATLAS Offline Software
Classes | Public Member Functions | Public Attributes | Private Attributes | List of all members
TrigBmumuxState Class Reference

State class for TrigBmumuxComboHypo algorithm. More...

#include <TrigBmumuxComboHypo.h>

Inheritance diagram for TrigBmumuxState:
Collaboration diagram for TrigBmumuxState:

Classes

struct  Muon
 

Public Member Functions

 TrigBmumuxState ()=delete
 
 TrigBmumuxState (const EventContext &context, const TrigCompositeUtils::DecisionContainer &previousDecisions, TrigCompositeUtils::DecisionContainer &decisions, xAOD::TrigBphysContainer *trigBphysCollection=nullptr, const InDet::BeamSpotData *beamSpotData=nullptr)
 
virtual ~TrigBmumuxState ()=default
 
size_t getCombinationKey (size_t i1, size_t i2) const
 
void addTrackCombination (size_t i1)
 
void addTrackCombination (size_t i1, size_t i2)
 
void addTrackCombination (size_t i1, size_t i2, size_t i3)
 
bool isBadCombination (size_t i1) const
 
bool isBadCombination (size_t i1, size_t i2, size_t i3) const
 
StatusCode addTriggerObject (xAOD::TrigBphys *triggerObject)
 
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< ElementLink< xAOD::TrackParticleContainer > > tracks
 
bool isCompositeRoI = false
 
xAOD::VertexContainer dimuons
 
xAOD::VertexAuxContainer dimuonsStore
 
std::vector< std::array< size_t, 2 > > trigBphysMuonIndices
 
std::vector< ElementLink< xAOD::TrackParticleContainer > > selectedTracks
 
std::map< const xAOD::TrackParticle *, double > selectedTrackZ0
 
std::map< size_t, size_t > trackCombinations
 
std::vector< size_t > badTrackCombinations
 

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 TrigBmumuxComboHypo algorithm.

Definition at line 45 of file TrigBmumuxComboHypo.h.

Constructor & Destructor Documentation

◆ TrigBmumuxState() [1/2]

TrigBmumuxState::TrigBmumuxState ( )
delete

◆ TrigBmumuxState() [2/2]

TrigBmumuxState::TrigBmumuxState ( 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 TrigBmumuxComboHypo.h.

54  dimuons.setStore(&dimuonsStore);
55  }

◆ ~TrigBmumuxState()

virtual TrigBmumuxState::~TrigBmumuxState ( )
virtualdefault

Member Function Documentation

◆ addTrackCombination() [1/3]

void TrigBmumuxState::addTrackCombination ( size_t  i1)
inline

Definition at line 86 of file TrigBmumuxComboHypo.h.

86 { trackCombinations[i1]++; }

◆ addTrackCombination() [2/3]

void TrigBmumuxState::addTrackCombination ( size_t  i1,
size_t  i2 
)
inline

Definition at line 87 of file TrigBmumuxComboHypo.h.

◆ addTrackCombination() [3/3]

void TrigBmumuxState::addTrackCombination ( size_t  i1,
size_t  i2,
size_t  i3 
)
inline

Definition at line 88 of file TrigBmumuxComboHypo.h.

88 { addTrackCombination(i1, i2); addTrackCombination(i1, i3); addTrackCombination(i2, i3); }

◆ addTriggerObject()

StatusCode TrigBmumuxState::addTriggerObject ( xAOD::TrigBphys triggerObject)
inline

Definition at line 92 of file TrigBmumuxComboHypo.h.

92  {
93  if (!triggerObject) {
94  return StatusCode::FAILURE;
95  }
96  trigBphysCollection().push_back(triggerObject);
97  return StatusCode::SUCCESS;
98  }

◆ beamSpot()

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

Definition at line 48 of file ITrigBphysState.h.

48 { return m_beamSpotVertex; }

◆ beamSpotPosition()

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

Definition at line 47 of file ITrigBphysState.h.

◆ context()

const EventContext& ITrigBphysState::context ( ) const
inlineinherited

Definition at line 42 of file ITrigBphysState.h.

42 { return *m_context; }

◆ decisions()

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

Definition at line 44 of file ITrigBphysState.h.

44 { return *m_decisions; }

◆ getCombinationKey()

size_t TrigBmumuxState::getCombinationKey ( size_t  i1,
size_t  i2 
) const
inline

Definition at line 85 of file TrigBmumuxComboHypo.h.

85 { size_t n = selectedTracks.size(); return (i1 < i2 ? i1 + n * i2 : i2 + n * i1); }

◆ isBadCombination() [1/2]

bool TrigBmumuxState::isBadCombination ( size_t  i1) const
inline

Definition at line 89 of file TrigBmumuxComboHypo.h.

89 { return std::binary_search(badTrackCombinations.begin(), badTrackCombinations.end(), i1); }

◆ isBadCombination() [2/2]

bool TrigBmumuxState::isBadCombination ( size_t  i1,
size_t  i2,
size_t  i3 
) const
inline

Definition at line 90 of file TrigBmumuxComboHypo.h.

◆ previousDecisions()

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

Definition at line 43 of file ITrigBphysState.h.

43 { return *m_previousDecisions; }

◆ setTrigBphysCollection()

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

Definition at line 46 of file ITrigBphysState.h.

◆ trigBphysCollection()

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

Definition at line 45 of file ITrigBphysState.h.

45 { return *m_trigBphysCollection; }

Member Data Documentation

◆ badTrackCombinations

std::vector<size_t> TrigBmumuxState::badTrackCombinations

Definition at line 83 of file TrigBmumuxComboHypo.h.

◆ dimuons

xAOD::VertexContainer TrigBmumuxState::dimuons

Definition at line 71 of file TrigBmumuxComboHypo.h.

◆ dimuonsStore

xAOD::VertexAuxContainer TrigBmumuxState::dimuonsStore

Definition at line 72 of file TrigBmumuxComboHypo.h.

◆ isCompositeRoI

bool TrigBmumuxState::isCompositeRoI = false

Definition at line 68 of file TrigBmumuxComboHypo.h.

◆ 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> TrigBmumuxState::muons

Definition at line 64 of file TrigBmumuxComboHypo.h.

◆ selectedTracks

std::vector<ElementLink<xAOD::TrackParticleContainer> > TrigBmumuxState::selectedTracks

Definition at line 76 of file TrigBmumuxComboHypo.h.

◆ selectedTrackZ0

std::map<const xAOD::TrackParticle*, double> TrigBmumuxState::selectedTrackZ0

Definition at line 77 of file TrigBmumuxComboHypo.h.

◆ trackCombinations

std::map<size_t, size_t> TrigBmumuxState::trackCombinations

Definition at line 80 of file TrigBmumuxComboHypo.h.

◆ tracks

std::vector<ElementLink<xAOD::TrackParticleContainer> > TrigBmumuxState::tracks

Definition at line 67 of file TrigBmumuxComboHypo.h.

◆ trigBphysMuonIndices

std::vector<std::array<size_t, 2> > TrigBmumuxState::trigBphysMuonIndices

Definition at line 73 of file TrigBmumuxComboHypo.h.


The documentation for this class was generated from the following file:
ITrigBphysState::m_decisions
TrigCompositeUtils::DecisionContainer * m_decisions
Definition: ITrigBphysState.h:53
TrigBmumuxState::dimuons
xAOD::VertexContainer dimuons
Definition: TrigBmumuxComboHypo.h:71
TrigBmumuxState::selectedTracks
std::vector< ElementLink< xAOD::TrackParticleContainer > > selectedTracks
Definition: TrigBmumuxComboHypo.h:76
ITrigBphysState::m_beamSpotVertex
xAOD::Vertex m_beamSpotVertex
Definition: ITrigBphysState.h:56
ITrigBphysState::m_beamSpotData
const InDet::BeamSpotData * m_beamSpotData
Definition: ITrigBphysState.h:55
ITrigBphysState::context
const EventContext & context() const
Definition: ITrigBphysState.h:42
beamspotman.n
n
Definition: beamspotman.py:731
TrigBmumuxState::addTrackCombination
void addTrackCombination(size_t i1)
Definition: TrigBmumuxComboHypo.h:86
InDet::BeamSpotData::beamPos
const Amg::Vector3D & beamPos() const noexcept
Definition: BeamSpotData.h:68
TrigBmumuxState::getCombinationKey
size_t getCombinationKey(size_t i1, size_t i2) const
Definition: TrigBmumuxComboHypo.h:85
ITrigBphysState::m_trigBphysCollection
xAOD::TrigBphysContainer * m_trigBphysCollection
Definition: ITrigBphysState.h:54
DataVector::push_back
value_type push_back(value_type pElem)
Add an element to the end of the collection.
ITrigBphysState::previousDecisions
const TrigCompositeUtils::DecisionContainer & previousDecisions() const
Definition: ITrigBphysState.h:43
ITrigBphysState::decisions
TrigCompositeUtils::DecisionContainer & decisions()
Definition: ITrigBphysState.h:44
TrigBmumuxState::badTrackCombinations
std::vector< size_t > badTrackCombinations
Definition: TrigBmumuxComboHypo.h:83
TrigBmumuxState::isBadCombination
bool isBadCombination(size_t i1) const
Definition: TrigBmumuxComboHypo.h:89
TrigBmumuxState::dimuonsStore
xAOD::VertexAuxContainer dimuonsStore
Definition: TrigBmumuxComboHypo.h:72
ITrigBphysState::m_context
const EventContext * m_context
Definition: ITrigBphysState.h:51
ITrigBphysState::m_previousDecisions
const TrigCompositeUtils::DecisionContainer * m_previousDecisions
Definition: ITrigBphysState.h:52
TrigBmumuxState::trackCombinations
std::map< size_t, size_t > trackCombinations
Definition: TrigBmumuxComboHypo.h:80
generate::Zero
void Zero(TH1D *hin)
Definition: generate.cxx:32
ITrigBphysState::trigBphysCollection
xAOD::TrigBphysContainer & trigBphysCollection()
Definition: ITrigBphysState.h:45
ITrigBphysState::ITrigBphysState
ITrigBphysState()=delete