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

Simple store for CaloCell links. This object is fully navigable. More...

#include <CaloCellLink.h>

Inheritance diagram for CaloCellLink:
Collaboration diagram for CaloCellLink:

Public Types

typedef Navigable< CaloCellContainer, double >::object_iter cell_iterator
 Forward internal iterator type to clients. More...
 
typedef typename NavigationDefaults::DefaultChildColl< CaloCellContainer, double >::type constituent_coll
 
typedef constituent_coll::iterator constituent_iter
 
typedef constituent_coll::const_iterator constituent_const_iter
 
typedef CaloCellContainer container_type
 Object container type. More...
 
typedef double parameter_type
 \ brief Relational parameter type More...
 
typedef NavigationDefaults::DefaultChildColl< container_type, parameter_typenavhelper_t
 Collection manager type. More...
 
typedef CONT::base_value_type constituent_type
 
typedef CONT::reference constituent_ptr_ref
 
typedef CONT::const_reference constituent_const_ptr_ref
 
typedef CONT::value_type constituent_ptr
 
typedef SG::GenerateIndexingPolicy< CaloCellContainer >::type::index_type external_index_type
 
typedef NavigableIterator< CaloCellContainer, double, typename NavigationDefaults::DefaultChildColl< CaloCellContainer, double >::type > object_iter
 

Public Member Functions

 CaloCellLink ()
 Constructor. More...
 
 CaloCellLink (const CaloCellLink *pLink)
 Copy constructor. More...
 
 CaloCellLink (const CaloCellLink &rLink)
 
CaloCellLinkoperator= (const CaloCellLink &rLink)
 Assignment. More...
 
virtual ~CaloCellLink ()
 Destructor. More...
 
virtual void fillToken (INavigationToken &navToken) const
 
virtual void fillToken (INavigationToken &navToken, const std::any &parentParameter) const
 
void putElement (const CaloCellContainer *objectContainer, const constituent_type *constituentObject, const double &objectParameter=double(), size_t sizeHint=0)
 
void putElement (const CaloCellContainer *objectContainer, const external_index_type &theIndex, const double &objectParameter=double(), size_t sizeHint=0)
 
void insertElement (const CaloCellContainer *objectContainer, const constituent_type *constituentObject, const double &objectParameter=double(), size_t sizeHint=0)
 
void insertElement (const CaloCellContainer *objectContainer, const external_index_type &theIndex, const double &objectParameter=double(), size_t sizeHint=0)
 
void insertElement (const CaloCellContainer *objectContainer, const external_index_type &theIndex, IProxyDict *sg, const double &objectParameter=double(), size_t sizeHint=0)
 
void insertElement (const ElementLink< CaloCellContainer > &el, const double &objectParameter=double(), size_t sizeHint=0)
 
void reweight (const constituent_type *constituentObject, const double &objectParameter=double())
 
void reweight (const CaloCellContainer *objectContainer, const external_index_type &theIndex, const double &objectParameter=double())
 
void reweight (object_iter &objectIter, const double &objectParameter=double())
 
bool remove (const constituent_type *aConstituent)
 
bool remove (const CaloCellContainer *objectContainer, const external_index_type &theIndex)
 
bool removeAll ()
 
bool replace (const CaloCellContainer *newObjectContainer)
 replace old object container with a new container assumes that all objects have been or will be inserted to the new container
More...
 
bool contains (const constituent_type *aConstituent) const
 
bool contains (const CaloCellContainer *objectContainer, const external_index_type &theIndex) const
 
virtual object_iter begin () const
 
virtual object_iter end () const
 
virtual unsigned int size () const
 
double getParameter (const constituent_type *aConstituent) const
 
double getParameter (const CaloCellContainer *objectContainer, const external_index_type &theIndex) const
 
double getParameter (object_iter &theIter) const
 
const CaloCellContainergetContainer (const constituent_type *aConstituent) const
 
const CaloCellContainergetContainer (constituent_const_iter anIter) const
 
const CaloCellContainergetContainer (object_iter objectIter) const
 
bool getIndex (const constituent_type *aConstituent, external_index_type &theIndex) const
 
bool getIndex (constituent_const_iter anIter, external_index_type &theIndex) const
 
bool getIndex (object_iter objectIter, external_index_type &theIndex) const
 

Protected Member Functions

const constituent_collgetConstituents () const
 
constituent_collgetConstituents ()
 
const constituent_collgetPtrToConstituents () const
 
constituent_collgetPtrToConstituents ()
 
virtual const constituent_typegetConstituentPtr (constituent_iter iter) const
 
