ATLAS Offline Software
Public Types | Public Member Functions | Protected Attributes | Private Member Functions | Private Attributes | List of all members
TCS::jTauTOBArray Class Reference

#include <jTauTOBArray.h>

Inheritance diagram for TCS::jTauTOBArray:
Collaboration diagram for TCS::jTauTOBArray:

Public Types

typedef std::vector< jTauTOB * > data_t
 
typedef data_t::iterator iterator
 
typedef data_t::const_iterator const_iterator
 

Public Member Functions

 jTauTOBArray (const std::string &name, unsigned int reserve)
 
virtual unsigned int size () const
 
TOBArray asTOBArray () const
 
const std::string & name () const
 
size_t size () const
 
size_t capacity () const
 
void clear ()
 
virtual void push_back (const jTauTOB &tob)
 
void pop_back ()
 
iterator begin ()
 
const_iterator begin () const
 
iterator end ()
 
const_iterator end () const
 
jTauTOBoperator[] (const int i)
 
const jTauTOBoperator[] (const int i) const
 

Protected Attributes

data_t m_data
 
unsigned int m_reserve
 

Private Member Functions

virtual void print (std::ostream &) const
 

Private Attributes

std::string m_name
 

Detailed Description

Definition at line 19 of file jTauTOBArray.h.

Member Typedef Documentation

◆ const_iterator

typedef data_t::const_iterator TCS::DataArrayImpl< jTauTOB >::const_iterator
inherited

Definition at line 18 of file DataArrayImpl.h.

◆ data_t

typedef std::vector<jTauTOB *> TCS::DataArrayImpl< jTauTOB >::data_t
inherited

Definition at line 16 of file DataArrayImpl.h.

◆ iterator

typedef data_t::iterator TCS::DataArrayImpl< jTauTOB >::iterator
inherited

Definition at line 17 of file DataArrayImpl.h.

Constructor & Destructor Documentation

◆ jTauTOBArray()

TCS::jTauTOBArray::jTauTOBArray ( const std::string &  name,
unsigned int  reserve 
)

Definition at line 7 of file jTauTOBArray.cxx.

7  :
9  DataArrayImpl<jTauTOB>(reserve)
10 {}

Member Function Documentation

◆ asTOBArray()

TCS::TOBArray TCS::jTauTOBArray::asTOBArray ( ) const

Definition at line 14 of file jTauTOBArray.cxx.

14  {
15  TOBArray tobarray(name());
16  for(const jTauTOB * jet : m_data)
17  tobarray.push_back( GenericTOB(*jet));
18  return tobarray;
19 }

◆ begin() [1/2]

iterator TCS::DataArrayImpl< jTauTOB >::begin
inlineinherited

Definition at line 40 of file DataArrayImpl.h.

40 { return m_data.begin(); }

◆ begin() [2/2]

const_iterator TCS::DataArrayImpl< jTauTOB >::begin
inlineinherited

Definition at line 41 of file DataArrayImpl.h.

41 { return m_data.begin(); }

◆ capacity()

size_t TCS::DataArrayImpl< jTauTOB >::capacity
inlineinherited

Definition at line 32 of file DataArrayImpl.h.

32 { return m_data.capacity(); }

◆ clear()

void TCS::DataArrayImpl< jTauTOB >::clear
inlineinherited

Definition at line 34 of file DataArrayImpl.h.

34 { m_data.clear(); }

◆ end() [1/2]

iterator TCS::DataArrayImpl< jTauTOB >::end
inlineinherited

Definition at line 43 of file DataArrayImpl.h.

43 { return m_data.end(); }

◆ end() [2/2]

const_iterator TCS::DataArrayImpl< jTauTOB >::end
inlineinherited

Definition at line 44 of file DataArrayImpl.h.

44 { return m_data.end(); }

◆ name()

const std::string& TCS::DataArray::name ( ) const
inlineinherited

Definition at line 20 of file DataArray.h.

20 { return m_name; }

◆ operator[]() [1/2]

jTauTOB & TCS::DataArrayImpl< jTauTOB >::operator[] ( const int  i)
inlineinherited

Definition at line 46 of file DataArrayImpl.h.

46 { return *m_data[i]; }

◆ operator[]() [2/2]

const jTauTOB & TCS::DataArrayImpl< jTauTOB >::operator[] ( const int  i) const
inlineinherited

Definition at line 47 of file DataArrayImpl.h.

47 { return *m_data[i]; }

◆ pop_back()

void TCS::DataArrayImpl< jTauTOB >::pop_back
inlineinherited

Definition at line 38 of file DataArrayImpl.h.

38 { m_data.pop_back(); }

◆ print()

void TCS::jTauTOBArray::print ( std::ostream &  o) const
privatevirtual

Implements TCS::DataArray.

Definition at line 22 of file jTauTOBArray.cxx.

22  {
23  o << name() << std::endl;
24  for(const_iterator tob = begin(); tob != end(); ++tob)
25  o << **tob << std::endl;
26 }

◆ push_back()

void TCS::DataArrayImpl< jTauTOB >::push_back ( const jTauTOB tob)
virtualinherited

Definition at line 36 of file DataArrayImpl.h.

57  {
58  m_data.push_back(DATA::createOnHeap(tob));
59 }

◆ size() [1/2]

virtual unsigned int TCS::jTauTOBArray::size ( ) const
inlinevirtual

Implements TCS::InputTOBArray.

Definition at line 24 of file jTauTOBArray.h.

24 { return DataArrayImpl<jTauTOB>::size(); }

◆ size() [2/2]

size_t TCS::DataArrayImpl< jTauTOB >::size
inlineinherited

Definition at line 30 of file DataArrayImpl.h.

30 { return m_data.size(); }

Member Data Documentation

◆ m_data

data_t TCS::DataArrayImpl< jTauTOB >::m_data
protectedinherited

Definition at line 50 of file DataArrayImpl.h.

◆ m_name

std::string TCS::DataArray::m_name
privateinherited

Definition at line 25 of file DataArray.h.

◆ m_reserve

unsigned int TCS::DataArrayImpl< jTauTOB >::m_reserve
protectedinherited

Definition at line 51 of file DataArrayImpl.h.


The documentation for this class was generated from the following files:
TCS::InputTOBArray::InputTOBArray
InputTOBArray(const std::string &name)
Definition: InputTOBArray.h:18
TCS::DataArrayImpl< jTauTOB >::const_iterator
data_t::const_iterator const_iterator
Definition: DataArrayImpl.h:18
TCS::DataArray::name
const std::string & name() const
Definition: DataArray.h:20
TCS::DataArrayImpl< jTauTOB >::end
iterator end()
Definition: DataArrayImpl.h:43
jet
Definition: JetCalibTools_PlotJESFactors.cxx:23
lumiFormat.i
int i
Definition: lumiFormat.py:85
TCS::DataArrayImpl::size
size_t size() const
Definition: DataArrayImpl.h:30
TCS::DataArray::m_name
std::string m_name
Definition: DataArray.h:25
TCS::DataArrayImpl< jTauTOB >::m_data
data_t m_data
Definition: DataArrayImpl.h:50
TCS::DataArrayImpl< jTauTOB >::begin
iterator begin()
Definition: DataArrayImpl.h:40