|
ATLAS Offline Software
|
Go to the documentation of this file.
67 std::vector< std::size_t > newEBKIndices;
70 for ( std::size_t
i=0;
i<otherCont->
size(); ++
i ){
74 bool foundEBKToUpdate(
false);
75 for ( std::size_t j=0; j<this->
size(); ++j ) {
80 foundEBKToUpdate =
true;
84 if (!foundEBKToUpdate) {
89 std::size_t ebIdx = newEBK->
index();
90 newEBKIndices.push_back(ebIdx);
95 for ( std::size_t
i=0;
i<newEBKIndices.size(); ++
i ) {
96 std::size_t otherIndex = newEBKIndices.at(
i);
106 if ( matchIter != this->
end() ) {
120 for ( std::size_t oldIdx=0; oldIdx<ebkToModify->
nChildren(); ++oldIdx ) {
126 if ( matchIter != this->
end() ) {
127 ebkToModify->
addChild( *matchIter );
140 for ( std::size_t oldIdx=0; oldIdx<ebkToModify->
nUsedOthers(); ++oldIdx ) {
146 if ( matchIter != this->
end() ) {
160 for ( std::size_t oldIdx=0; oldIdx<ebkToModify->
nSiblings(); ++oldIdx ) {
166 if ( matchIter != this->
end() ) {
188 for ( std::size_t
i=0;
i<this->
size(); ++
i ) {
191 int inCycle = cbk->
cycle();
204 for ( std::size_t
i=0;
i<this->
size(); ++
i ) {
207 int inCycle = cbk->
cycle();
int cycle() const
Get the skimming cycle that this CutBookkeeper was running in.
std::string find(const std::string &s)
return a remapped string
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.
Description of the class that is used to keep track of event counts.
std::size_t nUsedOthers() const
Check if this CutBookkeeper has used others.
void addChild(CutBookkeeper_v1 *childEB)
Add one child to this CutBookkeeper.
void merge(const CutBookkeeperContainer_v1 *otherCont)
Merge the content of another xAOD::CutBookkeeperContainer into this one.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
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.
bool hasParent() const
Check if there is a parent CutBookkeeper of this CutBookkeeper.
OwnershipPolicy
describes the possible element ownership policies (see e.g. DataVector)
(Non-const) Iterator class for DataVector/DataList.
bool usingPrivateStore() const
Test to see if this object is currently using a private store.
int minCycle() const
Get the minimum cycle number of any xAOD::CutBookkeepers in the container.
int maxCycle() const
Get the maximum cycle number of any xAOD::CutBookkeepers in the container.
void releasePrivateStore()
Release and free any private store associated with this object.
void setParent(const CutBookkeeper_v1 *parentEB)
Set the parent CutBookkeeper of this CutBookkeeper.
Container that holds the Container of all CutBookkeepers.
bool isEqualTo(const CutBookkeeper_v1 *eb) const
Test for the equality of this CutBookkeeper with another one.
size_t index() const
Return the index of this element within its container.
const xAOD::CutBookkeeper_v1 * child(std::size_t i) const
Get the child at position i.
CutBookkeeperContainer_v1(SG::OwnershipPolicy ownPolicy=SG::OWN_ELEMENTS, SG::IndexTrackingPolicy trackIndices=SG::DEFAULT_TRACK_INDICES)
Default Constructor.
value_type push_back(value_type pElem)
Add an element to the end of the collection.
void makePrivateStore()
Create a new (empty) private store for this object.
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
const xAOD::CutBookkeeper_v1 * usedOther(std::size_t i) const
Get the usedOther at position i.
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.
const T * at(size_type n) const
Access an element, as an rvalue.
size_type size() const noexcept
Returns the number of elements in the collection.
virtual ~CutBookkeeperContainer_v1()
Destructor.
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.
const xAOD::CutBookkeeper_v1 * parent() const
Get the parent CutBookkeeper.