|
ATLAS Offline Software
|
Go to the documentation of this file.
8 #ifndef XAODCUTFLOW_VERSIONS_CUTBOOKKEEPER_V1_H
9 #define XAODCUTFLOW_VERSIONS_CUTBOOKKEEPER_V1_H
103 const std::string&
name()
const;
202 void setChildren(
const std::vector< CutBookkeeper_v1* >& childrenEB );
204 void addChildren(
const std::vector< CutBookkeeper_v1* >& childrenEB );
226 void setUsedOthers(
const std::vector< CutBookkeeper_v1* >& usedOthers );
228 void addUsedOthers(
const std::vector< CutBookkeeper_v1* >& usedOthers );
247 void setSiblings(
const std::vector< CutBookkeeper_v1* >& siblings );
249 void addSiblings(
const std::vector< CutBookkeeper_v1* >& siblings );
266 #endif //> XAODCUTFLOW_VERSIONS_CUTBOOKKEEPER_V1_H
void addSiblings(const std::vector< CutBookkeeper_v1 * > &siblings)
Add multiple siblings in one go to this CutBookkeeper.
int cycle() const
Get the skimming cycle that this CutBookkeeper was running in.
void setCycle(int cycle)
Set the skimming cycle that this CutBookkeeper is running in.
void setName(const std::string &name)
Set the name of this CutBookkeeper.
void setDescription(const std::string &description)
Set the description of this CutBookkeeper.
CutBookkeeper_v1()
Constructor.
const xAOD::CutBookkeeper_v1 * sibling(std::size_t i) const
Get the sibling number i.
void addSibling(CutBookkeeper_v1 *siblingsEB)
Add one sibling CutBookkeeper to this one.
Base class for elements of a container that can have aux data.
Description of the class that is used to keep track of event counts.
void setOutputStreams(const std::vector< std::string > &outputstreams)
Set the names of the output-file stream objects for this CutBookkeeper.
std::size_t nUsedOthers() const
Check if this CutBookkeeper has used others.
void setUsedOthers(const std::vector< CutBookkeeper_v1 * > &usedOthers)
Set all CutBookkeeper that are used by this one in one go.
void addChild(CutBookkeeper_v1 *childEB)
Add one child to this CutBookkeeper.
double sumOfEventWeightsSquared() const
Get the sum-of-(event-weights-squared) that this CutBookkeeper has seen.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
const std::vector< std::string > & outputStreams() const
Get the names of the output-file stream objects that were seen by this CutBookkeeper.
CutLogic
Enumeration of the logic of a cut.
void addUsedOther(CutBookkeeper_v1 *usedOtherEB)
Add one other CutBookkeeper that is used by this one.
Payload payload() const
Get the whole payload object (which contains all counters) in one go.
std::size_t nSiblings() const
Check if this CutBookkeeper has siblings.
void toPersistent()
Function preparing the object to be persistified.
double sumOfEventWeightsSquared
bool hasParent() const
Check if there is a parent CutBookkeeper of this CutBookkeeper.
void setUniqueIdentifier(unsigned int hash)
Set the uniqueIdentifier for this CutBookkeeper.
void setNAcceptedEvents(uint64_t nEvents)
Set the number of accepted events for this CutBookkeeper.
void addChildren(const std::vector< CutBookkeeper_v1 * > &childrenEB)
Add multiple children in one go to this CutBookkeeper.
void addNAcceptedEvents(uint64_t nEvents)
Add seen events to the number of accepted events that this CutBookkeeper has seen.
void addUsedOthers(const std::vector< CutBookkeeper_v1 * > &usedOthers)
Add multiple children in one go to this CutBookkeeper.
unsigned int uniqueIdentifier() const
Get the uniqueIdentifier for this CutBookkeeper.
bool hasChild(const xAOD::CutBookkeeper_v1 *testCBK) const
Test if a given child already exists.
void setSumOfEventWeights(double nWeightedEvents)
Set the sum-of-event-weights that this CutBookkeeper has seen.
const std::string & description() const
Get the description of this CutBookkeeper.
void setParent(const CutBookkeeper_v1 *parentEB)
Set the parent CutBookkeeper of this CutBookkeeper.
void setChildren(const std::vector< CutBookkeeper_v1 * > &childrenEB)
Set all children of this CutBookkeeper in one go.
bool hasUsedOther(const xAOD::CutBookkeeper_v1 *testCBK) const
Check if this CutBookkeeper has used others.
void setSumOfEventWeightsSquared(double nWeightedEventsSquared)
Set the sum-of-(event-weights-squared) that this CutBookkeeper has seen.
bool isEqualTo(const CutBookkeeper_v1 *eb) const
Test for the equality of this CutBookkeeper with another one.
bool hasSibling(const xAOD::CutBookkeeper_v1 *testCBK) const
Test if the provided CutBookkeeper is already a sibling.
Payload operator+(const Payload &rhs)
void setInputStream(const std::string &inputstream)
Set the name of the current input-file stream object for this CutBookkeeper.
uint64_t nAcceptedEvents() const
Get the number of accepted events that this CutBookkeeper has seen.
const xAOD::CutBookkeeper_v1 * child(std::size_t i) const
Get the child at position i.
void addSumOfEventWeights(double nWeightedEvents)
Add more sum-of-event-weights that this CutBookkeeper has seen.
void setNameIdentifier(unsigned int hash)
Set the nameIdentifier for this CutBookkeeper.
bool isTopFilter() const
Check if this CutBookkeeper was a top filter.
double sumOfEventWeights() const
Get the sum-of-event-weights that this CutBookkeeper has seen.
void setCutLogic(CutLogic logic)
Set the cut logic of this CutBookkeeper, e.g., ACCEPT, REQUIRE, VETO.
const std::string & name() const
Get the name of this CutBookkeeper.
const xAOD::CutBookkeeper_v1 * usedOther(std::size_t i) const
Get the usedOther at position i.
unsigned int nameIdentifier() const
Get the nameIdentifier for this CutBookkeeper.
CutLogic cutLogic() const
Get the cut logic of this CutBookkeeper, e.g., ACCEPT, REQUIRE, VETO.
const std::string & inputStream() const
Get the name of the input-file stream object that was seen by this CutBookkeeper.
~CutBookkeeper_v1()
Destructor.
void addOutputStreamForAllUsed ATLAS_NOT_THREAD_SAFE(const std::string &outputstream)
Add the name of an output-file stream object for this CutBookkeeper.
bool operator==(const CutBookkeeper_v1 &rhs)
Equality operator.
void setPayload(const Payload &payload)
Set the whole payload object (which contains all counters) in one go.
std::size_t nChildren() const
Get the number of children CutBookkeepers of this CutBookkeeper.
void addSumOfEventWeightsSquared(double nWeightedEventsSquared)
Add more sum-of-(event-weights-squared) that this CutBookkeeper has seen.
void addOutputStream(const std::string &outputstream)
Add the name of an output-file stream object for this CutBookkeeper.
Add struct for payload and implement operator *,/....*=,...
void setTopFilter(bool isTopFilter)
Set the top-filter property of this CutBookkeeper.
void setSiblings(const std::vector< CutBookkeeper_v1 * > &siblings)
Set all CutBookkeeper that are siblings to this one in one go.
Define macros for attributes used to control the static checker.
bool hasOutputStream(const std::string &outputstream) const
Check if the given output stream name is known to this CutBookkeeper.
Payload & operator+=(const Payload &rhs)
Base class for elements of a container that can have aux data.
const xAOD::CutBookkeeper_v1 * parent() const
Get the parent CutBookkeeper.
CutBookkeeper_v1 * addNewChild(const std::string &name, const std::string &description)
Create a new CutBookkeeper (using the given name and description) and add this new CutBookkeeper to t...