Project
Loading...
Searching...
No Matches
o2::mch::TrackSamplerTask Class Reference

Public Member Functions

void init (framework::InitContext &ic)
 
void run (framework::ProcessingContext &pc)
 
int readOneEvent (std::vector< TrackMCH, o2::pmr::polymorphic_allocator< TrackMCH > > &tracks, std::vector< Cluster, o2::pmr::polymorphic_allocator< Cluster > > &clusters)
 

Public Attributes

std::ifstream mInputFile {}
 input file
 
int mNEventsPerTF = 1
 number of events per time frame
 

Detailed Description

Definition at line 47 of file TrackSamplerSpec.cxx.

Member Function Documentation

◆ init()

void o2::mch::TrackSamplerTask::init ( framework::InitContext ic)
inline

Get the input file from the context

close the input file

Definition at line 51 of file TrackSamplerSpec.cxx.

◆ readOneEvent()

int o2::mch::TrackSamplerTask::readOneEvent ( std::vector< TrackMCH, o2::pmr::polymorphic_allocator< TrackMCH > > &  tracks,
std::vector< Cluster, o2::pmr::polymorphic_allocator< Cluster > > &  clusters 
)
inline

fill the output messages with the tracks and attached clusters of the current event modify the references to the attached clusters according to their position in the global vector

Definition at line 105 of file TrackSamplerSpec.cxx.

◆ run()

void o2::mch::TrackSamplerTask::run ( framework::ProcessingContext pc)
inline

send the tracks with attached clusters of the next events in the current TF

Definition at line 79 of file TrackSamplerSpec.cxx.

Member Data Documentation

◆ mInputFile

std::ifstream o2::mch::TrackSamplerTask::mInputFile {}

input file

Definition at line 174 of file TrackSamplerSpec.cxx.

◆ mNEventsPerTF

int o2::mch::TrackSamplerTask::mNEventsPerTF = 1

number of events per time frame

Definition at line 175 of file TrackSamplerSpec.cxx.


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