Project
Loading...
Searching...
No Matches
o2::trd::RawDataSpan Struct Reference

#include <RawDataManager.h>

Public Member Functions

void sort ()
 
template<typename keyfunc >
std::vector< RawDataSpaniterateBy ()
 
std::vector< RawDataSpaniterateByMCM ()
 
std::vector< RawDataSpaniterateByPadRow ()
 
std::vector< TrackSegmentmakeMCTrackSegments ()
 

Public Attributes

boost::iterator_range< std::vector< o2::trd::Digit >::iterator > digits
 
boost::iterator_range< std::vector< o2::trd::Tracklet64 >::iterator > tracklets
 
boost::iterator_range< std::vector< HitPoint >::iterator > hits
 

Detailed Description

RawDataSpan holds ranges pointing to parts of other containers This class helps with restricting the view of digits/trackets/... to part of a timeframe, e.g. data from one event, detector, padrow or MCM. It also provides methods to help with iterating over the data The main data members are public, and can be accessed without setters/getters.

Definition at line 51 of file RawDataManager.h.

Member Function Documentation

◆ iterateBy()

template<typename keyfunc >
template std::vector< RawDataSpan > RawDataSpan::iterateBy< MCM_ID > ( )

Return a vector with one data span for each MCM that has digits, tracklets or both IterateBy provides a more flexible interface, and should replace this method. Return a vector with data spans, split according to the keyfunc struct The keyfunc struct must have a method key to calculate a key for tracklets and digits that uniquely identifies the span this digit or tracklet will be part of. The key must be monotonically increasing for the digits and tracklets

Definition at line 103 of file RawDataManager.cxx.

◆ iterateByMCM()

std::vector< RawDataSpan > RawDataSpan::iterateByMCM ( )

Definition at line 223 of file RawDataManager.cxx.

◆ iterateByPadRow()

std::vector< RawDataSpan > RawDataSpan::iterateByPadRow ( )

Definition at line 188 of file RawDataManager.cxx.

◆ makeMCTrackSegments()

std::vector< TrackSegment > RawDataSpan::makeMCTrackSegments ( )

Definition at line 246 of file RawDataManager.cxx.

◆ sort()

void RawDataSpan::sort ( )

Sort digits, tracklets and space points by detector, pad row, column The digits, tracklets, hits and other future data members must be sorted for the IterateBy method.

Definition at line 95 of file RawDataManager.cxx.

Member Data Documentation

◆ digits

boost::iterator_range<std::vector<o2::trd::Digit>::iterator> o2::trd::RawDataSpan::digits

Definition at line 53 of file RawDataManager.h.

◆ hits

boost::iterator_range<std::vector<HitPoint>::iterator> o2::trd::RawDataSpan::hits

Definition at line 55 of file RawDataManager.h.

◆ tracklets

boost::iterator_range<std::vector<o2::trd::Tracklet64>::iterator> o2::trd::RawDataSpan::tracklets

Definition at line 54 of file RawDataManager.h.


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