ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
Algorithms
TruthPartonLevelAnalysisAlgorithms
Root
RunPartonHistoryAlg.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
6
7
#include "
TruthPartonLevelAnalysisAlgorithms/RunPartonHistoryAlg.h
"
8
9
#include "
PartonHistory/PartonSchemeConfig.h
"
10
11
namespace
CP
{
12
RunPartonHistoryAlg::RunPartonHistoryAlg
(
const
std::string&
name
,
13
ISvcLocator* pSvcLocator)
14
:
EL
::
AnaAlgorithm
(
name
, pSvcLocator) {
15
}
16
17
StatusCode
RunPartonHistoryAlg::initialize
() {
18
ANA_MSG_INFO
(
"Initializing PartonHistory "
<<
name
());
19
ANA_MSG_INFO
(
" - partonScheme: "
<<
m_PartonScheme
);
20
21
// Look up scheme configuration from the registry
22
try
{
23
const
PartonSchemeConfig
& cfg =
getSchemeConfig
(
m_PartonScheme
);
24
m_PartonHistory
= std::make_unique<CalcPartonHistory>(
25
name
() +
"_CalcPartonHistory"
, cfg.truthCollections);
26
m_PartonHistory
->configure(cfg);
27
}
catch
(
const
std::runtime_error&
e
) {
28
ANA_MSG_ERROR
(
" ==> PartonScheme "
<<
m_PartonScheme
29
<<
" is not recognised! aborting."
);
30
return
StatusCode::FAILURE;
31
}
32
ANA_CHECK
(
m_PartonHistory
->setProperty(
"prefix"
,
m_PartonScheme
));
33
ANA_CHECK
(
m_PartonHistory
->setProperty(
"symbolFCNC"
,
m_SymbolFCNC
));
34
ANA_CHECK
(
m_PartonHistory
->initialize());
35
return
StatusCode::SUCCESS;
36
}
37
38
StatusCode
RunPartonHistoryAlg::execute
(
const
EventContext&
/*ctx*/
) {
39
ANA_CHECK
(
m_PartonHistory
->execute());
40
return
StatusCode::SUCCESS;
41
}
42
43
}
// namespace CP
ANA_MSG_ERROR
#define ANA_MSG_ERROR(xmsg,...)
Macro printing error messages.
Definition
Control/AthToolSupport/AsgMessaging/AsgMessaging/MessageCheck.h:295
ANA_MSG_INFO
#define ANA_MSG_INFO(xmsg,...)
Macro printing info messages.
Definition
Control/AthToolSupport/AsgMessaging/AsgMessaging/MessageCheck.h:291
ANA_CHECK
#define ANA_CHECK(EXP)
check whether the given expression was successful
Definition
Control/AthToolSupport/AsgMessaging/AsgMessaging/MessageCheck.h:325
PartonSchemeConfig.h
RunPartonHistoryAlg.h
CP::RunPartonHistoryAlg::initialize
virtual StatusCode initialize() override
Definition
RunPartonHistoryAlg.cxx:17
CP::RunPartonHistoryAlg::m_SymbolFCNC
Gaudi::Property< std::string > m_SymbolFCNC
Definition
RunPartonHistoryAlg.h:26
CP::RunPartonHistoryAlg::m_PartonHistory
std::unique_ptr< CalcPartonHistory > m_PartonHistory
Definition
RunPartonHistoryAlg.h:27
CP::RunPartonHistoryAlg::m_PartonScheme
Gaudi::Property< std::string > m_PartonScheme
Definition
RunPartonHistoryAlg.h:25
CP::RunPartonHistoryAlg::RunPartonHistoryAlg
RunPartonHistoryAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition
RunPartonHistoryAlg.cxx:12
EL::AnaAlgorithm::AnaAlgorithm
AnaAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
constructor with parameters
Definition
AnaAlgorithm.cxx:40
EL::AnaAlgorithm::execute
virtual::StatusCode execute()
execute this algorithm
Definition
AnaAlgorithm.cxx:315
CP
Select isolated Photons, Electrons and Muons.
Definition
Control/xAODRootAccess/xAODRootAccess/TEvent.h:27
CP::getSchemeConfig
const PartonSchemeConfig & getSchemeConfig(const std::string &schemeName)
Returns the configuration for a given scheme name.
Definition
PartonSchemeConfig.cxx:14
EL
This module defines the arguments passed from the BATCH driver to the BATCH worker.
Definition
AsgComponentFactories.h:16
xAOD::name
name
Definition
TriggerMenuJson_v1.cxx:29
xAOD::e
setPy e
Definition
CompositeParticle_v1.cxx:166
CP::PartonSchemeConfig
Top-level configuration for a named parton history scheme.
Definition
PartonSchemeConfig.h:83
Generated on
for ATLAS Offline Software by
1.17.0