48 std::list<const xAOD::Jet*> tmpList;
50 for(
const auto& jetLinkInfo : fc) {
51 if (!jetLinkInfo.isValid()) {
57 tmpList.push_back( trigjet );
64 if (trigJetsCont->
empty()) {
66 return StatusCode::SUCCESS;
70 ATH_CHECK( t->processJetContainer(*
this, *trigJetsCont, ctx) );
75 if (! jets.isValid() ) {
78 return StatusCode::FAILURE;
81 return StatusCode::SUCCESS;
86 bool eventFiresAnyJetChain =
false;
89 if (
isPassed(trig)) { eventFiresAnyJetChain =
true;
break; }
91 if (!eventFiresAnyJetChain)
return StatusCode::SUCCESS;
103 ATH_CHECK( t->processJetContainer(*
this, *shallowCopy.first, ctx) );
106 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()
ToolHandle< IJetCalibrationTool > m_calibrationTool
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".
std::pair< std::unique_ptr< T >, std::unique_ptr< ShallowAuxContainer > > shallowCopyContainer(const T &cont, const EventContext &ctx)
Function making a shallow copy of a constant container.
JetContainer_v1 JetContainer
Definition of the current "jet container version".