ATLAS Offline Software
gJetTOBArray.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::gJetTOBArray::gJetTOBArray(const std::string & name, unsigned int reserve) :
12  DataArrayImpl<gJetTOB>(reserve)
13 {}
14 
15 
18  TOBArray tobarray(name());
19  for(const gJetTOB * jet : m_data)
20  tobarray.push_back( GenericTOB(*jet));
21  return tobarray;
22 }
23 
24 void
25 TCS::gJetTOBArray::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::DataArrayImpl< gJetTOB >::const_iterator
data_t::const_iterator const_iterator
Definition: DataArrayImpl.h:18
TCS::gJetTOBArray::asTOBArray
TOBArray asTOBArray() const
Definition: gJetTOBArray.cxx:17
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::gJetTOBArray::print
virtual void print(std::ostream &) const
Definition: gJetTOBArray.cxx:25
TCS::InputTOBArray
Definition: InputTOBArray.h:15
TOBArray.h
TCS::TOBArray
Definition: TOBArray.h:24
TCS::GenericTOB
Definition: GenericTOB.h:35
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
GenericTOB.h
TCS::gJetTOB
Definition: gJetTOB.h:18
gJetTOBArray.h
TCS::gJetTOBArray::gJetTOBArray
gJetTOBArray(const std::string &name, unsigned int reserve)
Definition: gJetTOBArray.cxx:10