ATLAS Offline Software
Trigger
TrigCost
RatesAnalysis
src
FullMenu.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
FullMenu.h
"
6
7
FullMenu::FullMenu
(
const
std::string&
name
, ISvcLocator* pSvcLocator ) :
RatesAnalysisAlg
(
name
, pSvcLocator) {
8
}
9
10
FullMenu::~FullMenu
() {
11
}
12
13
StatusCode
FullMenu::ratesInitialize
() {
14
ATH_MSG_INFO
(
"In ratesInitialize()"
);
15
16
// Here we assume a full-ring, other functions are available to change this assumption.
17
// @see setTargetLumiMu(const double lumi, const double mu);
18
// @see setTargetLumiBunches(const double lumi, const int32_t bunches);
19
// @see setTargetMuBunches(const double mu, const int32_t bunches);
20
setTargetLumi
(
m_lumi
);
21
22
// Register all triggers in the menu. Will not include any which were prescaled out in Athena.
23
ATH_MSG_INFO
(
"Adding all existing triggers"
);
24
ATH_CHECK
(
addAllExisting
() );
25
26
// Or, if you were only interested in part of the menu you could do e.g.
27
// ATH_CHECK( addExisting("HLT_mu.*") );
28
// ATH_CHECK( addExisting("L1_MU.*") );
29
30
return
StatusCode::SUCCESS;
31
}
32
33
StatusCode
FullMenu::ratesExecute
() {
34
// Triggers added are of type kEXISTING so here we rely on the Trigger Decision Tool for pass/fail.
35
// This is automatic so there is nothing to do here.
36
return
StatusCode::SUCCESS;
37
}
38
39
StatusCode
FullMenu::ratesFinalize
() {
40
ATH_MSG_INFO
(
"In ratesFinalize()"
);
41
return
StatusCode::SUCCESS;
42
}
FullMenu::FullMenu
FullMenu(const std::string &name, ISvcLocator *pSvcLocator)
Definition:
FullMenu.cxx:7
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition:
AthMsgStreamMacros.h:31
FullMenu::~FullMenu
virtual ~FullMenu()
Definition:
FullMenu.cxx:10
FullMenu::ratesInitialize
virtual StatusCode ratesInitialize() override
To be implemented by the user.
Definition:
FullMenu.cxx:13
FullMenu::ratesExecute
virtual StatusCode ratesExecute() override
To be implemented by the user.
Definition:
FullMenu.cxx:33
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition:
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
FullMenu::ratesFinalize
virtual StatusCode ratesFinalize() override
To be implemented by the user.
Definition:
FullMenu.cxx:39
ATH_CHECK
#define ATH_CHECK
Definition:
AthCheckMacros.h:40
name
std::string name
Definition:
Control/AthContainers/Root/debug.cxx:228
RatesAnalysisAlg::setTargetLumi
void setTargetLumi(const double lumi)
Set the target instantaneous luminosity.
Definition:
RatesAnalysisAlg.h:174
FullMenu::m_lumi
Gaudi::Property< float > m_lumi
Definition:
FullMenu.h:21
RatesAnalysisAlg::addAllExisting
StatusCode addAllExisting()
Register all existing triggers in the AOD into the rates algorithm.
Definition:
RatesAnalysisAlg.cxx:191
RatesAnalysisAlg
virtual analysis class for performing rates studies on AOD Pure virtual base class for trigger rate s...
Definition:
RatesAnalysisAlg.h:37
FullMenu.h
Generated on Mon Dec 23 2024 21:10:43 for ATLAS Offline Software by
1.8.18