ATLAS Offline Software
Loading...
Searching...
No Matches
EventShapeStore Class Reference

#include <EventShapeStore.h>

Collaboration diagram for EventShapeStore:

Public Member Functions

 EventShapeStore ()
 ~EventShapeStore ()
bool get (const EventShapes::EventShapeType &type, double &value, unsigned int index=0) const
void insert (EventShapes &es)
void insert (EventShapes::EventShapeType type, double value)
void insert (EventShapes::EventShapeType type, std::vector< double > &values, bool canSwap=false)

Private Types

typedef std::vector< EventShapesstore_type
typedef store_type::iterator store_iter
typedef store_type::const_iterator store_Citer

Private Attributes

store_type m_store

Friends

template<class T>
class EventShapeStoreConverterBase

Detailed Description

Definition at line 14 of file EventShapeStore.h.

Member Typedef Documentation

◆ store_Citer

typedef store_type::const_iterator EventShapeStore::store_Citer
private

Definition at line 71 of file EventShapeStore.h.

◆ store_iter

typedef store_type::iterator EventShapeStore::store_iter
private

Definition at line 69 of file EventShapeStore.h.

◆ store_type

typedef std::vector<EventShapes> EventShapeStore::store_type
private

Definition at line 67 of file EventShapeStore.h.

Constructor & Destructor Documentation

◆ EventShapeStore()

EventShapeStore::EventShapeStore ( )
inline

Definition at line 21 of file EventShapeStore.h.

21{};

◆ ~EventShapeStore()

EventShapeStore::~EventShapeStore ( )
inline

Definition at line 23 of file EventShapeStore.h.

23{};

Member Function Documentation

◆ get()

bool EventShapeStore::get ( const EventShapes::EventShapeType & type,
double & value,
unsigned int index = 0 ) const

Definition at line 8 of file EventShapeStore.cxx.

9{
10 value=0;
11 for(store_Citer it=m_store.begin(); it!=m_store.end(); ++it )
12 if(it->getType()==type)
13 {
14 value=it->getValue(index);
15 return true;
16 }
17 return false;
18}
store_type::const_iterator store_Citer

◆ insert() [1/3]

void EventShapeStore::insert ( EventShapes & es)
inline

Definition at line 32 of file EventShapeStore.h.

33 {
34 for(store_iter it=m_store.begin(); it!=m_store.end(); it++ )
35 if(it->getType()==es.getType())
36 {
37 it->swapValues( es );
38 return;
39 }
40 m_store.push_back(es);
41 };
store_type::iterator store_iter
EventShapeType getType() const
Definition EventShapes.h:64

◆ insert() [2/3]

void EventShapeStore::insert ( EventShapes::EventShapeType type,
double value )
inline

Definition at line 43 of file EventShapeStore.h.

44 {
45 for(store_iter it=m_store.begin(); it!=m_store.end(); it++ )
46 if(it->getType()==type)
47 {
48 it->setValue(value);
49 return;
50 }
51 m_store.push_back(EventShapes(type,value));
52 };

◆ insert() [3/3]

void EventShapeStore::insert ( EventShapes::EventShapeType type,
std::vector< double > & values,
bool canSwap = false )
inline

Definition at line 54 of file EventShapeStore.h.

55 {
56 for(store_iter it=m_store.begin(); it!=m_store.end(); it++ )
57 if(it->getType()==type)
58 {
59 it->setValues(values, canSwap);
60 return;
61 }
62 m_store.push_back(EventShapes(type, values, canSwap));
63 };

◆ EventShapeStoreConverterBase

template<class T>
friend class EventShapeStoreConverterBase
friend

Definition at line 19 of file EventShapeStore.h.

Member Data Documentation

◆ m_store

store_type EventShapeStore::m_store
private

Definition at line 73 of file EventShapeStore.h.


The documentation for this class was generated from the following files: