ATLAS Offline Software
Loading...
Searching...
No Matches
Trigger
TrigT1
L1Topo
L1TopoEvent
Root
TOBArray.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3
*/
4
// TOBArray.cxx
5
// TopoCore
6
// Created by Joerg Stelzer on 11/17/12.
7
8
#include "
L1TopoEvent/TOBArray.h
"
9
#include "
L1TopoEvent/CompositeTOB.h
"
10
#include "
L1TopoEvent/InputTOBArray.h
"
11
#include "
L1TopoEvent/JetTOBArray.h
"
12
#include "
L1TopoEvent/ClusterTOBArray.h
"
13
14
#include <algorithm>
15
16
void
TCS::TOBArray::print
(std::ostream &o)
const
{
17
for
(
const_iterator
tob =
m_data
.begin(); tob !=
m_data
.end(); ++tob) {
18
if
( tob!=
begin
() ) o << std::endl;
19
o << **tob;
20
}
21
}
22
23
void
24
TCS::TOBArray::push_back
(
const
TCS::CompositeTOB
& tob) {
25
m_data
.push_back(
CompositeTOB::createOnHeap
(tob));
26
}
27
28
void
29
TCS::TOBArray::sort
(
sort_fnc
fnc) {
30
std::sort
(
m_data
.begin(),
m_data
.end(), fnc);
31
}
ClusterTOBArray.h
CompositeTOB.h
InputTOBArray.h
JetTOBArray.h
TOBArray.h
TCS::CompositeTOB
Definition
CompositeTOB.h:16
TCS::CompositeTOB::createOnHeap
static CompositeTOB * createOnHeap(const CompositeTOB &tob)
Definition
CompositeTOB.cxx:35
TCS::DataArrayImpl< GenericTOB >::begin
iterator begin()
Definition
DataArrayImpl.h:40
TCS::DataArrayImpl< GenericTOB >::const_iterator
data_t::const_iterator const_iterator
Definition
DataArrayImpl.h:18
TCS::DataArrayImpl< GenericTOB >::m_data
data_t m_data
Definition
DataArrayImpl.h:50
TCS::TOBArray::print
virtual void print(std::ostream &) const
Definition
TOBArray.cxx:16
TCS::TOBArray::push_back
void push_back(const CompositeTOB &tob)
Definition
TOBArray.cxx:24
TCS::TOBArray::sort
void sort(sort_fnc)
Definition
TOBArray.cxx:29
TCS::sort_fnc
bool sort_fnc(GenericTOB *tob1, GenericTOB *tob2)
Definition
TOBArray.h:22
std::sort
void sort(typename DataModel_detail::iterator< DVL > beg, typename DataModel_detail::iterator< DVL > end)
Specialization of sort for DataVector/List.
Definition
DVL_algorithms.h:554
Generated on
for ATLAS Offline Software by
1.14.0