Skip to content

Commit f7ecc2d

Browse files
committed
ITS: add back datastreams
Signed-off-by: Felix Schlepper <felix.schlepper@cern.ch>
1 parent 7606e68 commit f7ecc2d

File tree

8 files changed

+17
-2
lines changed

8 files changed

+17
-2
lines changed

Detectors/ITSMFT/ITS/tracking/src/TrackingInterface.cxx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ void ITSTrackingInterface::run(framework::ProcessingContext& pc)
164164
auto& allTracks = pc.outputs().make<std::vector<o2::its::TrackITS>>(Output{"ITS", "TRACKS", 0});
165165
auto& allTrackROFs = pc.outputs().make<std::vector<o2::itsmft::ROFRecord>>(Output{"ITS", "ITSTrackROF", 0});
166166
auto& vertices = pc.outputs().make<std::vector<Vertex>>(Output{"ITS", "VERTICES", 0});
167+
auto& vertROFvec = pc.outputs().make<std::vector<o2::itsmft::ROFRecord>>(Output{"ITS", "VERTICESROF", 0}); // TODO fill this!
167168

168169
// MC
169170
static pmr::vector<o2::MCCompLabel> dummyMCLabTracks, dummyMCLabVerts;

Detectors/ITSMFT/ITS/workflow/include/ITSWorkflow/TrackReaderSpec.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ class TrackReader final : public o2::framework::Task
4343
std::vector<o2::itsmft::ROFRecord> mROFRec, *mROFRecInp = &mROFRec;
4444
std::vector<o2::its::TrackITS> mTracks, *mTracksInp = &mTracks;
4545
std::vector<Vertex> mVertices, *mVerticesInp = &mVertices;
46+
std::vector<o2::itsmft::ROFRecord> mVerticesROFRec, *mVerticesROFRecInp = &mVerticesROFRec;
4647
std::vector<int> mClusInd, *mClusIndInp = &mClusInd;
4748
std::vector<o2::MCCompLabel> mMCTruth, *mMCTruthInp = &mMCTruth;
4849
std::vector<o2::MCCompLabel> mMCVertTruth, *mMCVTruthInp = &mMCTruth;
@@ -59,6 +60,7 @@ class TrackReader final : public o2::framework::Task
5960
std::string mTrackBranchName = "ITSTrack";
6061
std::string mClusIdxBranchName = "ITSTrackClusIdx";
6162
std::string mVertexBranchName = "Vertices";
63+
std::string mVertexROFBranchName = "VerticesROF";
6264
std::string mTrackMCTruthBranchName = "ITSTrackMCTruth";
6365
std::string mTrackMCVertTruthBranchName = "ITSVertexMCTruth";
6466
};

Detectors/ITSMFT/ITS/workflow/src/TrackReaderSpec.cxx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ void TrackReader::run(ProcessingContext& pc)
4141
pc.outputs().snapshot(Output{mOrigin, "TRACKS", 0}, mTracks);
4242
pc.outputs().snapshot(Output{mOrigin, "TRACKCLSID", 0}, mClusInd);
4343
pc.outputs().snapshot(Output{"ITS", "VERTICES", 0}, mVertices);
44+
pc.outputs().snapshot(Output{"ITS", "VERTICESROF", 0}, mVerticesROFRec);
4445
if (mUseMC) {
4546
pc.outputs().snapshot(Output{mOrigin, "TRACKSMCTR", 0}, mMCTruth);
4647
pc.outputs().snapshot(Output{mOrigin, "VERTICESMCTR", 0}, mMCVertTruth);
@@ -86,6 +87,7 @@ DataProcessorSpec getITSTrackReaderSpec(bool useMC)
8687
outputSpec.emplace_back("ITS", "TRACKS", 0, Lifetime::Timeframe);
8788
outputSpec.emplace_back("ITS", "TRACKCLSID", 0, Lifetime::Timeframe);
8889
outputSpec.emplace_back("ITS", "VERTICES", 0, Lifetime::Timeframe);
90+
outputSpec.emplace_back("ITS", "VERTICESROF", 0, Lifetime::Timeframe);
8991
if (useMC) {
9092
outputSpec.emplace_back("ITS", "TRACKSMCTR", 0, Lifetime::Timeframe);
9193
outputSpec.emplace_back("ITS", "VERTICESMCTR", 0, Lifetime::Timeframe);

Detectors/ITSMFT/ITS/workflow/src/TrackWriterSpec.cxx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ DataProcessorSpec getTrackWriterSpec(bool useMC)
5858
BranchDefinition<std::vector<o2::itsmft::ROFRecord>>{InputSpec{"ROframes", "ITS", "ITSTrackROF", 0},
5959
"ITSTracksROF",
6060
logger},
61+
BranchDefinition<std::vector<o2::itsmft::ROFRecord>>{InputSpec{"vtxROF", "ITS", "VERTICESROF", 0},
62+
"VerticesROF"},
6163
BranchDefinition<LabelsType>{InputSpec{"labels", "ITS", "TRACKSMCTR", 0},
6264
"ITSTrackMCTruth",
6365
(useMC ? 1 : 0), // one branch if mc labels enabled

Detectors/ITSMFT/ITS/workflow/src/TrackerSpec.cxx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ DataProcessorSpec getTrackerSpec(bool useMC, bool doStag, bool useGeom, int trgT
128128
outputs.emplace_back("ITS", "TRACKCLSID", 0, Lifetime::Timeframe);
129129
outputs.emplace_back("ITS", "ITSTrackROF", 0, Lifetime::Timeframe);
130130
outputs.emplace_back("ITS", "VERTICES", 0, Lifetime::Timeframe);
131+
outputs.emplace_back("ITS", "VERTICESROF", 0, Lifetime::Timeframe);
131132
outputs.emplace_back("ITS", "IRFRAMES", 0, Lifetime::Timeframe);
132133
if (useMC) {
133134
outputs.emplace_back("ITS", "VERTICESMCTR", 0, Lifetime::Timeframe);

GPU/GPUTracking/DataTypes/GPUDataTypesIO.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,8 @@ struct GPUTrackingInOutPointers {
251251
const o2::MCCompLabel* itsTrackMC = nullptr;
252252
uint32_t nItsTracks = 0;
253253
const int32_t* itsTrackClusIdx = nullptr;
254+
const o2::itsmft::ROFRecord* itsTrackROF = nullptr;
255+
uint32_t nItsTrackROF = 0;
254256

255257
// TPC-ITS
256258
const o2::dataformats::TrackTPCITS* tracksTPCITSO2 = nullptr;

GPU/Workflow/helper/src/GPUWorkflowHelper.cxx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,14 @@ std::shared_ptr<const GPUWorkflowHelper::tmpDataContainer> GPUWorkflowHelper::fi
5555
}
5656
if (maskTrk[GID::ITS] && ioPtr.nItsTracks == 0) {
5757
const auto& ITSTracksArray = recoCont.getITSTracks();
58-
if (!ITSTracksArray.empty()) {
58+
const auto& ITSTrackROFRec = recoCont.getITSTracksROFRecords();
59+
if (ITSTracksArray.size() && ITSTrackROFRec.size()) {
5960
const auto& ITSTrackClusIdx = recoCont.getITSTracksClusterRefs();
6061
ioPtr.nItsTracks = ITSTracksArray.size();
6162
ioPtr.itsTracks = ITSTracksArray.data();
6263
ioPtr.itsTrackClusIdx = ITSTrackClusIdx.data();
64+
ioPtr.nItsTrackROF = ITSTrackROFRec.size();
65+
ioPtr.itsTrackROF = ITSTrackROFRec.data();
6366
if (useMC) {
6467
const auto& ITSTrkLabels = recoCont.getITSTracksMCLabels();
6568
ioPtr.itsTrackMC = ITSTrkLabels.data();

GPU/Workflow/src/GPUWorkflowSpec.cxx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1229,7 +1229,7 @@ Inputs GPURecoWorkflowSpec::inputs()
12291229
}
12301230

12311231
if (mSpecConfig.runITSTracking) {
1232-
for (unsigned int iLay{0}; iLay < 7; ++iLay) {
1232+
for (unsigned int iLay{0}; iLay < (mSpecConfig.itsStaggered ? 7 : 0); ++iLay) {
12331233
inputs.emplace_back("compClusters", "ITS", "COMPCLUSTERS", iLay, Lifetime::Timeframe);
12341234
inputs.emplace_back("patterns", "ITS", "PATTERNS", iLay, Lifetime::Timeframe);
12351235
inputs.emplace_back("ROframes", "ITS", "CLUSTERSROF", iLay, Lifetime::Timeframe);
@@ -1380,7 +1380,9 @@ Outputs GPURecoWorkflowSpec::outputs()
13801380
if (mSpecConfig.runITSTracking) {
13811381
outputSpecs.emplace_back(gDataOriginITS, "TRACKS", 0, Lifetime::Timeframe);
13821382
outputSpecs.emplace_back(gDataOriginITS, "TRACKCLSID", 0, Lifetime::Timeframe);
1383+
outputSpecs.emplace_back(gDataOriginITS, "ITSTrackROF", 0, Lifetime::Timeframe);
13831384
outputSpecs.emplace_back(gDataOriginITS, "VERTICES", 0, Lifetime::Timeframe);
1385+
outputSpecs.emplace_back(gDataOriginITS, "VERTICESROF", 0, Lifetime::Timeframe);
13841386
outputSpecs.emplace_back(gDataOriginITS, "IRFRAMES", 0, Lifetime::Timeframe);
13851387

13861388
if (mSpecConfig.processMC) {

0 commit comments

Comments
 (0)