ATLAS Offline Software
Loading...
Searching...
No Matches
BcidOffsetCorrection Class Reference

#include <BcidOffsetCorrection.h>

Inheritance diagram for BcidOffsetCorrection:
Collaboration diagram for BcidOffsetCorrection:

Public Member Functions

 BcidOffsetCorrection ()
 BcidOffsetCorrection (const std::string &name, TEnv *config, TString jetAlgo, TString calibAreaTag, bool isData)
virtual ~BcidOffsetCorrection ()
virtual StatusCode initialize () override
virtual StatusCode calibrate (xAOD::Jet &jet, JetEventInfo &) const override
virtual void setUnitsGeV (bool useGeV)
virtual StatusCode getNominalResolutionData (const xAOD::Jet &, double &) const
virtual StatusCode getNominalResolutionMC (const xAOD::Jet &, double &) const
void setLevel (MSG::Level lvl)
 Change the current logging level.
Functions providing the same interface as AthMessaging
bool msgLvl (const MSG::Level lvl) const
 Test the output level of the object.
MsgStream & msg () const
 The standard message stream.
MsgStream & msg (const MSG::Level lvl) const
 The standard message stream.

Protected Member Functions

virtual StatusCode setStartP4 (xAOD::Jet &jet) const

Protected Attributes

double m_GeV
std::string m_jetStartScale
std::string m_name

Private Member Functions

void initMessaging () const
 Initialize our message level and MessageSvc.

Private Attributes

TEnv * m_config {}
TString m_jetAlgo
TString m_calibAreaTag
bool m_isData {}
bool m_doEMECIW2bcid {}
bool m_doEMECIW3bcid {}
bool m_doHEC0bcid {}
bool m_doHEC1bcid {}
bool m_doHEC2bcid {}
bool m_doHEC3bcid {}
bool m_doFCal0OuterBcid {}
bool m_doFCal1OuterBcid {}
bool m_doFCal2OuterBcid {}
bool m_doFCal0bcid {}
bool m_doFCal1bcid {}
bool m_doFCal2bcid {}
bool m_doFCal0InnerBcid {}
bool m_doFCal1InnerBcid {}
bool m_doFCal2InnerBcid {}
std::unique_ptr< const TH2 > m_bcid_nCells_EMECIW2
std::unique_ptr< const TH2 > m_bcid_nCells_HEC0
std::unique_ptr< const TH2 > m_bcid_nCells_HEC1
std::unique_ptr< const TH2 > m_bcid_nCells_FCal0
std::unique_ptr< const TH2 > m_bcid_slope_EMECIW2_pos
std::unique_ptr< const TH2 > m_bcid_slope_HEC0_pos
std::unique_ptr< const TH2 > m_bcid_slope_HEC1_pos
std::unique_ptr< const TH2 > m_bcid_slope_EMECIW2_neg
std::unique_ptr< const TH2 > m_bcid_slope_HEC0_neg
std::unique_ptr< const TH2 > m_bcid_slope_HEC1_neg
std::unique_ptr< const TH2 > m_bcid_slope_FCal0
std::unique_ptr< const TH2 > m_bcid_slope_EMECIW2_8b4e_pos
std::unique_ptr< const TH2 > m_bcid_slope_HEC0_8b4e_pos
std::unique_ptr< const TH2 > m_bcid_slope_HEC1_8b4e_pos
std::unique_ptr< const TH2 > m_bcid_slope_EMECIW2_8b4e_neg
std::unique_ptr< const TH2 > m_bcid_slope_HEC0_8b4e_neg
std::unique_ptr< const TH2 > m_bcid_slope_HEC1_8b4e_neg
std::unique_ptr< const TH2 > m_bcid_slope_FCal0_8b4e
JetEventInfo m_eventInfo
std::string m_nm
 Message source name.
boost::thread_specific_ptr< MsgStream > m_msg_tls
 MsgStream instance (a std::cout like with print-out levels)
std::atomic< IMessageSvc * > m_imsg { nullptr }
 MessageSvc pointer.
std::atomic< MSG::Level > m_lvl { MSG::NIL }
 Current logging level.
std::atomic_flag m_initialized ATLAS_THREAD_SAFE = ATOMIC_FLAG_INIT
 Messaging initialized (initMessaging)

Detailed Description

Definition at line 23 of file BcidOffsetCorrection.h.

Constructor & Destructor Documentation

◆ BcidOffsetCorrection() [1/2]

BcidOffsetCorrection::BcidOffsetCorrection ( )

Definition at line 12 of file BcidOffsetCorrection.cxx.

