Project
Loading...
Searching...
No Matches
o2::its::ioutils Namespace Reference

Functions

void loadEventData (ROframe &events, gsl::span< const itsmft::CompClusterExt > clusters, gsl::span< const unsigned char >::iterator &pattIt, const itsmft::TopologyDictionary *dict, const dataformats::MCTruthContainer< MCCompLabel > *clsLabels=nullptr)
 
int loadROFrameData (const o2::itsmft::ROFRecord &rof, ROframe &events, gsl::span< const itsmft::CompClusterExt > clusters, gsl::span< const unsigned char >::iterator &pattIt, const itsmft::TopologyDictionary *dict, const dataformats::MCTruthContainer< MCCompLabel > *mClsLabels=nullptr)
 
void convertCompactClusters (gsl::span< const itsmft::CompClusterExt > clusters, gsl::span< const unsigned char >::iterator &pattIt, std::vector< o2::BaseCluster< float > > &output, const itsmft::TopologyDictionary *dict)
 convert compact clusters to 3D spacepoints
 
std::vector< std::unordered_map< int, Label > > loadLabels (const int, const std::string &)
 
void writeRoadsReport (std::ofstream &, std::ofstream &, std::ofstream &, const std::vector< std::vector< Road< 5 > > > &, const std::unordered_map< int, Label > &)
 
template<class iterator , typename T >
o2::math_utils::Point3D< T > extractClusterData (const itsmft::CompClusterExt &c, iterator &iter, const itsmft::TopologyDictionary *dict, T &sig2y, T &sig2z)
 
template<class iterator , typename T >
std::array< T, 3 > extractClusterDataA (const itsmft::CompClusterExt &c, iterator &iter, const itsmft::TopologyDictionary *dict, T &sig2y, T &sig2z)
 

Variables

constexpr float DefClusErrorRow = o2::itsmft::SegmentationAlpide::PitchRow * 0.5
 
constexpr float DefClusErrorCol = o2::itsmft::SegmentationAlpide::PitchCol * 0.5
 
constexpr float DefClusError2Row = DefClusErrorRow * DefClusErrorRow
 
constexpr float DefClusError2Col = DefClusErrorCol * DefClusErrorCol
 

Function Documentation

◆ convertCompactClusters()

void o2::its::ioutils::convertCompactClusters ( gsl::span< const itsmft::CompClusterExt clusters,
gsl::span< const unsigned char >::iterator &  pattIt,
std::vector< o2::BaseCluster< float > > &  output,
const itsmft::TopologyDictionary dict 
)

convert compact clusters to 3D spacepoints

Definition at line 49 of file IOUtils.cxx.

◆ extractClusterData()

template<class iterator , typename T >
o2::math_utils::Point3D< T > o2::its::ioutils::extractClusterData ( const itsmft::CompClusterExt c,
iterator &  iter,
const itsmft::TopologyDictionary dict,
T &  sig2y,
T &  sig2z 
)

Definition at line 80 of file IOUtils.h.

◆ extractClusterDataA()

template<class iterator , typename T >
std::array< T, 3 > o2::its::ioutils::extractClusterDataA ( const itsmft::CompClusterExt c,
iterator &  iter,
const itsmft::TopologyDictionary dict,
T &  sig2y,
T &  sig2z 
)

Definition at line 102 of file IOUtils.h.

◆ loadEventData()

void o2::its::ioutils::loadEventData ( ROframe events,
gsl::span< const itsmft::CompClusterExt clusters,
gsl::span< const unsigned char >::iterator &  pattIt,
const itsmft::TopologyDictionary dict,
const dataformats::MCTruthContainer< MCCompLabel > *  clsLabels = nullptr 
)

Rotate to the global frame

Definition at line 78 of file IOUtils.cxx.

◆ loadLabels()

std::vector< std::unordered_map< int, Label > > o2::its::ioutils::loadLabels ( const int  eventsNum,
const std::string &  fileName 
)

Definition at line 152 of file IOUtils.cxx.

◆ loadROFrameData()

int o2::its::ioutils::loadROFrameData ( const o2::itsmft::ROFRecord rof,
ROframe events,
gsl::span< const itsmft::CompClusterExt clusters,
gsl::span< const unsigned char >::iterator &  pattIt,
const itsmft::TopologyDictionary dict,
const dataformats::MCTruthContainer< MCCompLabel > *  mClsLabels = nullptr 
)

Rotate to the global frame

Definition at line 116 of file IOUtils.cxx.

◆ writeRoadsReport()

void o2::its::ioutils::writeRoadsReport ( std::ofstream &  ,
std::ofstream &  ,
std::ofstream &  ,
const std::vector< std::vector< Road< 5 > > > &  ,
const std::unordered_map< int, Label > &   
)

Variable Documentation

◆ DefClusError2Col

constexpr float o2::its::ioutils::DefClusError2Col = DefClusErrorCol * DefClusErrorCol
constexpr

Definition at line 55 of file IOUtils.h.

◆ DefClusError2Row

constexpr float o2::its::ioutils::DefClusError2Row = DefClusErrorRow * DefClusErrorRow
constexpr

Definition at line 54 of file IOUtils.h.

◆ DefClusErrorCol

constexpr float o2::its::ioutils::DefClusErrorCol = o2::itsmft::SegmentationAlpide::PitchCol * 0.5
constexpr

Definition at line 53 of file IOUtils.h.

◆ DefClusErrorRow

constexpr float o2::its::ioutils::DefClusErrorRow = o2::itsmft::SegmentationAlpide::PitchRow * 0.5
constexpr

Definition at line 52 of file IOUtils.h.