27 return StatusCode::SUCCESS;
32 return StatusCode::SUCCESS;
42 ATH_MSG_DEBUG(
"AFP track size online/offline:"<<tracksAFP.
get()->size()<<
"/"<<tracksAFPoff.
get()->size());
48 for(
const auto* track: *tracksAFP){
50 for(
const auto* off_track: *tracksAFPoff){
52 float dx = track->xLocal()-off_track->xLocal();
53 float dy = track->yLocal()-off_track->yLocal();
54 float dR = std::hypot(dx, dy);
63 fill(
"AFPCoarse", xDiff, yDiff);
68 std::vector<std::string> passedAFPChains = {
"all"};
69 for (
const auto& chainName:
m_chains) {
71 passedAFPChains.emplace_back(chainName);
75 if ( passedAFPChains.size() > 1) passedAFPChains.emplace_back(
"AFP");
77 fill(
"AFPCoarse", whichTrigger);
79 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
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.
Declare a monitored scalar variable.
const_pointer_type get() const
Dereference the pointer, but don't cache anything.
virtual StatusCode initialize() override
initialize
SG::ReadHandleKey< xAOD::AFPTrackContainer > m_AFPtrackOffKey
Gaudi::Property< std::vector< std::string > > m_chains
virtual StatusCode fillHistograms(const EventContext &context) const override
adds event to the monitoring histograms
TrigAFPSidHypoMonitoringAlg(const std::string &name, ISvcLocator *pSvcLocator)
virtual ~TrigAFPSidHypoMonitoringAlg() override
virtual StatusCode finalize() override
SG::ReadHandleKey< xAOD::AFPTrackContainer > m_AFPtrackKey
void fill(const ToolHandle< GenericMonitoringTool > &groupHandle, std::vector< std::reference_wrapper< Monitored::IMonitoredVariable > > &&variables) const
Fills a vector of variables to a group by reference.
ValuesCollection< T > Collection(std::string name, const T &collection)
Declare a monitored (double-convertible) collection.