![]() |
ATLAS Offline Software
|
Filler for TTrees. More...
#include <HistogramFillerTree.h>
Public Member Functions | |
| HistogramFillerTree (const HistogramDef &definition, std::shared_ptr< IHistogramProvider > provider) | |
| virtual unsigned | fill (const HistogramFiller::VariablesPack &vars) const override |
| Method that actually fills the ROOT object. | |
| void | touch () const |
| Ensure histogram exists. | |
| const std::vector< std::string > & | histogramVariablesNames () const |
| const std::string & | histogramWeightName () const |
| const std::string & | histogramCutMaskName () const |
| const std::unique_lock< std::mutex > | getLock () const |
Protected Member Functions | |
| template<class H, typename W, typename C, typename ... Ms> | |
| unsigned | fill (W weight, C cut, const Ms &... m) const |
| Fill histogram from IMonitoredVariable. | |
| template<class H> | |
| H * | histogram () const |
Protected Attributes | |
| std::shared_ptr< HistogramDef > | m_histDef |
| std::shared_ptr< IHistogramProvider > | m_histogramProvider |
| std::mutex | m_lock |
Private Member Functions | |
| void | parseDefinition () |
| template<typename T> | |
| void | branchHelper (TTree *tree, const std::pair< std::string, std::string > &brdef) const |
| void | createBranches (TTree *tree) const |
Private Attributes | |
| std::vector< std::pair< std::string, std::string > > | m_branchDefs |
| std::vector< std::function< void(TBranch *, const IMonitoredVariable &)> > | m_fillerFunctions |
Filler for TTrees.
Definition at line 22 of file HistogramFillerTree.h.
|
inline |
Definition at line 24 of file HistogramFillerTree.h.
|
inlineprivate |
Definition at line 133 of file HistogramFillerTree.h.
|
inlineprivate |
Definition at line 140 of file HistogramFillerTree.h.
|
inlineprotectedinherited |
Fill histogram from IMonitoredVariable.
Supports arbitrary dimensions and double/string representation.
| H | histogram type (TH1, TH2, ...) |
| weight | weight accessor (use detail::noWeight if not needed) |
| cut | cut mask accessor (use detail::noCut if not needed) |
| m... | IMonitoredVariable list to fill from |
Definition at line 168 of file HistogramFiller.h.
|
inlineoverridevirtual |
Method that actually fills the ROOT object.
Implements Monitored::HistogramFiller.
Definition at line 29 of file HistogramFillerTree.h.
|
inlineinherited |
Definition at line 147 of file HistogramFiller.h.
Definition at line 153 of file HistogramFiller.h.
|
inlineinherited |
Definition at line 143 of file HistogramFiller.h.
|
inlineinherited |
Definition at line 135 of file HistogramFiller.h.
|
inlineinherited |
Definition at line 139 of file HistogramFiller.h.
|
inlineprivate |
Definition at line 79 of file HistogramFillerTree.h.
|
inlineinherited |
Ensure histogram exists.
Definition at line 130 of file HistogramFiller.h.
|
private |
Definition at line 76 of file HistogramFillerTree.h.
|
private |
Definition at line 77 of file HistogramFillerTree.h.
|
protectedinherited |
Definition at line 180 of file HistogramFiller.h.
|
protectedinherited |
Definition at line 181 of file HistogramFiller.h.
|
mutableprotectedinherited |
Definition at line 182 of file HistogramFiller.h.