14 m_config(nullptr), m_jetAlgo(""), m_calibAreaTag(""), m_isData(false)
15{}
JetCalibrationStep(const char *name="JetCalibrationStep")

◆ BcidOffsetCorrection() [2/2]

BcidOffsetCorrection::BcidOffsetCorrection ( const std::string & name,
TEnv * config,
TString jetAlgo,
TString calibAreaTag,
bool isData )

Definition at line 17 of file BcidOffsetCorrection.cxx.

18 : JetCalibrationStep(name.c_str()),
19 m_config(config), m_jetAlgo(std::move(jetAlgo)), m_calibAreaTag(std::move(calibAreaTag)), m_isData(isData)
20{}

◆ ~BcidOffsetCorrection()

BcidOffsetCorrection::~BcidOffsetCorrection ( )
virtualdefault

Member Function Documentation

◆ calibrate()

StatusCode BcidOffsetCorrection::calibrate ( xAOD::Jet & jet,
JetEventInfo & jetEventInfo ) const
overridevirtual

Implements JetCalibrationStep.

Definition at line 107 of file BcidOffsetCorrection.cxx.

107 {
108
109 // correction should only be applied to data
110 if (!m_isData){
111 jet.setAttribute<xAOD::JetFourMom_t>("JetBcidScaleMomentum",jet.jetP4());
112 return StatusCode::SUCCESS;
113 }
114
115 xAOD::JetFourMom_t jetStartP4;
116 ATH_CHECK( setStartP4(jet) );
117 jetStartP4 = jet.jetP4();
118
119 float startPt=jet.pt();
120 float calibPt=jet.pt();
121
122 // if we are not looking at 2017 or 2018 data then apply no correction and pass on the new jet name
123 if (jetEventInfo.runNumber()>358656 || jetEventInfo.runNumber()<325713){
124 jet.setAttribute<xAOD::JetFourMom_t>("JetBcidScaleMomentum",jetStartP4);
125 return StatusCode::SUCCESS;
126 }
127
128 bool is8b4e=false;
129 if (jetEventInfo.runNumber()>=334842 && jetEventInfo.runNumber()<=340453) is8b4e=true;
130
131 int bcidDistanceFromFront = jetEventInfo.bcidDistanceFromFront();
132 int bcidGapBeforeTrain = jetEventInfo.bcidGapBeforeTrain();
133 int bcidGapBeforeTrainMinus12 = jetEventInfo.bcidGapBeforeTrainMinus12();
134 if (!is8b4e){// this separates the sub-trains
135 if (bcidGapBeforeTrain<=15) bcidDistanceFromFront+=55;
136 }
137 if (is8b4e){// this separates sub-trains and the 1st and 2nd sets of 8b4e
138 if (bcidGapBeforeTrain==5 && bcidGapBeforeTrainMinus12==5) bcidDistanceFromFront+=24;
139 if (bcidGapBeforeTrain>5 && bcidGapBeforeTrain<20) bcidDistanceFromFront+=60;
140 if (bcidGapBeforeTrain==5 && bcidGapBeforeTrainMinus12>5 && bcidGapBeforeTrainMinus12<20) bcidDistanceFromFront+=72;
141 if (bcidGapBeforeTrain==5 && bcidGapBeforeTrainMinus12>20) bcidDistanceFromFront+=12;
142 }
143
144 xAOD::JetFourMom_t calibP4;
145 calibP4 = jet.jetP4();
146 static const SG::ConstAccessor<float> DetectorEtaAcc ("DetectorEta");
147 float detEta=DetectorEtaAcc(jet);
148 float mu=jetEventInfo.mu();
149
150 if (m_doEMECIW2bcid && !is8b4e){
151 if ((bcidDistanceFromFront>=0 && bcidDistanceFromFront<12) || (bcidDistanceFromFront>=55 && bcidDistanceFromFront<67)){// only apply correction to 1st 12 BCIDs
152 for (unsigned int i=1; i<=7; i++){
153 float nCells = m_bcid_nCells_EMECIW2->GetBinContent(i,static_cast<int>(abs(detEta)*10.0+1.0));
154 float slope = 0;
155 if (detEta>0) slope = m_bcid_slope_EMECIW2_pos->GetBinContent(i,bcidDistanceFromFront+1);
156 if (detEta<0) slope = m_bcid_slope_EMECIW2_neg->GetBinContent(i,bcidDistanceFromFront+1);
157 calibPt -= mu*nCells*slope;
158 }
159 }
160 }
161 if (m_doEMECIW2bcid && is8b4e){
162 if (bcidDistanceFromFront>=0 && bcidDistanceFromFront<115){// apply to all BCIDs
163 for (unsigned int i=1; i<=7; i++){
164 float nCells = m_bcid_nCells_EMECIW2->GetBinContent(i,static_cast<int>(abs(detEta)*10.0+1.0));
165 float slope = 0;
166 if (detEta>0) slope = m_bcid_slope_EMECIW2_8b4e_pos->GetBinContent(i,bcidDistanceFromFront+1);
167 if (detEta<0) slope = m_bcid_slope_EMECIW2_8b4e_neg->GetBinContent(i,bcidDistanceFromFront+1);
168 calibPt -= mu*nCells*slope;
169 }
170 }
171 }
172 if (m_doHEC0bcid && !is8b4e){
173 if ((bcidDistanceFromFront>=0 && bcidDistanceFromFront<10) || (bcidDistanceFromFront>=55 && bcidDistanceFromFront<65) || bcidDistanceFromFront==47 || bcidDistanceFromFront==102){// only apply correction to 1st 10 and last BCIDs
174 for (unsigned int i=1; i<=4; i++){
175 float nCells = m_bcid_nCells_HEC0->GetBinContent(i,static_cast<int>(abs(detEta)*10.0+1.0));
176 float slope = 0;
177 if (detEta>0) slope = m_bcid_slope_HEC0_pos->GetBinContent(i,bcidDistanceFromFront+1);
178 if (detEta<0) slope = m_bcid_slope_HEC0_neg->GetBinContent(i,bcidDistanceFromFront+1);
179 calibPt -= mu*nCells*slope;
180 }
181 }
182 }
183 if (m_doHEC0bcid && is8b4e){
184 if (bcidDistanceFromFront>=0 && bcidDistanceFromFront<115){// apply to all BCIDs
185 for (unsigned int i=1; i<=4; i++){
186 float nCells = m_bcid_nCells_HEC0->GetBinContent(i,static_cast<int>(abs(detEta)*10.0+1.0));
187 float slope = 0;
188 if (detEta>0) slope = m_bcid_slope_HEC0_8b4e_pos->GetBinContent(i,bcidDistanceFromFront+1);
189 if (detEta<0) slope = m_bcid_slope_HEC0_8b4e_neg->GetBinContent(i,bcidDistanceFromFront+1);
190 calibPt -= mu*nCells*slope;
191 }
192 }
193 }
194 if (m_doHEC1bcid && !is8b4e){
195 if ((bcidDistanceFromFront>=0 && bcidDistanceFromFront<10) || (bcidDistanceFromFront>=55 && bcidDistanceFromFront<65) || bcidDistanceFromFront==47 || bcidDistanceFromFront==102){// only apply correction to 1st 10 and last BCIDs
196 for (unsigned int i=1; i<=3; i++){
197 float nCells = m_bcid_nCells_HEC1->GetBinContent(i,static_cast<int>(abs(detEta)*10.0+1.0));
198 float slope = 0;
199 if (detEta>0) slope = m_bcid_slope_HEC1_pos->GetBinContent(i,bcidDistanceFromFront+1);
200 if (detEta<0) slope = m_bcid_slope_HEC1_neg->GetBinContent(i,bcidDistanceFromFront+1);
201 calibPt -= mu*nCells*slope;
202 }
203 }
204 }
205 if (m_doHEC1bcid && is8b4e){
206 if (bcidDistanceFromFront>=0 && bcidDistanceFromFront<115){// apply to all BCIDs
207 for (unsigned int i=1; i<=3; i++){
208 float nCells = m_bcid_nCells_HEC1->GetBinContent(i,static_cast<int>(abs(detEta)*10.0+1.0));
209 float slope = 0;
210 if (detEta>0) slope = m_bcid_slope_HEC1_8b4e_pos->GetBinContent(i,bcidDistanceFromFront+1);
211 if (detEta<0) slope = m_bcid_slope_HEC1_8b4e_neg->GetBinContent(i,bcidDistanceFromFront+1);
212 calibPt -= mu*nCells*slope;
213 }
214 }
215 }
216 if (m_doFCal0bcid && !is8b4e){
217 if ((bcidDistanceFromFront>=0 && bcidDistanceFromFront<12) || (bcidDistanceFromFront>=55 && bcidDistanceFromFront<67)){// only apply correction to 1st 12 BCIDs
218 for (unsigned int i=1; i<=6; i++){
219 float nCells = m_bcid_nCells_FCal0->GetBinContent(i,static_cast<int>(abs(detEta)*10.0+1.0));
220 float slope = 0;
221 slope = m_bcid_slope_FCal0->GetBinContent(i,bcidDistanceFromFront+1);
222 calibPt -= mu*nCells*slope;
223 }
224 }
225 }
226 if (m_doFCal0bcid && is8b4e){
227 if (bcidDistanceFromFront>=0 && bcidDistanceFromFront<115){// apply to all BCIDs
228 for (unsigned int i=1; i<=6; i++){
229 float nCells = m_bcid_nCells_FCal0->GetBinContent(i,static_cast<int>(abs(detEta)*10.0+1.0));
230 float slope = 0;
231 slope = m_bcid_slope_FCal0_8b4e->GetBinContent(i,bcidDistanceFromFront+1);
232 calibPt -= mu*nCells*slope;
233 }
234 }
235 }
236
237 calibP4*=calibPt/startPt;
238
239 //Transfer calibrated jet properties to the Jet object
240 jet.setAttribute<xAOD::JetFourMom_t>("JetBcidScaleMomentum",calibP4);
241 jet.setJetP4( calibP4 );
242
243 return StatusCode::SUCCESS;
244}
#define ATH_CHECK
Evaluate an expression and check for errors.
std::unique_ptr< const TH2 > m_bcid_nCells_HEC0
std::unique_ptr< const TH2 > m_bcid_slope_HEC1_neg
std::unique_ptr< const TH2 > m_bcid_slope_HEC0_pos
std::unique_ptr< const TH2 > m_bcid_slope_EMECIW2_8b4e_pos
std::unique_ptr< const TH2 > m_bcid_slope_HEC1_8b4e_pos
std::unique_ptr< const TH2 > m_bcid_nCells_FCal0
std::unique_ptr< const TH2 > m_bcid_slope_EMECIW2_pos
std::unique_ptr< const TH2 > m_bcid_slope_EMECIW2_neg
std::unique_ptr< const TH2 > m_bcid_slope_HEC0_8b4e_pos
std::unique_ptr< const TH2 > m_bcid_slope_HEC1_pos
std::unique_ptr< const TH2 > m_bcid_slope_HEC0_8b4e_neg
std::unique_ptr< const TH2 > m_bcid_nCells_EMECIW2
std::unique_ptr< const TH2 > m_bcid_slope_HEC0_neg
std::unique_ptr< const TH2 > m_bcid_slope_FCal0
std::unique_ptr< const TH2 > m_bcid_slope_HEC1_8b4e_neg
std::unique_ptr< const TH2 > m_bcid_nCells_HEC1
std::unique_ptr< const TH2 > m_bcid_slope_FCal0_8b4e
std::unique_ptr< const TH2 > m_bcid_slope_EMECIW2_8b4e_neg
virtual StatusCode setStartP4(xAOD::Jet &jet) const
Int_t bcidGapBeforeTrainMinus12()
UInt_t runNumber()
Int_t bcidDistanceFromFront()
Int_t bcidGapBeforeTrain()
double mu()
void setAttribute(const std::string &name, const T &v)
void setJetP4(const JetFourMom_t &p4)
Definition Jet_v1.cxx:171
virtual double pt() const
The transverse momentum ( ) of the particle.
Definition Jet_v1.cxx:44
JetFourMom_t jetP4() const
The full 4-momentum of the particle : internal jet type.
Definition Jet_v1.cxx:76
setRawEt setRawPhi nCells
ROOT::Math::LorentzVector< ROOT::Math::PtEtaPhiM4D< double > > JetFourMom_t
Base 4 Momentum type for Jet.
Definition JetTypes.h:17

