ATLAS Offline Software
jEmTOBArray.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 #include "L1TopoEvent/TOBArray.h"
8 
9 
10 TCS::jEmTOBArray::jEmTOBArray(const std::string & name, unsigned int reserve) :
12  DataArrayImpl<jEmTOB>(reserve)
13 {}
14 
15 
18  TOBArray tobarray(name());
19  for(const jEmTOB * jet : m_data)
20  tobarray.push_back( GenericTOB(*jet));
21  return tobarray;
22 }
23 
24 void
25 TCS::jEmTOBArray::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 }
TCS::jEmTOBArray::asTOBArray
TOBArray asTOBArray() const
Definition: jEmTOBArray.cxx:17
TCS::DataArrayImpl< jEmTOB >::const_iterator
data_t::const_iterator const_iterator
Definition: DataArrayImpl.h:18
m_data
std::vector< T > m_data
Definition: TrackTruthMatchingBaseAlg.cxx:660
PlotCalibFromCool.begin
begin
Definition: PlotCalibFromCool.py:94
mergePhysValFiles.end
end
Definition: DataQuality/DataQualityUtils/scripts/mergePhysValFiles.py:93
TCS::TOBArray::push_back
void push_back(const CompositeTOB &tob)
Definition: TOBArray.cxx:24
jet
Definition: JetCalibTools_PlotJESFactors.cxx:23
TCS::DataArrayImpl
Definition: DataArrayImpl.h:13
TCS::InputTOBArray
Definition: InputTOBArray.h:15
TOBArray.h
TCS::jEmTOBArray::jEmTOBArray
jEmTOBArray(const std::string &name, unsigned int reserve)
Definition: jEmTOBArray.cxx:10
TCS::TOBArray
Definition: TOBArray.h:24
jEmTOBArray.h
TCS::GenericTOB
Definition: GenericTOB.h:35
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
TCS::jEmTOBArray::print
virtual void print(std::ostream &) const
Definition: jEmTOBArray.cxx:25
GenericTOB.h
TCS::jEmTOB
Definition: jEmTOB.h:16