![]() |
ATLAS Offline Software
|
Description of the class that is used to keep track of event counts. More...
#include <CutBookkeeper_v1.h>
Classes | |
| struct | Payload |
| Add struct for payload and implement operator ,/....=,... More... | |
Public Types | |
| enum | CutLogic { UNKNOWN = 0 , ALLEVENTSPROCESSED = 1 , ALLEVENTSWRITTEN = 2 , OTHER = 3 , ACCEPT = 4 , REQUIRE = 5 , VETO = 6 } |
| Enumeration of the logic of a cut. More... | |
Public Member Functions | |
| CutBookkeeper_v1 () | |
| Constructor. | |
| ~CutBookkeeper_v1 () | |
| Destructor. | |
| bool | operator== (const CutBookkeeper_v1 &rhs) |
| Equality operator. | |
| bool | isEqualTo (const CutBookkeeper_v1 *eb) const |
| Test for the equality of this CutBookkeeper with another one. | |
| void | toPersistent () |
| Function preparing the object to be persistified. | |
Getters and setters for the payload information, i.e., event coutners and weights | |
| Payload | payload () const |
| Get the whole payload object (which contains all counters) in one go. | |
| void | setPayload (const Payload &payload) |
| Set the whole payload object (which contains all counters) in one go. | |
| uint64_t | nAcceptedEvents () const |
| Get the number of accepted events that this CutBookkeeper has seen. | |
| void | setNAcceptedEvents (uint64_t nEvents) |
| Set the number of accepted events for this CutBookkeeper. | |
| void | addNAcceptedEvents (uint64_t nEvents) |
| Add seen events to the number of accepted events that this CutBookkeeper has seen. | |
| double | sumOfEventWeights () const |
| Get the sum-of-event-weights that this CutBookkeeper has seen. | |
| void | setSumOfEventWeights (double nWeightedEvents) |
| Set the sum-of-event-weights that this CutBookkeeper has seen. | |
| void | addSumOfEventWeights (double nWeightedEvents) |
| Add more sum-of-event-weights that this CutBookkeeper has seen. | |
| double | sumOfEventWeightsSquared () const |
| Get the sum-of-(event-weights-squared) that this CutBookkeeper has seen. | |
| void | setSumOfEventWeightsSquared (double nWeightedEventsSquared) |
| Set the sum-of-(event-weights-squared) that this CutBookkeeper has seen. | |
| void | addSumOfEventWeightsSquared (double nWeightedEventsSquared) |
| Add more sum-of-(event-weights-squared) that this CutBookkeeper has seen. | |
Handling of the child-parent relationship between different CutBookkeepers | |
| bool | hasParent () const |
| Check if there is a parent CutBookkeeper of this CutBookkeeper. | |
| const xAOD::CutBookkeeper_v1 * | parent () const |
| Get the parent CutBookkeeper. | |
| void | setParent (const CutBookkeeper_v1 *parentEB) |
| Set the parent CutBookkeeper of this CutBookkeeper. | |
| std::size_t | nChildren () const |
| Get the number of children CutBookkeepers of this CutBookkeeper. | |
| bool | hasChild (const xAOD::CutBookkeeper_v1 *testCBK) const |
| Test if a given child already exists. | |
| const xAOD::CutBookkeeper_v1 * | child (std::size_t i) const |
| Get the child at position i. | |
| void | setChildren (const std::vector< CutBookkeeper_v1 * > &childrenEB) |
| Set all children of this CutBookkeeper in one go. | |
| void | addChildren (const std::vector< CutBookkeeper_v1 * > &childrenEB) |
| Add multiple children in one go to this CutBookkeeper. | |
| void | addChild (CutBookkeeper_v1 *childEB) |
| Add one child to this 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 this one as a child. | |
Handling of the usage of other CutBookkeepers by this one | |
| std::size_t | nUsedOthers () const |
| Check if this CutBookkeeper has used others. | |
| bool | hasUsedOther (const xAOD::CutBookkeeper_v1 *testCBK) const |
| Check if this CutBookkeeper has used others. | |
| const xAOD::CutBookkeeper_v1 * | usedOther (std::size_t i) const |
| Get the usedOther at position i. | |
| void | setUsedOthers (const std::vector< CutBookkeeper_v1 * > &usedOthers) |
| Set all CutBookkeeper that are used by this one in one go. | |
| void | addUsedOthers (const std::vector< CutBookkeeper_v1 * > &usedOthers) |
| Add multiple children in one go to this CutBookkeeper. | |
| void | addUsedOther (CutBookkeeper_v1 *usedOtherEB) |
| Add one other CutBookkeeper that is used by this one. | |
Handling of the siblings of this CutBookkeepers, i.e., the cuts | |
that happen at the same cut stage as this one, but in another (control) region | |
| std::size_t | nSiblings () const |
| Check if this CutBookkeeper has siblings. | |
| bool | hasSibling (const xAOD::CutBookkeeper_v1 *testCBK) const |
| Test if the provided CutBookkeeper is already a sibling. | |
| const xAOD::CutBookkeeper_v1 * | sibling (std::size_t i) const |
| Get the sibling number i. | |
| void | setSiblings (const std::vector< CutBookkeeper_v1 * > &siblings) |
| Set all CutBookkeeper that are siblings to this one in one go. | |
| void | addSiblings (const std::vector< CutBookkeeper_v1 * > &siblings) |
| Add multiple siblings in one go to this CutBookkeeper. | |
| void | addSibling (CutBookkeeper_v1 *siblingsEB) |
| Add one sibling CutBookkeeper to this one. | |
Getters and setters for the (sort of) 'static' information of the CutBookkeeper | |
| unsigned int | nameIdentifier () const |
| Get the nameIdentifier for this CutBookkeeper. | |
| unsigned int | uniqueIdentifier () const |
| Get the uniqueIdentifier for this CutBookkeeper. | |
| const std::string & | name () const |
| Get the name of this CutBookkeeper. | |
| void | setName (const std::string &name) |
| Set the name of this CutBookkeeper. | |
| const std::string & | description () const |
| Get the description of this CutBookkeeper. | |
| void | setDescription (const std::string &description) |
| Set the description of this CutBookkeeper. | |
| bool | isTopFilter () const |
| Check if this CutBookkeeper was a top filter. | |
| void | setTopFilter (bool isTopFilter) |
| Set the top-filter property of this CutBookkeeper. | |
| CutLogic | cutLogic () const |
| Get the cut logic of this CutBookkeeper, e.g., ACCEPT, REQUIRE, VETO. | |
| void | setCutLogic (CutLogic logic) |
| Set the cut logic of this CutBookkeeper, e.g., ACCEPT, REQUIRE, VETO. | |
| 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. | |
| const std::string & | inputStream () const |
| Get the name of the input-file stream object that was seen by this CutBookkeeper. | |
| void | setInputStream (const std::string &inputstream) |
| Set the name of the current input-file stream object for this CutBookkeeper. | |
| const std::vector< std::string > & | outputStreams () const |
| Get the names of the output-file stream objects that were seen by this CutBookkeeper. | |
| bool | hasOutputStream (const std::string &outputstream) const |
| Check if the given output stream name is known to this CutBookkeeper. | |
| void | addOutputStream (const std::string &outputstream) |
| Add the name of an output-file stream object for this CutBookkeeper. | |
| void addOutputStreamForAllUsed | ATLAS_NOT_THREAD_SAFE (const std::string &outputstream) |
| Add the name of an output-file stream object for this CutBookkeeper. | |
| void | setOutputStreams (const std::vector< std::string > &outputstreams) |
| Set the names of the output-file stream objects for this CutBookkeeper. | |
| void | setNameIdentifier (unsigned int hash) |
| Set the nameIdentifier for this CutBookkeeper. | |
| void | setUniqueIdentifier (unsigned int hash) |
| Set the uniqueIdentifier for this CutBookkeeper. | |
Description of the class that is used to keep track of event counts.
$Revision$ $Date$
Definition at line 29 of file CutBookkeeper_v1.h.
Enumeration of the logic of a cut.
| Enumerator | |
|---|---|
| UNKNOWN | |
| ALLEVENTSPROCESSED | |
| ALLEVENTSWRITTEN | |
| OTHER | |
| ACCEPT | |
| REQUIRE | |
| VETO | |
Definition at line 34 of file CutBookkeeper_v1.h.
| xAOD::CutBookkeeper_v1::CutBookkeeper_v1 | ( | ) |
Constructor.
Definition at line 71 of file CutBookkeeper_v1.cxx.
| xAOD::CutBookkeeper_v1::~CutBookkeeper_v1 | ( | ) |
| void xAOD::CutBookkeeper_v1::addChild | ( | CutBookkeeper_v1 * | childEB | ) |
Add one child to this CutBookkeeper.
Definition at line 442 of file CutBookkeeper_v1.cxx.
| void xAOD::CutBookkeeper_v1::addChildren | ( | const std::vector< CutBookkeeper_v1 * > & | childrenEB | ) |
Add multiple children in one go to this CutBookkeeper.
Definition at line 429 of file CutBookkeeper_v1.cxx.
| void xAOD::CutBookkeeper_v1::addNAcceptedEvents | ( | uint64_t | nEvents | ) |
Add seen events to the number of accepted events that this CutBookkeeper has seen.
Definition at line 302 of file CutBookkeeper_v1.cxx.
| CutBookkeeper_v1 * xAOD::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 this one as a child.
Definition at line 471 of file CutBookkeeper_v1.cxx.
| void xAOD::CutBookkeeper_v1::addOutputStream | ( | const std::string & | outputstream | ) |
Add the name of an output-file stream object for this CutBookkeeper.
Definition at line 250 of file CutBookkeeper_v1.cxx.
| void xAOD::CutBookkeeper_v1::addSibling | ( | CutBookkeeper_v1 * | siblingsEB | ) |
Add one sibling CutBookkeeper to this one.
Definition at line 642 of file CutBookkeeper_v1.cxx.
| void xAOD::CutBookkeeper_v1::addSiblings | ( | const std::vector< CutBookkeeper_v1 * > & | siblings | ) |
Add multiple siblings in one go to this CutBookkeeper.
Definition at line 629 of file CutBookkeeper_v1.cxx.
| void xAOD::CutBookkeeper_v1::addSumOfEventWeights | ( | double | nWeightedEvents | ) |
Add more sum-of-event-weights that this CutBookkeeper has seen.
Definition at line 320 of file CutBookkeeper_v1.cxx.
| void xAOD::CutBookkeeper_v1::addSumOfEventWeightsSquared | ( | double | nWeightedEventsSquared | ) |
Add more sum-of-(event-weights-squared) that this CutBookkeeper has seen.
Definition at line 338 of file CutBookkeeper_v1.cxx.
| void xAOD::CutBookkeeper_v1::addUsedOther | ( | CutBookkeeper_v1 * | usedOtherEB | ) |
Add one other CutBookkeeper that is used by this one.
Definition at line 555 of file CutBookkeeper_v1.cxx.
| void xAOD::CutBookkeeper_v1::addUsedOthers | ( | const std::vector< CutBookkeeper_v1 * > & | usedOthers | ) |
Add multiple children in one go to this CutBookkeeper.
Definition at line 542 of file CutBookkeeper_v1.cxx.
| void addOutputStreamForAllUsed xAOD::CutBookkeeper_v1::ATLAS_NOT_THREAD_SAFE | ( | const std::string & | outputstream | ) |
Add the name of an output-file stream object for this CutBookkeeper.
| const xAOD::CutBookkeeper_v1 * xAOD::CutBookkeeper_v1::child | ( | std::size_t | i | ) | const |
Get the child at position i.
Definition at line 408 of file CutBookkeeper_v1.cxx.
| CutBookkeeper_v1::CutLogic xAOD::CutBookkeeper_v1::cutLogic | ( | ) | const |
Get the cut logic of this CutBookkeeper, e.g., ACCEPT, REQUIRE, VETO.
Definition at line 195 of file CutBookkeeper_v1.cxx.
| int xAOD::CutBookkeeper_v1::cycle | ( | ) | const |
Get the skimming cycle that this CutBookkeeper was running in.
Definition at line 205 of file CutBookkeeper_v1.cxx.
| const std::string & xAOD::CutBookkeeper_v1::description | ( | ) | const |
Get the description of this CutBookkeeper.
Definition at line 172 of file CutBookkeeper_v1.cxx.
| bool xAOD::CutBookkeeper_v1::hasChild | ( | const xAOD::CutBookkeeper_v1 * | testCBK | ) | const |
Test if a given child already exists.
Definition at line 392 of file CutBookkeeper_v1.cxx.
Check if the given output stream name is known to this CutBookkeeper.
Definition at line 240 of file CutBookkeeper_v1.cxx.
| bool xAOD::CutBookkeeper_v1::hasParent | ( | ) | const |
Check if there is a parent CutBookkeeper of this CutBookkeeper.
Definition at line 359 of file CutBookkeeper_v1.cxx.
| bool xAOD::CutBookkeeper_v1::hasSibling | ( | const xAOD::CutBookkeeper_v1 * | testCBK | ) | const |
Test if the provided CutBookkeeper is already a sibling.
Definition at line 592 of file CutBookkeeper_v1.cxx.
| bool xAOD::CutBookkeeper_v1::hasUsedOther | ( | const xAOD::CutBookkeeper_v1 * | testCBK | ) | const |
Check if this CutBookkeeper has used others.
Definition at line 505 of file CutBookkeeper_v1.cxx.
| const std::string & xAOD::CutBookkeeper_v1::inputStream | ( | ) | const |
Get the name of the input-file stream object that was seen by this CutBookkeeper.
Definition at line 220 of file CutBookkeeper_v1.cxx.
| bool xAOD::CutBookkeeper_v1::isEqualTo | ( | const CutBookkeeper_v1 * | eb | ) | const |
Test for the equality of this CutBookkeeper with another one.
Definition at line 348 of file CutBookkeeper_v1.cxx.
| bool xAOD::CutBookkeeper_v1::isTopFilter | ( | ) | const |
Check if this CutBookkeeper was a top filter.
Definition at line 184 of file CutBookkeeper_v1.cxx.
| uint64_t xAOD::CutBookkeeper_v1::nAcceptedEvents | ( | ) | const |
Get the number of accepted events that this CutBookkeeper has seen.
Definition at line 291 of file CutBookkeeper_v1.cxx.
| const std::string & xAOD::CutBookkeeper_v1::name | ( | ) | const |
Get the name of this CutBookkeeper.
Definition at line 156 of file CutBookkeeper_v1.cxx.
Get the nameIdentifier for this CutBookkeeper.
Definition at line 133 of file CutBookkeeper_v1.cxx.
| std::size_t xAOD::CutBookkeeper_v1::nChildren | ( | ) | const |
Get the number of children CutBookkeepers of this CutBookkeeper.
Definition at line 387 of file CutBookkeeper_v1.cxx.
| std::size_t xAOD::CutBookkeeper_v1::nSiblings | ( | ) | const |
Check if this CutBookkeeper has siblings.
Definition at line 587 of file CutBookkeeper_v1.cxx.
| std::size_t xAOD::CutBookkeeper_v1::nUsedOthers | ( | ) | const |
Check if this CutBookkeeper has used others.
Definition at line 500 of file CutBookkeeper_v1.cxx.
|
inline |
Equality operator.
Definition at line 82 of file CutBookkeeper_v1.h.
| const std::vector< std::string > & xAOD::CutBookkeeper_v1::outputStreams | ( | ) | const |
Get the names of the output-file stream objects that were seen by this CutBookkeeper.
Definition at line 235 of file CutBookkeeper_v1.cxx.
| const xAOD::CutBookkeeper_v1 * xAOD::CutBookkeeper_v1::parent | ( | ) | const |
Get the parent CutBookkeeper.
Definition at line 364 of file CutBookkeeper_v1.cxx.
| CutBookkeeper_v1::Payload xAOD::CutBookkeeper_v1::payload | ( | ) | const |
Get the whole payload object (which contains all counters) in one go.
Return it by value as it only contains three numbers.
Definition at line 112 of file CutBookkeeper_v1.cxx.
| void xAOD::CutBookkeeper_v1::setChildren | ( | const std::vector< CutBookkeeper_v1 * > & | childrenEB | ) |
Set all children of this CutBookkeeper in one go.
Definition at line 422 of file CutBookkeeper_v1.cxx.
| void xAOD::CutBookkeeper_v1::setCutLogic | ( | CutBookkeeper_v1::CutLogic | val | ) |
Set the cut logic of this CutBookkeeper, e.g., ACCEPT, REQUIRE, VETO.
Definition at line 199 of file CutBookkeeper_v1.cxx.
| void xAOD::CutBookkeeper_v1::setCycle | ( | int | cycle | ) |
Set the skimming cycle that this CutBookkeeper is running in.
Definition at line 209 of file CutBookkeeper_v1.cxx.
| void xAOD::CutBookkeeper_v1::setDescription | ( | const std::string & | description | ) |
Set the description of this CutBookkeeper.
Definition at line 177 of file CutBookkeeper_v1.cxx.
| void xAOD::CutBookkeeper_v1::setInputStream | ( | const std::string & | inputstream | ) |
Set the name of the current input-file stream object for this CutBookkeeper.
Definition at line 225 of file CutBookkeeper_v1.cxx.
| void xAOD::CutBookkeeper_v1::setNAcceptedEvents | ( | uint64_t | nEvents | ) |
Set the number of accepted events for this CutBookkeeper.
Definition at line 295 of file CutBookkeeper_v1.cxx.
| void xAOD::CutBookkeeper_v1::setName | ( | const std::string & | name | ) |
Set the name of this CutBookkeeper.
Definition at line 161 of file CutBookkeeper_v1.cxx.
Set the nameIdentifier for this CutBookkeeper.
Definition at line 137 of file CutBookkeeper_v1.cxx.
| void xAOD::CutBookkeeper_v1::setOutputStreams | ( | const std::vector< std::string > & | outputstreams | ) |
Set the names of the output-file stream objects for this CutBookkeeper.
Definition at line 280 of file CutBookkeeper_v1.cxx.
| void xAOD::CutBookkeeper_v1::setParent | ( | const CutBookkeeper_v1 * | parentEB | ) |
Set the parent CutBookkeeper of this CutBookkeeper.
Definition at line 372 of file CutBookkeeper_v1.cxx.
Set the whole payload object (which contains all counters) in one go.
Definition at line 121 of file CutBookkeeper_v1.cxx.
| void xAOD::CutBookkeeper_v1::setSiblings | ( | const std::vector< CutBookkeeper_v1 * > & | siblings | ) |
Set all CutBookkeeper that are siblings to this one in one go.
Definition at line 622 of file CutBookkeeper_v1.cxx.
| void xAOD::CutBookkeeper_v1::setSumOfEventWeights | ( | double | nWeightedEvents | ) |
Set the sum-of-event-weights that this CutBookkeeper has seen.
Definition at line 313 of file CutBookkeeper_v1.cxx.
| void xAOD::CutBookkeeper_v1::setSumOfEventWeightsSquared | ( | double | nWeightedEventsSquared | ) |
Set the sum-of-(event-weights-squared) that this CutBookkeeper has seen.
Definition at line 331 of file CutBookkeeper_v1.cxx.
| void xAOD::CutBookkeeper_v1::setTopFilter | ( | bool | isTopFilter | ) |
Set the top-filter property of this CutBookkeeper.
Definition at line 188 of file CutBookkeeper_v1.cxx.
Set the uniqueIdentifier for this CutBookkeeper.
Definition at line 148 of file CutBookkeeper_v1.cxx.
| void xAOD::CutBookkeeper_v1::setUsedOthers | ( | const std::vector< CutBookkeeper_v1 * > & | usedOthers | ) |
Set all CutBookkeeper that are used by this one in one go.
Definition at line 535 of file CutBookkeeper_v1.cxx.
| const xAOD::CutBookkeeper_v1 * xAOD::CutBookkeeper_v1::sibling | ( | std::size_t | i | ) | const |
Get the sibling number i.
Definition at line 608 of file CutBookkeeper_v1.cxx.
| double xAOD::CutBookkeeper_v1::sumOfEventWeights | ( | ) | const |
Get the sum-of-event-weights that this CutBookkeeper has seen.
Definition at line 309 of file CutBookkeeper_v1.cxx.
| double xAOD::CutBookkeeper_v1::sumOfEventWeightsSquared | ( | ) | const |
Get the sum-of-(event-weights-squared) that this CutBookkeeper has seen.
Definition at line 327 of file CutBookkeeper_v1.cxx.
| void xAOD::CutBookkeeper_v1::toPersistent | ( | ) |
Function preparing the object to be persistified.
Definition at line 670 of file CutBookkeeper_v1.cxx.
Get the uniqueIdentifier for this CutBookkeeper.
Definition at line 144 of file CutBookkeeper_v1.cxx.
| const xAOD::CutBookkeeper_v1 * xAOD::CutBookkeeper_v1::usedOther | ( | std::size_t | i | ) | const |
Get the usedOther at position i.
Definition at line 521 of file CutBookkeeper_v1.cxx.