Project
Loading...
Searching...
No Matches
o2::tpc::ClusterNativeHelper::Reader Class Reference

A reader class for the raw cluster native data. More...

#include <ClusterNativeHelper.h>

Public Member Functions

 Reader ()
 
 ~Reader ()
 
void init (const char *filename, const char *treename=nullptr)
 
size_t getTreeSize () const
 
void read (size_t entry)
 
void clear ()
 
int fillIndex (ClusterNativeAccess &clusterIndex, std::unique_ptr< ClusterNative[]> &clusterBuffer, ConstMCLabelContainerViewWithBuffer &mcBuffer)
 

Static Public Member Functions

template<typename DataArrayType , typename MCArrayType >
static int fillIndex (ClusterNativeAccess &clusterIndex, std::unique_ptr< ClusterNative[]> &clusterBuffer, ConstMCLabelContainerViewWithBuffer &mcBuffer, DataArrayType &inputs, MCArrayType const &mcinputs, unsigned long sectorMask=0xFFFFFFFFF)
 
template<typename DataArrayType >
static int fillIndex (ClusterNativeAccess &clusterIndex, std::unique_ptr< ClusterNative[]> &clusterBuffer, DataArrayType &inputs, unsigned long sectorMask=0xFFFFFFFFF)
 
static int parseSector (const char *buffer, size_t size, gsl::span< ConstMCLabelContainerView const > const &mcinput, ClusterNativeAccess &clusterIndex, const ConstMCLabelContainerView *(&clustersMCTruth)[NSectors])
 
template<typename ContainerT >
static int parseSector (ContainerT const cont, gsl::span< ConstMCLabelContainerView const > const &mcinput, ClusterNativeAccess &clusterIndex, const ConstMCLabelContainerView *(&clustersMCTruth)[NSectors])
 

Detailed Description

A reader class for the raw cluster native data.

Definition at line 180 of file ClusterNativeHelper.h.

Constructor & Destructor Documentation

◆ Reader()

ClusterNativeHelper::Reader::Reader ( )

Definition at line 98 of file ClusterNativeHelper.cxx.

◆ ~Reader()

ClusterNativeHelper::Reader::~Reader ( )

Definition at line 93 of file ClusterNativeHelper.cxx.

Member Function Documentation

◆ clear()

void ClusterNativeHelper::Reader::clear ( )

Definition at line 159 of file ClusterNativeHelper.cxx.

◆ fillIndex() [1/3]

int ClusterNativeHelper::Reader::fillIndex ( ClusterNativeAccess clusterIndex,
std::unique_ptr< ClusterNative[]> &  clusterBuffer,
ConstMCLabelContainerViewWithBuffer mcBuffer 
)

Definition at line 170 of file ClusterNativeHelper.cxx.

◆ fillIndex() [2/3]

template<typename DataArrayType , typename MCArrayType >
int o2::tpc::ClusterNativeHelper::Reader::fillIndex ( ClusterNativeAccess clusterIndex,
std::unique_ptr< ClusterNative[]> &  clusterBuffer,
ConstMCLabelContainerViewWithBuffer mcBuffer,
DataArrayType &  inputs,
MCArrayType const &  mcinputs,
unsigned long  sectorMask = 0xFFFFFFFFF 
)
static

Definition at line 353 of file ClusterNativeHelper.h.

◆ fillIndex() [3/3]

template<typename DataArrayType >
static int o2::tpc::ClusterNativeHelper::Reader::fillIndex ( ClusterNativeAccess clusterIndex,
std::unique_ptr< ClusterNative[]> &  clusterBuffer,
DataArrayType &  inputs,
unsigned long  sectorMask = 0xFFFFFFFFF 
)
inlinestatic

Definition at line 228 of file ClusterNativeHelper.h.

◆ getTreeSize()

size_t o2::tpc::ClusterNativeHelper::Reader::getTreeSize ( ) const
inline

Definition at line 187 of file ClusterNativeHelper.h.

◆ init()

void ClusterNativeHelper::Reader::init ( const char filename,
const char treename = nullptr 
)

Definition at line 104 of file ClusterNativeHelper.cxx.

◆ parseSector() [1/2]

static int o2::tpc::ClusterNativeHelper::Reader::parseSector ( const char buffer,
size_t  size,
gsl::span< ConstMCLabelContainerView const > const &  mcinput,
ClusterNativeAccess clusterIndex,
const ConstMCLabelContainerView *(&)  clustersMCTruth[NSectors] 
)
static

◆ parseSector() [2/2]

template<typename ContainerT >
static int o2::tpc::ClusterNativeHelper::Reader::parseSector ( ContainerT const  cont,
gsl::span< ConstMCLabelContainerView const > const &  mcinput,
ClusterNativeAccess clusterIndex,
const ConstMCLabelContainerView *(&)  clustersMCTruth[NSectors] 
)
inlinestatic

Definition at line 252 of file ClusterNativeHelper.h.

◆ read()

void ClusterNativeHelper::Reader::read ( size_t  entry)

Definition at line 150 of file ClusterNativeHelper.cxx.


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