ATLAS Offline Software
Loading...
Searching...
No Matches
JetTOBArray.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3*/
4// JetTOBArray.cxx
5// TopoCore
6// Created by Joerg Stelzer on 11/17/12.
7// cw added
8
12
13
14TCS::JetTOBArray::JetTOBArray(const std::string & name, unsigned int reserve) :
16 DataArrayImpl<JetTOB>(reserve)
17{}
18
19
22 TOBArray tobarray(name());
23 for(const JetTOB * jet : m_data)
24 tobarray.push_back( GenericTOB(*jet, jetsize));
25 return tobarray;
26}
27
28void
29TCS::JetTOBArray::print(std::ostream &o) const {
30 o << name() << std::endl;
31 for(const_iterator tob = begin(); tob != end(); ++tob)
32 o << **tob << std::endl;
33}
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)
JetTOBArray(const std::string &name, unsigned int reserve)
virtual void print(std::ostream &) const
TOBArray asTOBArray(JetTOB::JetSize jetsize) const
void push_back(const CompositeTOB &tob)
Definition TOBArray.cxx:24