virtual const constituent_typegetConstituentPtr (constituent_const_iter iter) const
 
virtual double getConstituentPar (constituent_iter iter) const
 
virtual double getConstituentPar (constituent_const_iter iter) const
 
void dumpStore () const
 

Private Member Functions

void copyStore (const CaloCellLink *pLink)
 
virtual void apply (NavigationToken< constituent_type > &navToken) const
 
virtual void apply (NavigationToken< constituent_type, double > &navToken, const double &aParameter) const
 
virtual void toKidsAfterAccept (INavigationToken &navToken) const
 
virtual void toKidsAfterAccept (INavigationToken &navToken, const std::any &aParameter) const
 
virtual void toKidsAfterReject (INavigationToken &navToken) const
 
virtual void toKidsAfterReject (INavigationToken &navToken, const std::any &aParameter) const
 

Private Attributes

constituent_coll m_constituents
 

Detailed Description

Simple store for CaloCell links. This object is fully navigable.

Definition at line 14 of file CaloCellLink.h.

Member Typedef Documentation

◆ cell_iterator

Forward internal iterator type to clients.

Type forwarding hides concrete store interator type and protects clients against future changes.

Definition at line 33 of file CaloCellLink.h.

◆ constituent_coll

Definition at line 101 of file Navigable.h.

◆ constituent_const_iter

typedef constituent_coll::const_iterator Navigable< CaloCellContainer , double , typename NavigationDefaults::DefaultChildColl<CaloCellContainer , double >::type >::constituent_const_iter
inherited

Definition at line 103 of file Navigable.h.

◆ constituent_const_ptr_ref

typedef CONT::const_reference Navigable< CaloCellContainer , double , typename NavigationDefaults::DefaultChildColl<CaloCellContainer , double >::type >::constituent_const_ptr_ref
inherited

Definition at line 151 of file Navigable.h.

◆ constituent_iter

typedef constituent_coll::iterator Navigable< CaloCellContainer , double , typename NavigationDefaults::DefaultChildColl<CaloCellContainer , double >::type >::constituent_iter
inherited

Definition at line 102 of file Navigable.h.

◆ constituent_ptr

typedef CONT::value_type Navigable< CaloCellContainer , double , typename NavigationDefaults::DefaultChildColl<CaloCellContainer , double >::type >::constituent_ptr
inherited

Definition at line 152 of file Navigable.h.

◆ constituent_ptr_ref

typedef CONT::reference Navigable< CaloCellContainer , double , typename NavigationDefaults::DefaultChildColl<CaloCellContainer , double >::type >::constituent_ptr_ref
inherited

Definition at line 150 of file Navigable.h.

◆ constituent_type

typedef CONT::base_value_type Navigable< CaloCellContainer , double , typename NavigationDefaults::DefaultChildColl<CaloCellContainer , double >::type >::constituent_type
inherited

Definition at line 149 of file Navigable.h.

◆ container_type

Object container type.

Definition at line 110 of file Navigable.h.

◆ external_index_type

Definition at line 156 of file Navigable.h.

◆ navhelper_t

Collection manager type.

Definition at line 114 of file Navigable.h.

◆ object_iter

Definition at line 159 of file Navigable.h.

◆ parameter_type

typedef double Navigable< CaloCellContainer , double , typename NavigationDefaults::DefaultChildColl<CaloCellContainer , double >::type >::parameter_type
inherited

\ brief Relational parameter type

Definition at line 112 of file Navigable.h.

Constructor & Destructor Documentation

◆ CaloCellLink() [1/3]

CaloCellLink::CaloCellLink ( )

Constructor.

Definition at line 10 of file CaloCellLink.cxx.

◆ CaloCellLink() [2/3]

CaloCellLink::CaloCellLink ( const CaloCellLink pLink)
explicit

Copy constructor.

Definition at line 13 of file CaloCellLink.cxx.

15 {
16  this->copyStore(pLink);
17 }

◆ CaloCellLink() [3/3]

CaloCellLink::CaloCellLink ( const CaloCellLink rLink)
explicit

Definition at line 19 of file CaloCellLink.cxx.

20  : INavigable (rLink),
22 {
23  this->copyStore(&rLink);
24 }

◆ ~CaloCellLink()

CaloCellLink::~CaloCellLink ( )
virtualdefault

Destructor.

Member Function Documentation

◆ apply() [1/2]

virtual void Navigable< CaloCellContainer , double , typename NavigationDefaults::DefaultChildColl<CaloCellContainer , double >::type >::apply ( NavigationToken< constituent_type > &  navToken) const
privatevirtualinherited

