Skip to content

Commit

Permalink
Merge pull request #291 from positive-response/remove_CINT
Browse files Browse the repository at this point in the history
Remove obsolete CINT declarations
  • Loading branch information
kkacprzak authored Sep 19, 2023
2 parents 2c57957 + f62e46e commit 1d7d982
Show file tree
Hide file tree
Showing 13 changed files with 5 additions and 61 deletions.
6 changes: 1 addition & 5 deletions include/Core/JPetCommonTools/JPetCommonTools.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,8 @@
#ifndef COMMON_TOOLS_H
#define COMMON_TOOLS_H

#ifndef __CINT__

#include <boost/noncopyable.hpp>
#else
namespace boost;
class boost::noncopyable;
#endif /* __CINT __ */
#include <boost/filesystem.hpp>
#include <ctime>
#include <fstream>
Expand Down
10 changes: 0 additions & 10 deletions include/Core/JPetLogger/JPetLogger.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,12 @@
#include <ostream>
#include <string>

#ifndef __CINT__
#include <boost/log/attributes/attribute_cast.hpp>
#include <boost/log/core.hpp>
#include <boost/log/sinks/text_ostream_backend.hpp>
#include <boost/log/trivial.hpp>
#include <boost/log/utility/setup/common_attributes.hpp>
#include <boost/log/utility/setup/file.hpp>
#endif

/**
* @brief Simple logger class.
Expand All @@ -43,7 +41,6 @@

class JPetLogger {
public:
#ifndef __CINT__

static boost::log::sources::severity_logger<boost::log::trivial::severity_level>& getSeverity()
{
Expand Down Expand Up @@ -73,11 +70,6 @@ class JPetLogger {
static void setThreadsEnabled(bool value) { JPetLogger::getInstance().isThreadsEnabled = value; }

static void setRotationSize(unsigned int value) { JPetLogger::getInstance().backend->set_rotation_size(value); }
#else
void getSeverity();
void formatter();
void setLogLevel();
#endif

private:
JPetLogger();
Expand All @@ -86,14 +78,12 @@ class JPetLogger {

const int kRotationSize = 10 * 1024 * 1024; // 10 * MiB, log will rotate after 10MiB

#ifndef __CINT__
void init();
boost::shared_ptr<JPetTextFileBackend> backend;
typedef boost::log::sinks::synchronous_sink<JPetTextFileBackend> sink_t;
boost::shared_ptr<sink_t> sink;

bool isThreadsEnabled = false;
#endif
};

#endif /* !JPETLOGGER_H */
5 changes: 1 addition & 4 deletions include/Core/JPetLogger/JPetTMessageHandler.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,8 @@ class JPetTMessageHandler : public TMessageHandler
public:
JPetTMessageHandler();
~JPetTMessageHandler();
#ifndef __CINT__
Bool_t Notify() override;
#else
Bool_t Notify();
#endif

};

#endif /* !JPETTMESSAGEHANDLER_H */
3 changes: 1 addition & 2 deletions include/Core/JPetLoggerInclude.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,9 @@

#include "./JPetLogger/JPetLogger.h"

#ifndef __CINT__
#include <boost/log/attributes/scoped_attribute.hpp>
#include <boost/log/utility/manipulators/add_value.hpp>
#endif


/* Macro with multi-line statement
* DO not use directly, instead use INFO, WARNING, ERROR, DEBUG or LOG macros
Expand Down
5 changes: 0 additions & 5 deletions include/Core/JPetReader/JPetReader.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,7 @@
#include <TTree.h>
#include <vector>

#ifndef __CINT__
#include <boost/noncopyable.hpp>
#else
namespace boost;
class boost::noncopyable;
#endif /* __CINT __ */

/**
* @brief A class responsible for reading any data from ROOT trees.
Expand Down
5 changes: 0 additions & 5 deletions include/Core/JPetWriter/JPetWriter.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,7 @@
#ifndef JPETWRITER_H
#define JPETWRITER_H

#ifndef __CINT__
#include <boost/noncopyable.hpp>
#else
namespace boost;
class boost::noncopyable;
#endif /* __CINT __ */

#include "JPetBarrelSlot/JPetBarrelSlot.h"
#include "JPetBaseHit/JPetBaseHit.h"
Expand Down
6 changes: 1 addition & 5 deletions include/DataObjects/JPetBaseSignal/JPetBaseSignal.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,8 @@ class JPetBaseSignal: public TObject
RecoFlag fFlag = JPetBaseSignal::Unknown;

protected:
#ifndef __CINT__
bool fIsNullObject = false;
#else
bool fIsNullObject;
#endif


ClassDef(JPetBaseSignal, 5);

};
Expand Down
4 changes: 0 additions & 4 deletions include/DataObjects/JPetEvent/JPetEvent.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,7 @@ class JPetEvent: public TObject

protected:
std::vector<JPetHit> fHits;
#ifndef __CINT__
JPetEventType fType = JPetEventType::kUnknown;
#else
JPetEventType fType;
#endif

private:
RecoFlag fFlag = JPetEvent::Unknown;
Expand Down
6 changes: 1 addition & 5 deletions include/DataObjects/JPetPhysSignal/JPetPhysSignal.h
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,8 @@ class JPetPhysSignal: public JPetBaseSignal
JPetRecoSignal fRecoSignal;

protected:
#ifndef __CINT__
bool fIsNullObject = false;
#else
bool fIsNullObject;
#endif


ClassDef(JPetPhysSignal, 3);

};
Expand Down
5 changes: 0 additions & 5 deletions include/GeantParser/JPetGeantParser/JPetGeantParser.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,6 @@

class JPetWriter;

#ifdef __CINT__
// when cint is used instead of compiler, override word is not recognized
// nevertheless it's needed for checking if the structure of project is correct
#define override
#endif

/**
* @brief Module responsible for creating JPetMCHit from GEANT MC simulations
Expand Down
6 changes: 0 additions & 6 deletions include/GeantParser/JPetGeantParser/JPetGeantParserTools.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,6 @@
#include <tuple>
#include <vector>

#ifdef __CINT__
// when cint is used instead of compiler, override word is not recognized
// nevertheless it's needed for checking if the structure of project is correct
#define override
#endif

class JPetGeantParserTools
{
public:
Expand Down
2 changes: 0 additions & 2 deletions src/Core/JPetLoggerInclude.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,8 @@

#include "JPetLogger/JPetLogger.h"

#ifndef __CINT__
#include <boost/log/attributes/scoped_attribute.hpp>
#include <boost/log/utility/manipulators/add_value.hpp>
#endif

/* Macro with multi-line statement
* DO not use directly, instead use INFO, WARNING, ERROR, DEBUG or LOG macros
Expand Down
3 changes: 0 additions & 3 deletions src/JPetFramework_LinkDef.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#ifdef __CINT__

#pragma link off all globals;
#pragma link off all classes;
#pragma link off all functions;
Expand Down Expand Up @@ -82,4 +80,3 @@
#pragma link C++ struct JPetScin::ScinDimensions + ;
#pragma link C++ struct JPetTreeHeader::ProcessingStageInfo + ;

#endif

0 comments on commit 1d7d982

Please sign in to comment.