AliPhysics  a6017e1 (a6017e1)
EventTimeMap Struct Reference
Inheritance diagram for EventTimeMap:

Public Types

enum  { kInvalidTime = 0xFFFFFFFFFFFFFFFF }
 
typedef std::map< ULong64_t, ULong64_t > Map
 
typedef Map::key_type Key
 
typedef Map::mapped_type Value
 
typedef Map::value_type Pair
 
typedef Map::iterator Iterator
 
typedef Map::const_iterator ConstIterator
 

Public Member Functions

 EventTimeMap ()
 
virtual ~EventTimeMap ()
 
const char * GetName () const
 
Valueoperator[] (const Key &k)
 
Iterator Find (const Key &k)
 
ConstIterator Find (const Key &k) const
 
Iterator Begin ()
 
ConstIterator Begin () const
 
Iterator End ()
 
ConstIterator End () const
 
Value Get (const Key &timestamp) const
 
void Set (const Key &timestamp, const Value &diff)
 
ULong64_t Size () const
 

Public Attributes

Map fMap
 

Detailed Description

A map of event time-stamp to distance to previous event

Definition at line 383 of file EventTimeTask.C.

Member Typedef Documentation

typedef Map::const_iterator EventTimeMap::ConstIterator

Constant iterator type

Definition at line 396 of file EventTimeTask.C.

typedef Map::iterator EventTimeMap::Iterator

Iterator type

Definition at line 394 of file EventTimeTask.C.

typedef Map::key_type EventTimeMap::Key

Key type

Definition at line 388 of file EventTimeTask.C.

typedef std::map<ULong64_t,ULong64_t> EventTimeMap::Map

Map type

Definition at line 386 of file EventTimeTask.C.

typedef Map::value_type EventTimeMap::Pair

Element type

Definition at line 392 of file EventTimeTask.C.

typedef Map::mapped_type EventTimeMap::Value

Mapped value type

Definition at line 390 of file EventTimeTask.C.

Member Enumeration Documentation

anonymous enum
Enumerator
kInvalidTime 

Definition at line 481 of file EventTimeTask.C.

Constructor & Destructor Documentation

EventTimeMap::EventTimeMap ( )
inline

Constructor

Definition at line 400 of file EventTimeTask.C.

virtual EventTimeMap::~EventTimeMap ( )
inlinevirtual

Destructor

Definition at line 404 of file EventTimeTask.C.

Member Function Documentation

Iterator EventTimeMap::Begin ( )
inline

Get forward iterator pointing beginning of the container

Returns
Iterator to start of container

Definition at line 450 of file EventTimeTask.C.

ConstIterator EventTimeMap::Begin ( ) const
inline

Get forward iterator pointing beginning of the container

Returns
Iterator to start of container

Definition at line 459 of file EventTimeTask.C.

Iterator EventTimeMap::End ( )
inline

Get forward iterator pointing just beyond the end of the container

Returns
Iterator just beyond container

Definition at line 468 of file EventTimeTask.C.

ConstIterator EventTimeMap::End ( ) const
inline

Get forward iterator pointing just beyond the end of the container

Returns
Iterator just beyond container

Definition at line 477 of file EventTimeTask.C.

Iterator EventTimeMap::Find ( const Key k)
inline

Find the element whos key is k

Parameters
kKey to look for
Returns
Iterator pointing to element, or end of container if not found

Definition at line 430 of file EventTimeTask.C.

ConstIterator EventTimeMap::Find ( const Key k) const
inline

Find the element whos key is k

Parameters
kKey to look for
Returns
Iterator pointing to element, or end of container if not found

Definition at line 441 of file EventTimeTask.C.

Value EventTimeMap::Get ( const Key timestamp) const
inline

Get the time difference to previous event from a event with a given time stamp.

Parameters
timestampTime stamp of the event
Returns
time difference or kInvalidTime if not found

Definition at line 492 of file EventTimeTask.C.

Referenced by ELossTimeTask::Event(), and EventTimeSorter::Test().

const char* EventTimeMap::GetName ( ) const
inline

Get name of this object - always the same

Returns
The string "eventTimeMap"

Definition at line 410 of file EventTimeTask.C.

Value& EventTimeMap::operator[] ( const Key k)
inline

Element access. If the key k doesn't already exist, it is created

Parameters
kKey
Returns
A pair of key and value

Definition at line 419 of file EventTimeTask.C.

void EventTimeMap::Set ( const Key timestamp,
const Value diff 
)
inline

Set the time to previous event for a given event time stamp

Parameters
timestampEvent time stamp
diffTime to previous event

Definition at line 504 of file EventTimeTask.C.

ULong64_t EventTimeMap::Size ( ) const
inline

Definition at line 508 of file EventTimeTask.C.

Member Data Documentation

Map EventTimeMap::fMap

Our embeded map

Definition at line 510 of file EventTimeTask.C.


The documentation for this struct was generated from the following file: