16#include <fmt/format.h>
63 LOGP(fatal,
"setITSPerLayer must be called before request ITS clusters");
71 LOGP(fatal,
"setMFTPerLayer must be called before requesting MFT clusters");
84 addInput({
"IRFramesITS",
"ITS",
"IRFRAMES", 0, Lifetime::Timeframe});
90 addInput({
"trackITS",
"ITS",
"TRACKS", 0, Lifetime::Timeframe});
91 addInput({
"trackITSROF",
"ITS",
"ITSTrackROF", 0, Lifetime::Timeframe});
92 addInput({
"trackITSClIdx",
"ITS",
"TRACKCLSID", 0, Lifetime::Timeframe});
93 addInput({
"alpparITS",
"ITS",
"ALPIDEPARAM", 0, Lifetime::Condition,
ccdbParamSpec(
"ITS/Config/AlpideParam")});
95 addInput({
"trackITSMCTR",
"ITS",
"TRACKSMCTR", 0, Lifetime::Timeframe});
102 addInput({
"trackMFT",
"MFT",
"TRACKS", 0, Lifetime::Timeframe});
103 addInput({
"trackMFTROF",
"MFT",
"MFTTrackROF", 0, Lifetime::Timeframe});
104 addInput({
"trackMFTClIdx",
"MFT",
"TRACKCLSID", 0, Lifetime::Timeframe});
105 addInput({
"alpparMFT",
"MFT",
"ALPIDEPARAM", 0, Lifetime::Condition,
ccdbParamSpec(
"MFT/Config/AlpideParam")});
107 addInput({
"trackMFTMCTR",
"MFT",
"TRACKSMCTR", 0, Lifetime::Timeframe});
114 addInput({
"trackMCH",
"MCH",
"TRACKS", 0, Lifetime::Timeframe});
115 addInput({
"trackMCHROF",
"MCH",
"TRACKROFS", 0, Lifetime::Timeframe});
116 addInput({
"trackMCHTRACKCLUSTERS",
"MCH",
"TRACKCLUSTERS", 0, Lifetime::Timeframe});
118 addInput({
"trackMCHMCTR",
"MCH",
"TRACKLABELS", 0, Lifetime::Timeframe});
125 addInput({
"trackMIDROF",
"MID",
"TRACKROFS", 0, Lifetime::Timeframe});
126 addInput({
"trackClMIDROF",
"MID",
"TRCLUSROFS", 0, Lifetime::Timeframe});
127 addInput({
"trackMID",
"MID",
"TRACKS", 0, Lifetime::Timeframe});
128 addInput({
"trackMIDTRACKCLUSTERS",
"MID",
"TRACKCLUSTERS", 0, Lifetime::Timeframe});
130 addInput({
"trackMIDMCTR",
"MID",
"TRACKLABELS", 0, Lifetime::Timeframe});
131 addInput({
"trackMIDMCTRCL",
"MID",
"TRCLUSLABELS", 0, Lifetime::Timeframe});
138 addInput({
"trackTPC",
"TPC",
"TRACKS", 0, Lifetime::Timeframe});
139 addInput({
"trackTPCClRefs",
"TPC",
"CLUSREFS", 0, Lifetime::Timeframe});
141 addInput({
"clusTPCshmap",
"TPC",
"CLSHAREDMAP", 0, Lifetime::Timeframe});
145 addInput({
"trackTPCMCTR",
"TPC",
"TRACKSMCLBL", 0, Lifetime::Timeframe});
152 addInput({
"trackITSTPC",
"GLO",
"TPCITS", 0, Lifetime::Timeframe});
153 addInput({
"trackITSTPCABREFS",
"GLO",
"TPCITSAB_REFS", 0, Lifetime::Timeframe});
154 addInput({
"trackITSTPCABCLID",
"GLO",
"TPCITSAB_CLID", 0, Lifetime::Timeframe});
156 addInput({
"trackITSTPCMCTR",
"GLO",
"TPCITS_MC", 0, Lifetime::Timeframe});
157 addInput({
"trackITSTPCABMCTR",
"GLO",
"TPCITSAB_MC", 0, Lifetime::Timeframe});
164 addInput({
"fwdtracks",
"GLO",
"GLFWD", 0, Lifetime::Timeframe});
166 addInput({
"MCTruth",
"GLO",
"GLFWD_MC", 0, Lifetime::Timeframe});
173 addInput({
"matchMFTMCH",
"GLO",
"MTC_MFTMCH", 0, Lifetime::Timeframe});
179 addInput({
"matchMCHMID",
"GLO",
"MTC_MCHMID", 0, Lifetime::Timeframe});
181 addInput({
"matchMCHMID_MCTR",
"GLO",
"MCMTC_MCHMID", 0, Lifetime::Timeframe});
189 addInput({
"matchTPCTOF",
"TOF",
"MTC_TPC", ss, Lifetime::Timeframe});
190 addInput({
"trackTPCTOF",
"TOF",
"TOFTRACKS_TPC", ss, Lifetime::Timeframe});
192 addInput({
"clsTOF_TPC_MCTR",
"TOF",
"MCMTC_TPC", ss, Lifetime::Timeframe});
199 addInput({
"trackITSTPCTRD",
"TRD",
"MATCH_ITSTPC", 0, Lifetime::Timeframe});
200 addInput({
"trigITSTPCTRD",
"TRD",
"TRGREC_ITSTPC", 0, Lifetime::Timeframe});
202 addInput({
"trackITSTPCTRDMCTR",
"TRD",
"MCLB_ITSTPC", 0, Lifetime::Timeframe});
203 addInput({
"trackITSTPCTRDSAMCTR",
"TRD",
"MCLB_ITSTPC_TRD", 0, Lifetime::Timeframe});
211 addInput({
"trackTPCTRD",
"TRD",
"MATCH_TPC", ss, Lifetime::Timeframe});
212 addInput({
"trigTPCTRD",
"TRD",
"TRGREC_TPC", ss, Lifetime::Timeframe});
214 addInput({
"trackTPCTRDMCTR",
"TRD",
"MCLB_TPC", ss, Lifetime::Timeframe});
215 addInput({
"trackTPCTRDSAMCTR",
"TRD",
"MCLB_TPC_TRD", ss, Lifetime::Timeframe});
223 addInput({
"matchITSTPCTOF",
"TOF",
"MTC_ITSTPC", 0, Lifetime::Timeframe});
225 addInput({
"clsTOF_GLO_MCTR",
"TOF",
"MCMTC_ITSTPC", 0, Lifetime::Timeframe});
230 addInput({
"matchTPCTRDTOF",
"TOF",
"MTC_TPCTRD", 0, Lifetime::Timeframe});
232 addInput({
"clsTOF_GLO2_MCTR",
"TOF",
"MCMTC_TPCTRD", 0, Lifetime::Timeframe});
237 addInput({
"matchITSTPCTRDTOF",
"TOF",
"MTC_ITSTPCTRD", 0, Lifetime::Timeframe});
239 addInput({
"clsTOF_GLO3_MCTR",
"TOF",
"MCMTC_ITSTPCTRD", 0, Lifetime::Timeframe});
248 for (
uint16_t il = 0; il < nInp; ++il) {
256 addInput({
"alpparITS",
"ITS",
"ALPIDEPARAM", 0, Lifetime::Condition,
ccdbParamSpec(
"ITS/Config/AlpideParam")});
257 addInput({
"cldictITS",
"ITS",
"CLUSDICT", 0, Lifetime::Condition,
ccdbParamSpec(
"ITS/Calib/ClusterDictionary")});
261#ifdef ENABLE_UPGRADES
262void DataRequest::requestIT3Clusters(
bool mc)
265 for (
uint16_t il = 0; il < nInp; ++il) {
273 addInput({
"alpparITS",
"ITS",
"ALPIDEPARAM", 0, Lifetime::Condition,
ccdbParamSpec(
"ITS/Config/AlpideParam")});
274 addInput({
"cldictIT3",
"IT3",
"CLUSDICT", 0, Lifetime::Condition,
ccdbParamSpec(
"IT3/Calib/ClusterDictionary")});
282 for (
uint16_t il = 0; il < nInp; ++il) {
290 addInput({
"cldictMFT",
"MFT",
"CLUSDICT", 0, Lifetime::Condition,
ccdbParamSpec(
"MFT/Calib/ClusterDictionary")});
291 addInput({
"alpparMFT",
"MFT",
"ALPIDEPARAM", 0, Lifetime::Condition,
ccdbParamSpec(
"MFT/Config/AlpideParam")});
297 addInput({
"clusTPCoccmap",
"TPC",
"TPCOCCUPANCYMAP", 0, Lifetime::Timeframe});
304 if (!getenv(
"DPL_DISABLE_TPC_TRIGGER_READER") || atoi(getenv(
"DPL_DISABLE_TPC_TRIGGER_READER")) != 1) {
308 addInput({
"clusTPCshmap",
"TPC",
"CLSHAREDMAP", 0, Lifetime::Timeframe});
319 addInput({
"trigTPC",
"TPC",
"TRIGGERWORDS", 0, Lifetime::Timeframe});
325 addInput({
"tofcluster",
"TOF",
"CLUSTERS", 0, Lifetime::Timeframe});
327 addInput({
"tofclusterlabel",
"TOF",
"CLUSTERSMCTR", 0, Lifetime::Timeframe});
335 LOG(warn) <<
"MCH global clusters do not support MC lables, disabling";
338 addInput({
"clusMCH",
"MCH",
"GLOBALCLUSTERS", 0, Lifetime::Timeframe});
339 addInput({
"clusMCHROF",
"MCH",
"CLUSTERROFS", 0, Lifetime::Timeframe});
341 addInput({
"clusMCHMC",
"MCH",
"CLUSTERLABELS", 0, Lifetime::Timeframe});
349 LOG(warn) <<
"HMP clusters do not support MC lables, disabling";
352 addInput({
"hmpidcluster",
"HMP",
"CLUSTERS", 0, Lifetime::Timeframe});
353 addInput({
"hmpidtriggers",
"HMP",
"INTRECORDS1", 0, Lifetime::Timeframe});
355 addInput({
"hmpidclusterlabel",
"HMP",
"CLUSTERSMCTR", 0, Lifetime::Timeframe});
362 addInput({
"clusMID",
"MID",
"CLUSTERS", 0, Lifetime::Timeframe});
363 addInput({
"clusMIDROF",
"MID",
"CLUSTERSROF", 0, Lifetime::Timeframe});
365 addInput({
"clusMIDMC",
"MID",
"CLUSTERSLABELS", 0, Lifetime::Timeframe});
384 addInput({
"ft0recpoints",
"FT0",
"RECPOINTS", 0, Lifetime::Timeframe});
385 addInput({
"ft0channels",
"FT0",
"RECCHDATA", 0, Lifetime::Timeframe});
387 LOG(
error) <<
"FT0 RecPoint does not support MC truth";
394 addInput({
"fv0recpoints",
"FV0",
"RECPOINTS", 0, Lifetime::Timeframe});
395 addInput({
"fv0channels",
"FV0",
"RECCHDATA", 0, Lifetime::Timeframe});
397 LOG(
error) <<
"FV0 RecPoint does not support MC truth";
404 addInput({
"fddrecpoints",
"FDD",
"RECPOINTS", 0, Lifetime::Timeframe});
405 addInput({
"fddchannels",
"FDD",
"RECCHDATA", 0, Lifetime::Timeframe});
407 LOG(
error) <<
"FDD RecPoint does not support MC truth";
414 addInput({
"zdcbcrec",
"ZDC",
"BCREC", 0, Lifetime::Timeframe});
415 addInput({
"zdcenergy",
"ZDC",
"ENERGY", 0, Lifetime::Timeframe});
416 addInput({
"zdctdcdata",
"ZDC",
"TDCDATA", 0, Lifetime::Timeframe});
417 addInput({
"zdcinfo",
"ZDC",
"INFO", 0, Lifetime::Timeframe});
419 LOG(
error) <<
"ZDC RecEvent does not support MC truth";
426 addInput({
"cosmics",
"GLO",
"COSMICTRC", 0, Lifetime::Timeframe});
428 addInput({
"cosmicsMC",
"GLO",
"COSMICTRC_MC", 0, Lifetime::Timeframe});
435 addInput({
"cosmicsExt",
"GLO",
"COSMFULL", 0, Lifetime::Timeframe});
436 addInput({
"cosmicsExtTF",
"GLO",
"COSMFULLTF", 0, Lifetime::Timeframe});
438 LOG(
error) <<
"Extended cosmics do not support MC truth";
445 addInput({
"pvtx",
"GLO",
"PVTX", 0, Lifetime::Timeframe});
446 addInput({
"pvtx_trmtc",
"GLO",
"PVTX_TRMTC", 0, Lifetime::Timeframe});
447 addInput({
"pvtx_tref",
"GLO",
"PVTX_TRMTCREFS", 0, Lifetime::Timeframe});
449 addInput({
"pvtx_mc",
"GLO",
"PVTX_MCTR", 0, Lifetime::Timeframe});
456 addInput({
"pvtx",
"GLO",
"PVTX", 0, Lifetime::Timeframe});
457 addInput({
"pvtx_cont",
"GLO",
"PVTX_CONTID", 0, Lifetime::Timeframe});
458 addInput({
"pvtx_contref",
"GLO",
"PVTX_CONTIDREFS", 0, Lifetime::Timeframe});
460 addInput({
"pvtx_mc",
"GLO",
"PVTX_MCTR", 0, Lifetime::Timeframe});
467 addInput({
"v0sIdx",
"GLO",
"V0S_IDX", 0, Lifetime::Timeframe});
468 addInput({
"v0s",
"GLO",
"V0S", 0, Lifetime::Timeframe});
469 addInput({
"p2v0s",
"GLO",
"PVTX_V0REFS", 0, Lifetime::Timeframe});
470 addInput({
"cascsIdx",
"GLO",
"CASCS_IDX", 0, Lifetime::Timeframe});
471 addInput({
"cascs",
"GLO",
"CASCS", 0, Lifetime::Timeframe});
472 addInput({
"p2cascs",
"GLO",
"PVTX_CASCREFS", 0, Lifetime::Timeframe});
473 addInput({
"decay3bodyIdx",
"GLO",
"DECAYS3BODY_IDX", 0, Lifetime::Timeframe});
474 addInput({
"decay3body",
"GLO",
"DECAYS3BODY", 0, Lifetime::Timeframe});
475 addInput({
"p2decay3body",
"GLO",
"PVTX_3BODYREFS", 0, Lifetime::Timeframe});
481 addInput({
"strangetracks",
"GLO",
"STRANGETRACKS", 0, Lifetime::Timeframe});
483 addInput({
"strack_mc",
"GLO",
"STRANGETRACKS_MC", 0, Lifetime::Timeframe});
490 addInput({
"CTPDigits",
"CTP",
"DIGITS", 0, Lifetime::Timeframe});
491 addInput({
"CTPLumi",
"CTP",
"LUMI", 0, Lifetime::Timeframe});
493 LOG(warning) <<
"MC truth not implemented for CTP";
501 addInput({
"CPVClusters",
"CPV",
"CLUSTERS", 0, Lifetime::Timeframe});
502 addInput({
"CPVTriggers",
"CPV",
"CLUSTERTRIGRECS", 0, Lifetime::Timeframe});
504 addInput({
"CPVClustersMC",
"CPV",
"CLUSTERTRUEMC", 0, Lifetime::Timeframe});
511 addInput({
"PHSCells",
"PHS",
"CELLS", 0, Lifetime::Timeframe});
512 addInput({
"PHSTriggers",
"PHS",
"CELLTRIGREC", 0, Lifetime::Timeframe});
514 addInput({
"PHSCellsMC",
"PHS",
"CELLSMCTR", 0, Lifetime::Timeframe});
521 addInput({
"EMCCells",
"EMC",
"CELLS", 0, Lifetime::Timeframe});
522 addInput({
"EMCTriggers",
"EMC",
"CELLSTRGR", 0, Lifetime::Timeframe});
524 addInput({
"EMCCellsMC",
"EMC",
"CELLSMCTR", 0, Lifetime::Timeframe});
531 addInput({
"matchHMP",
"HMP",
"MATCHES", 0, Lifetime::Timeframe});
533 addInput({
"clsHMP_GLO_MCTR",
"HMP",
"MCLABELS", 0, Lifetime::Timeframe});
590 if (GTrackID::includesDet(DetID::CTP,
src)) {
593 if (GTrackID::includesDet(DetID::CPV,
src)) {
596 if (GTrackID::includesDet(DetID::PHS,
src)) {
599 if (GTrackID::includesDet(DetID::EMC,
src)) {
602 if (GTrackID::includesDet(DetID::HMP,
src)) {
614 if (GTrackID::includesDet(DetID::ITS,
src) && !skipDetClusters[DetID::ITS]) {
617 if (GTrackID::includesDet(DetID::MFT,
src) && !skipDetClusters[DetID::MFT]) {
620 if (GTrackID::includesDet(DetID::TPC,
src) && !skipDetClusters[DetID::TPC]) {
623 if (GTrackID::includesDet(DetID::TOF,
src) && !skipDetClusters[DetID::TOF]) {
626 if (GTrackID::includesDet(DetID::TRD,
src) && !skipDetClusters[DetID::TRD]) {
629 if (GTrackID::includesDet(DetID::CTP,
src) && !skipDetClusters[DetID::CTP]) {
632 if (GTrackID::includesDet(DetID::CPV,
src) && !skipDetClusters[DetID::CPV]) {
635 if (GTrackID::includesDet(DetID::PHS,
src) && !skipDetClusters[DetID::PHS]) {
638 if (GTrackID::includesDet(DetID::EMC,
src) && !skipDetClusters[DetID::EMC]) {
641 if (GTrackID::includesDet(DetID::MCH,
src) && !skipDetClusters[DetID::MCH]) {
644 if (GTrackID::includesDet(DetID::HMP,
src) && !skipDetClusters[DetID::HMP]) {
659 auto req = reqMap.find(
"trackITS");
660 if (req != reqMap.end()) {
664 req = reqMap.find(
"trackMFT");
665 if (req != reqMap.end()) {
669 req = reqMap.find(
"trackMCH");
670 if (req != reqMap.end()) {
674 req = reqMap.find(
"trackMID");
675 if (req != reqMap.end()) {
679 req = reqMap.find(
"trackTPC");
680 if (req != reqMap.end()) {
684 req = reqMap.find(
"trackITSTPC");
685 if (req != reqMap.end()) {
689 req = reqMap.find(
"fwdtracks");
690 if (req != reqMap.end()) {
694 req = reqMap.find(
"matchMFTMCH");
695 if (req != reqMap.end()) {
699 req = reqMap.find(
"matchMCHMID");
700 if (req != reqMap.end()) {
704 req = reqMap.find(
"trackITSTPCTRD");
705 if (req != reqMap.end()) {
709 req = reqMap.find(
"trackTPCTRD");
710 if (req != reqMap.end()) {
714 req = reqMap.find(
"trackTPCTOF");
715 if (req != reqMap.end()) {
719 req = reqMap.find(
"matchTOF_ITSTPC");
720 if (req != reqMap.end()) {
724 req = reqMap.find(
"matchTOF_TPCTRD");
725 if (req != reqMap.end()) {
729 req = reqMap.find(
"matchTOF_ITSTPCTRD");
730 if (req != reqMap.end()) {
734 req = reqMap.find(
"clusITS");
735 if (req != reqMap.end()) {
739#ifdef ENABLE_UPGRADES
740 req = reqMap.find(
"clusIT3");
741 if (req != reqMap.end()) {
742 addIT3Clusters(pc, req->second);
746 req = reqMap.find(
"clusMFT");
747 if (req != reqMap.end()) {
751 req = reqMap.find(
"TPCOcc");
752 bool TPCOccDone =
false;
753 if (req != reqMap.end()) {
758 req = reqMap.find(
"clusTPC");
759 if (req != reqMap.end()) {
760 auto tracksON = reqMap.find(
"trackTPC") != reqMap.end();
761 addTPCClusters(pc, req->second, tracksON, tracksON && (!TPCOccDone));
764 req = reqMap.find(
"trigTPC");
765 if (req != reqMap.end()) {
769 req = reqMap.find(
"clusTOF");
770 if (req != reqMap.end()) {
774 req = reqMap.find(
"clusHMP");
775 if (req != reqMap.end()) {
779 req = reqMap.find(
"CTPDigits");
780 if (req != reqMap.end()) {
784 req = reqMap.find(
"CPVClusters");
785 if (req != reqMap.end()) {
789 req = reqMap.find(
"PHSCells");
790 if (req != reqMap.end()) {
794 req = reqMap.find(
"EMCCells");
795 if (req != reqMap.end()) {
799 req = reqMap.find(
"clusMCH");
800 if (req != reqMap.end()) {
804 req = reqMap.find(
"clusMID");
805 if (req != reqMap.end()) {
809 req = reqMap.find(
"FT0");
810 if (req != reqMap.end()) {
814 req = reqMap.find(
"FV0");
815 if (req != reqMap.end()) {
819 req = reqMap.find(
"FDD");
820 if (req != reqMap.end()) {
824 req = reqMap.find(
"ZDC");
825 if (req != reqMap.end()) {
829 req = reqMap.find(
"trackletTRD");
830 if (req != reqMap.end()) {
834 req = reqMap.find(
"Cosmics");
835 if (req != reqMap.end()) {
839 req = reqMap.find(
"CosmicsExt");
840 if (req != reqMap.end()) {
844 req = reqMap.find(
"PVertex");
845 if (req != reqMap.end()) {
849 req = reqMap.find(
"PVertexTMP");
850 if (req != reqMap.end()) {
854 req = reqMap.find(
"SVertex");
855 if (req != reqMap.end()) {
859 req = reqMap.find(
"STracker");
860 if (req != reqMap.end()) {
864 req = reqMap.find(
"IRFramesITS");
865 if (req != reqMap.end()) {
868 req = reqMap.find(
"matchHMP");
869 if (req != reqMap.end()) {
928 std::shared_ptr<const std::vector<TrackCosmicsExtended>> cosm = pc.
inputs().
get<std::vector<TrackCosmicsExtended>*>(
"cosmicsExt");
929 std::shared_ptr<const CosmicsTFInfo> tfInfo = pc.
inputs().
get<CosmicsTFInfo*>(
"cosmicsExtTF");
935 LOG(
error) <<
"Extended cosmics do not support MC truth";
1138 for (
uint16_t il = 0; il < nInp; ++il) {
1148#ifdef ENABLE_UPGRADES
1156 for (
uint16_t il = 0; il < nInp; ++il) {
1175 for (
uint16_t il = 0; il < nInp; ++il) {
1302 LOG(
error) <<
"FT0 RecPoint does not support MC truth";
1313 LOG(
error) <<
"FV0 RecPoint does not support MC truth";
1324 LOG(
error) <<
"FDD RecPoint does not support MC truth";
1337 LOG(
error) <<
"ZDC RecEvent does not support MC truth";
1353 return inputsTRD ?
inputsTRD->mSpacePoints : gsl::span<const o2::trd::CalibratedTracklet>();
1358 static int countWarnings = 0;
1360 if (countWarnings < 1) {
1361 LOG(warning) <<
"No TRD triggers";
1364 return gsl::span<const o2::trd::TriggerRecord>();
1384 auto trSrc = gidx.getSource();
1386 return getTrack<o2d::TrackTPCITS>(gidx).getParamOut();
1388 return getTrack<o2d::TrackTPCITS>(
getTOFMatch(gidx).getTrackRef()).getParamOut();
1390 return getTrack<o2d::TrackTPCTOF>(gidx).getParamOut();
1392 return getTrack<o2::trd::TrackTRD>(
getTOFMatch(gidx).getTrackRef()).getOuterParam();
1395 return getTrack<o2::trd::TrackTRD>(
getTOFMatch(gidx).getTrackRef()).getOuterParam();
1397 return getTrack<o2::trd::TrackTRD>(gidx).getOuterParam();
1400 return getTrack<o2::trd::TrackTRD>(gidx).getOuterParam();
1402 return getTrack<o2::its::TrackITS>(gidx).getParamOut();
1404 return getTrack<o2::tpc::TrackTPC>(gidx).getParamOut();
1406 throw std::runtime_error(fmt::format(
"not defined for tracks of source {:d}",
int(trSrc)));
1438 auto trSrc = gidx.getSource();
1442 return getObject<o2::track::TrackParCov>(gidx,
TRACKS);
1457 mcinfo.reserve(gids.size());
1458 for (
auto gid : gids) {
1466 createTracksVariadic([&creator](
const auto& _tr,
GTrackID _origID,
float t0,
float terr) {
1468 return creator(_tr, _origID);
1480 auto src = gidx.getSource();
1483 const auto& parent0 = getITSTPCTRDTrack<o2::trd::TrackTRD>(gidx);
1484 const auto& parent1 =
getTPCITSTrack(parent0.getRefGlobalTrackId());
1486 table[parent1.getRefITS().getSource()] = parent1.getRefITS();
1490 const auto& parent0 = getTPCTRDTrack<o2::trd::TrackTRD>(gidx);
1499 table[parent1.getRefITS().getSource()] = parent1.getRefITS();
1502 const auto& parent1 = getITSTPCTRDTrack<o2::trd::TrackTRD>(parent0.getTrackRef());
1503 const auto& parent2 =
getTPCITSTrack(parent1.getRefGlobalTrackId());
1508 table[parent2.getRefITS().getSource()] = parent2.getRefITS();
1512 const auto& parent1 = getTPCTRDTrack<o2::trd::TrackTRD>(parent0.getTrackRef());
1524 table[parent0.getRefITS().getSource()] = parent0.getRefITS();
1529 if (parent0.getMIDTrackID() != -1) {
1545 auto src = gidx.getSource();
1547 const auto& parent0 = getITSTPCTRDTrack<o2::trd::TrackTRD>(gidx);
1548 const auto& parent1 =
getTPCITSTrack(parent0.getRefGlobalTrackId());
1549 return parent1.getRefTPC();
1553 return parent1.getRefTPC();
1556 const auto& parent1 = getITSTPCTRDTrack<o2::trd::TrackTRD>(parent0.getTrackRef());
1557 const auto& parent2 =
getTPCITSTrack(parent1.getRefGlobalTrackId());
1558 return parent2.getRefTPC();
1561 return parent0.getTrackRef();
1564 const auto& parent1 = getTPCTRDTrack<o2::trd::TrackTRD>(parent0.getTrackRef());
1565 return parent1.getRefGlobalTrackId();
1567 const auto& parent0 = getTPCTRDTrack<o2::trd::TrackTRD>(gidx);
1568 return parent0.getRefGlobalTrackId();
1571 return parent0.getRefTPC();
1581 auto src = gidx.getSource();
1583 const auto& parent0 = getITSTPCTRDTrack<o2::trd::TrackTRD>(gidx);
1584 const auto& parent1 =
getTPCITSTrack(parent0.getRefGlobalTrackId());
1585 return parent1.getRefITS();
1589 return parent1.getRefITS();
1592 const auto& parent1 = getITSTPCTRDTrack<o2::trd::TrackTRD>(parent0.getTrackRef());
1593 const auto& parent2 =
getTPCITSTrack(parent1.getRefGlobalTrackId());
1594 return parent2.getRefITS();
1597 return parent0.getRefITS();
1618 t = (
match.getSignal() -
match.getLTIntegralOut().getTOF(o2::track::PID::Pion)) *
PS2MUS;
1626 t = (
match.getSignal() -
match.getLTIntegralOut().getTOF(o2::track::PID::Pion)) *
PS2MUS;
1634 t = (
match.getSignal() -
match.getLTIntegralOut().getTOF(o2::track::PID::Pion)) *
PS2MUS;
1643 for (
const auto& trig : trigITSTPCTRD) {
1644 if (trig.getTrackRefs().getEntriesBound() > gid.getIndex()) {
1645 t = trig.getBCData().differenceInBC(
startIR) * o2::constants::lhc::LHCBunchSpacingMUS;
1647 const auto& trc = getITSTPCTRDTracks<o2::trd::TrackTRD>()[gid];
1648 if (trc.hasPileUpInfo()) {
1649 tErr += trc.getPileUpTimeErrorMUS();
1661 for (
const auto& trig : trigTPCTRD) {
1662 if (trig.getTrackRefs().getEntriesBound() > gid.getIndex()) {
1663 t = trig.getBCData().differenceInBC(
startIR) * o2::constants::lhc::LHCBunchSpacingMUS;
1665 const auto& trc = getTPCTRDTracks<o2::trd::TrackTRD>()[gid];
1666 if (trc.hasPileUpInfo()) {
1667 tErr += trc.getPileUpTimeErrorMUS();
1678 t = trc.getTimeMUS().getTimeStamp();
1679 tErr = trc.getTimeMUS().getTimeStampError();
1686 t = trc.getTimeMUS().getTimeStamp();
1687 tErr = trc.getTimeMUS().getTimeStampError();
1694 for (
const auto& rof : rofrs) {
1695 if (gid.getIndex() < rof.getFirstEntry() + rof.getNEntries()) {
1696 t = rof.getBCData().differenceInBC(
startIR) * o2::constants::lhc::LHCBunchSpacingMUS;
1707 t = trc.getTime0() + 0.5 * (trc.getDeltaTFwd() - trc.getDeltaTBwd());
1708 tErr = 0.5 * (trc.getDeltaTFwd() + trc.getDeltaTBwd());
1714 auto src = gid.getSource();
Definition of the BuildTopologyDictionary class for ITS3.
unsigned short int uint16_t
char error[CURL_ERROR_SIZE]
Class to delimit start and end IR of certain time period.
Wrapper container for different reconstructed object types.
Matched cosmic track with the raw clusters of its legs and of the road around them,...
Result of top-bottom cosmic tracks leg matching.
Definition of the MUON track.
Reference on ITS/MFT clusters set.
Extention of GlobalTrackID by flags relevant for verter-track association.
Referenc on track indices contributing to the vertex, with possibility chose tracks from specific sou...
Static class with identifiers, bitmasks and names for ALICE detectors.
InputRecord & inputs()
The inputs associated with this processing context.
ServiceRegistryRef services()
The services registry associated with this processing context.
bool match(const std::vector< std::string > &queries, const char *pattern)
GLuint GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat t0
constexpr o2::header::DataOrigin gDataOriginTRD
Defining ITS Vertex explicitly as messageable.
std::vector< ConfigParamSpec > ccdbParamSpec(std::string const &path, int runDependent, std::vector< CCDBMetadata > metadata={}, int qrate=0)
constexpr int MaxMFTLayers
constexpr int MaxITSLayers
auto getRecoInputContainer(o2::framework::ProcessingContext &pc, o2::gpu::GPUTrackingInOutPointers *ptrs, const o2::globaltracking::RecoContainer *inputTracks, bool mc=false)
std::string to_string(gsl::span< T, Size > span)
bool globalRunNumberChanged
void requestITSTPCTRDTracks(bool mc)
void requestEMCALCells(bool mc)
void requestTRDTracklets(bool mc)
void addInput(const o2::framework::InputSpec &&isp)
void requestMIDClusters(bool mc)
void requestMFTMCHMatches(bool mc)
void requestTOFMatches(o2::dataformats::GlobalTrackID::mask_t src, bool mc)
void requestITSTracks(bool mc)
std::unordered_map< std::string, bool > requestMap
void requestMIDTracks(bool mc)
void requestPrimaryVertices(bool mc)
void requestZDCRecEvents(bool mc)
void requestGlobalFwdTracks(bool mc)
void requestITSClusters(bool mc)
void setMFTPerLayer(bool v=true)
void requestTPCTOFTracks(bool mc)
void requestMCHTracks(bool mc)
void requestFT0RecPoints(bool mc)
void requestCPVClusters(bool mc)
void requestMFTClusters(bool mc)
void requestHMPClusters(bool mc)
auto getITSPerLayer() const
void requestMCHMIDMatches(bool mc)
void requestMCHClusters(bool mc)
void requestTPCClusters(bool mc)
void requestTracks(o2::dataformats::GlobalTrackID::mask_t src, bool mc)
void requestIRFramesITS()
void requestTPCTRDTracks(bool mc)
void requestFDDRecPoints(bool mc)
void requestCosmicExtTracks(bool mc)
void requestFV0RecPoints(bool mc)
void requestClusters(o2::dataformats::GlobalTrackID::mask_t src, bool useMC, o2::detectors::DetID::mask_t skipDetClusters={})
void requestTPCTracks(bool mc)
auto getMFTPerLayer() const
void requestCoscmicTracks(bool mc)
void requestHMPMatches(bool mc)
std::vector< o2::framework::InputSpec > inputs
void requestITSTPCTracks(bool mc)
void requestTPCTriggers()
void requestMFTTracks(bool mc)
void requestSecondaryVertices(bool mc)
void requestStrangeTracks(bool mc)
void requestCTPDigits(bool mc)
void requestPrimaryVerticesTMP(bool mc)
void requestPHOSCells(bool mc)
uint32_t getMatchingInputSubSpec() const
void requestTOFClusters(bool mc)
void setITSPerLayer(bool v=true)
void addFDDRecPoints(o2::framework::ProcessingContext &pc, bool mc)
std::shared_ptr< const void > cosmExtHolder[2]
void addGlobalFwdTracks(o2::framework::ProcessingContext &pc, bool mc)
void addTOFMatchesITSTPCTRD(o2::framework::ProcessingContext &pc, bool mc)
GTrackID getITSContributorGID(GTrackID source) const
const o2::dataformats::MatchInfoTOF & getTPCTOFMatch(GTrackID id) const
void addITSTracks(o2::framework::ProcessingContext &pc, bool mc)
void addHMPMatches(o2::framework::ProcessingContext &pc, bool mc)
bool isTrackSourceLoaded(int src) const
void addTPCTOFTracks(o2::framework::ProcessingContext &pc, bool mc)
o2::InteractionRecord startIR
GlobalIDSet getSingleDetectorRefs(GTrackID gidx) const
std::unique_ptr< const o2::dataformats::MCTruthContainer< o2::MCCompLabel > > mcTOFClusters
const o2::dataformats::MCTruthContainer< o2::phos::MCLabel > * getPHOSCellsMCLabels() const
const o2::tpc::TrackTPC & getTPCTrack(GTrackID id) const
std::array< AccSlots, GTrackID::NSources > commonPool
void addFT0RecPoints(o2::framework::ProcessingContext &pc, bool mc)
gsl::span< const o2::trd::CalibratedTracklet > getTRDCalibratedTracklets() const
const o2::dataformats::TrackMCHMID & getMCHMIDMatch(GTrackID gid) const
void addTPCTriggers(o2::framework::ProcessingContext &pc)
void addCosmicTracks(o2::framework::ProcessingContext &pc, bool mc)
auto getTPCTRDTriggers() const
auto getITSTPCTOFMatches() const
void addStrangeTracks(o2::framework::ProcessingContext &pc, bool mc)
std::unique_ptr< const o2::dataformats::MCTruthContainer< o2::mid::MCClusterLabel > > mcMIDTrackClusters
auto getTPCTRDTOFMatches() const
bool isMatchSourceLoaded(int src) const
void addMCHClusters(o2::framework::ProcessingContext &pc, bool mc)
void addPVerticesTMP(o2::framework::ProcessingContext &pc, bool mc)
void addITSTPCTracks(o2::framework::ProcessingContext &pc, bool mc)
const o2::tpc::ClusterNativeAccess & getTPCClusters() const
void addMCHTracks(o2::framework::ProcessingContext &pc, bool mc)
std::array< std::unique_ptr< const o2::dataformats::MCTruthContainer< o2::MCCompLabel > >, MaxMFTLayers > mcMFTClusters
void getTrackTimeTPCTRD(GTrackID gid, float &t, float &tErr) const
void addTPCClusters(o2::framework::ProcessingContext &pc, bool mc, bool shmap, bool occmap)
void addEMCALCells(o2::framework::ProcessingContext &pc, bool mc)
void addMIDTracks(o2::framework::ProcessingContext &pc, bool mc)
void addMFTTracks(o2::framework::ProcessingContext &pc, bool mc)
void getTrackTimeITSTPCTRDTOF(GTrackID gid, float &t, float &tErr) const
void getTrackTimeITSTPCTOF(GTrackID gid, float &t, float &tErr) const
void getTrackTimeTPC(GTrackID gid, float &t, float &tErr) const
void addZDCRecEvents(o2::framework::ProcessingContext &pc, bool mc)
void addMCHMIDMatches(o2::framework::ProcessingContext &pc, bool mc)
gsl::span< const o2::trd::TriggerRecord > getTRDTriggerRecords() const
const o2::dataformats::MCTruthContainer< o2::MCCompLabel > * getTRDTrackletsMCLabels() const
void addPVertices(o2::framework::ProcessingContext &pc, bool mc)
void getTrackTimeTPCTRDTOF(GTrackID gid, float &t, float &tErr) const
void addTPCOccMap(o2::framework::ProcessingContext &pc)
void getTrackTimeITS(GTrackID gid, float &t, float &tErr) const
o2::ctp::LumiInfo mCTPLumi
void addTOFMatchesITSTPC(o2::framework::ProcessingContext &pc, bool mc)
void addIRFramesITS(o2::framework::ProcessingContext &pc)
const o2::dataformats::TrackTPCITS & getITSTPCTOFTrack(GTrackID id) const
const o2::dataformats::TrackTPCTOF & getTPCTOFTrack(GTrackID gid) const
void addTOFClusters(o2::framework::ProcessingContext &pc, bool mc)
o2::MCCompLabel getTrackMCLabel(GTrackID id) const
GTrackID getTPCContributorGID(GTrackID source) const
std::array< std::unique_ptr< const o2::dataformats::MCTruthContainer< o2::MCCompLabel > >, MaxITSLayers > mcITSClusters
std::unique_ptr< o2::trd::RecoInputContainer > inputsTRD
const o2::dataformats::MCTruthContainer< o2::mid::MCClusterLabel > * getMIDClustersMCLabels() const
const o2::track::TrackParCov & getTrackParam(GTrackID gidx) const
void getTrackTimeITSTPCTRD(GTrackID gid, float &t, float &tErr) const
void addCosmicExtTracks(o2::framework::ProcessingContext &pc, bool mc)
void addMFTClusters(o2::framework::ProcessingContext &pc, bool mc)
void addMIDClusters(o2::framework::ProcessingContext &pc, bool mc)
void addTPCTRDTracks(o2::framework::ProcessingContext &pc, bool mc)
const o2::dataformats::ConstMCTruthContainerView< o2::MCCompLabel > * getTPCClustersMCLabels() const
std::unique_ptr< const o2::dataformats::MCTruthContainer< o2::MCCompLabel > > mcMCHClusters
gsl::span< const unsigned char > clusterShMapTPC
externally set TPC clusters sharing map
void addTRDTracklets(o2::framework::ProcessingContext &pc, bool mc)
void getTrackTimeITSTPC(GTrackID gid, float &t, float &tErr) const
const o2::dataformats::TrackTPCITS & getTPCITSTrack(GTrackID gid) const
void collectData(o2::framework::ProcessingContext &pc, const DataRequest &request)
void addPHOSCells(o2::framework::ProcessingContext &pc, bool mc)
std::unique_ptr< const o2::dataformats::MCTruthContainer< o2::phos::MCLabel > > mcPHSCells
void addCPVClusters(o2::framework::ProcessingContext &pc, bool mc)
void addITSTPCTRDTracks(o2::framework::ProcessingContext &pc, bool mc)
const o2::track::TrackParCov & getTrackParamOut(GTrackID gidx) const
void fillTrackMCLabels(const gsl::span< GTrackID > gids, std::vector< o2::MCCompLabel > &mcinfo) const
void addMFTMCHMatches(o2::framework::ProcessingContext &pc, bool mc)
void getTrackTimeTPCTOF(GTrackID gid, float &t, float &tErr) const
void addTOFMatchesTPCTRD(o2::framework::ProcessingContext &pc, bool mc)
std::unique_ptr< const o2::dataformats::MCTruthContainer< o2::mid::MCClusterLabel > > mcMIDClusters
std::unique_ptr< const o2::dataformats::MCTruthContainer< o2::emcal::MCLabel > > mcEMCCells
std::unique_ptr< o2::tpc::internal::getWorkflowTPCInput_ret > inputsTPCclusters
auto getITSTracksROFRecords() const
void addCTPDigits(o2::framework::ProcessingContext &pc, bool mc)
void addTPCTracks(o2::framework::ProcessingContext &pc, bool mc)
std::unique_ptr< const o2::dataformats::MCTruthContainer< o2::MCCompLabel > > mcCPVClusters
void addFV0RecPoints(o2::framework::ProcessingContext &pc, bool mc)
auto getITSTPCTRDTriggers() const
void createTracks(std::function< bool(const o2::track::TrackParCov &, GTrackID)> const &creator) const
void getTrackTime(GTrackID gid, float &t, float &tErr) const
std::array< ITSClusAccessor, NITSMFTCLUSSLOTS > ITSClustersData
void addSVertices(o2::framework::ProcessingContext &pc, bool)
void addITSClusters(o2::framework::ProcessingContext &pc, bool mc)
void addHMPClusters(o2::framework::ProcessingContext &pc, bool mc)
gsl::span< const unsigned int > occupancyMapTPC
externally set TPC clusters occupancy map
std::array< MFTClusAccessor, NITSMFTCLUSSLOTS > MFTClustersData
auto getITSTPCTRDTOFMatches() const
std::unique_ptr< const o2::dataformats::MCTruthContainer< o2::MCCompLabel > > mcHMPClusters
std::array< GTrackID, GTrackID::NSources > GlobalIDSet
static constexpr float PS2MUS
gsl::span< const o2::trd::Tracklet64 > getTRDTracklets() const
const o2::dataformats::MCTruthContainer< o2::emcal::MCLabel > * getEMCALCellsMCLabels() const
const o2::dataformats::MatchInfoTOF & getTOFMatch(GTrackID id) const
const o2::dataformats::MCTruthContainer< o2::mid::MCClusterLabel > * getMIDTracksClusterMCLabels() const
const o2::dataformats::GlobalFwdTrack & getGlobalFwdTrack(GTrackID gid) const
LOG(info)<< "Compressed in "<< sw.CpuTime()<< " s"