14 const std::string& name,
15 const IInterface* parent)
16 : base_class(
type, name, parent)
23 return StatusCode::SUCCESS;
28 const EventContext& ctx )
const
40 if(decisions.size()!=1) {
41 ATH_MSG_DEBUG(
"Did not find exactly one decision object in decision container containing " << decisions.size() <<
" decisions");
50 if (dvSeedLinks.size() != 1) {
52 << outputDecision->index() <<
", found " << dvSeedLinks.size());
55 for (
const auto& dvLink : dvSeedLinks) {
57 std::unique_ptr<TrigRoiDescriptor> superRoI = std::make_unique<TrigRoiDescriptor>();
58 superRoI->setComposite(
true);
59 superRoI->manageConstituents(
true);
61 if(!dvLink.link.isValid()) {
68 ATH_MSG_DEBUG(
" --- Found " << dvCont->
size() <<
" presel DV seeds linked from decision object.");
77 float dvEta = hitDV_seed_etaAcc( *dv );
78 float dvPhi = hitDV_seed_phiAcc( *dv );
85 ATH_MSG_DEBUG(
" ** Imposing Z constraint while building RoI" );
96 std::unique_ptr<TrigRoiDescriptor> newROI =
97 std::make_unique<TrigRoiDescriptor>( dvEta, etaMinus, etaPlus,
98 dvPhi, phiMinus, phiPlus,
101 superRoI->push_back( newROI.release() );
105 roisWriteHandle->push_back(superRoI.release());
115 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
Helper class to provide constant type-safe access to aux data.
size_type size() const noexcept
Returns the number of elements in the collection.
Helper class to provide constant type-safe access to aux data.
bool isAvailable(const ELT &e) const
Test to see if this variable exists in the store.
T wrapToPi(T phi)
Wrap angle in radians to [-pi, pi].
SG::WriteHandle< CONT > createAndStoreNoAux(const SG::WriteHandleKey< CONT > &key, const EventContext &ctx)
Creates and right away records the Container CONT with the key.
xAOD::TrigComposite Decision
const std::string & roiString()
const std::string & featureString()
void findLinks(const Decision *start, const std::string &linkName, std::vector< LinkInfo< T > > &links, unsigned int behaviour=TrigDefs::allFeaturesOfType, std::set< const xAOD::TrigComposite * > *fullyExploredFrom=nullptr)
search back the TC links for the object of type T linked to the one of TC (recursively) Populates pro...
xAOD::TrigCompositeContainer DecisionContainer
static const unsigned int lastFeatureOfType
Run 3 "enum". Only return the final feature along each route through the navigation.
TrigCompositeContainer_v1 TrigCompositeContainer
Declare the latest version of the container.
TrigComposite_v1 TrigComposite
Declare the latest version of the class.
Helper for azimuthal angle calculations.