![]() |
ATLAS Offline Software
|
#include <ArrayBranch.h>
Public Types | |
| using | DataDependency = SG::VarHandleKey * |
| using | DataDependency = SG::VarHandleKey * |
Public Member Functions | |
| ArrayBranch (TTree *tree, const std::string &name, size_t size) | |
| Constructor. More... | |
| ArrayBranch (MuonTesterTree &tree, const std::string &name, size_t size) | |
| ArrayBranch (TTree *tree, const std::string &name, size_t size, const T &def_val) | |
| Constructor with default value to be set in case an element is not updated. More... | |
| ArrayBranch (MuonTesterTree &tree, const std::string &name, size_t size, const T &def_val) | |
| virtual | ~ArrayBranch ()=default |
| bool | fill (const EventContext &) override final |
| Returns false if one of the array values is not updated. More... | |
| bool | init () override final |
| Connects the branch with the tree. More... | |
| bool | initialized () const |
| Is the branch initialized. More... | |
| size_t | size () const |
| How large is the array. More... | |
| void | set (size_t s, const T &val) |
| Set's the i-th entry of the array to val. More... | |
| const T & | get (size_t s) const |
| Returns the i-th value. More... | |
| const T & | operator[] (size_t s) const |
| Operator implementation of get. More... | |
| T & | operator[] (size_t s) |
| Operator implementation of set() More... | |
| const T & | getDefault () const |
| default value in cases the branch is not updated More... | |
| void | setDefault (const T &val) |
| std::string | name () const override final |
| Returns the name of the branch. More... | |
| TTree * | tree () override final |
| Returns the underlying TTree object. More... | |
| const TTree * | tree () const override final |
| std::vector< DataDependency > | data_dependencies () override final |
| Returns the data dependencies needed by the MuonTesterBranch. More... | |
| bool | msgLvl (const MSG::Level lvl) const |
| Test the output level. More... | |
| MsgStream & | msg () const |
| The standard message stream. More... | |
| MsgStream & | msg (const MSG::Level lvl) const |
| The standard message stream. More... | |
| void | setLevel (MSG::Level lvl) |
| Change the current logging level. More... | |
Static Public Member Functions | |
| static std::string | eraseWhiteSpaces (const std::string &In) |
Protected Member Functions | |
| template<class T > | |
| bool | addToTree (T &variable) |
| Connects the Memory buffer with the TTree. More... | |
| template<class Key > | |
| bool | declare_dependency (Key &key) |
| Declares the ReadHandle/ ReadCondHandleKey as data dependency of the algorithm. More... | |
| MuonTesterTree & | parent () |
| Returns the reference to the MuonTesterTree parent. More... | |
Private Member Functions | |
| std::string | tree_data_type () const |
| Data type of the branch in the tree. More... | |
| void | reset () |
| Resets the check mask. More... | |
| std::string | tree_data_type () const |
| Specification of the branch data_type for the TTree initialize routine. More... | |
| std::string | tree_data_type () const |
| std::string | tree_data_type () const |
| std::string | tree_data_type () const |
| std::string | tree_data_type () const |
| std::string | tree_data_type () const |
| std::string | tree_data_type () const |
| std::string | tree_data_type () const |
| std::string | tree_data_type () const |
| std::string | tree_data_type () const |
| std::string | tree_data_type () const |
| std::string | tree_data_type () const |
| std::string | tree_data_type () const |
| void | initMessaging () const |
| Initialize our message level and MessageSvc. More... | |
Private Attributes | |
| size_t | m_size {0} |
| std::vector< T > | m_data {} |
| std::vector< bool > | m_updated {} |
| bool | m_init {false} |
| T | m_default {} |
| Default value in cases where the part are not updated. More... | |
| bool | m_failIfNotUpdated {true} |
| TTree * | m_tree {nullptr} |
| MuonTesterTree * | m_parent {nullptr} |
| std::string | m_name {} |
| std::vector< DataDependency > | m_dependencies {} |
| std::string | m_nm |
| Message source name. More... | |
| boost::thread_specific_ptr< MsgStream > | m_msg_tls |
| MsgStream instance (a std::cout like with print-out levels) More... | |
| std::atomic< IMessageSvc * > | m_imsg { nullptr } |
| MessageSvc pointer. More... | |
| std::atomic< MSG::Level > | m_lvl { MSG::NIL } |
| Current logging level. More... | |
| std::atomic_flag m_initialized | ATLAS_THREAD_SAFE = ATOMIC_FLAG_INIT |
| Messaging initialized (initMessaging) More... | |
Definition at line 14 of file ArrayBranch.h.
|
inherited |
Definition at line 39 of file IMuonTesterBranch.h.
|
inherited |
Definition at line 39 of file IMuonTesterBranch.h.
| MuonVal::ArrayBranch< T >::ArrayBranch | ( | TTree * | tree, |
| const std::string & | name, | ||
| size_t | size | ||
| ) |
Constructor.
| MuonVal::ArrayBranch< T >::ArrayBranch | ( | MuonTesterTree & | tree, |
| const std::string & | name, | ||
| size_t | size | ||
| ) |
| MuonVal::ArrayBranch< T >::ArrayBranch | ( | TTree * | tree, |
| const std::string & | name, | ||
| size_t | size, | ||
| const T & | def_val | ||
| ) |
Constructor with default value to be set in case an element is not updated.
| MuonVal::ArrayBranch< T >::ArrayBranch | ( | MuonTesterTree & | tree, |
| const std::string & | name, | ||
| size_t | size, | ||
| const T & | def_val | ||
| ) |
|
virtualdefault |
|
protectedinherited |
Connects the Memory buffer with the TTree.
|
finaloverridevirtualinherited |
Returns the data dependencies needed by the MuonTesterBranch.
Implements MuonVal::IMuonTesterBranch.
Definition at line 61 of file MuonTesterBranch.cxx.
|
protectedinherited |
Declares the ReadHandle/ ReadCondHandleKey as data dependency of the algorithm.
|
staticinherited |
|
finaloverridevirtual |
Returns false if one of the array values is not updated.
Implements MuonVal::IMuonTesterBranch.
| const T& MuonVal::ArrayBranch< T >::get | ( | size_t | s | ) | const |
Returns the i-th value.
| const T& MuonVal::ArrayBranch< T >::getDefault | ( | ) | const |
default value in cases the branch is not updated
|
finaloverridevirtual |
Connects the branch with the tree.
Implements MuonVal::IMuonTesterBranch.
| bool MuonVal::ArrayBranch< T >::initialized | ( | ) | const |
Is the branch initialized.
|
privateinherited |
Initialize our message level and MessageSvc.
This method should only be called once.
Definition at line 39 of file AthMessaging.cxx.
|
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 164 of file AthMessaging.h.
|
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 179 of file AthMessaging.h.
|
inlineinherited |
Test the output level.
| lvl | The message level to test against |
| true | Messages at level "lvl" will be printed |
Definition at line 151 of file AthMessaging.h.
|
finaloverridevirtualinherited |
Returns the name of the branch.
Implements MuonVal::IMuonTesterBranch.
Definition at line 51 of file MuonTesterBranch.cxx.
| T& MuonVal::ArrayBranch< T >::operator[] | ( | size_t | s | ) |
Operator implementation of set()
| const T& MuonVal::ArrayBranch< T >::operator[] | ( | size_t | s | ) | const |
Operator implementation of get.
|
protectedinherited |
Returns the reference to the MuonTesterTree parent.
Definition at line 38 of file MuonTesterBranch.cxx.
|
private |
Resets the check mask.
| void MuonVal::ArrayBranch< T >::set | ( | size_t | s, |
| const T & | val | ||
| ) |
Set's the i-th entry of the array to val.
| void MuonVal::ArrayBranch< T >::setDefault | ( | const T & | val | ) |
|
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.
| size_t MuonVal::ArrayBranch< T >::size | ( | ) | const |
How large is the array.
|
finaloverridevirtualinherited |
|
finaloverridevirtualinherited |
Returns the underlying TTree object.
Implements MuonVal::IMuonTesterBranch.
Definition at line 53 of file MuonTesterBranch.cxx.
|
private |
Data type of the branch in the tree.
|
private |
Specification of the branch data_type for the TTree initialize routine.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
mutableprivateinherited |
Messaging initialized (initMessaging)
Definition at line 141 of file AthMessaging.h.
|
private |
Definition at line 58 of file ArrayBranch.h.
|
private |
Default value in cases where the part are not updated.
Definition at line 64 of file ArrayBranch.h.
|
privateinherited |
Definition at line 62 of file MuonTesterBranch.h.
|
private |
Definition at line 65 of file ArrayBranch.h.
|
mutableprivateinherited |
MessageSvc pointer.
Definition at line 135 of file AthMessaging.h.
|
private |
Definition at line 61 of file ArrayBranch.h.
|
mutableprivateinherited |
Current logging level.
Definition at line 138 of file AthMessaging.h.
|
mutableprivateinherited |
MsgStream instance (a std::cout like with print-out levels)
Definition at line 132 of file AthMessaging.h.
|
privateinherited |
Definition at line 60 of file MuonTesterBranch.h.
|
privateinherited |
Message source name.
Definition at line 129 of file AthMessaging.h.
|
privateinherited |
Definition at line 59 of file MuonTesterBranch.h.
|
private |
Definition at line 57 of file ArrayBranch.h.
|
privateinherited |
Definition at line 58 of file MuonTesterBranch.h.
|
private |
Definition at line 59 of file ArrayBranch.h.
1.8.18