ATLAS Offline Software
Loading...
Searching...
No Matches
jJetTOBArray.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3*/
4
8
9
10TCS::jJetTOBArray::jJetTOBArray(const std::string & name, unsigned int reserve) :
12 DataArrayImpl<jJetTOB>(reserve)
13{}
14
15
18 TOBArray tobarray(name());
19 for(const jJetTOB * jet : m_data)
20 tobarray.push_back( GenericTOB(*jet));
21 return tobarray;
22}
23
24void
25TCS::jJetTOBArray::print(std::ostream &o) const {
26 o << name() << std::endl;
27 for(const_iterator tob = begin(); tob != end(); ++tob)
28 o << **tob << std::endl;
29}
data_t::const_iterator const_iterator
DataArrayImpl(unsigned int reserve=0)
const std::string & name() const
Definition DataArray.h:20
InputTOBArray(const std::string &name)
void push_back(const CompositeTOB &tob)
Definition TOBArray.cxx:24
jJetTOBArray(const std::string &name, unsigned int reserve)
virtual void print(std::ostream &) const
TOBArray asTOBArray() const