ATLAS Offline Software
Loading...
Searching...
No Matches
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
7using namespace std;
8
11
13{
14 m_components.insert(m_components.end(), other.m_components.begin(), other.m_components.end());
15}
16
17
18TCS::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
39void
41 return fg_heap.clear();
42}
43
44void 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}
data_t & components()
virtual ~CompositeTOB()
data_t::const_iterator const_iterator
static CompositeTOB * createOnHeap(const CompositeTOB &tob)
virtual void print(std::ostream &o) const
static void clearHeap()
static thread_local Heap< TCS::CompositeTOB > fg_heap
GenericTOB(uint32_t roiWord=0)
Definition GenericTOB.cxx:8
STL namespace.