Skip to content

Commit

Permalink
feat(Logger): Do not use FairMQLogger.h any more
Browse files Browse the repository at this point in the history
Since FairMQ v1.4.0 `FairMQLogger.h` was just a wrapper around
`fairlogger/Logger.h` because all logging features have been factored out to
FairLogger already.
See https://github.com/FairRootGroup/FairMQ/blob/v1.4.0/fairmq/FairMQLogger.h
  • Loading branch information
dennisklein committed Apr 13, 2022
1 parent c51b8a1 commit a4d8466
Show file tree
Hide file tree
Showing 29 changed files with 53 additions and 54 deletions.
4 changes: 2 additions & 2 deletions base/MQ/devices/BaseMQFileSink.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/********************************************************************************
* Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
* Copyright (C) 2014-2022 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
* *
* This software is distributed under the terms of the *
* GNU Lesser General Public Licence (LGPL) version 3, *
Expand All @@ -17,7 +17,7 @@
#define BASEMQFILESINK_H

#include <FairMQDevice.h>
#include <FairMQLogger.h>
#include <fairlogger/Logger.h>

template<typename InputPolicy, typename OutputPolicy>
class BaseMQFileSink
Expand Down
4 changes: 2 additions & 2 deletions base/MQ/devices/FairMQLmdSampler.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/********************************************************************************
* Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
* Copyright (C) 2014-2022 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
* *
* This software is distributed under the terms of the *
* GNU Lesser General Public Licence (LGPL) version 3, *
Expand All @@ -23,9 +23,9 @@ extern "C"
}

#include <FairMQDevice.h>
#include <FairMQLogger.h>
#include <FairMQMessage.h>
#include <boost/filesystem.hpp>
#include <fairlogger/Logger.h>
#include <map>
#include <string>
#include <tuple>
Expand Down
4 changes: 2 additions & 2 deletions base/MQ/devices/FairMQProcessor.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/********************************************************************************
* Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
* Copyright (C) 2014-2022 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
* *
* This software is distributed under the terms of the *
* GNU Lesser General Public Licence (LGPL) version 3, *
Expand All @@ -18,7 +18,7 @@
#include "FairMQProcessorTask.h"

#include <FairMQDevice.h>
#include <FairMQLogger.h>
#include <fairlogger/Logger.h>

template<typename Task>
class FairMQProcessor : public FairMQDevice
Expand Down
4 changes: 2 additions & 2 deletions base/MQ/devices/FairMQSampler.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/********************************************************************************
* Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
* Copyright (C) 2014-2022 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
* *
* This software is distributed under the terms of the *
* GNU Lesser General Public Licence (LGPL) version 3, *
Expand All @@ -23,8 +23,8 @@
#include "FairRuntimeDb.h"

#include <FairMQDevice.h>
#include <FairMQLogger.h>
#include <chrono>
#include <fairlogger/Logger.h>
#include <thread>

/**
Expand Down
4 changes: 2 additions & 2 deletions base/MQ/policies/Sampler/FairSourceMQInterface.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/********************************************************************************
* Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
* Copyright (C) 2014-2022 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
* *
* This software is distributed under the terms of the *
* GNU Lesser General Public Licence (LGPL) version 3, *
Expand All @@ -13,7 +13,7 @@
#include "FairFileSource.h"
#include "FairRunAna.h"

#include <FairMQLogger.h>
#include <fairlogger/Logger.h>
#include <functional>
#include <type_traits>

Expand Down
2 changes: 1 addition & 1 deletion base/MQ/policies/Sampler/SimpleTreeReader.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
#include <TTree.h>

// FairRoot
#include <FairMQLogger.h>
#include <FairMQMessage.h>
#include <fairlogger/Logger.h>

template<typename DataType>
class BaseSimpleTreeReader
Expand Down
2 changes: 1 addition & 1 deletion base/MQ/policies/Serialization/BoostSerializer.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
#ifndef BOOSTSERIALIZER_H
#define BOOSTSERIALIZER_H

#include <FairMQLogger.h>
#include <FairMQMessage.h>
#include <TClonesArray.h>

Expand All @@ -28,6 +27,7 @@ class access;
#include <boost/archive/binary_iarchive.hpp> // input: a non-portable native binary archive
#include <boost/archive/binary_oarchive.hpp> // output: a non-portable native binary archive
#include <boost/serialization/vector.hpp>
#include <fairlogger/Logger.h>
#include <memory>
#include <sstream>
#include <string>
Expand Down
1 change: 0 additions & 1 deletion base/MQ/policies/Storage/BinaryOutFileManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ class access;
#include "TriviallyCopyableDataSaver.h"
#include "baseMQtools.h"

#include <FairMQLogger.h>
#include <FairMQMessage.h>

#define GET_POLICY_ID(Policy) #Policy
Expand Down
4 changes: 2 additions & 2 deletions examples/MQ/Lmd/FairMBSUnpacker.cxx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/********************************************************************************
* Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
* Copyright (C) 2014-2022 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
* *
* This software is distributed under the terms of the *
* GNU Lesser General Public Licence (LGPL) version 3, *
Expand All @@ -10,7 +10,7 @@
#include <TClonesArray.h>

// Fair headers
#include <FairMQLogger.h>
#include <fairlogger/Logger.h>

// Land headers
#include "FairMBSRawItem.h"
Expand Down
4 changes: 2 additions & 2 deletions examples/MQ/parameters/FairMQExParamsClient.cxx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/********************************************************************************
* Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
* Copyright (C) 2014-2022 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
* *
* This software is distributed under the terms of the *
* GNU Lesser General Public Licence (LGPL) version 3, *
Expand All @@ -17,8 +17,8 @@
#include "FairMQExParamsParOne.h"
#include "RootSerializer.h"

#include <FairMQLogger.h>
#include <chrono>
#include <fairlogger/Logger.h>
#include <thread> // this_thread::sleep_for

using namespace std;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/********************************************************************************
* Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
* Copyright (C) 2014-2022 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
* *
* This software is distributed under the terms of the *
* GNU Lesser General Public Licence (LGPL) version 3, *
Expand All @@ -16,7 +16,7 @@

#include "PixelPayload.h"

#include <FairMQLogger.h>
#include <fairlogger/Logger.h>

using namespace std;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/********************************************************************************
* Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
* Copyright (C) 2014-2022 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
* *
* This software is distributed under the terms of the *
* GNU Lesser General Public Licence (LGPL) version 3, *
Expand All @@ -14,11 +14,11 @@

#include "FairMQPixAltSamplerBin.h"

#include <FairMQLogger.h>
#include <FairMQMessage.h>
#include <TBranch.h>
#include <TChain.h>
#include <cstddef>
#include <fairlogger/Logger.h>
#include <utility>

using namespace std;
Expand Down
4 changes: 2 additions & 2 deletions examples/MQ/pixelDetector/src/FairOnlineSink.cxx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/********************************************************************************
* Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
* Copyright (C) 2014-2022 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
* *
* This software is distributed under the terms of the *
* GNU Lesser General Public Licence version 3 (LGPL) version 3, *
Expand All @@ -17,7 +17,7 @@
#include "FairMQRunDevice.h"
#include "FairRootManager.h"

#include <FairMQLogger.h>
#include <fairlogger/Logger.h>

FairOnlineSink::FairOnlineSink()
: FairSink()
Expand Down
4 changes: 2 additions & 2 deletions examples/MQ/pixelDetector/src/devices/FairMQPixelFileSink.cxx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/********************************************************************************
* Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
* Copyright (C) 2014-2022 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
* *
* This software is distributed under the terms of the *
* GNU Lesser General Public Licence (LGPL) version 3, *
Expand All @@ -16,11 +16,11 @@

#include "RootSerializer.h"

#include <FairMQLogger.h>
#include <TFile.h>
#include <TObject.h>
#include <TTree.h>
#include <cstdlib>
#include <fairlogger/Logger.h>
#include <memory>
#include <vector>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/********************************************************************************
* Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
* Copyright (C) 2014-2022 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
* *
* This software is distributed under the terms of the *
* GNU Lesser General Public Licence (LGPL) version 3, *
Expand All @@ -18,7 +18,6 @@
#include "PixelHit.h"
#include "PixelPayload.h"

#include <FairMQLogger.h>
#include <TClonesArray.h>
#include <TFile.h>
#include <TFolder.h>
Expand All @@ -27,6 +26,7 @@
#include <TObject.h>
#include <TTree.h>
#include <TVector3.h>
#include <fairlogger/Logger.h>

using namespace std;

Expand Down
4 changes: 2 additions & 2 deletions examples/MQ/pixelDetector/src/devices/FairMQPixelMerger.cxx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/********************************************************************************
* Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
* Copyright (C) 2014-2022 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
* *
* This software is distributed under the terms of the *
* GNU Lesser General Public Licence (LGPL) version 3, *
Expand All @@ -17,10 +17,10 @@
#include "PixelEventHeader.h"
#include "RootSerializer.h"

#include <FairMQLogger.h>
#include <TClonesArray.h>
#include <TObject.h>
#include <cstring> // strcmp
#include <fairlogger/Logger.h>

using namespace std;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@
#include "FairSource.h"
#include "RootSerializer.h"

#include <FairMQLogger.h>
#include <FairMQMessage.h>
#include <Rtypes.h>
#include <TClonesArray.h>
#include <TObject.h>
#include <cstring>
#include <fairlogger/Logger.h>
#include <utility> // move

using namespace std;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/********************************************************************************
* Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
* Copyright (C) 2014-2022 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
* *
* This software is distributed under the terms of the *
* GNU Lesser General Public Licence (LGPL) version 3, *
Expand All @@ -20,11 +20,11 @@
#include "PixelDigi.h"
#include "PixelPayload.h"

#include <FairMQLogger.h>
#include <Rtypes.h> // for Int_t, Long64_t
#include <TClonesArray.h>
#include <TObject.h>
#include <cstring>
#include <fairlogger/Logger.h>
#include <utility> // move

using namespace std;
Expand Down
4 changes: 2 additions & 2 deletions examples/MQ/pixelDetector/src/devices/FairMQRunDevice.cxx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/********************************************************************************
* Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
* Copyright (C) 2014-2022 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
* *
* This software is distributed under the terms of the *
* GNU Lesser General Public Licence version 3 (LGPL) version 3, *
Expand All @@ -18,12 +18,12 @@
#include "FairRootManager.h"
#include "RootSerializer.h"

#include <FairMQLogger.h>
#include <FairMQMessage.h>
#include <Rtypes.h>
#include <TList.h>
#include <TObjString.h>
#include <cstdio> // printf
#include <fairlogger/Logger.h>

using namespace std;

Expand Down
4 changes: 2 additions & 2 deletions examples/MQ/pixelDetector/src/devices/FairMQSimDevice.cxx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/********************************************************************************
* Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
* Copyright (C) 2014-2022 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
* *
* This software is distributed under the terms of the *
* GNU Lesser General Public Licence version 3 (LGPL) version 3, *
Expand All @@ -21,11 +21,11 @@
#include "FairRuntimeDb.h"

#include <FairMQDevice.h>
#include <FairMQLogger.h>
#include <TCollection.h>
#include <TList.h>
#include <TObjArray.h>
#include <cstdio> // printf
#include <fairlogger/Logger.h>

using namespace std;

Expand Down
4 changes: 2 additions & 2 deletions examples/MQ/pixelDetector/src/devices/PixelFindHitsTask.cxx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/********************************************************************************
* Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
* Copyright (C) 2014-2022 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
* *
* This software is distributed under the terms of the *
* GNU Lesser General Public Licence (LGPL) version 3, *
Expand All @@ -19,7 +19,6 @@
#include "PixelDigiPar.h"
#include "PixelHit.h"

#include <FairMQLogger.h>
#include <TClonesArray.h>
#include <TGeoBBox.h>
#include <TGeoManager.h>
Expand All @@ -29,6 +28,7 @@
#include <TMath.h>
#include <TString.h>
#include <TVector3.h>
#include <fairlogger/Logger.h>

PixelFindHitsTask::PixelFindHitsTask()
: fGeoParSet(nullptr)
Expand Down
4 changes: 2 additions & 2 deletions examples/MQ/pixelSimSplit/src/devices/FairMQChunkMerger.cxx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/********************************************************************************
* Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
* Copyright (C) 2014-2022 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
* *
* This software is distributed under the terms of the *
* GNU Lesser General Public Licence (LGPL) version 3, *
Expand All @@ -19,11 +19,11 @@
#include "FairMCTrack.h"
#include "RootSerializer.h"

#include <FairMQLogger.h>
#include <TClonesArray.h>
#include <TObject.h>
#include <algorithm>
#include <cstring>
#include <fairlogger/Logger.h>
#include <vector>

using namespace std;
Expand Down
Loading

0 comments on commit a4d8466

Please sign in to comment.