Skip to content

Commit

Permalink
Tutorial3/MQ/sampler: Remove sink
Browse files Browse the repository at this point in the history
Remove setting the sink.

Fixes issue #1355.
  • Loading branch information
karabowi committed Feb 24, 2023
1 parent e0807d9 commit ead54b7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ In the MT mode of Geant4 the folder names changed from 'folderName_1' and 'folde
### Bug fixes
* Check the return value of `source->InitUnpackers()`/`source->ReinitUnpackers()`
in `FairRunOnline`. Stop run if `false` returned.
* Remove sink from Tutorial3/MQ/sampler.cxx.

### Other Notable Changes
* Allow running without output sink. In this case even persistent branches would not be stored anywhere.
Expand Down
5 changes: 0 additions & 5 deletions basemq/devices/FairMQSampler.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
#include "FairMQ.h" // for fair::mq::Device, fair::mq::MessagePtr
#include "FairMQSamplerTask.h"
#include "FairParRootFileIo.h"
#include "FairRootFileSink.h"
#include "FairRunAna.h"
#include "FairRuntimeDb.h"

Expand Down Expand Up @@ -98,10 +97,6 @@ class FairMQSampler : public fair::mq::Device

fFairRunAna->SetSource(source);

TString output = fInputFile;
output.Append(".out.root");
fFairRunAna->SetSink(std::make_unique<FairRootFileSink>(output.Data()));

fFairRunAna->AddTask(fSamplerTask);

if (fParFile != "") {
Expand Down

0 comments on commit ead54b7

Please sign in to comment.