ATLAS Offline Software
Loading...
Searching...
No Matches
L1MuonMon.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
5#include "L1MuonMon.h"
6
7
8L1MuonMon :: L1MuonMon(const std::string& name, ISvcLocator* pSvcLocator )
9 : TrigMuonMonitorAlgorithm(name, pSvcLocator)
10{}
11
12
13StatusCode L1MuonMon :: initialize(){
15 ATH_CHECK( m_MuonRoIContainerKey.initialize() );
16 return sc;
17}
18
19
20StatusCode L1MuonMon :: fillVariables(const EventContext &ctx) const {
21
22 ATH_MSG_DEBUG ("Filling histograms for " << name() << "...");
23
25 if (! rois.isValid() ) {
26 ATH_MSG_ERROR("evtStore() does not contain xAOD::MuonRoI collection with name "<< m_MuonRoIContainerKey);
27 return StatusCode::FAILURE;
28 }
29
30 // variables
31 auto l1Thres = Monitored::Scalar<double>("l1Thres",-1.0);
32 auto l1Eta = Monitored::Scalar<double>("l1Eta",-1.0);
33 auto l1Phi = Monitored::Scalar<double>("l1Phi",-1.0);
34
35 for (const auto l1mu : *rois) {
36 l1Thres = (float)l1mu->getThrNumber();
37 l1Eta = l1mu->eta();
38 l1Phi = l1mu->phi();
39 fill("L1MuonMon", l1Thres, l1Eta, l1Phi);
40 }
41
42
43 return StatusCode::SUCCESS;
44}
45
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_ERROR(x)
#define ATH_MSG_DEBUG(x)
static Double_t sc
SG::ReadHandleKey< xAOD::MuonRoIContainer > m_MuonRoIContainerKey
Definition L1MuonMon.h:27
Declare a monitored scalar variable.
TrigMuonMonitorAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
virtual StatusCode initialize() override
initialize
void fill(H5::Group &out_file, size_t iterations)