Skip to content

Commit ead54b7

Browse files
committed
Tutorial3/MQ/sampler: Remove sink
Remove setting the sink. Fixes issue #1355.
1 parent e0807d9 commit ead54b7

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ In the MT mode of Geant4 the folder names changed from 'folderName_1' and 'folde
1313
### Bug fixes
1414
* Check the return value of `source->InitUnpackers()`/`source->ReinitUnpackers()`
1515
in `FairRunOnline`. Stop run if `false` returned.
16+
* Remove sink from Tutorial3/MQ/sampler.cxx.
1617

1718
### Other Notable Changes
1819
* Allow running without output sink. In this case even persistent branches would not be stored anywhere.

basemq/devices/FairMQSampler.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
#include "FairMQ.h" // for fair::mq::Device, fair::mq::MessagePtr
2020
#include "FairMQSamplerTask.h"
2121
#include "FairParRootFileIo.h"
22-
#include "FairRootFileSink.h"
2322
#include "FairRunAna.h"
2423
#include "FairRuntimeDb.h"
2524

@@ -98,10 +97,6 @@ class FairMQSampler : public fair::mq::Device
9897

9998
fFairRunAna->SetSource(source);
10099

101-
TString output = fInputFile;
102-
output.Append(".out.root");
103-
fFairRunAna->SetSink(std::make_unique<FairRootFileSink>(output.Data()));
104-
105100
fFairRunAna->AddTask(fSamplerTask);
106101

107102
if (fParFile != "") {

0 commit comments

Comments
 (0)