|
ATLAS Offline Software
|
Go to the documentation of this file.
4 #ifndef MUONTESTER_MUONSetBranch_H
5 #define MUONTESTER_MUONSetBranch_H
21 bool fill(
const EventContext& ctx)
override;
26 inline size_t size()
const;
36 const std::set<T>&
get()
const;
void operator+=(const T &value)
virtual TTree * tree()=0
Returns the pointer to the underlying TTree object.
std::set< T > & operator->()
Getter methods.
void insert(const T &value)
Adds a new element at the end of the vector.
bool init() override
Initialized the Branch.
const std::set< T > & get() const
const std::set< T > & operator->() const
SetBranch(MuonTesterTree &tree, const std::string &name)
void operator=(const std::set< T > &other)
Assignment operator.
Class to store array like branches into the n-tuples.
size_t size() const
Returns the number of actual saved elements.
virtual std::string name() const =0
Returns the name of the branch.
virtual ~SetBranch()=default
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...
SetBranch(TTree *tree, const std::string &name)
Standard constructor.
Most basic interface class used by the MuonTester tree.