39using MatchInfo = std::vector<o2::dataformats::MatchInfoTOF>;
40using TrackInfo = std::vector<o2::dataformats::TrackTPCTOF>;
41using LabelsType = std::vector<o2::MCCompLabel>;
47 auto loggerMatched = [](
MatchInfo const& indata) {
48 LOG(
debug) <<
"RECEIVED MATCHED SIZE " << indata.size();
50 auto loggerTofLabels = [](
LabelsType const& labeltof) {
51 LOG(
debug) <<
"TOF LABELS GOT " << labeltof.size() <<
" LABELS ";
61 const char* match_name[4] = {
"TOFMatchedWriter_TPC",
"TOFMatchedWriter_ITSTPC",
"TOFMatchedWriter_TPCTRD",
"TOFMatchedWriter_ITSTPCTRD"};
62 const char* match_name_strict[4] = {
"TOFMatchedWriter_TPC_str",
"TOFMatchedWriter_ITSTPC_str",
"TOFMatchedWriter_TPCTRD_str",
"TOFMatchedWriter_ITSTPCTRD_str"};
64 const char* taskName = match_name[
mode];
66 taskName = match_name_strict[
mode];
71 std::stringstream inputBinding1, inputBinding2, inputBinding3;
72 inputBinding1 <<
"tofmatching_" <<
mode;
73 inputBinding2 <<
"tpctofTracks_" <<
mode;
74 inputBinding3 <<
"matchtoflabels_" <<
mode;
81 "TOFMatchInfo-branch-name",
86 "TPCTOFTracks-branch-name",
90 "MatchTOFMCTruth-branch-name",
Class to store the output of the matching to TOF for calibration.
Global index for barrel track: provides provenance (detectors combination), index in respective array...
Definition of a container to keep Monte Carlo truth external to simulation objects.
Configurable generator for RootTreeWriter processor spec.
Class to store the output of the matching to TOF.
Defintions for the inter-detector matching type.
Result of refitting TPC with TOF match constraint.
Generate a processor spec for the RootTreeWriter utility.
constexpr o2::header::DataOrigin gDataOriginTOF
Defining PrimaryVertex explicitly as messageable.
o2::framework::DataProcessorSpec getTOFMatchedWriterSpec(bool useMC, const char *outdef="o2match_tof.root", bool writeTracks=false, int mode=0, bool strict=false)
std::vector< o2::dataformats::MatchInfoTOF > MatchInfo
std::vector< o2::dataformats::TrackTPCTOF > TrackInfo
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
LOG(info)<< "Compressed in "<< sw.CpuTime()<< " s"