|
ATLAS Offline Software
|
Go to the documentation of this file.
14 const std::string&
name,
23 return StatusCode::SUCCESS;
28 const EventContext& ctx )
const
41 ATH_MSG_DEBUG(
"Did not find exactly one decision object in decision container containing " <<
decisions.size() <<
" decisions");
48 const std::vector< TrigCompositeUtils::LinkInfo<xAOD::TrigCompositeContainer> > dvSeedLinks = TrigCompositeUtils::findLinks< xAOD::TrigCompositeContainer >(outputDecision,
TrigCompositeUtils::featureString(), TrigDefs::lastFeatureOfType);
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>();
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,
105 roisWriteHandle->
push_back(superRoI.release());
115 return StatusCode::SUCCESS;
T wrapToPi(T phi)
Wrap angle in radians to [-pi, pi].
void push_back(const IRoiDescriptor *roi)
add a RoiDescriptor
::StatusCode StatusCode
StatusCode definition for legacy code.
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
SG::WriteHandle< CONT > createAndStoreNoAux(const SG::WriteHandleKey< CONT > &key, const EventContext &ctx=Gaudi::Hive::currentContext())
Creates and right away records the Container CONT with the key.
Class used to describe composite objects in the HLT.
const std::string & featureString()
Helper for azimuthal angle calculations.
value_type push_back(value_type pElem)
Add an element to the end of the collection.
void setComposite(bool b=true)
const std::string & roiString()
bool isAvailable(const ELT &e) const
Test to see if this variable exists in the store.
bool manageConstituents() const
always manage constituents ???
Helper class to provide constant type-safe access to aux data.
size_type size() const noexcept
Returns the number of elements in the collection.