47 std::list<const xAOD::Jet*> tmpList;
49 for(
const auto& jetLinkInfo : fc) {
50 if (!jetLinkInfo.isValid()) {
56 tmpList.push_back( trigjet );
63 if (trigJetsCont->
empty()) {
65 return StatusCode::SUCCESS;
69 ATH_CHECK( t->processJetContainer(*
this, *trigJetsCont, ctx) );
74 if (! jets.isValid() ) {
77 return StatusCode::FAILURE;
80 return StatusCode::SUCCESS;
85 bool eventFiresAnyJetChain =
false;
88 if (
isPassed(trig)) { eventFiresAnyJetChain =
true;
break; }
90 if (!eventFiresAnyJetChain)
return StatusCode::SUCCESS;
96 ATH_CHECK( t->processJetContainer(*
this, *jets, ctx) );
99 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_WARNING(x)
void sort(typename DataModel_detail::iterator< DVL > beg, typename DataModel_detail::iterator< DVL > end)
Specialization of sort for DataVector/List.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
Gaudi::Property< std::string > m_triggerChainString
Trigger chain string pulled from the job option and parsed into a vector.
virtual StatusCode initialize() override
initialize
const ToolHandle< Trig::TrigDecisionTool > & getTrigDecisionTool() const
Get the trigger decision tool member.
AthMonitorAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
DataVector adapter that acts like it holds const pointers.
value_type push_back(value_type pElem)
Add an element to the end of the collection.
const DV * asDataVector() const
Return a pointer to this object, as a const DataVector.
bool empty() const noexcept
Returns true if the collection is empty.
ElementLink implementation for ROOT usage.
SG::ReadHandleKey< xAOD::JetContainer > m_jetContainerKey
unsigned int isPassedBits(const std::string &c) const
ToolHandleArray< IJetHistoFiller > m_jetFillerTools
bool m_eventFiresAnyJetChain
bool m_failureOnMissingContainer
virtual ~JetMonitoringAlg()
JetMonitoringAlg(const std::string &name, ISvcLocator *pSvcLocator)
bool isPassed(const std::string &c) const
virtual StatusCode fillHistograms(const EventContext &ctx) const override
adds event to the monitoring histograms
virtual StatusCode initialize() override
initialize
std::vector< std::string > getListOfTriggers() const
@ VIEW_ELEMENTS
this data object is a view, it does not own its elmts
Jet_v1 Jet
Definition of the current "jet version".
JetContainer_v1 JetContainer
Definition of the current "jet container version".