◆ getNominalResolutionData()

StatusCode JetCalibrationStep::getNominalResolutionData ( const xAOD::Jet & ,
double &  ) const
virtualinherited

Reimplemented in JetSmearingCorrection.

Definition at line 33 of file JetCalibrationStep.cxx.

33 {
34 ATH_MSG_ERROR("Nominal data resolution requested from a jet calibration step that doesn't define it.");
35 return StatusCode::FAILURE;
36}
#define ATH_MSG_ERROR(x)

◆ getNominalResolutionMC()

StatusCode JetCalibrationStep::getNominalResolutionMC ( const xAOD::Jet & ,
double &  ) const
virtualinherited

Reimplemented in JetSmearingCorrection.

Definition at line 38 of file JetCalibrationStep.cxx.

38 {
39 ATH_MSG_ERROR("Nominal MC resolution requested from a jet calibration step that doesn't define it.");
40 return StatusCode::FAILURE;
41}

◆ initialize()

StatusCode BcidOffsetCorrection::initialize ( )
overridevirtual

Implements JetCalibrationStep.

Definition at line 25 of file BcidOffsetCorrection.cxx.

25 {
26
27 ATH_MSG_INFO("Initializing BCID offset correction");
28
29 if(!m_config){
30 ATH_MSG_ERROR("BCID offset correction tool received a null config pointer.");
31 return StatusCode::FAILURE;
32 }
33
34 m_doEMECIW2bcid = m_config->GetValue("ApplyEMECIW2bcid",true);
35 m_doEMECIW3bcid = m_config->GetValue("ApplyEMECIW3bcid",false);
36 m_doHEC0bcid = m_config->GetValue("ApplyHEC0bcid",true);
37 m_doHEC1bcid = m_config->GetValue("ApplyHEC1bcid",true);
38 m_doHEC2bcid = m_config->GetValue("ApplyHEC2bcid",false);
39 m_doHEC3bcid = m_config->GetValue("ApplyHEC3bcid",false);
40 m_doFCal0OuterBcid = m_config->GetValue("ApplyFCal0OuterBcid",false);
41 m_doFCal1OuterBcid = m_config->GetValue("ApplyFCal1OuterBcid",false);
42 m_doFCal2OuterBcid = m_config->GetValue("ApplyFCal2OuterBcid",false);
43 m_doFCal0bcid = m_config->GetValue("ApplyFCal0bcid",true);
44 m_doFCal1bcid = m_config->GetValue("ApplyFCal1bcid",false);
45 m_doFCal2bcid = m_config->GetValue("ApplyFCal2bcid",false);
46 m_doFCal0InnerBcid = m_config->GetValue("ApplyFCal0InnerBcid",false);
47 m_doFCal1InnerBcid = m_config->GetValue("ApplyFCal1InnerBcid",false);
48 m_doFCal2InnerBcid = m_config->GetValue("ApplyFCal2InnerBcid",false);
49
51 ATH_MSG_ERROR("You are attempting to apply the BCID offset correction to the EMEC3 or HEC back wheel cells which is not implemented.");
52 return StatusCode::FAILURE;
53 }
55 ATH_MSG_ERROR("You are attempting to apply the BCID offset correction to the outer small FCal cells which is not implemented.");
56 return StatusCode::FAILURE;
57 }
59 ATH_MSG_ERROR("You are attempting to apply the BCID offset correction to the large FCal1/2 cells which is not implemented.");
60 return StatusCode::FAILURE;
61 }
63 ATH_MSG_ERROR("You are attempting to apply the BCID offset correction to the inner small FCal cells which is not implemented.");
64 return StatusCode::FAILURE;
65 }
66
67 m_jetStartScale = m_config->GetValue("BcidStartingScale","JetConstitScaleMomentum");
68
69 //find the ROOT file containing the BCID slopes and numbers of cells.
70 TString BCIDFile = m_config->GetValue("BCIDOffsetFile","");
71 if ( BCIDFile.EqualTo("empty") ) {
72 ATH_MSG_ERROR("No BCIDOffsetFile specified. Aborting.");
73 return StatusCode::FAILURE;
74 }
75 BCIDFile.Insert(14,m_calibAreaTag);
76 TString fileName = PathResolverFindCalibFile(BCIDFile.Data());
77 std::unique_ptr<TFile> inputFile(TFile::Open(fileName));
78 if (!inputFile){
79 ATH_MSG_ERROR("Cannot open BCID offset calibration file" << fileName);
80 return StatusCode::FAILURE;
81 }
82
83 m_bcid_nCells_EMECIW2 = JetCalibUtils::GetHisto2(*inputFile,"bcid_nCells_EMECIW2");
84 m_bcid_nCells_HEC0 = JetCalibUtils::GetHisto2(*inputFile,"bcid_nCells_HEC0");
85 m_bcid_nCells_HEC1 = JetCalibUtils::GetHisto2(*inputFile,"bcid_nCells_HEC1");
86 m_bcid_nCells_FCal0 = JetCalibUtils::GetHisto2(*inputFile,"bcid_nCells_FCal0big");
87
88 m_bcid_slope_EMECIW2_pos = JetCalibUtils::GetHisto2(*inputFile,"bcid_slope_EMECIW2_pos");
89 m_bcid_slope_EMECIW2_neg = JetCalibUtils::GetHisto2(*inputFile,"bcid_slope_EMECIW2_neg");
90 m_bcid_slope_HEC0_pos = JetCalibUtils::GetHisto2(*inputFile,"bcid_slope_HEC0_pos");
91 m_bcid_slope_HEC0_neg = JetCalibUtils::GetHisto2(*inputFile,"bcid_slope_HEC0_neg");
92 m_bcid_slope_HEC1_pos = JetCalibUtils::GetHisto2(*inputFile,"bcid_slope_HEC1_pos");
93 m_bcid_slope_HEC1_neg = JetCalibUtils::GetHisto2(*inputFile,"bcid_slope_HEC1_neg");
94 m_bcid_slope_FCal0 = JetCalibUtils::GetHisto2(*inputFile,"bcid_slope_FCal0big");
95
96 m_bcid_slope_EMECIW2_8b4e_pos = JetCalibUtils::GetHisto2(*inputFile,"bcid_slope_EMECIW2_8b4e_pos");
97 m_bcid_slope_EMECIW2_8b4e_neg = JetCalibUtils::GetHisto2(*inputFile,"bcid_slope_EMECIW2_8b4e_neg");
98 m_bcid_slope_HEC0_8b4e_pos = JetCalibUtils::GetHisto2(*inputFile,"bcid_slope_HEC0_8b4e_pos");
99 m_bcid_slope_HEC0_8b4e_neg = JetCalibUtils::GetHisto2(*inputFile,"bcid_slope_HEC0_8b4e_neg");
100 m_bcid_slope_HEC1_8b4e_pos = JetCalibUtils::GetHisto2(*inputFile,"bcid_slope_HEC1_8b4e_pos");
101 m_bcid_slope_HEC1_8b4e_neg = JetCalibUtils::GetHisto2(*inputFile,"bcid_slope_HEC1_8b4e_neg");
102 m_bcid_slope_FCal0_8b4e = JetCalibUtils::GetHisto2(*inputFile,"bcid_slope_FCal0big_8b4e");
103
104 return StatusCode::SUCCESS;
105}
#define ATH_MSG_INFO(x)
std::string PathResolverFindCalibFile(const std::string &logical_file_name)
std::unique_ptr< const TH2 > GetHisto2(TFile &file, const TString &hname)

