|
ATLAS Offline Software
|
Go to the documentation of this file.
4 #ifndef MUONTESTER_MUONSCALARBRANCH_H
5 #define MUONTESTER_MUONSCALARBRANCH_H
27 bool fill(
const EventContext& ctx)
override;
ScalarBranch(MuonTesterTree &tree, const std::string &name)
virtual TTree * tree()=0
Returns the pointer to the underlying TTree object.
bool fill(const EventContext &ctx) override
The fill method checks if enough information is provided such that the branch is cleared from the inf...
const T & getDefault() const
void setValue(const T &value)
bool mustBeUpdated() const
ScalarBranch(MuonTesterTree &tree, const std::string &name, const T &default_value)
ScalarBranch(TTree *tree, const std::string &name, const T &default_value)
Constructor providing a default_value which is inserted when the information in the branch is not upd...
void setDefault(const T &def)
bool init() override
The init method checks whether the branch name has already registered to the MuonTree and tries then ...
Class to store array like branches into the n-tuples.
ScalarBranch(TTree *tree, const std::string &name)
Default constructor passing the TTree object and the name of the branch in the tree.
std::ostream & operator<<(std::ostream &out, const ScalarBranch< T > &B)
virtual std::string name() const =0
Returns the name of the branch.
const T & getVariable() const
void operator=(const T &value)
Setter methods.
Most basic interface class used by the MuonTester tree.
virtual ~ScalarBranch()=default