ATLAS Offline Software
CompositeTOB.cxx
Go to the documentation of this file.
1 // Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
2 
4 
6 
7 using namespace std;
8 
10 {}
11 
13 {
14  m_components.insert(m_components.end(), other.m_components.begin(), other.m_components.end());
15 }
16 
17 
18 TCS::CompositeTOB::CompositeTOB(const std::vector<GenericTOB*> & candidates)
19 {
20  m_components.insert(m_components.end(), candidates.begin(), candidates.end());
21 }
22 
24  m_components.push_back(candidate);
25 }
26 
28  m_components.push_back(candidate1);
29  m_components.push_back(candidate2);
30 }
31 
33 
36  return fg_heap.create(tob);
37 }
38 
39 void
41  return fg_heap.clear();
42 }
43 
44 void TCS::CompositeTOB::print(std::ostream &o) const {
45  o << "composite tob (" << components().size() << " candidates): ";
46  for(const_iterator c = components().begin();
47  c != components().end(); ++c) {
48  o << endl << " " << **c;
49  }
50 }
TCS::CompositeTOB::m_components
data_t m_components
Definition: CompositeTOB.h:49
TCS::CompositeTOB::~CompositeTOB
virtual ~CompositeTOB()
drawFromPickle.candidates
candidates
Definition: drawFromPickle.py:271
CompositeTOB.h
PlotCalibFromCool.begin
begin
Definition: PlotCalibFromCool.py:94
TCS::Heap< TCS::CompositeTOB >
TCS::CompositeTOB::createOnHeap
static CompositeTOB * createOnHeap(const CompositeTOB &tob)
Definition: CompositeTOB.cxx:35
TCS::CompositeTOB::fg_heap
static thread_local Heap< TCS::CompositeTOB > fg_heap
Definition: CompositeTOB.h:51
TCS::CompositeTOB::clearHeap
static void clearHeap()
Definition: CompositeTOB.cxx:40
TCS::CompositeTOB::const_iterator
data_t::const_iterator const_iterator
Definition: CompositeTOB.h:20
TCS::CompositeTOB
Definition: CompositeTOB.h:16
TCS::GenericTOB
Definition: GenericTOB.h:35
InDetDD::other
@ other
Definition: InDetDD_Defs.h:16
python.compressB64.c
def c
Definition: compressB64.py:93
TCS::CompositeTOB::print
virtual void print(std::ostream &o) const
Definition: CompositeTOB.cxx:44
TCS::CompositeTOB::CompositeTOB
CompositeTOB()
Definition: CompositeTOB.cxx:9