![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
15 m_pileupReweightingTool(
"PileupReweightingTool"),
16 m_systNominal(
CP::SystematicSet()),
17 m_systDataSFUp(
CP::SystematicSet()),
18 m_systDataSFDown(
CP::SystematicSet()) {
23 ATH_MSG_INFO(
" top::PileupScaleFactorCalculator initialize");
32 return StatusCode::SUCCESS;
40 "Failed to retrieve EventInfo");
43 "Failed to set pileup reweighting to nominal value");
46 "Failed to apply pileup weight");
51 eventInfo->
auxdecor<
float>(
"corrected_actualInteractionsPerCrossing") = actualMu;
57 eventInfo->
auxdecor<
unsigned long long>(
"PileupWeight_Hash") = prw_hash;
65 "Failed to switch pileup reweighting tool to data SF up");
72 eventInfo->
auxdecor<
float>(
"PileupWeight_UP") = pileupWeight;
79 }
else if (!
m_config->isAFII() &&
m_config->PileupActualMu_FS().size() > 0) {
84 eventInfo->
auxdecor<
float>(
"corrected_averageInteractionsPerCrossing_UP") = lumiBlockMu;
89 "Failed to switch pileup reweighting tool to data SF down");
93 eventInfo->
auxdecor<
float>(
"PileupWeight_DOWN") = pileupWeight;
100 }
else if (!
m_config->isAFII() &&
m_config->PileupActualMu_FS().size() > 0) {
105 eventInfo->
auxdecor<
float>(
"corrected_averageInteractionsPerCrossing_DOWN") = lumiBlockMu;
110 "Failed to switch pileup reweighting tool back to nominal");
112 return StatusCode::SUCCESS;
def retrieve(aClass, aKey=None)
CP::SystematicSet m_systDataSFUp
TopConfig A simple configuration that is NOT a singleton.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Select isolated Photons, Electrons and Muons.
Decorator< T, ALLOC >::reference_type auxdecor(const std::string &name) const
Fetch an aux decoration, as a non-const reference.
CP::SystematicSet m_systNominal
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
::StatusCode StatusCode
StatusCode definition for legacy code.
void check(bool thingToCheck, const std::string &usefulFailureMessage)
Print an error message and terminate if thingToCheck is false.
void insert(const SystematicVariation &systematic)
description: insert a systematic into the set
ToolHandle< CP::IPileupReweightingTool > m_pileupReweightingTool
Pileup Reweighting Tool.
Class describing the basic event information.
StatusCode initialize()
Dummy implementation of the initialisation function.
std::shared_ptr< top::TopConfig > m_config
PileupScaleFactorCalculator(const std::string &name)
CP::SystematicSet m_systDataSFDown