38 auto digitsBC = pc.
inputs().
get<gsl::span<o2::fdd::Digit>>(
"digitsBC");
39 auto digitsCh = pc.
inputs().
get<gsl::span<o2::fdd::ChannelData>>(
"digitsCh");
46 LOG(info) <<
"Ignoring MC info";
48 if (mUseDeadChannelMap && mUpdateDeadChannelMap) {
49 LOG(info) <<
"Populating reconsturctor object with Dead Channel Map object";
53 int nDig = digitsBC.size();
54 mRecPoints.reserve(nDig);
55 mRecChData.reserve(digitsCh.size());
56 for (
int id = 0;
id < nDig;
id++) {
57 const auto& digit = digitsBC[
id];
58 auto channels = digit.getBunchChannelData(digitsCh);
62 LOG(
debug) <<
"FDD reconstruction pushes " << mRecPoints.size() <<
" RecPoints";
70 mUpdateDeadChannelMap =
false;
77 std::vector<InputSpec> inputSpec;
78 std::vector<OutputSpec> outputSpec;
83 LOG(info) <<
"Currently FDDReconstructor does not consume and provide MC truth";
86 if (useDeadChannelMap) {
87 LOG(info) <<
"Dead channel map will be applied during reconstruction";
97 AlgorithmSpec{adaptFromTask<FDDReconstructorDPL>(useMC, useDeadChannelMap)},
Definition of a container to keep Monte Carlo truth external to simulation objects.
void run(ProcessingContext &pc) final
void init(InitContext &ic) final
void finaliseCCDB(ConcreteDataMatcher &matcher, void *obj) final
void setDeadChannelMap(o2::fit::DeadChannelMap const *deadChannelMap)
void process(o2::fdd::Digit const &digitBC, gsl::span< const o2::fdd::ChannelData > inChData, std::vector< o2::fdd::RecPoint > &RecPoints, std::vector< o2::fdd::ChannelDataFloat > &outChData)
void snapshot(const Output &spec, T const &object)
DataAllocator & outputs()
The data allocator is used to allocate memory for the output data.
InputRecord & inputs()
The inputs associated with this processing context.
constexpr o2::header::DataOrigin gDataOriginFDD
framework::DataProcessorSpec getFDDReconstructorSpec(bool useMC=true, bool useDeadChannelMap=true)
create a processor spec
Defining PrimaryVertex explicitly as messageable.
std::vector< ConfigParamSpec > ccdbParamSpec(std::string const &path, int runDependent, std::vector< CCDBMetadata > metadata={}, int qrate=0)
std::vector< ConfigParamSpec > Options
struct o2::upgrades_utils::@458 fdd
Collision labels.
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
LOG(info)<< "Compressed in "<< sw.CpuTime()<< " s"
std::vector< ChannelData > channels