ATLAS Offline Software
Loading...
Searching...
No Matches
EventBookkeeper_p2.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
6// Author: David Cote, September 2008. <david.cote@cern.ch>
9
13
15 : m_childrenEB(0)
16{
17 *this = rhs;
18}
19
21{
22 if (this != &rhs) {
23 m_name=rhs.m_name;
27 m_logic = rhs.m_logic;
30 m_cycle=rhs.m_cycle;
31 //Make a new deep copy of the children by calling the constructor iteratively (as this becomes the new owner of these objects)
32 delete m_childrenEB;
33 if (!rhs.m_childrenEB)
34 m_childrenEB = 0;
35 else {
36 m_childrenEB = new std::vector<EventBookkeeper_p2*>;
37 for(unsigned int i=0; i<rhs.m_childrenEB->size(); i++){
39 m_childrenEB->push_back(child);
40 }
41 }
42 }
43 return *this;
44}
45
47{
48 //Iteratively call the destructor of the children
49 if (m_childrenEB) {
50 for(unsigned int i=0; i<m_childrenEB->size(); i++){ delete m_childrenEB->at(i); }
51 m_childrenEB->clear();
52 delete m_childrenEB;
53 }
54}
55
std::vector< EventBookkeeper_p2 * > * m_childrenEB
EventBookkeeper_p2 & operator=(const EventBookkeeper_p2 &rhs)
unsigned long long m_nAcceptedEvents