ATLAS Offline Software
Trigger
TrigT1
TrigT1CaloMonitoring
src
L1IDFilterAlgorithm.h
Go to the documentation of this file.
1
2
class
L1IDFilterAlgorithm
:
public
AthMonitorAlgorithm
{
3
4
public
:
5
L1IDFilterAlgorithm
(
const
std::string&
name
, ISvcLocator* pSvcLocator ) :
AthMonitorAlgorithm
(
name
,pSvcLocator) {}
6
virtual
~L1IDFilterAlgorithm
()=
default
;
7
8
virtual
StatusCode
fillHistograms
(
const
EventContext& ctx)
const override
{
9
// drop top 8 bits (ecrid) and check rest (L1ID) for multiple of 200
10
setFilterPassed
( ( (
GetEventInfo
(ctx)->extendedLevel1ID()&0xffffff) % 200) == 0, ctx );
11
if
(
filterPassed
(ctx))
ATH_MSG_INFO
(
"Event ok "
<<
GetEventInfo
(ctx)->
eventNumber
());
// note: could also use: ctx.eventID().event_number()
12
return
StatusCode::SUCCESS;
13
}
14
15
16
};
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition:
AthMsgStreamMacros.h:31
L1IDFilterAlgorithm::fillHistograms
virtual StatusCode fillHistograms(const EventContext &ctx) const override
adds event to the monitoring histograms
Definition:
L1IDFilterAlgorithm.h:8
AthReentrantAlgorithm::filterPassed
virtual bool filterPassed(const EventContext &ctx) const
Definition:
AthReentrantAlgorithm.h:135
AthMonitorAlgorithm
Base class for Athena Monitoring Algorithms.
Definition:
AthMonitorAlgorithm.h:36
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition:
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
L1IDFilterAlgorithm::~L1IDFilterAlgorithm
virtual ~L1IDFilterAlgorithm()=default
xAOD::eventNumber
eventNumber
Definition:
EventInfo_v1.cxx:124
AthMonitorAlgorithm::GetEventInfo
SG::ReadHandle< xAOD::EventInfo > GetEventInfo(const EventContext &) const
Return a ReadHandle for an EventInfo object (get run/event numbers, etc.)
Definition:
AthMonitorAlgorithm.cxx:107
name
std::string name
Definition:
Control/AthContainers/Root/debug.cxx:195
L1IDFilterAlgorithm::L1IDFilterAlgorithm
L1IDFilterAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Definition:
L1IDFilterAlgorithm.h:5
L1IDFilterAlgorithm
Definition:
L1IDFilterAlgorithm.h:2
AthReentrantAlgorithm::setFilterPassed
virtual void setFilterPassed(bool state, const EventContext &ctx) const
Definition:
AthReentrantAlgorithm.h:139
Generated on Thu Jul 4 2024 21:19:40 for ATLAS Offline Software by
1.8.18