◆ 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.

40{
42 // If user did not set an explicit level, set a default
43 if (m_lvl == MSG::NIL) {
44 m_lvl = m_imsg ?
45 static_cast<MSG::Level>( m_imsg.load()->outputLevel(m_nm) ) :
46 MSG::INFO;
47 }
48}
std::string m_nm
Message source name.
std::atomic< IMessageSvc * > m_imsg
MessageSvc pointer.
std::atomic< MSG::Level > m_lvl
Current logging level.
IMessageSvc * getMessageSvc(bool quiet=false)

◆ 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.

49 {
50#ifndef XAOD_STANDALONE
51 return ::AthMessaging::msg();
52#else // not XAOD_STANDALONE
53 return m_msg;
54#endif // not XAOD_STANDALONE
55 }

◆ msg() [2/2]

MsgStream & asg::AsgMessaging::msg ( const MSG::Level lvl) const
inherited

The standard message stream.

Parameters
lvlThe 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.

57 {
58#ifndef XAOD_STANDALONE
59 return ::AthMessaging::msg( lvl );
60#else // not XAOD_STANDALONE
61 m_msg << lvl;
62 return m_msg;
63#endif // not XAOD_STANDALONE
64 }

◆ msgLvl()

bool asg::AsgMessaging::msgLvl ( const MSG::Level lvl) const
inherited