◆ apply() [2/2]

virtual void Navigable< CaloCellContainer , double , typename NavigationDefaults::DefaultChildColl<CaloCellContainer , double >::type >::apply ( NavigationToken< constituent_type, double > &  navToken,
const double &  aParameter 
) const
privatevirtualinherited

◆ begin()

virtual object_iter Navigable< CaloCellContainer , double , typename NavigationDefaults::DefaultChildColl<CaloCellContainer , double >::type >::begin
virtualinherited

◆ contains() [1/2]

bool Navigable< CaloCellContainer , double , typename NavigationDefaults::DefaultChildColl<CaloCellContainer , double >::type >::contains ( const CaloCellContainer objectContainer,
const external_index_type theIndex 
) const
inherited

◆ contains() [2/2]

bool Navigable< CaloCellContainer , double , typename NavigationDefaults::DefaultChildColl<CaloCellContainer , double >::type >::contains ( const constituent_type aConstituent) const
inherited

◆ copyStore()

void CaloCellLink::copyStore ( const CaloCellLink pLink)
private

Definition at line 38 of file CaloCellLink.cxx.

39 {
40  cell_iterator fCell = pLink->begin();
41  cell_iterator lCell = pLink->end();
42  for ( ; fCell != lCell; fCell++ )
43  {
44  this->insertElement(pLink->getContainer(fCell),*fCell,
45  pLink->getParameter(fCell));
46  }
47 }

◆ dumpStore()

void Navigable< CaloCellContainer , double , typename NavigationDefaults::DefaultChildColl<CaloCellContainer , double >::type >::dumpStore
protectedinherited

◆ end()

virtual object_iter Navigable< CaloCellContainer , double , typename NavigationDefaults::DefaultChildColl<CaloCellContainer , double >::type >::end
virtualinherited

◆ fillToken() [1/2]

virtual void Navigable< CaloCellContainer , double , typename NavigationDefaults::DefaultChildColl<CaloCellContainer , double >::type >::fillToken ( INavigationToken navToken) const
virtualinherited

Implements INavigable.

◆ fillToken() [2/2]

virtual void Navigable< CaloCellContainer , double , typename NavigationDefaults::DefaultChildColl<CaloCellContainer , double >::type >::fillToken ( INavigationToken navToken,
const std::any &  parentParameter 
) const
virtualinherited

Implements INavigable.

◆ getConstituentPar() [1/2]

virtual double Navigable< CaloCellContainer , double , typename NavigationDefaults::DefaultChildColl<CaloCellContainer , double >::type >::getConstituentPar ( constituent_const_iter  iter) const
protectedvirtualinherited

◆ getConstituentPar() [2/2]

virtual double Navigable< CaloCellContainer , double , typename NavigationDefaults::DefaultChildColl<CaloCellContainer , double >::type >::getConstituentPar ( constituent_iter  iter) const
protectedvirtualinherited

◆ getConstituentPtr() [1/2]

virtual const constituent_type* Navigable< CaloCellContainer , double , typename NavigationDefaults::DefaultChildColl<CaloCellContainer , double >::type >::getConstituentPtr ( constituent_const_iter  iter) const
protectedvirtualinherited

◆ getConstituentPtr() [2/2]

virtual const constituent_type* Navigable< CaloCellContainer , double , typename NavigationDefaults::DefaultChildColl<CaloCellContainer , double >::type >::getConstituentPtr ( constituent_iter  iter) const
protectedvirtualinherited

◆ getConstituents() [1/2]

constituent_coll& Navigable< CaloCellContainer , double , typename NavigationDefaults::DefaultChildColl<CaloCellContainer , double >::type >::getConstituents
inlineprotectedinherited

Definition at line 291 of file Navigable.h.

291 { return m_constituents; }

◆ getConstituents() [2/2]

const constituent_coll& Navigable< CaloCellContainer , double , typename NavigationDefaults::DefaultChildColl<CaloCellContainer , double >::type >::getConstituents
inlineprotectedinherited

Definition at line 290 of file Navigable.h.

290 { return m_constituents; }

◆ getContainer() [1/3]

const CaloCellContainer * Navigable< CaloCellContainer , double , typename NavigationDefaults::DefaultChildColl<CaloCellContainer , double >::type >::getContainer ( const constituent_type aConstituent) const
inherited

◆ getContainer() [2/3]

const CaloCellContainer * Navigable< CaloCellContainer , double , typename NavigationDefaults::DefaultChildColl<CaloCellContainer , double >::type >::getContainer ( constituent_const_iter  anIter) const
inherited

◆ getContainer() [3/3]

