ATLAS Offline Software
Loading...
Searching...
No Matches
MuonTriggerCount.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3*/
4
5#include "MuonTriggerCount.h"
6
7
8MuonTriggerCount :: MuonTriggerCount(const std::string& name, ISvcLocator* pSvcLocator )
9 : TrigMuonMonitorAlgorithm(name, pSvcLocator)
10{}
11
12
13StatusCode MuonTriggerCount :: fillVariables(const EventContext&) const {
14
15 ATH_MSG_DEBUG ("Filling histograms for " << name() << "...");
16
17 std::vector<std::string> passed_chains;
18 for ( const auto& c: m_monitored_chains ) { if (getTrigDecisionTool()->isPassed(c)) passed_chains.push_back(c); }
19 auto passed = Monitored::Collection("TriggerCount", passed_chains );
20
22
23 return StatusCode::SUCCESS;
24}
#define ATH_MSG_DEBUG(x)
bool passed(DecisionID id, const DecisionIDContainer &)
checks if required decision ID is in the set of IDs in the container
const ToolHandle< Trig::TrigDecisionTool > & getTrigDecisionTool() const
Get the trigger decision tool member.
Gaudi::Property< std::string > m_group
Name of monitored group.
TrigMuonMonitorAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Gaudi::Property< std::vector< std::string > > m_monitored_chains
List of trigger chains that are monitored in fillVariablesPerChain and fillVariablesPerOfflineMuonPer...
ValuesCollection< T > Collection(std::string name, const T &collection)
Declare a monitored (double-convertible) collection.
void fill(H5::Group &out_file, size_t iterations)