Test the output level of the object.

Parameters
lvlThe 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.

41 {
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
47 }

◆ setLevel()

void AthMessaging::setLevel ( MSG::Level lvl)
inherited

Change the current logging level.

Use this rather than msg().setLevel() for proper operation with MT.

Definition at line 28 of file AthMessaging.cxx.

29{
30 m_lvl = lvl;
31}

◆ setStartP4()

StatusCode JetCalibrationStep::setStartP4 ( xAOD::Jet & jet) const
protectedvirtualinherited

Definition at line 21 of file JetCalibrationStep.cxx.

21 {
23 if ( m_jetStartScale.compare("Default") == 0 ) {
24 return StatusCode::SUCCESS;
25 } else if ( jet.getAttribute<xAOD::JetFourMom_t>(m_jetStartScale.c_str(),tmp) ) {
26 jet.setJetP4(tmp);
27 return StatusCode::SUCCESS;
28 }
29 ATH_MSG_WARNING("Jet does not have the requested momentum state: " << m_jetStartScale);
30 return StatusCode::FAILURE;
31}
#define ATH_MSG_WARNING(x)
bool getAttribute(AttributeID type, T &value) const
Retrieve attribute moment by enum.

◆ setUnitsGeV()

virtual void JetCalibrationStep::setUnitsGeV ( bool useGeV)
inlinevirtualinherited

Definition at line 30 of file JetCalibrationStep.h.

30{ if (useGeV) m_GeV=1; else m_GeV=1000; }

Member Data Documentation

◆ ATLAS_THREAD_SAFE

std::atomic_flag m_initialized AthMessaging::ATLAS_THREAD_SAFE = ATOMIC_FLAG_INIT
mutableprivateinherited

Messaging initialized (initMessaging)

Definition at line 141 of file AthMessaging.h.

◆ m_bcid_nCells_EMECIW2

std::unique_ptr<const TH2> BcidOffsetCorrection::m_bcid_nCells_EMECIW2
private

Definition at line 57 of file BcidOffsetCorrection.h.

◆ m_bcid_nCells_FCal0

std::unique_ptr<const TH2> BcidOffsetCorrection::m_bcid_nCells_FCal0
private

Definition at line 60 of file BcidOffsetCorrection.h.

◆ m_bcid_nCells_HEC0

std::unique_ptr<const TH2> BcidOffsetCorrection::m_bcid_nCells_HEC0
private

Definition at line 58 of file BcidOffsetCorrection.h.

◆ m_bcid_nCells_HEC1

std::unique_ptr<const TH2> BcidOffsetCorrection::m_bcid_nCells_HEC1
private

Definition at line 59 of file BcidOffsetCorrection.h.