const CaloCellContainer * Navigable< CaloCellContainer , double , typename NavigationDefaults::DefaultChildColl<CaloCellContainer , double >::type >::getContainer ( object_iter  objectIter) const
inherited

◆ getIndex() [1/3]

bool Navigable< CaloCellContainer , double , typename NavigationDefaults::DefaultChildColl<CaloCellContainer , double >::type >::getIndex ( const constituent_type aConstituent,
external_index_type theIndex 
) const
inherited

◆ getIndex() [2/3]

bool Navigable< CaloCellContainer , double , typename NavigationDefaults::DefaultChildColl<CaloCellContainer , double >::type >::getIndex ( constituent_const_iter  anIter,
external_index_type theIndex 
) const
inherited

◆ getIndex() [3/3]

bool Navigable< CaloCellContainer , double , typename NavigationDefaults::DefaultChildColl<CaloCellContainer , double >::type >::getIndex ( object_iter  objectIter,
external_index_type theIndex 
) const
inherited

◆ getParameter() [1/3]

double Navigable< CaloCellContainer , double , typename NavigationDefaults::DefaultChildColl<CaloCellContainer , double >::type >::getParameter ( const CaloCellContainer objectContainer,
const external_index_type theIndex 
) const
inherited

◆ getParameter() [2/3]

double Navigable< CaloCellContainer , double , typename NavigationDefaults::DefaultChildColl<CaloCellContainer , double >::type >::getParameter ( const constituent_type aConstituent) const
inherited

◆ getParameter() [3/3]

double Navigable< CaloCellContainer , double , typename NavigationDefaults::DefaultChildColl<CaloCellContainer , double >::type >::getParameter ( object_iter theIter) const
inherited

◆ getPtrToConstituents() [1/2]

constituent_coll* Navigable< CaloCellContainer , double , typename NavigationDefaults::DefaultChildColl<CaloCellContainer , double >::type >::getPtrToConstituents
inlineprotectedinherited

Definition at line 296 of file Navigable.h.

297  { return &m_constituents; }

◆ getPtrToConstituents() [2/2]

const constituent_coll* Navigable< CaloCellContainer , double , typename NavigationDefaults::DefaultChildColl<CaloCellContainer , double >::type >::getPtrToConstituents
inlineprotectedinherited

Definition at line 294 of file Navigable.h.

295  { return &m_constituents; }

◆ insertElement() [1/4]

void Navigable< CaloCellContainer , double , typename NavigationDefaults::DefaultChildColl<CaloCellContainer , double >::type >::insertElement ( const CaloCellContainer objectContainer,
const constituent_type constituentObject,
const double &  objectParameter = RPAR(),
size_t  sizeHint = 0 
)
inherited

◆ insertElement() [2/4]

void Navigable< CaloCellContainer , double , typename NavigationDefaults::DefaultChildColl<CaloCellContainer , double >::type >::insertElement ( const CaloCellContainer objectContainer,
const external_index_type theIndex,
const double &  objectParameter = RPAR(),
size_t  sizeHint = 0 
)
inherited

◆ insertElement() [3/4]

void Navigable< CaloCellContainer , double , typename NavigationDefaults::DefaultChildColl<CaloCellContainer , double >::type >::insertElement ( const CaloCellContainer objectContainer,
const external_index_type theIndex,
IProxyDict sg,
const double &  objectParameter = RPAR(),
size_t  sizeHint = 0 
)
inherited

◆ insertElement() [4/4]

void Navigable< CaloCellContainer , double , typename NavigationDefaults::DefaultChildColl<CaloCellContainer , double >::type >::insertElement ( const ElementLink< CaloCellContainer > &  el,
const double &  objectParameter = RPAR(),
size_t  sizeHint = 0 
)
inherited

◆ operator=()

CaloCellLink & CaloCellLink::operator= ( const CaloCellLink rLink)

Assignment.

Definition at line 26 of file CaloCellLink.cxx.

27 {
28  if (this != &rLink) {
29  this->removeAll();
30  this->copyStore(&rLink);
31  }
32  return *this;
33 }

◆ putElement() [1/2]

void Navigable< CaloCellContainer , double , typename NavigationDefaults::DefaultChildColl<CaloCellContainer , double >::type >::putElement ( const CaloCellContainer objectContainer,
const constituent_type constituentObject,
const double &  objectParameter = RPAR(),
size_t  sizeHint = 0 
)
inherited

◆ putElement() [2/2]

