The ConversionHelper struct is stll used by egammaMVATree in PhysicsAnalysis but not the functions in the dictionaries above.
More...
#include <egammaMVAFunctions.h>
|
| void | initMessaging () const |
| | Initialize our message level and MessageSvc.
|
The ConversionHelper struct is stll used by egammaMVATree in PhysicsAnalysis but not the functions in the dictionaries above.
We could deprecate them
Definition at line 324 of file egammaMVAFunctions.h.
◆ ConversionHelper() [1/2]
| egammaMVAFunctions::ConversionHelper::ConversionHelper |
( |
const xAOD::Photon * | ph | ) |
|
|
inline |
Definition at line 326 of file egammaMVAFunctions.h.
327 : asg::AsgMessaging("ConversionHelper"),
332 {
333
336
337 static const SG::AuxElement::Accessor<float> accPt1("pt1");
338 static const SG::AuxElement::Accessor<float> accPt2("pt2");
340 {
343 }
344 else
345 {
346 ATH_MSG_WARNING(
"pt1/pt2 not available, will approximate from first measurements");
349 }
350 }
#define ATH_MSG_WARNING(x)
const xAOD::Vertex * vertex(size_t index=0) const
Pointer to the xAOD::Vertex/es that match the photon candidate.
float getPtAtFirstMeasurement(const xAOD::TrackParticle *tp)
const xAOD::Vertex * m_vertex
const xAOD::TrackParticle * m_tp0
const xAOD::TrackParticle * m_tp1
◆ ConversionHelper() [2/2]
| egammaMVAFunctions::ConversionHelper::ConversionHelper |
( |
const xAOD::Photon & | ph | ) |
|
|
inline |
◆ 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
43 if (
m_lvl == MSG::NIL) {
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
53 return m_msg;
54#endif
55 }
◆ 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.
57 {
58#ifndef XAOD_STANDALONE
59 return ::AthMessaging::msg( lvl );
60#else
61 m_msg << lvl;
62 return m_msg;
63#endif
64 }
◆ 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.
41 {
42#ifndef XAOD_STANDALONE
43 return ::AthMessaging::msgLvl( lvl );
44#else
45 return m_msg.msgLevel( lvl );
46#endif
47 }
◆ ph_convtrk1nPixHits()
| int egammaMVAFunctions::ConversionHelper::ph_convtrk1nPixHits |
( |
| ) |
const |
|
inline |
Definition at line 357 of file egammaMVAFunctions.h.
357 {
358 if (!
m_tp0) {
return 0; }
361 else {
363 return 0;
364 }
365 }
@ numberOfPixelHits
these are the pixel hits, including the b-layer [unit8_t].
◆ ph_convtrk1nSCTHits()
| int egammaMVAFunctions::ConversionHelper::ph_convtrk1nSCTHits |
( |
| ) |
const |
|
inline |
Definition at line 375 of file egammaMVAFunctions.h.
375 {
376 if (!
m_tp0) {
return 0; }
379 else {
381 return 0;
382 }
383 }
@ numberOfSCTHits
number of hits in SCT [unit8_t].
◆ ph_convtrk2nPixHits()
| int egammaMVAFunctions::ConversionHelper::ph_convtrk2nPixHits |
( |
| ) |
const |
|
inline |
◆ ph_convtrk2nSCTHits()
| int egammaMVAFunctions::ConversionHelper::ph_convtrk2nSCTHits |
( |
| ) |
const |
|
inline |
◆ ph_pt1conv()
| float egammaMVAFunctions::ConversionHelper::ph_pt1conv |
( |
| ) |
const |
|
inline |
◆ ph_pt2conv()
| float egammaMVAFunctions::ConversionHelper::ph_pt2conv |
( |
| ) |
const |
|
inline |
◆ ph_ptconv()
| float egammaMVAFunctions::ConversionHelper::ph_ptconv |
( |
| ) |
const |
|
inline |
◆ ph_Rconv()
| float egammaMVAFunctions::ConversionHelper::ph_Rconv |
( |
| ) |
const |
|
inline |
◆ ph_zconv()
| float egammaMVAFunctions::ConversionHelper::ph_zconv |
( |
| ) |
const |
|
inline |
◆ 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_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_pt1conv
| float egammaMVAFunctions::ConversionHelper::m_pt1conv |
|
private |
◆ m_pt2conv
| float egammaMVAFunctions::ConversionHelper::m_pt2conv |
|
private |
◆ m_tp0
◆ m_tp1
◆ m_vertex
| const xAOD::Vertex* egammaMVAFunctions::ConversionHelper::m_vertex |
|
private |
The documentation for this struct was generated from the following file: