14 const std::string& name,
15 const IInterface* parent)
16 : base_class(
type, name, parent)
23 return StatusCode::SUCCESS;
28 const EventContext& ctx )
const {
38 if(decisions.size()!=1) {
39 ATH_MSG_ERROR(
"Did not find exactly one decision object in decision container containing " << decisions.size() <<
" decisions");
40 return StatusCode::FAILURE;
47 ATH_MSG_ERROR(
"Received invalid jet link from decision object! " << leadingjetlink.
link);
48 return StatusCode::FAILURE;
52 ATH_MSG_DEBUG(
"Found " << jetCont->
size() <<
" presel jets linked from decision object.");
55 std::unique_ptr<TrigRoiDescriptor> superRoI = std::make_unique<TrigRoiDescriptor>();
63 superRoI->setComposite(
true);
64 superRoI->manageConstituents(
false);
68 double jetEta{
jet->eta()}, jetPhi{
jet->phi()};
71 " eta=" <<
jet->eta() <<
72 " phi=" <<
jet->phi() );
76 ATH_MSG_DEBUG(
" ** Imposing Z constraint while building RoI" );
92 jetPhi, phiMinus, phiPlus,
97 jetPhi, phiMinus, phiPlus ) );
104 superRoI->manageConstituents(
true);
108 roisWriteHandle->push_back(superRoI.release());
115 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
Athena::TPCnvVers::Current TrigRoiDescriptor
size_type size() const noexcept
Returns the number of elements in the collection.
bool isValid() const
Test to see if the link can be dereferenced.
bool setObjectLink(const std::string &name, const ElementLink< CONTAINER > &link)
Set the link to an object.
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()
LinkInfo< T > findLink(const Decision *start, const std::string &linkName, const bool suppressMultipleLinksWarning=false)
Perform a recursive search for ElementLinks of type T and name 'linkName', starting from Decision obj...
xAOD::TrigCompositeContainer DecisionContainer
static const unsigned int lastFeatureOfType
Run 3 "enum". Only return the final feature along each route through the navigation.
Jet_v1 Jet
Definition of the current "jet version".
JetContainer_v1 JetContainer
Definition of the current "jet container version".
Helper for azimuthal angle calculations.
Helper to keep a Decision object, ElementLink and ActiveState (with respect to some requested ChainGr...
ElementLink< T > link
Link to the feature.