ATLAS Offline Software
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 
11 {
12 }
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 
EventBookkeeper_p2::m_nWeightedAcceptedEvents
double m_nWeightedAcceptedEvents
Definition: EventBookkeeper_p2.h:35
EventBookkeeper_p2::EventBookkeeper_p2
EventBookkeeper_p2()
Definition: EventBookkeeper_p2.cxx:10
EventBookkeeper_p2::m_logic
std::string m_logic
Definition: EventBookkeeper_p2.h:32
EventBookkeeper_p2::m_nAcceptedEvents
unsigned long long m_nAcceptedEvents
Definition: EventBookkeeper_p2.h:34
EventBookkeeper_p2::m_outputstream
std::string m_outputstream
Definition: EventBookkeeper_p2.h:31
EventBookkeeper_p2::m_cycle
int m_cycle
Definition: EventBookkeeper_p2.h:36
EventBookkeeper_p2::~EventBookkeeper_p2
~EventBookkeeper_p2()
Definition: EventBookkeeper_p2.cxx:46
lumiFormat.i
int i
Definition: lumiFormat.py:92
EventBookkeeper_p2::m_childrenEB
std::vector< EventBookkeeper_p2 * > * m_childrenEB
Definition: EventBookkeeper_p2.h:33
EventBookkeeper_p2.h
EventBookkeeper_p2::m_name
std::string m_name
Definition: EventBookkeeper_p2.h:28
EventBookkeeper_p2::operator=
EventBookkeeper_p2 & operator=(const EventBookkeeper_p2 &rhs)
Definition: EventBookkeeper_p2.cxx:20
EventBookkeeper_p2::m_inputstream
std::string m_inputstream
Definition: EventBookkeeper_p2.h:30
EventBookkeeper_p2::m_description
std::string m_description
Definition: EventBookkeeper_p2.h:29
EventBookkeeper_p2
Definition: EventBookkeeper_p2.h:16