void Navigable< CaloCellContainer , double , typename NavigationDefaults::DefaultChildColl<CaloCellContainer , double >::type >::putElement ( const CaloCellContainer objectContainer,
const external_index_type theIndex,
const double &  objectParameter = RPAR(),
size_t  sizeHint = 0 
)
inherited

◆ remove() [1/2]

bool Navigable< CaloCellContainer , double , typename NavigationDefaults::DefaultChildColl<CaloCellContainer , double >::type >::remove ( const CaloCellContainer objectContainer,
const external_index_type theIndex 
)
inherited

◆ remove() [2/2]

bool Navigable< CaloCellContainer , double , typename NavigationDefaults::DefaultChildColl<CaloCellContainer , double >::type >::remove ( const constituent_type aConstituent)
inherited

◆ removeAll()

bool Navigable< CaloCellContainer , double , typename NavigationDefaults::DefaultChildColl<CaloCellContainer , double >::type >::removeAll
inlineinherited

Definition at line 237 of file Navigable.h.

237 { m_constituents.clear(); return this->size() == 0 ; }

◆ replace()

bool Navigable< CaloCellContainer , double , typename NavigationDefaults::DefaultChildColl<CaloCellContainer , double >::type >::replace ( const CaloCellContainer newObjectContainer)
inherited

replace old object container with a new container assumes that all objects have been or will be inserted to the new container

◆ reweight() [1/3]

void Navigable< CaloCellContainer , double , typename NavigationDefaults::DefaultChildColl<CaloCellContainer , double >::type >::reweight ( const CaloCellContainer objectContainer,
const external_index_type theIndex,
const double &  objectParameter = RPAR() 
)
inherited

◆ reweight() [2/3]

void Navigable< CaloCellContainer , double , typename NavigationDefaults::DefaultChildColl<CaloCellContainer , double >::type >::reweight ( const constituent_type constituentObject,
const double &  objectParameter = RPAR() 
)
inherited

◆ reweight() [3/3]

void Navigable< CaloCellContainer , double , typename NavigationDefaults::DefaultChildColl<CaloCellContainer , double >::type >::reweight ( object_iter objectIter,
const double &  objectParameter = RPAR() 
)
inherited

◆ size()

virtual unsigned int Navigable< CaloCellContainer , double , typename NavigationDefaults::DefaultChildColl<CaloCellContainer , double >::type >::size
virtualinherited

◆ toKidsAfterAccept() [1/2]

virtual void Navigable< CaloCellContainer , double , typename NavigationDefaults::DefaultChildColl<CaloCellContainer , double >::type >::toKidsAfterAccept ( INavigationToken navToken) const
privatevirtualinherited

◆ toKidsAfterAccept() [2/2]

virtual void Navigable< CaloCellContainer , double , typename NavigationDefaults::DefaultChildColl<CaloCellContainer , double >::type >::toKidsAfterAccept ( INavigationToken navToken,
const std::any &  aParameter 
) const
privatevirtualinherited

◆ toKidsAfterReject() [1/2]

virtual void Navigable< CaloCellContainer , double , typename NavigationDefaults::DefaultChildColl<CaloCellContainer , double >::type >::toKidsAfterReject ( INavigationToken navToken) const
privatevirtualinherited

◆ toKidsAfterReject() [2/2]

virtual void Navigable< CaloCellContainer , double , typename NavigationDefaults::DefaultChildColl<CaloCellContainer , double >::type >::toKidsAfterReject ( INavigationToken navToken,
const std::any &  aParameter 
) const
privatevirtualinherited

Member Data Documentation

◆ m_constituents

constituent_coll Navigable< CaloCellContainer , double , typename NavigationDefaults::DefaultChildColl<CaloCellContainer , double >::type >::m_constituents
privateinherited

Definition at line 345 of file Navigable.h.


The documentation for this class was generated from the following files:
Navigable< CaloCellContainer, double >::m_constituents
constituent_coll m_constituents
Definition: Navigable.h:345
Navigable< CaloCellContainer, double >::removeAll
bool removeAll()
Definition: Navigable.h:237
Navigable< CaloCellContainer, double >::insertElement
void insertElement(const CaloCellContainer *objectContainer, const constituent_type *constituentObject, const double &objectParameter=double(), size_t sizeHint=0)
Navigable::begin
virtual object_iter begin() const
Navigable::end
virtual object_iter end() const
INavigable
Definition: INavigable.h:18
Navigable::getContainer
const CONT * getContainer(const constituent_type *aConstituent) const
Navigable< CaloCellContainer, double >
Navigable::getParameter
RPAR getParameter(const constituent_type *aConstituent) const
Navigable< CaloCellContainer, double >::size
virtual unsigned int size() const