#include <GainUncertainty.h>
Definition at line 17 of file GainUncertainty.h.
◆ GainType
◆ GainUncertainty()
egGain::GainUncertainty::GainUncertainty |
( |
const std::string & |
filename, |
|
|
bool |
splitGainUnc = false , |
|
|
const std::string & |
name = "GainUncertainty" , |
|
|
bool |
setInterpolation = false |
|
) |
| |
Definition at line 17 of file GainUncertainty.cxx.
22 std::unique_ptr<TFile> gainFile(TFile::Open(
filename.c_str(),
"READ"));
25 (TH1*)(gainFile->Get(
"alpha_specialGainRun"))))
33 sprintf(
name,
"gain_Impact_elec_%d",
i);
37 sprintf(
name,
"gain_Impact_conv_%d",
i);
41 sprintf(
name,
"gain_Impact_unco_%d",
i);
47 sprintf(
name,
"gain_Impact_elec_%d_medium",
i);
52 sprintf(
name,
"gain_Impact_conv_%d_medium",
i);
57 sprintf(
name,
"gain_Impact_unco_%d_medium",
i);
62 sprintf(
name,
"gain_Impact_elec_%d_low",
i);
67 sprintf(
name,
"gain_Impact_conv_%d_low",
i);
72 sprintf(
name,
"gain_Impact_unco_%d_low",
i);
◆ ~GainUncertainty()
egGain::GainUncertainty::~GainUncertainty |
( |
| ) |
|
◆ getUncertainty()
Definition at line 106 of file GainUncertainty.cxx.
110 double aeta = std::fabs(etaCalo_input);
114 else if (aeta < 1.37)
116 else if (aeta < 1.52)
118 else if (aeta < 1.80)
120 else if (aeta < 2.50)
124 ATH_MSG_VERBOSE(
"GainUncertainty::getUncertainty " << etaCalo_input <<
" "
125 << et_input <<
" " << ptype
126 <<
" ibin " << ibin);
129 if (et_input > 999999.)
136 TH1* hImpact =
nullptr;
147 "Trying to get Gain correction of not allowed particle type");
162 "Trying to get Gain correction of not allowed particle type");
176 "Trying to get Gain correction of not allowed particle type");
181 double max_et = hImpact->GetXaxis()->GetBinUpEdge(hImpact->GetNbinsX());
183 if (0.001 * et_input > max_et) {
184 et_input = (max_et - 1.) * 1000.;
189 impact = hImpact->Interpolate(0.001 * et_input);
191 "L2 gain impact without interpolation: "
192 << hImpact->GetBinContent(hImpact->FindFixBin(0.001 * et_input)));
194 << hImpact->Interpolate(0.001 * et_input));
196 impact = hImpact->GetBinContent(hImpact->FindFixBin(0.001 * et_input));
200 if (useL2GainUncertainty)
201 ATH_MSG_INFO(
"Applying 100% uncertainy on l2 gain corrections");
208 double_t sigmaE = alphaG * impact / impactZee;
210 ATH_MSG_VERBOSE(
"alpha_specialGainRun, gain_impact_Zee, impact, sigmaE = "
211 << alphaG <<
" " << impactZee <<
" " << impact <<
" "
◆ initMessaging()
void AthMessaging::initMessaging |
( |
| ) |
const |
|
privateinherited |
Initialize our message level and MessageSvc.
This method should only be called once.
Definition at line 39 of file AthMessaging.cxx.
◆ msg() [1/2]
MsgStream & asg::AsgMessaging::msg |
( |
| ) |
const |
|
inherited |
The standard message stream.
- Returns
- A reference to the default message stream of this object.
Definition at line 49 of file AsgMessaging.cxx.
50 #ifndef XAOD_STANDALONE
52 #else // not XAOD_STANDALONE
54 #endif // not XAOD_STANDALONE
◆ msg() [2/2]
MsgStream & asg::AsgMessaging::msg |
( |
const MSG::Level |
lvl | ) |
const |
|
inherited |
The standard message stream.
- Parameters
-
lvl | The message level to set the stream to |
- Returns
- A reference to the default message stream, set to level "lvl"
Definition at line 57 of file AsgMessaging.cxx.
58 #ifndef XAOD_STANDALONE
60 #else // not XAOD_STANDALONE
63 #endif // not XAOD_STANDALONE
◆ msgLvl()
bool asg::AsgMessaging::msgLvl |
( |
const MSG::Level |
lvl | ) |
const |
|
inherited |
Test the output level of the object.
- Parameters
-
lvl | The message level to test against |
- Returns
- boolean Indicting if messages at given level will be printed
-
true
If messages at level "lvl" will be printed
Definition at line 41 of file AsgMessaging.cxx.
42 #ifndef XAOD_STANDALONE
43 return ::AthMessaging::msgLvl( lvl );
44 #else // not XAOD_STANDALONE
45 return m_msg.msgLevel( lvl );
46 #endif // not XAOD_STANDALONE
◆ setLevel()
void AthMessaging::setLevel |
( |
MSG::Level |
lvl | ) |
|
|
inherited |
◆ ATLAS_THREAD_SAFE
std::atomic_flag m_initialized AthMessaging::ATLAS_THREAD_SAFE = ATOMIC_FLAG_INIT |
|
mutableprivateinherited |
◆ m_alpha_specialGainRun
TH1* egGain::GainUncertainty::m_alpha_specialGainRun |
|
private |
◆ m_gain_Impact_conv
TH1* egGain::GainUncertainty::m_gain_Impact_conv[s_nEtaBins] {} |
|
private |
◆ m_gain_Impact_conv_low
TH1* egGain::GainUncertainty::m_gain_Impact_conv_low[s_nEtaBins] {} |
|
private |
◆ m_gain_Impact_conv_medium
TH1* egGain::GainUncertainty::m_gain_Impact_conv_medium[s_nEtaBins] {} |
|
private |
◆ m_gain_Impact_elec
TH1* egGain::GainUncertainty::m_gain_Impact_elec[s_nEtaBins] {} |
|
private |
◆ m_gain_Impact_elec_low
TH1* egGain::GainUncertainty::m_gain_Impact_elec_low[s_nEtaBins] {} |
|
private |
◆ m_gain_Impact_elec_medium
TH1* egGain::GainUncertainty::m_gain_Impact_elec_medium[s_nEtaBins] {} |
|
private |
◆ m_gain_Impact_unco
TH1* egGain::GainUncertainty::m_gain_Impact_unco[s_nEtaBins] {} |
|
private |
◆ m_gain_Impact_unco_low
TH1* egGain::GainUncertainty::m_gain_Impact_unco_low[s_nEtaBins] {} |
|
private |
◆ m_gain_Impact_unco_medium
TH1* egGain::GainUncertainty::m_gain_Impact_unco_medium[s_nEtaBins] {} |
|
private |
◆ m_gain_impact_Zee
TH1* egGain::GainUncertainty::m_gain_impact_Zee |
|
private |
◆ m_imsg
std::atomic<IMessageSvc*> AthMessaging::m_imsg { nullptr } |
|
mutableprivateinherited |
◆ m_lvl
std::atomic<MSG::Level> AthMessaging::m_lvl { MSG::NIL } |
|
mutableprivateinherited |
◆ m_msg_tls
boost::thread_specific_ptr<MsgStream> AthMessaging::m_msg_tls |
|
mutableprivateinherited |
MsgStream instance (a std::cout like with print-out levels)
Definition at line 132 of file AthMessaging.h.
◆ m_nm
std::string AthMessaging::m_nm |
|
privateinherited |
◆ m_useInterpolation
bool egGain::GainUncertainty::m_useInterpolation |
|
private |
◆ s_nEtaBins
const int egGain::GainUncertainty::s_nEtaBins = 5 |
|
staticprivate |
The documentation for this class was generated from the following files: