Skip to content

Commit 910910a

Browse files
authored
Merge pull request #19 from Barthelemy/feature-remove-ds
Remove dependency on DataSampling (QC-96)
2 parents f848b1d + 61da038 commit 910910a

File tree

5 files changed

+0
-93
lines changed

5 files changed

+0
-93
lines changed

cmake/FindDataSampling.cmake

Lines changed: 0 additions & 36 deletions
This file was deleted.

cmake/ReadoutDependencies.cmake

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ find_package(Configuration REQUIRED)
55
find_package(Common REQUIRED)
66
find_package(InfoLogger REQUIRED)
77
find_package(ReadoutCard REQUIRED)
8-
find_package(DataSampling REQUIRED)
98
find_package(ZeroMQ REQUIRED)
109
find_package(Numa)
1110

configDummy.cfg

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,6 @@ rate=1.0
2121
exitTimeout=5
2222

2323

24-
###################################
25-
# data sampling
26-
###################################
27-
28-
[sampling]
29-
# enable/disable data sampling (1/0)
30-
enabled=1
31-
# which class of datasampling to use (FairInjector, MockInjector)
32-
class=MockInjector
33-
34-
3524
###################################
3625
# memory banks
3726
###################################

readout.cfg

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,6 @@ exitTimeout=-1
2121

2222

2323

24-
###################################
25-
# data sampling
26-
###################################
27-
28-
[sampling]
29-
30-
# enable/disable data sampling (1/0)
31-
enabled=0
32-
33-
# which class of datasampling to use (FairInjector, MockInjector)
34-
class=MockInjector
35-
36-
3724
###################################
3825
# memory banks
3926
###################################

src/mainReadout.cxx

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,6 @@
1818
#include <memory>
1919
#include <signal.h>
2020

21-
#ifdef WITH_DATASAMPLING
22-
#include "DataSampling/InjectorFactory.h"
23-
#endif
24-
2521
#include "ReadoutEquipment.h"
2622
#include "DataBlockAggregator.h"
2723
#include "Consumer.h"
@@ -354,26 +350,6 @@ int main(int argc, char* argv[])
354350
}
355351
theLog.log("Aggregator: %d equipments", nEquipmentsAggregated);
356352

357-
358-
// configuration of data sampling
359-
#ifdef WITH_DATASAMPLING
360-
int dataSampling=0;
361-
cfg.getOptionalValue<int>("sampling.enabled",dataSampling);
362-
std::unique_ptr<AliceO2::DataSampling::InjectorInterface> dataSamplingInjector;
363-
if (dataSampling) {
364-
theLog.log("Data sampling enabled");
365-
// todo: create(...) should not need an argument and should get its configuration by itself.
366-
std::string injector = cfg.getValue<std::string>("sampling.class");
367-
if(injector=="")
368-
injector = "MockInjector";
369-
dataSamplingInjector = AliceO2::DataSampling::InjectorFactory::create(injector);
370-
} else {
371-
theLog.log("Data sampling disabled");
372-
}
373-
// todo: add time counter to measure how much time is spent waiting for data sampling injection (And other consumers)
374-
#endif
375-
376-
377353
theLog.log("Starting aggregator");
378354
agg->start();
379355

@@ -431,14 +407,6 @@ int main(int argc, char* argv[])
431407

432408

433409
if (bc!=nullptr) {
434-
// push to data sampling, if configured
435-
#ifdef WITH_DATASAMPLING
436-
if (dataSampling) {
437-
dataSamplingInjector->injectSamples(bc);
438-
}
439-
#endif
440-
// todo: datasampling can become a consumer, now that consumer interface accepts datasets instead of blocks
441-
442410
for (auto& c : dataConsumers) {
443411
c->pushData(bc);
444412
}

0 commit comments

Comments
 (0)