Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
Hal::MemoryMapManager Class Reference

#include <MemoryMapManager.h>

Inheritance diagram for Hal::MemoryMapManager:

Public Member Functions

 MemoryMapManager ()
 
 MemoryMapManager (CutContainer *cont)
 
EventGetTemporaryEvent ()
 
void ManualUpdate (Event *event)
 
void SetMixSize (Int_t mix_size)
 
Int_t GetTemporaryTotalTracksNo () const
 
void Init (Int_t event_factor, Int_t task_id, Bool_t compress, std::vector< TString > direct)
 
void AddTrackToMapTrack (Int_t event_collection, Int_t track_collection, Int_t index)
 
void BufferEvent (Int_t collection)
 
EventGetEvent (Int_t collection) const
 
TrackGetTrack (Int_t event_collection, Int_t track_collection, Int_t index) const
 
TrackGetTemporaryTrack (Int_t event_collection, Int_t track_collection, Int_t index) const
 
TrackGetRawTrack (Int_t event_collection, Int_t index) const
 
EventGetEvent (Int_t collection, Int_t counter) const
 
TrackGetTrack (Int_t event_collection, Int_t track_collection, Int_t counter, Int_t index) const
 
TrackGetRawTrack (Int_t event_collection, Int_t counter, Int_t index) const
 
void RejectLastEvent (Int_t event_collection)
 
void ResetEventCollection (Int_t collection)
 
void ClearEvent ()
 
void PrepareMaps (Int_t collection)
 
void PrintMap () const
 
Int_t GetCounter (Int_t event_collection) const
 
Int_t GetTracksNo (Int_t event_collection, Int_t track_collection) const
 
Int_t GetTracksNo (Int_t event_collection, Int_t track_collection, Int_t counter) const
 
Int_t GetRawTracksNo (Int_t event_collection) const
 
Bool_t IsReadyToMixing (Int_t collection) const
 

Friends

class MiniEventTask
 

Detailed Description

class for managing buffered events

Definition at line 58 of file MemoryMapManager.h.

Constructor & Destructor Documentation

◆ MemoryMapManager() [1/2]

Hal::MemoryMapManager::MemoryMapManager ( )

empty constructor (not used)

Definition at line 27 of file MemoryMapManager.cxx.

◆ MemoryMapManager() [2/2]

Hal::MemoryMapManager::MemoryMapManager ( CutContainer * cont)

default constructor

Parameters
constpointer to CutContainer with cuts used in analysis

Definition at line 46 of file MemoryMapManager.cxx.

◆ ~MemoryMapManager()

Hal::MemoryMapManager::~MemoryMapManager ( )
virtual

Definition at line 359 of file MemoryMapManager.cxx.

Member Function Documentation

◆ AddTrackToMapTrack()

void Hal::MemoryMapManager::AddTrackToMapTrack ( Int_t event_collection,
Int_t track_collection,
Int_t index )

add track to map

Parameters
event_collectioneven collection number
track_collectiontrack collection number
indexposition of added track in track array

Definition at line 201 of file MemoryMapManager.cxx.

◆ BufferEvent()

void Hal::MemoryMapManager::BufferEvent ( Int_t collection)

buffer event with memory

Parameters
collectioncollection number of event

Definition at line 62 of file MemoryMapManager.cxx.

◆ ClearEvent()

void Hal::MemoryMapManager::ClearEvent ( )

clear event stored in tree

Definition at line 289 of file MemoryMapManager.cxx.

◆ GetCounter()

Int_t Hal::MemoryMapManager::GetCounter ( Int_t event_collection) const
Parameters
event_collectionevent collection number
Returns
position of currently processed (or last buffered) event in array

Definition at line 287 of file MemoryMapManager.cxx.

◆ GetEvent() [1/2]

Event * Hal::MemoryMapManager::GetEvent ( Int_t collection) const

return processed event (from buffer)

Parameters
collection- event collection
Returns
event

Definition at line 229 of file MemoryMapManager.cxx.

◆ GetEvent() [2/2]

Event * Hal::MemoryMapManager::GetEvent ( Int_t collection,
Int_t counter ) const
Parameters
collectionevent collection number
counterposition in event buffer
Returns
event

Definition at line 243 of file MemoryMapManager.cxx.

◆ GetRawTrack() [1/2]

Track * Hal::MemoryMapManager::GetRawTrack ( Int_t event_collection,
Int_t counter,
Int_t index ) const

return raw track from event

Parameters
event_collectionevent collection number
counterposition of event in buffer
indexposition of particle in track array
Returns
raw track (without using maps)

Definition at line 249 of file MemoryMapManager.cxx.

◆ GetRawTrack() [2/2]

Track * Hal::MemoryMapManager::GetRawTrack ( Int_t event_collection,
Int_t index ) const

get track from buffered event (last buffered)

Parameters
event_collectionevent collection no
indexposition in track array
Returns
track

Definition at line 239 of file MemoryMapManager.cxx.

◆ GetRawTracksNo()

Int_t Hal::MemoryMapManager::GetRawTracksNo ( Int_t event_collection) const
Parameters
event_collectionevent collection number
Returns
number of tracks in current (or latest buffered) event

Definition at line 185 of file MemoryMapManager.cxx.

◆ GetTemporaryEvent()

Event * Hal::MemoryMapManager::GetTemporaryEvent ( )

return pointer to current event

Parameters
update- when true update event by values from tree

Definition at line 113 of file MemoryMapManager.cxx.

◆ GetTemporaryTotalTracksNo()

Int_t Hal::MemoryMapManager::GetTemporaryTotalTracksNo ( ) const
Returns
number of track in currently processed event (stored in tree)

Definition at line 227 of file MemoryMapManager.cxx.

◆ GetTemporaryTrack()

Track * Hal::MemoryMapManager::GetTemporaryTrack ( Int_t event_collection,
Int_t track_collection,
Int_t index ) const
Parameters
track_collectiontrack collection
indexnumber
Returns
track from temporary event via map

Definition at line 382 of file MemoryMapManager.cxx.

◆ GetTrack() [1/2]

Track * Hal::MemoryMapManager::GetTrack ( Int_t event_collection,
Int_t track_collection,
Int_t counter,
Int_t index ) const

return track from event

Parameters
event_collectionevent collection number
track_collectiontrack collection number
counterposition of event in buffer
indexposition of particle in map
Returns
track from event

Definition at line 245 of file MemoryMapManager.cxx.

◆ GetTrack() [2/2]

Track * Hal::MemoryMapManager::GetTrack ( Int_t event_collection,
Int_t track_collection,
Int_t index ) const

fill track from buffered event (last buffered)

Parameters
event_collectionevent collection number
track_collectiontrack collection number
indexposition in map
Returns
track

Definition at line 231 of file MemoryMapManager.cxx.

◆ GetTracksNo() [1/2]

Int_t Hal::MemoryMapManager::GetTracksNo ( Int_t event_collection,
Int_t track_collection ) const

return number of track in latest buffered event (or current)

Parameters
event_collectionevent collection no
track_collectiontrack collection no
Returns
number of tracks in map

Definition at line 179 of file MemoryMapManager.cxx.

◆ GetTracksNo() [2/2]

Int_t Hal::MemoryMapManager::GetTracksNo ( Int_t event_collection,
Int_t track_collection,
Int_t counter ) const
Parameters
event_collectionevent collection no
track_collectiontrack collection no
counterevent position
Returns
number of tracks

Definition at line 220 of file MemoryMapManager.cxx.

◆ Init()

void Hal::MemoryMapManager::Init ( Int_t event_factor,
Int_t task_id,
Bool_t compress,
std::vector< TString > direct )

initialize this manager

Parameters
event_factor- numer of artificial multiplication of event triggers
task_iddata format (and task id)
compress- if true then evets will be compressed
direct-name of branch if direct access is used is performed

Definition at line 123 of file MemoryMapManager.cxx.

◆ IsReadyToMixing()

Bool_t Hal::MemoryMapManager::IsReadyToMixing ( Int_t collection) const

check if can mix events

Parameters
collectionevent collection no
Returns
true if buffer is full

Definition at line 187 of file MemoryMapManager.cxx.

◆ ManualUpdate()

void Hal::MemoryMapManager::ManualUpdate ( Event * event)

call update on this event

Parameters
event

Definition at line 111 of file MemoryMapManager.cxx.

◆ PrepareMaps()

void Hal::MemoryMapManager::PrepareMaps ( Int_t collection)

preapre maps of tracks for event that potentialy will be buffered

Parameters
collection

Definition at line 348 of file MemoryMapManager.cxx.

◆ PrintMap()

void Hal::MemoryMapManager::PrintMap ( ) const

print map of tracks

Definition at line 253 of file MemoryMapManager.cxx.

◆ RejectLastEvent()

void Hal::MemoryMapManager::RejectLastEvent ( Int_t event_collection)

reject last event from buffer

Parameters
event_collectionevent collection of rejected event

Definition at line 281 of file MemoryMapManager.cxx.

◆ ResetEventCollection()

void Hal::MemoryMapManager::ResetEventCollection ( Int_t collection)

reset buffer, track maps and event buffer become empty

Parameters
collectionevent collection number

Definition at line 189 of file MemoryMapManager.cxx.

◆ SetMixSize()

void Hal::MemoryMapManager::SetMixSize ( Int_t mix_size)

set size of mixing buffer

Parameters
mix_sizemixing buffer size

Definition at line 109 of file MemoryMapManager.cxx.

Friends And Related Symbol Documentation

◆ MiniEventTask

friend class MiniEventTask
friend

Definition at line 59 of file MemoryMapManager.h.


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