Skip to content

Commit 947a45b

Browse files
committed
[MCH] added orbit info printout
1 parent 9270d64 commit 947a45b

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

Detectors/MUON/MCH/Workflow/src/digits-sink-workflow.cxx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838

3939
#include "DPLUtils/DPLRawParser.h"
4040
#include "MCHBase/Digit.h"
41+
#include "MCHBase/OrbitInfo.h"
4142

4243
using namespace o2;
4344
using namespace o2::framework;
@@ -82,8 +83,13 @@ class DigitsSinkTask
8283
{
8384
// get the input digits
8485
auto digits = pc.inputs().get<gsl::span<Digit>>("digits");
86+
auto orbits = pc.inputs().get<gsl::span<OrbitInfo>>("orbits");
8587

8688
if (mText) {
89+
for (auto o : orbits) {
90+
mOutputFile << std::endl << " FEEID " << o.getFeeID() << " LINK " << o.getLinkID() << " ORBIT " << o.getOrbit() << std::endl;
91+
}
92+
mOutputFile << "---------------" << std::endl;
8793
for (auto d : digits) {
8894
mOutputFile << " DE# " << d.getDetID() << " PadId " << d.getPadID() << " ADC " << d.getADC() << " time " << d.getTime().sampaTime << std::endl;
8995
}
@@ -111,7 +117,7 @@ WorkflowSpec defineDataProcessing(const ConfigContext&)
111117
// The producer to generate some data in the workflow
112118
DataProcessorSpec producer{
113119
"DigitsSink",
114-
Inputs{InputSpec{"digits", "MCH", "DIGITS", 0, Lifetime::Timeframe}},
120+
Inputs{InputSpec{"digits", "MCH", "DIGITS", 0, Lifetime::Timeframe}, InputSpec{"orbits", "MCH", "ORBITS", 0, Lifetime::Timeframe}},
115121
Outputs{},
116122
AlgorithmSpec{adaptFromTask<o2::mch::raw::DigitsSinkTask>()},
117123
Options{ { "outfile", VariantType::String, "digits.out", { "output file name" } },

0 commit comments

Comments
 (0)