17#ifndef O2_TPCINTEGRATEIDCSPEC_H
18#define O2_TPCINTEGRATEIDCSPEC_H
21#include <fmt/format.h>
50 for (
const auto&
sector : mSectors) {
57 LOGP(info,
"integrating digits for sectors {} to {}", mSectors.front(), mSectors.back());
59 for (
int iSec = 0; iSec < mSectors.size(); ++iSec) {
60 const DataRef ref = pc.inputs().getByPos(iSec);
61 const int sector = o2::framework::DataRefUtils::getHeader<o2::tpc::TPCSectorHeader*>(
ref)->sector();
64 mIDCs[
sector].integrateDigitsForOneTF(pc.inputs().get<gsl::span<o2::tpc::Digit>>(
ref));
67 auto const* tpcHeader = o2::framework::DataRefUtils::getHeader<o2::header::DataHeader*>(
ref);
68 mIDCs[
sector].dumpIDCs(fmt::format(
"idcs_obj_sec{:02}_tf{:02}.root",
sector, tpcHeader->tfCounter).data(), fmt::format(
"IDCSim_sec{:02}",
sector).data());
72 sendOutput(pc.outputs(),
sector);
83 const std::vector<unsigned int> mSectors{};
85 const bool mDebug{
false};
86 std::unordered_map<unsigned int, IDCSim> mIDCs{};
92 for (
const auto& idcs : mIDCs[
sector].
get()) {
111 std::vector<InputSpec> inputSpecs;
112 inputSpecs.reserve(
sectors.size());
114 std::vector<OutputSpec> outputSpecs;
119 inputSpecs.emplace_back(
InputSpec{
"digits", gDataOriginTPC,
"DIGITS",
sector, Lifetime::Timeframe});
130 const auto id = fmt::format(
"tpc-integrate-idc-{:02}", ilane);
configStandalone Light OpenGL display display_light Apply smoothing to points Enable Z buffer Highlight links Highlight seeds Highlight sector tracks Highlight final tracks Show individual Show related Highlight grid Show only individual collision Color clusters belonging to track objects Set line Enable drawing TPC data Enable drawing TOF data Enable drawing magnetic field Set field line step count Invert colors configStandalone Heavy OpenGL display display_heavy Show tracks with ITS contribution Show tracks with TOF contribution Enable propagation of loopers Show clusters at nominal x of pad row for early transformed data Split CE tracks when they cross the central Mark clusters Mark adjacent clusters Hide rejected tracks Apply filter on tracks to be displayed Separate sectors
configStandalone Light OpenGL display display_light Apply smoothing to points Enable Z buffer Highlight links Highlight seeds Highlight sector tracks Highlight final tracks Show individual sector
class for integration of IDCs
static constexpr unsigned int NREGIONS
total number of regions in one sector
void run(o2::framework::ProcessingContext &pc) final
TPCIntegrateIDCDevice(const std::vector< unsigned int > §ors, const int nOrbitsPerIDCIntervall, const IDCFormat outputFormat, const bool debug)
void endOfStream(o2::framework::EndOfStreamContext &ec) final
This is invoked whenever we have an EndOfStream event.
static constexpr header::DataDescription getDataDescription(const IDCFormat idcFormat)
constexpr o2::header::DataOrigin gDataOriginTPC
Defining ITS Vertex explicitly as messageable.
Global TPC definitions and constants.
DataProcessorSpec getTPCIntegrateIDCSpec(const int ilane, const std::vector< unsigned int > §ors, const int nOrbits=12, const TPCIntegrateIDCDevice::IDCFormat outputFormat=TPCIntegrateIDCDevice::IDCFormat::Sim, const bool debug=false)