Helper branch class to dump a pick a single hit summary value from the overall summary & to dump it in the tree.
More...
#include <TrackSummaryModule.h>
|
| | TrackSummaryValueBranch (TTree *tree, const std::string &collName, Category cat, Status status, LayerIndex layer, bool isSmall) |
| | Constructor taking the reference to the tree & the summary values together with an overall collection name.
|
| void | push_back (const MuonR4::HitSummary &summary) |
| | push back the assigned hit summary value
|
| 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 std::uint8_t &value) |
| | Adds a new element at the end of the vector.
|
| void | operator+= (const std::uint8_t &value) |
| std::uint8_t & | operator[] (size_t idx) |
| | Accesses the idx-th element.
|
| const std::uint8_t & | getDefault () const |
| void | setDefault (const std::uint8_t &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.
|
Helper branch class to dump a pick a single hit summary value from the overall summary & to dump it in the tree.
Definition at line 16 of file TrackSummaryModule.h.
◆ Category
◆ DataDependency
◆ LayerIndex
◆ Status
◆ TrackSummaryValueBranch()
| MuonValR4::TrackSummaryValueBranch::TrackSummaryValueBranch |
( |
TTree * | tree, |
|
|
const std::string & | collName, |
|
|
Category | cat, |
|
|
Status | status, |
|
|
LayerIndex | layer, |
|
|
bool | isSmall ) |
Constructor taking the reference to the tree & the summary values together with an overall collection name.
- Parameters
-
| tree | TTree to which the branch is appended |
| collName | Name of the hit summary collection |
| cat | HitCategory of the summary to be picked by this instance |
| status | HitStatus of the summary to be picked by this instance |
| layer | Spectrometer lay to be picked by this instance |
| isSmall | Pick the summary from the large or the small chambers |
Definition at line 27 of file TrackSummaryModule.cxx.
30 :
32 std::format("{:}_{:}",
virtual TTree * tree()=0
Returns the pointer to the underlying TTree object.
VectorBranch(TTree *tree, const std::string &name)
std::string nameBr(Category cat, Status status, LayerIndex layer, bool isSmall)
bool isSmall(const ChIndex index)
Returns true if the chamber index is in a small sector.
◆ addToTree()
| bool MuonVal::MuonTesterBranch::addToTree |
( |
std::uint8_t & | variable | ) |
|
|
protectedinherited |
Connects the Memory buffer with the TTree.
◆ data_dependencies()
| std::vector< MuonTesterBranch::DataDependency > MuonVal::MuonTesterBranch::data_dependencies |
( |
| ) |
|
|
finaloverrideinherited |
◆ 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+=()
◆ 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/2]
Adds a new element at the end of the vector.
◆ push_back() [2/2]
push back the assigned hit summary value
Definition at line 35 of file TrackSummaryModule.cxx.
35 {
37 }
void push_back(const MuonR4::HitSummary &summary)
push back the assigned hit summary value
◆ 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_cat
| Category MuonValR4::TrackSummaryValueBranch::m_cat {Category::nCategories} |
|
private |
◆ m_default
◆ m_dependencies
◆ m_hasDefault
◆ m_imsg
| std::atomic<IMessageSvc*> AthMessaging::m_imsg |
|
mutableprivateinherited |
◆ m_init
| bool MuonVal::MuonTesterBranch::m_init |
|
privateinherited |
◆ m_isSmall
| bool MuonValR4::TrackSummaryValueBranch::m_isSmall {false} |
|
private |
◆ m_layer
| LayerIndex MuonValR4::TrackSummaryValueBranch::m_layer {LayerIndex::LayerIndexMax} |
|
private |
◆ 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_nm
| std::string AthMessaging::m_nm |
|
privateinherited |
◆ m_parent
◆ m_status
| Status MuonValR4::TrackSummaryValueBranch::m_status {Status::MaxValue} |
|
private |
◆ m_tree
| TTree* MuonVal::MuonTesterBranch::m_tree |
|
privateinherited |
◆ m_updated
◆ m_variable
The documentation for this class was generated from the following files: