ATLAS Offline Software
Loading...
Searching...
No Matches
EventBookkeeper_p2 Class Reference

#include <EventBookkeeper_p2.h>

Collaboration diagram for EventBookkeeper_p2:

Public Member Functions

 EventBookkeeper_p2 ()
 EventBookkeeper_p2 (const EventBookkeeper_p2 &rhs)
EventBookkeeper_p2operator= (const EventBookkeeper_p2 &rhs)
 ~EventBookkeeper_p2 ()

Public Attributes

std::string m_name
std::string m_description
std::string m_inputstream
std::string m_outputstream
std::string m_logic
std::vector< EventBookkeeper_p2 * > * m_childrenEB = nullptr
unsigned long long m_nAcceptedEvents = 0
double m_nWeightedAcceptedEvents = 0
int m_cycle = -1

Detailed Description

Definition at line 16 of file EventBookkeeper_p2.h.

Constructor & Destructor Documentation

◆ EventBookkeeper_p2() [1/2]

EventBookkeeper_p2::EventBookkeeper_p2 ( )

Definition at line 10 of file EventBookkeeper_p2.cxx.

11{
12}

◆ EventBookkeeper_p2() [2/2]

EventBookkeeper_p2::EventBookkeeper_p2 ( const EventBookkeeper_p2 & rhs)

Definition at line 14 of file EventBookkeeper_p2.cxx.

15 : m_childrenEB(0)
16{
17 *this = rhs;
18}
std::vector< EventBookkeeper_p2 * > * m_childrenEB

◆ ~EventBookkeeper_p2()

EventBookkeeper_p2::~EventBookkeeper_p2 ( )

Definition at line 46 of file EventBookkeeper_p2.cxx.

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}

Member Function Documentation

◆ operator=()

EventBookkeeper_p2 & EventBookkeeper_p2::operator= ( const EventBookkeeper_p2 & rhs)

Definition at line 20 of file EventBookkeeper_p2.cxx.

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}
unsigned long long m_nAcceptedEvents

Member Data Documentation

◆ m_childrenEB

std::vector<EventBookkeeper_p2*>* EventBookkeeper_p2::m_childrenEB = nullptr

Definition at line 33 of file EventBookkeeper_p2.h.

◆ m_cycle

int EventBookkeeper_p2::m_cycle = -1

Definition at line 36 of file EventBookkeeper_p2.h.

◆ m_description

std::string EventBookkeeper_p2::m_description

Definition at line 29 of file EventBookkeeper_p2.h.

◆ m_inputstream

std::string EventBookkeeper_p2::m_inputstream

Definition at line 30 of file EventBookkeeper_p2.h.

◆ m_logic

std::string EventBookkeeper_p2::m_logic

Definition at line 32 of file EventBookkeeper_p2.h.

◆ m_nAcceptedEvents

unsigned long long EventBookkeeper_p2::m_nAcceptedEvents = 0

Definition at line 34 of file EventBookkeeper_p2.h.

◆ m_name

std::string EventBookkeeper_p2::m_name

Definition at line 28 of file EventBookkeeper_p2.h.

◆ m_nWeightedAcceptedEvents

double EventBookkeeper_p2::m_nWeightedAcceptedEvents = 0

Definition at line 35 of file EventBookkeeper_p2.h.

◆ m_outputstream

std::string EventBookkeeper_p2::m_outputstream

Definition at line 31 of file EventBookkeeper_p2.h.


The documentation for this class was generated from the following files: