ATLAS Offline Software
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 
10 #include "L1TopoEvent/TOBArray.h"
11 #include "L1TopoEvent/GenericTOB.h"
12 
13 
14 TCS::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 
28 void
29 TCS::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 }
TCS::JetTOBArray::asTOBArray
TOBArray asTOBArray(JetTOB::JetSize jetsize) const
Definition: JetTOBArray.cxx:21
TCS::JetTOB::JetSize
JetSize
Definition: JetTOB.h:21
TCS::DataArrayImpl< JetTOB >::const_iterator
data_t::const_iterator const_iterator
Definition: DataArrayImpl.h:18
TCS::JetTOBArray::print
virtual void print(std::ostream &) const
Definition: JetTOBArray.cxx:29
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
JetTOBArray.h
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::JetTOBArray::JetTOBArray
JetTOBArray(const std::string &name, unsigned int reserve)
Definition: JetTOBArray.cxx:14
TCS::JetTOB
Definition: JetTOB.h:18