Skip to content

Commit b4695a0

Browse files
committed
DataFormat in Common
1 parent 218a84a commit b4695a0

File tree

7 files changed

+26
-28
lines changed

7 files changed

+26
-28
lines changed

CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -pedantic -Wextra -fPIC")
6767
# Module, library and executable definition
6868
####################################
6969

70-
link_o2_subproject(DataFormat)
7170
link_o2_subproject(DataSampling)
7271

7372
set(MODULE_NAME "Readout")

cmake/ReadoutDependencies.cmake

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ o2_define_bucket(
2525

2626
DEPENDENCIES
2727
pthread
28-
DataFormat
2928
DataSampling
3029
${Configuration_LIBRARIES}
3130
${Monitoring_LIBRARIES}

src/Consumer.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#include <Common/Configuration.h>
22

33

4-
#include <DataFormat/DataBlock.h>
5-
#include <DataFormat/DataBlockContainer.h>
6-
#include <DataFormat/DataSet.h>
4+
#include <Common/DataBlock.h>
5+
#include <Common/DataBlockContainer.h>
6+
#include <Common/DataSet.h>
77

88
#include <memory>
99

@@ -19,7 +19,7 @@ class Consumer {
1919
virtual ~Consumer() {
2020
};
2121
virtual int pushData(DataBlockContainerReference &b)=0;
22-
22+
2323
protected:
2424
InfoLogger theLog;
2525
};

src/ConsumerStats.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#include "Consumer.h"
22

3-
#include <DataFormat/DataBlock.h>
4-
#include <DataFormat/DataBlockContainer.h>
5-
#include <DataFormat/DataSet.h>
3+
#include <Common/DataBlock.h>
4+
#include <Common/DataBlockContainer.h>
5+
#include <Common/DataSet.h>
66

77
#include <memory>
88

src/DataBlockAggregator.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
#include <Common/Thread.h>
44
#include <Common/Timer.h>
55

6-
#include <DataFormat/DataBlock.h>
7-
#include <DataFormat/DataBlockContainer.h>
8-
#include <DataFormat/DataSet.h>
6+
#include <Common/DataBlock.h>
7+
#include <Common/DataBlockContainer.h>
8+
#include <Common/DataSet.h>
99

1010
#include <memory>
1111

@@ -16,19 +16,19 @@ class DataBlockAggregator {
1616
public:
1717
DataBlockAggregator(AliceO2::Common::Fifo<DataSetReference> *output, std::string name="Aggregator");
1818
~DataBlockAggregator();
19-
19+
2020
int addInput(std::shared_ptr<AliceO2::Common::Fifo<DataBlockContainerReference>> input); // add a FIFO to be used as input
21-
21+
2222
void start(); // starts processing thread
2323
void stop(int waitStopped=1); // stop processing thread (and possibly wait it terminates)
2424

2525

26-
static Thread::CallbackResult threadCallback(void *arg);
27-
26+
static Thread::CallbackResult threadCallback(void *arg);
27+
2828
private:
2929
std::vector<std::shared_ptr<AliceO2::Common::Fifo<DataBlockContainerReference>>> inputs;
3030
AliceO2::Common::Fifo<DataSetReference> *output; //todo: unique_ptr
31-
31+
3232
std::unique_ptr<Thread> aggregateThread;
3333
AliceO2::Common::Timer incompletePendingTimer;
3434
int isIncompletePending;

src/ReadoutEquipment.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
#include <Common/Thread.h>
44
#include <Common/Timer.h>
55

6-
#include <DataFormat/DataBlock.h>
7-
#include <DataFormat/DataBlockContainer.h>
8-
#include <DataFormat/DataSet.h>
6+
#include <Common/DataBlock.h>
7+
#include <Common/DataBlockContainer.h>
8+
#include <Common/DataSet.h>
99

1010
#include <memory>
1111

@@ -16,24 +16,24 @@ class ReadoutEquipment {
1616
public:
1717
ReadoutEquipment(ConfigFile &cfg, std::string cfgEntryPoint);
1818
virtual ~ReadoutEquipment();
19-
19+
2020
DataBlockContainerReference getBlock();
2121

2222
void start();
2323
void stop();
2424
const std::string & getName();
2525

26-
// protected:
26+
// protected:
2727
// todo: give direct access to output FIFO?
2828
std::shared_ptr<AliceO2::Common::Fifo<DataBlockContainerReference>> dataOut;
2929

3030
private:
31-
std::unique_ptr<Thread> readoutThread;
31+
std::unique_ptr<Thread> readoutThread;
3232
static Thread::CallbackResult threadCallback(void *arg);
3333
virtual Thread::CallbackResult populateFifoOut()=0; // function called iteratively in dedicated thread to populate FIFO
3434
AliceO2::Common::Timer clk;
3535
AliceO2::Common::Timer clk0;
36-
36+
3737
unsigned long long nBlocksOut;
3838
double readoutRate;
3939
protected:

src/mainReadout.cxx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55

66
#include <InfoLogger/InfoLogger.hxx>
77
#include <Common/Configuration.h>
8-
#include <DataFormat/DataBlock.h>
9-
#include <DataFormat/DataBlockContainer.h>
10-
#include <DataFormat/MemPool.h>
11-
#include <DataFormat/DataSet.h>
8+
#include <Common/DataBlock.h>
9+
#include <Common/DataBlockContainer.h>
10+
#include <Common/MemPool.h>
11+
#include <Common/DataSet.h>
1212

1313
#include <atomic>
1414
#ifndef __APPLE__

0 commit comments

Comments
 (0)