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

Public Member Functions

void init (framework::InitContext &ic)
 
void run (framework::ProcessingContext &pc)
 
gsl::span< const ClustergetEventTracksAndClusters (const ROFRecord &rof, gsl::span< const TrackMCH > tracks, gsl::span< const Cluster > clusters, std::vector< TrackMCH > &eventTracks) const
 
gsl::span< const chargetEventTracksAtVtx (gsl::span< const char > tracksAtVtx, int &tracksAtVtxOffset) const
 

Public Attributes

std::ofstream mOutputFile {}
 output file
 

Detailed Description

Definition at line 48 of file TrackSinkSpec.cxx.

Member Function Documentation

◆ getEventTracksAndClusters()

gsl::span< const Cluster > o2::mch::TrackSinkTask::getEventTracksAndClusters ( const ROFRecord rof,
gsl::span< const TrackMCH tracks,
gsl::span< const Cluster clusters,
std::vector< TrackMCH > &  eventTracks 
) const
inline

copy the MCH tracks of the current event (needed to edit the tracks) modify the references to the attached clusters to start the indexing from 0 return a sub-span with the attached clusters

Definition at line 149 of file TrackSinkSpec.cxx.

◆ getEventTracksAtVtx()

gsl::span< const char > o2::mch::TrackSinkTask::getEventTracksAtVtx ( gsl::span< const char tracksAtVtx,
int tracksAtVtxOffset 
) const
inline

return a sub-span with the tracks at vertex of the current event, if any, and move forward the tracksAtVtxOffset to point to the next event

Definition at line 182 of file TrackSinkSpec.cxx.

◆ init()

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

Get the output file from the context

close the output file

Definition at line 52 of file TrackSinkSpec.cxx.

◆ run()

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

dump the tracks and attached clusters for each event in the TF

Definition at line 72 of file TrackSinkSpec.cxx.

Member Data Documentation

◆ mOutputFile

std::ofstream o2::mch::TrackSinkTask::mOutputFile {}

output file

Definition at line 207 of file TrackSinkSpec.cxx.


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