Project
Loading...
Searching...
No Matches
o2::mid::specs Namespace Reference

Functions

std::vector< framework::InputSpecbuildInputSpecs (std::string_view dataBind, std::string_view dataDesc, bool useMC)
 
std::vector< framework::InputSpecbuildInputSpecs (std::string_view dataBind, std::string_view dataDesc, std::string_view rofDesc, std::string_view labelsDesc, bool useMC)
 
std::vector< framework::OutputSpecbuildOutputSpecs (std::string_view bind, std::string_view description)
 
std::vector< framework::OutputSpecbuildStandardOutputSpecs (std::string_view dataBind, std::string_view dataDesc, bool useMC)
 
template<typename T >
std::array< gsl::span< const T >, NEvTypesgetInput (framework::ProcessingContext &pc, std::string_view bind)
 
std::vector< framework::OutputbuildOutputs (std::vector< framework::OutputSpec > outputSpecs)
 
std::array< gsl::span< const ColumnData >, NEvTypesgetData (framework::ProcessingContext &pc, std::string_view dataBind)
 
gsl::span< const ColumnDatagetData (framework::ProcessingContext &pc, std::string_view dataBind, EventType eventType)
 
std::array< gsl::span< const ROFRecord >, NEvTypesgetRofs (framework::ProcessingContext &pc, std::string_view dataBind)
 
gsl::span< const ROFRecordgetRofs (framework::ProcessingContext &pc, std::string_view dataBind, EventType eventType)
 
std::unique_ptr< const o2::dataformats::MCTruthContainer< MCLabel > > getLabels (framework::ProcessingContext &pc, std::string_view dataBind)
 
std::string getString (std::string_view baseName, std::string_view suffix)
 
std::string getROFBind (std::string_view baseName)
 
std::string getLabelsBind (std::string_view baseName)
 
std::string getROFDescription (std::string_view description)
 
std::string getLabelsDescription (std::string_view description)
 
std::string buildSelector (std::string_view bind, std::string_view description, int subSpec=-1)
 
std::string buildSelectors (std::string_view dataBind, std::string_view dataDesc, std::string_view rofDesc, std::string_view labelsDesc, bool useMC, int subSpec=-1)
 

Function Documentation

◆ buildInputSpecs() [1/2]

std::vector< framework::InputSpec > o2::mid::specs::buildInputSpecs ( std::string_view  dataBind,
std::string_view  dataDesc,
bool  useMC 
)

Returns the input specs for MID Column Data and corresponding ROFs and labels

Parameters
dataBindData binding name
dataDescInput data description
useMCBuilds output specs for labels
Returns
Vector of input specs

Definition at line 86 of file ColumnDataSpecsUtils.cxx.

◆ buildInputSpecs() [2/2]

std::vector< framework::InputSpec > o2::mid::specs::buildInputSpecs ( std::string_view  dataBind,
std::string_view  dataDesc,
std::string_view  rofDesc,
std::string_view  labelsDesc,
bool  useMC 
)

Returns the input specs for MID Column Data and corresponding ROFs and labels

Parameters
dataBindData binding name
dataDescInput data description
rofDescInput ROF record description
labelsDescInput MC labels description
useMCBuilds output specs for labels
Returns
Vector of input specs

Definition at line 91 of file ColumnDataSpecsUtils.cxx.

◆ buildOutputs()

std::vector< framework::Output > o2::mid::specs::buildOutputs ( std::vector< framework::OutputSpec outputSpecs)

Gets the outputs

Parameters
outputSpecsVector of output specs
Returns
vector of outputs

Definition at line 125 of file ColumnDataSpecsUtils.cxx.

◆ buildOutputSpecs()

std::vector< framework::OutputSpec > o2::mid::specs::buildOutputSpecs ( std::string_view  bind,
std::string_view  description 
)

Returns the output specs for the different event types

Parameters
bindBinding name
descriptionOutput data description
Returns
Vector of Output specs

Definition at line 97 of file ColumnDataSpecsUtils.cxx.

◆ buildSelector()

std::string o2::mid::specs::buildSelector ( std::string_view  bind,
std::string_view  description,
int  subSpec = -1 
)

Definition at line 54 of file ColumnDataSpecsUtils.cxx.

◆ buildSelectors()

std::string o2::mid::specs::buildSelectors ( std::string_view  dataBind,
std::string_view  dataDesc,
std::string_view  rofDesc,
std::string_view  labelsDesc,
bool  useMC,
int  subSpec = -1 
)

Definition at line 65 of file ColumnDataSpecsUtils.cxx.

◆ buildStandardOutputSpecs()

std::vector< framework::OutputSpec > o2::mid::specs::buildStandardOutputSpecs ( std::string_view  dataBind,
std::string_view  dataDesc,
bool  useMC 
)

Returns the output specs for MID Column Data and corresponding ROFs and labels

Parameters
dataBindData binding name
dataDescOutput data description
useMCBuilds output specs for labels
Returns
Vector of Output specs

Definition at line 114 of file ColumnDataSpecsUtils.cxx.

◆ getData() [1/2]

std::array< gsl::span< const ColumnData >, NEvTypes > o2::mid::specs::getData ( framework::ProcessingContext pc,
std::string_view  dataBind 
)

Returns the array of Column Data

Parameters
pcProcessing context
dataBindData binding name
Returns
Array of Column Data spans

Definition at line 135 of file ColumnDataSpecsUtils.cxx.

◆ getData() [2/2]

gsl::span< const ColumnData > o2::mid::specs::getData ( framework::ProcessingContext pc,
std::string_view  dataBind,
EventType  eventType 
)

Returns the Column Data for the specified event type

Parameters
pcProcessing context
dataBindData binding name
eventTypeEvent type
Returns
Span of ColumnData

Definition at line 140 of file ColumnDataSpecsUtils.cxx.

◆ getInput()

template<typename T >
std::array< gsl::span< const T >, NEvTypes > o2::mid::specs::getInput ( framework::ProcessingContext pc,
std::string_view  bind 
)

Returns the inputs for the different event types

Parameters
pcProcessing context
bindBinding name
Returns
Array of spans

Definition at line 79 of file ColumnDataSpecsUtils.h.

◆ getLabels()

std::unique_ptr< const o2::dataformats::MCTruthContainer< MCLabel > > o2::mid::specs::getLabels ( framework::ProcessingContext pc,
std::string_view  dataBind 
)

Returns the MC labels

Parameters
pcProcessing context
dataBindData binding name
Returns
Pointer to MC labels

Definition at line 157 of file ColumnDataSpecsUtils.cxx.

◆ getLabelsBind()

std::string o2::mid::specs::getLabelsBind ( std::string_view  baseName)

Definition at line 39 of file ColumnDataSpecsUtils.cxx.

◆ getLabelsDescription()

std::string o2::mid::specs::getLabelsDescription ( std::string_view  description)

Definition at line 49 of file ColumnDataSpecsUtils.cxx.

◆ getROFBind()

std::string o2::mid::specs::getROFBind ( std::string_view  baseName)

Definition at line 34 of file ColumnDataSpecsUtils.cxx.

◆ getROFDescription()

std::string o2::mid::specs::getROFDescription ( std::string_view  description)

Definition at line 44 of file ColumnDataSpecsUtils.cxx.

◆ getRofs() [1/2]

std::array< gsl::span< const ROFRecord >, NEvTypes > o2::mid::specs::getRofs ( framework::ProcessingContext pc,
std::string_view  dataBind 
)

Returns the array of ROF records

Parameters
pcProcessing context
dataBindData binding name
Returns
Array of ROF Records spans

Definition at line 146 of file ColumnDataSpecsUtils.cxx.

◆ getRofs() [2/2]

gsl::span< const ROFRecord > o2::mid::specs::getRofs ( framework::ProcessingContext pc,
std::string_view  dataBind,
EventType  eventType 
)

Returns the ROF records for the specified event type

Parameters
pcProcessing context
dataBindData binding name
eventTypeEvent type
Returns
Span of ROF records

Definition at line 151 of file ColumnDataSpecsUtils.cxx.

◆ getString()

std::string o2::mid::specs::getString ( std::string_view  baseName,
std::string_view  suffix 
)

Definition at line 29 of file ColumnDataSpecsUtils.cxx.