ATLAS Offline Software
|
#include <DisplacedJetRankComboHypoTool.h>
Public Member Functions | |
DisplacedJetRankComboHypoTool (const std::string &type, const std::string &name, const IInterface *parent) | |
virtual StatusCode | initialize () override |
virtual StatusCode | decide (Combo::LegDecisionsMap &passingLegs, const EventContext &ctx) const override |
retrieves the decisions associated to this decId, make their combinations and apply the algorithm More... | |
virtual HLT::Identifier | decisionId () const |
retrieves this ComboHypoTool's chain's decision ID More... | |
StatusCode | setLegMultiplicity (const Combo::MultiplicityReqMap &multiplicityRequiredMap) |
Sets the number of legs and the multiplicity required on each leg. More... | |
const std::vector< int > & | legMultiplicity () const |
Gets the number of legs and the multiplicity required on each leg. More... | |
HLT::Identifier | legDecisionId (size_t i) const |
Retrieves this ComboHypoTool's chain's decision ID for a given leg. More... | |
const std::vector< HLT::Identifier > & | legDecisionIds () const |
Retrieves this ComboHypoTool's chain's decision IDs for all legs. More... | |
virtual StatusCode | decideOnSingleObject (TrigCompositeUtils::Decision *, const std::vector< const TrigCompositeUtils::DecisionIDContainer * > &) const |
Alternate method called by BPhysics ComboHypoAlgs instead of the base method decide(...). More... | |
Protected Member Functions | |
virtual bool | executeAlg (const std::vector< Combo::LegDecision > &combination) const |
Only a dummy implementation exists in ComboHypoToolBase. More... | |
StatusCode | selectLegs (const Combo::LegDecisionsMap &IDCombMap, std::vector< std::vector< Combo::LegDecision >> &leg_decisions) const |
Creates the per-leg vectors of Decision objects starting from the initial LegDecision map, storing only those concerning this HypoTool's chain Pack the Decision objects in std::pair<DecisionID, ElementLink<Decision>> so the derived class' executeAlg function knows which leg each object is on. More... | |
void | updateLegDecisionsMap (const std::vector< std::vector< Combo::LegDecision >> &passing_comb, Combo::LegDecisionsMap &passingLegs) const |
For when the tool accepts some/all combinations. More... | |
void | eraseFromLegDecisionsMap (Combo::LegDecisionsMap &passingLegs) const |
For when the tool rejects all combinations. More... | |
StatusCode | printDebugInformation (const Combo::LegDecisionsMap &passingLegs) const |
Print the output of the tool, after having removed failed Decision Objects. More... | |
Protected Attributes | |
Gaudi::Property< size_t > | m_combinationsThresholdWarn |
Gaudi::Property< size_t > | m_combinationsThresholdBreak |
Gaudi::Property< bool > | m_modeOR |
Gaudi::Property< bool > | m_enableOverride |
Private Attributes | |
Gaudi::Property< unsigned int > | m_rankcut {this, "max_jet_rank",{2}, "Maximum jet rank which will be processed, counts from 0"} |
Gaudi::Property< unsigned int > | m_maxjets {this, "max_jets",{0}, "Maximum number of jets allowed in the event"} |
HLT::Identifier | m_decisionId |
The DecisionID of the chain, obtained from the Tool's name. More... | |
std::vector< HLT::Identifier > | m_legDecisionIds |
The DecisionIDs of the individual legs, derived from both m_decisionId and m_legMultiplicities. More... | |
std::vector< int > | m_legMultiplicities |
The number of legs, and the required multiplicity on each leg. More... | |
Definition at line 8 of file DisplacedJetRankComboHypoTool.h.
DisplacedJetRankComboHypoTool::DisplacedJetRankComboHypoTool | ( | const std::string & | type, |
const std::string & | name, | ||
const IInterface * | parent | ||
) |
Definition at line 5 of file DisplacedJetRankComboHypoTool.cxx.
|
overridevirtual |
retrieves the decisions associated to this decId, make their combinations and apply the algorithm
[in] | LegDecisionsMap | that lists all the passing decisions, to be updated by the tool depending on the outcome of executeAlg |
[in] | Event | Context, currently unused |
Reimplemented from ComboHypoToolBase.
Definition at line 11 of file DisplacedJetRankComboHypoTool.cxx.
|
virtualinherited |
Alternate method called by BPhysics ComboHypoAlgs instead of the base method decide(...).
This function should be considered a specialist use-case only. It must be over-ridden to do anything useful.
Reimplemented in TrigMultiTrkComboHypoTool, and TrigBmumuxComboHypoTool.
Definition at line 284 of file ComboHypoToolBase.cxx.
|
inlinevirtualinherited |
retrieves this ComboHypoTool's chain's decision ID
Definition at line 41 of file ComboHypoToolBase.h.
|
protectedinherited |
For when the tool rejects all combinations.
Remove all Decision Objects from all the legs of this HypoTool's chain.
Definition at line 253 of file ComboHypoToolBase.cxx.
|
protectedvirtualinherited |
Only a dummy implementation exists in ComboHypoToolBase.
This should be over-ridden by a derived class. The derived class should return a boolean pass/fail for each possible combination in the event. param[in] combination A single combination of objects to be discriminated against. Vector contains the required number of objects over all legs. Use the pair.first to tell which leg a given pair.second decision object belongs to in the current combination.
Reimplemented in TrigEgammaTopoHypoTool, TrigAFPDijetComboHypoTool, DebugComboHypoTool, DeltaRRoIComboHypoTool, TrigMuonEFIdtpInvMassHypoTool, TrigMuonEFInvMassHypoTool, TrigMultiTrkComboHypoTool, and TrigBmumuxComboHypoTool.
Definition at line 279 of file ComboHypoToolBase.cxx.
|
overridevirtual |
Definition at line 7 of file DisplacedJetRankComboHypoTool.cxx.
|
inlineinherited |
Retrieves this ComboHypoTool's chain's decision ID for a given leg.
Only populated for chains with more than one leg. For chains with one leg, use decisionId()
Definition at line 60 of file ComboHypoToolBase.h.
|
inlineinherited |
Retrieves this ComboHypoTool's chain's decision IDs for all legs.
Only populated for chains with more than one leg. For chains with one leg, use decisionId()
Definition at line 66 of file ComboHypoToolBase.h.
|
inlineinherited |
Gets the number of legs and the multiplicity required on each leg.
Definition at line 54 of file ComboHypoToolBase.h.
|
protectedinherited |
Print the output of the tool, after having removed failed Decision Objects.
Restricted to the ComboHypoTool's chain's legs.
Definition at line 264 of file ComboHypoToolBase.cxx.
|
protectedinherited |
Creates the per-leg vectors of Decision objects starting from the initial LegDecision map, storing only those concerning this HypoTool's chain Pack the Decision objects in std::pair<DecisionID, ElementLink<Decision>> so the derived class' executeAlg function knows which leg each object is on.
Definition at line 172 of file ComboHypoToolBase.cxx.
|
inherited |
Sets the number of legs and the multiplicity required on each leg.
This should be called when the Tool is retrieved by its parent ComboHypo alg. This also sets the leg Decision IDs at the same time param[in] multiplicityRequiredMap: Mapping of chains to required multiplicity per leg.
Definition at line 16 of file ComboHypoToolBase.cxx.
|
protectedinherited |
For when the tool accepts some/all combinations.
Remove Decision Objects from legs of this HypoTool's chain which participated in NONE of combinations which were flagged as accepting the event.
Definition at line 216 of file ComboHypoToolBase.cxx.
|
protectedinherited |
Definition at line 109 of file ComboHypoToolBase.h.
|
protectedinherited |
Definition at line 106 of file ComboHypoToolBase.h.
|
privateinherited |
The DecisionID of the chain, obtained from the Tool's name.
Definition at line 122 of file ComboHypoToolBase.h.
|
protectedinherited |
Definition at line 115 of file ComboHypoToolBase.h.
|
privateinherited |
The DecisionIDs of the individual legs, derived from both m_decisionId and m_legMultiplicities.
Definition at line 123 of file ComboHypoToolBase.h.
|
privateinherited |
The number of legs, and the required multiplicity on each leg.
Definition at line 124 of file ComboHypoToolBase.h.
|
private |
Definition at line 18 of file DisplacedJetRankComboHypoTool.h.
|
protectedinherited |
Definition at line 112 of file ComboHypoToolBase.h.
|
private |
Definition at line 17 of file DisplacedJetRankComboHypoTool.h.