ATLAS Offline Software
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 
8 MuonTriggerCount :: MuonTriggerCount(const std::string& name, ISvcLocator* pSvcLocator )
9  : TrigMuonMonitorAlgorithm(name, pSvcLocator)
10 {}
11 
12 
13 StatusCode 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 }
TrigMuonMonitorAlgorithm::m_group
Gaudi::Property< std::string > m_group
Name of monitored group.
Definition: TrigMuonMonitorAlgorithm.h:141
TrigCompositeUtils::passed
bool passed(DecisionID id, const DecisionIDContainer &idSet)
checks if required decision ID is in the set of IDs in the container
Definition: TrigCompositeUtilsRoot.cxx:117
AthMonitorAlgorithm::getTrigDecisionTool
const ToolHandle< Trig::TrigDecisionTool > & getTrigDecisionTool() const
Get the trigger decision tool member.
Definition: AthMonitorAlgorithm.cxx:189
Monitored::Collection
ValuesCollection< T > Collection(std::string name, const T &collection)
Declare a monitored (double-convertible) collection.
Definition: MonitoredCollection.h:38
MuonTriggerCount::fillVariables
virtual StatusCode fillVariables(const EventContext &ctx) const override
Function that fills variables by just retrieving containers of trigger objects.
Definition: MuonTriggerCount.cxx:13
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
MuonTriggerCount.h
TrigMuonMonitorAlgorithm
Base class from which analyzers can define a derived class to do specific analysis.
Definition: TrigMuonMonitorAlgorithm.h:22
AthMonitorAlgorithm::fill
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.
TrigMuonMonitorAlgorithm::m_monitored_chains
Gaudi::Property< std::vector< std::string > > m_monitored_chains
List of trigger chains that are monitored in fillVariablesPerChain and fillVariablesPerOfflineMuonPer...
Definition: TrigMuonMonitorAlgorithm.h:137
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
MuonTriggerCount::MuonTriggerCount
MuonTriggerCount(const std::string &name, ISvcLocator *pSvcLocator)
Definition: MuonTriggerCount.cxx:8
python.compressB64.c
def c
Definition: compressB64.py:93