◆ m_bcid_slope_EMECIW2_8b4e_neg

std::unique_ptr<const TH2> BcidOffsetCorrection::m_bcid_slope_EMECIW2_8b4e_neg
private

Definition at line 76 of file BcidOffsetCorrection.h.

◆ m_bcid_slope_EMECIW2_8b4e_pos

std::unique_ptr<const TH2> BcidOffsetCorrection::m_bcid_slope_EMECIW2_8b4e_pos
private

Definition at line 72 of file BcidOffsetCorrection.h.

◆ m_bcid_slope_EMECIW2_neg

std::unique_ptr<const TH2> BcidOffsetCorrection::m_bcid_slope_EMECIW2_neg
private

Definition at line 66 of file BcidOffsetCorrection.h.

◆ m_bcid_slope_EMECIW2_pos

std::unique_ptr<const TH2> BcidOffsetCorrection::m_bcid_slope_EMECIW2_pos
private

Definition at line 62 of file BcidOffsetCorrection.h.

◆ m_bcid_slope_FCal0

std::unique_ptr<const TH2> BcidOffsetCorrection::m_bcid_slope_FCal0
private

Definition at line 70 of file BcidOffsetCorrection.h.

◆ m_bcid_slope_FCal0_8b4e

std::unique_ptr<const TH2> BcidOffsetCorrection::m_bcid_slope_FCal0_8b4e
private

Definition at line 80 of file BcidOffsetCorrection.h.

◆ m_bcid_slope_HEC0_8b4e_neg

std::unique_ptr<const TH2> BcidOffsetCorrection::m_bcid_slope_HEC0_8b4e_neg
private

Definition at line 77 of file BcidOffsetCorrection.h.

◆ m_bcid_slope_HEC0_8b4e_pos

std::unique_ptr<const TH2> BcidOffsetCorrection::m_bcid_slope_HEC0_8b4e_pos
private

Definition at line 73 of file BcidOffsetCorrection.h.

◆ m_bcid_slope_HEC0_neg

std::unique_ptr<const TH2> BcidOffsetCorrection::m_bcid_slope_HEC0_neg
private

Definition at line 67 of file BcidOffsetCorrection.h.

◆ m_bcid_slope_HEC0_pos

std::unique_ptr<const TH2> BcidOffsetCorrection::m_bcid_slope_HEC0_pos
private

Definition at line 63 of file BcidOffsetCorrection.h.

◆ m_bcid_slope_HEC1_8b4e_neg

std::unique_ptr<const TH2> BcidOffsetCorrection::m_bcid_slope_HEC1_8b4e_neg
private

Definition at line 78 of file BcidOffsetCorrection.h.

◆ m_bcid_slope_HEC1_8b4e_pos

std::unique_ptr<const TH2> BcidOffsetCorrection::m_bcid_slope_HEC1_8b4e_pos
private

Definition at line 74 of file BcidOffsetCorrection.h.

◆ m_bcid_slope_HEC1_neg

std::unique_ptr<const TH2> BcidOffsetCorrection::m_bcid_slope_HEC1_neg
private

Definition at line 68 of file BcidOffsetCorrection.h.

◆ m_bcid_slope_HEC1_pos

std::unique_ptr<const TH2> BcidOffsetCorrection::m_bcid_slope_HEC1_pos
private

Definition at line 64 of file BcidOffsetCorrection.h.

◆ m_calibAreaTag

TString BcidOffsetCorrection::m_calibAreaTag
private

Definition at line 38 of file BcidOffsetCorrection.h.

◆ m_config

TEnv* BcidOffsetCorrection::m_config {}
private

Definition at line 37 of file BcidOffsetCorrection.h.

37{};

◆ m_doEMECIW2bcid

bool BcidOffsetCorrection::m_doEMECIW2bcid {}
private

Definition at line 41 of file BcidOffsetCorrection.h.

41{};

◆ m_doEMECIW3bcid

bool BcidOffsetCorrection::m_doEMECIW3bcid {}
private

Definition at line 42 of file BcidOffsetCorrection.h.

42{};

◆ m_doFCal0bcid

bool BcidOffsetCorrection::m_doFCal0bcid {}
private

Definition at line 50 of file BcidOffsetCorrection.h.

50{};

◆ m_doFCal0InnerBcid

bool BcidOffsetCorrection::m_doFCal0InnerBcid {}
private

Definition at line 53 of file BcidOffsetCorrection.h.

53{};

◆ m_doFCal0OuterBcid

bool BcidOffsetCorrection::m_doFCal0OuterBcid {}
private

Definition at line 47 of file BcidOffsetCorrection.h.

47{};

◆ m_doFCal1bcid

bool BcidOffsetCorrection::m_doFCal1bcid {}
private

Definition at line 51 of file BcidOffsetCorrection.h.

51{};

◆ m_doFCal1InnerBcid

bool BcidOffsetCorrection::m_doFCal1InnerBcid {}
private

Definition at line 54 of file BcidOffsetCorrection.h.

54{};

◆ m_doFCal1OuterBcid

bool BcidOffsetCorrection::m_doFCal1OuterBcid {}
private

Definition at line 48 of file BcidOffsetCorrection.h.

48{};

◆ m_doFCal2bcid

bool BcidOffsetCorrection::m_doFCal2bcid {}
private

Definition at line 52 of file BcidOffsetCorrection.h.

52{};

◆ m_doFCal2InnerBcid

bool BcidOffsetCorrection::m_doFCal2InnerBcid {}
private

Definition at line 55 of file BcidOffsetCorrection.h.

55{};

◆ m_doFCal2OuterBcid

bool BcidOffsetCorrection::m_doFCal2OuterBcid {}
private

Definition at line 49 of file BcidOffsetCorrection.h.

49{};

◆ m_doHEC0bcid

bool BcidOffsetCorrection::m_doHEC0bcid {}
private

Definition at line 43 of file BcidOffsetCorrection.h.

43{};

◆ m_doHEC1bcid

bool BcidOffsetCorrection::m_doHEC1bcid {}
private

Definition at line 44 of file BcidOffsetCorrection.h.

44{};

◆ m_doHEC2bcid

bool BcidOffsetCorrection::m_doHEC2bcid {}
private

Definition at line 45 of file BcidOffsetCorrection.h.

45{};

◆ m_doHEC3bcid

bool BcidOffsetCorrection::m_doHEC3bcid {}
private

Definition at line 46 of file BcidOffsetCorrection.h.

46{};

◆ m_eventInfo

JetEventInfo BcidOffsetCorrection::m_eventInfo
private

Definition at line 82 of file BcidOffsetCorrection.h.

◆ m_GeV

double JetCalibrationStep::m_GeV
protectedinherited

Definition at line 40 of file JetCalibrationStep.h.

◆ m_imsg

std::atomic<IMessageSvc*> AthMessaging::m_imsg { nullptr }
mutableprivateinherited

MessageSvc pointer.

Definition at line 135 of file AthMessaging.h.

135{ nullptr };

◆ m_isData

bool BcidOffsetCorrection::m_isData {}
private

Definition at line 39 of file BcidOffsetCorrection.h.

39{};

◆ m_jetAlgo

TString BcidOffsetCorrection::m_jetAlgo
private

Definition at line 38 of file BcidOffsetCorrection.h.

◆ m_jetStartScale

std::string JetCalibrationStep::m_jetStartScale
protectedinherited

Definition at line 41 of file JetCalibrationStep.h.

◆ m_lvl

std::atomic<MSG::Level> AthMessaging::m_lvl { MSG::NIL }
mutableprivateinherited

Current logging level.

Definition at line 138 of file AthMessaging.h.

138{ MSG::NIL };

◆ 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_name

std::string JetCalibrationStep::m_name
protectedinherited

Definition at line 42 of file JetCalibrationStep.h.

◆ m_nm

std::string AthMessaging::m_nm
privateinherited

Message source name.

Definition at line 129 of file AthMessaging.h.


The documentation for this class was generated from the following files: