Dump the chi2 / nDof of a muon or a track particle.
More...
#include <TrackChi2Branch.h>
|
| | TrackChi2Branch (IParticleFourMomBranch &parent) |
| void | push_back (const xAOD::IParticle *p) override |
| | Similar to the IAuxElementDecoration branch but only accepting IParticles.
|
| void | push_back (const xAOD::IParticle &p) override |
| void | operator+= (const xAOD::IParticle *p) override |
| void | operator+= (const xAOD::IParticle &p) override |
| bool & | get (size_t idx) |
| bool & | get (size_t) |
| bool | fill (const EventContext &ctx) override |
| | Clears vector in cases that it has not been updated in this event Retursn falls if the vector has not been initialized yet.
|
| bool | init () override |
| | Initialized the Branch.
|
| size_t | size () const |
| | Returns the number of actual saved elements.
|
| void | push_back (const float &value) |
| | Adds a new element at the end of the vector.
|
| void | operator+= (const float &value) |
| float & | operator[] (size_t idx) |
| | Accesses the idx-th element.
|
| const float & | getDefault () const |
| void | setDefault (const float &def) |
| bool | isUpdated () const |
| bool | hasDefault () const |
| std::string | name () const override final |
| | Returns the name of the branch.
|
| bool | initialized () const |
| | Returns whether the object has been initialized or not The outcome of the variable is bound to a successful call of the addToTree method.
|
| TTree * | tree () override final |
| | Returns the underlying TTree object.
|
| const TTree * | tree () const override final |
| std::vector< DataDependency > | data_dependencies () override final |
| | Returns the data dependencies needed by the MuonTesterBranch.
|
| bool | msgLvl (const MSG::Level lvl) const |
| | Test the output level.
|
| MsgStream & | msg () const |
| | The standard message stream.
|
| MsgStream & | msg (const MSG::Level lvl) const |
| | The standard message stream.
|
| void | setLevel (MSG::Level lvl) |
| | Change the current logging level.
|
|
| void | initMessaging () const |
| | Initialize our message level and MessageSvc.
|
Dump the chi2 / nDof of a muon or a track particle.
Definition at line 10 of file TrackChi2Branch.h.
◆ DataDependency
◆ TrackChi2Branch()
Definition at line 8 of file TrackChi2Branch.cxx.
8 :
10 m_nDoF {std::make_shared<VectorBranch<unsigned int>>(
parent.tree(),
parent.name() +
"_nDoF")}
11 {
14 }
MuonTesterTree & parent()
Returns the reference to the MuonTesterTree parent.
std::shared_ptr< VectorBranch< unsigned int > > m_nDoF
VectorBranch(TTree *tree, const std::string &name)
◆ addToTree()
| bool MuonVal::MuonTesterBranch::addToTree |
( |
float & | variable | ) |
|
|
protectedinherited |
Connects the Memory buffer with the TTree.
◆ data_dependencies()
◆ declare_dependency()
| bool MuonVal::MuonTesterBranch::declare_dependency |
( |
Key & | key | ) |
|
|
protectedinherited |
Declares the ReadHandle/ ReadCondHandleKey as data dependency of the algorithm.
◆ eraseWhiteSpaces()
| std::string MuonVal::MuonTesterBranch::eraseWhiteSpaces |
( |
const std::string & | In | ) |
|
|
staticinherited |
◆ fill()
Clears vector in cases that it has not been updated in this event Retursn falls if the vector has not been initialized yet.
Implements MuonVal::IMuonTesterBranch.
◆ get() [1/2]
◆ get() [2/2]
◆ getDefault()
◆ hasDefault()
◆ init()
◆ initialized()
| bool MuonVal::MuonTesterBranch::initialized |
( |
| ) |
const |
|
inherited |
Returns whether the object has been initialized or not The outcome of the variable is bound to a successful call of the addToTree method.
Definition at line 35 of file MuonTesterBranch.cxx.
◆ initMessaging()
| void AthMessaging::initMessaging |
( |
| ) |
const |
|
privateinherited |
Initialize our message level and MessageSvc.
This method should only be called once.
Definition at line 121 of file AthMessaging.cxx.
40{
42
47 }
48}
IMessageSvc * getMessageSvc(bool quiet=false)
◆ isUpdated()
◆ msg() [1/2]
| MsgStream & AthMessaging::msg |
( |
| ) |
const |
|
inlineinherited |
The standard message stream.
Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.
Definition at line 92 of file AthMessaging.h.
164{
170 }
171
174}
void setLevel(MSG::Level lvl)
Change the current logging level.
void initMessaging() const
◆ msg() [2/2]
| MsgStream & AthMessaging::msg |
( |
const MSG::Level | lvl | ) |
const |
|
inlineinherited |
The standard message stream.
Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.
Definition at line 99 of file AthMessaging.h.
◆ msgLvl()
| bool AthMessaging::msgLvl |
( |
const MSG::Level | lvl | ) |
const |
|
inlineinherited |
Test the output level.
- Parameters
-
| lvl | The message level to test against |
- Returns
- boolean Indicating if messages at given level will be printed
- Return values
-
| true | Messages at level "lvl" will be printed |
Definition at line 86 of file AthMessaging.h.
152{
155 return true;
156 } else {
157 return false;
158 }
159}
◆ name()
| std::string MuonVal::MuonTesterBranch::name |
( |
| ) |
const |
|
finaloverrideinherited |
◆ operator+=() [1/3]
◆ operator+=() [2/3]
◆ operator+=() [3/3]
◆ operator[]()
Accesses the idx-th element.
If the index is larger than the size of the vector it is then enlarged with the default_value
◆ parent()
Returns the reference to the MuonTesterTree parent.
Definition at line 52 of file MuonTesterBranch.cxx.
38 {
41 }
43}
#define ATH_MSG_WARNING(x)
std::string name() const override final
◆ push_back() [1/3]
◆ push_back() [2/3]
Similar to the IAuxElementDecoration branch but only accepting IParticles.
Implements MuonVal::IParticleDecorationBranch.
Definition at line 15 of file TrackChi2Branch.cxx.
15 {
20 trk =
static_cast<const xAOD::Muon*
>(
p)->primaryTrackParticle();
21 } else {
23 }
24
27 }
float numberDoF() const
Returns the number of degrees of freedom of the overall track or vertex fit as float.
float chiSquared() const
Returns the of the overall track fit.
@ TrackParticle
The object is a charged track particle.
@ Muon
The object is a muon.
TrackParticle_v1 TrackParticle
Reference the current persistent version:
Muon_v1 Muon
Reference the current persistent version:
◆ push_back() [3/3]
Adds a new element at the end of the vector.
◆ setDefault()
◆ setLevel()
| void AthMessaging::setLevel |
( |
MSG::Level | lvl | ) |
|
|
inherited |
◆ size()
Returns the number of actual saved elements.
◆ tree() [1/2]
| const TTree * MuonVal::MuonTesterBranch::tree |
( |
| ) |
const |
|
finaloverrideinherited |
◆ tree() [2/2]
| TTree * MuonVal::MuonTesterBranch::tree |
( |
| ) |
|
|
finaloverrideinherited |
◆ ATLAS_THREAD_SAFE
| std::atomic_flag m_initialized AthMessaging::ATLAS_THREAD_SAFE |
|
mutableprivateinherited |
◆ m_default
◆ m_dependencies
◆ m_hasDefault
◆ m_imsg
| std::atomic<IMessageSvc*> AthMessaging::m_imsg |
|
mutableprivateinherited |
◆ m_init
| bool MuonVal::MuonTesterBranch::m_init |
|
privateinherited |
◆ m_lvl
| std::atomic<MSG::Level> AthMessaging::m_lvl |
|
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_name
| std::string MuonVal::MuonTesterBranch::m_name |
|
privateinherited |
◆ m_nDoF
| std::shared_ptr<VectorBranch<unsigned int> > MuonVal::TrackChi2Branch::m_nDoF {nullptr} |
|
private |
◆ m_nm
| std::string AthMessaging::m_nm |
|
privateinherited |
◆ m_parent
◆ m_tree
| TTree* MuonVal::MuonTesterBranch::m_tree |
|
privateinherited |
◆ m_updated
◆ m_variable
The documentation for this class was generated from the following files: