#include <MemoryMapManager.h>
|
| MemoryMapManager () |
|
| MemoryMapManager (CutContainer *cont) |
|
Event * | GetTemporaryEvent () |
|
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) |
|
Event * | GetEvent (Int_t collection) const |
|
Track * | GetTrack (Int_t event_collection, Int_t track_collection, Int_t index) const |
|
Track * | GetTemporaryTrack (Int_t event_collection, Int_t track_collection, Int_t index) const |
|
Track * | GetRawTrack (Int_t event_collection, Int_t index) const |
|
Event * | GetEvent (Int_t collection, Int_t counter) const |
|
Track * | GetTrack (Int_t event_collection, Int_t track_collection, Int_t counter, Int_t index) const |
|
Track * | GetRawTrack (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 |
|
class for managing buffered events
Definition at line 58 of file MemoryMapManager.h.
◆ MemoryMapManager() [1/2]
Hal::MemoryMapManager::MemoryMapManager |
( |
| ) |
|
◆ MemoryMapManager() [2/2]
Hal::MemoryMapManager::MemoryMapManager |
( |
CutContainer * | cont | ) |
|
◆ ~MemoryMapManager()
Hal::MemoryMapManager::~MemoryMapManager |
( |
| ) |
|
|
virtual |
◆ AddTrackToMapTrack()
void Hal::MemoryMapManager::AddTrackToMapTrack |
( |
Int_t | event_collection, |
|
|
Int_t | track_collection, |
|
|
Int_t | index ) |
add track to map
- Parameters
-
event_collection | even collection number |
track_collection | track collection number |
index | position 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
-
collection | collection number of event |
Definition at line 62 of file MemoryMapManager.cxx.
◆ ClearEvent()
void Hal::MemoryMapManager::ClearEvent |
( |
| ) |
|
◆ GetCounter()
Int_t Hal::MemoryMapManager::GetCounter |
( |
Int_t | event_collection | ) |
const |
- Parameters
-
event_collection | event 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
-
collection | event collection number |
counter | position 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_collection | event collection number |
counter | position of event in buffer |
index | position 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_collection | event collection no |
index | position 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_collection | event 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_collection | track collection |
index | number |
- 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_collection | event collection number |
track_collection | track collection number |
counter | position of event in buffer |
index | position 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_collection | event collection number |
track_collection | track collection number |
index | position 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_collection | event collection no |
track_collection | track 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_collection | event collection no |
track_collection | track collection no |
counter | event 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_id | data 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
-
collection | event collection no |
- Returns
- true if buffer is full
Definition at line 187 of file MemoryMapManager.cxx.
◆ ManualUpdate()
void Hal::MemoryMapManager::ManualUpdate |
( |
Event * | event | ) |
|
◆ PrepareMaps()
void Hal::MemoryMapManager::PrepareMaps |
( |
Int_t | collection | ) |
|
preapre maps of tracks for event that potentialy will be buffered
- Parameters
-
Definition at line 348 of file MemoryMapManager.cxx.
◆ PrintMap()
void Hal::MemoryMapManager::PrintMap |
( |
| ) |
const |
◆ RejectLastEvent()
void Hal::MemoryMapManager::RejectLastEvent |
( |
Int_t | event_collection | ) |
|
reject last event from buffer
- Parameters
-
event_collection | event 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
-
collection | event 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_size | mixing buffer size |
Definition at line 109 of file MemoryMapManager.cxx.
◆ MiniEventTask
The documentation for this class was generated from the following files: