Skip to content

Commit

Permalink
Merge pull request #2 from DUNE-DAQ/fgrotsch/code_cleanup
Browse files Browse the repository at this point in the history
Fgrotsch/code cleanup
  • Loading branch information
roland-sipos authored Oct 21, 2021
2 parents f637549 + 69e2564 commit f7eb392
Show file tree
Hide file tree
Showing 25 changed files with 2,519 additions and 2,313 deletions.
108 changes: 0 additions & 108 deletions include/dune-raw-data/Overlays/anlTypes.hh

This file was deleted.

23 changes: 13 additions & 10 deletions plugins/SSPCardReader.cpp
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
/**
* @file SSPCardReader.cc SSPCardReader DAQModule implementation
* @file SSPCardReader.cpp SSPCardReader DAQModule implementation
*
* This is part of the DUNE DAQ Application Framework, copyright 2020.
* Licensing/copyright details are in the COPYING file that you should have
* received with this code.
*/
#ifndef SSPMODULES_PLUGINS_SSPCARDREADER_CPP_
#define SSPMODULES_PLUGINS_SSPCARDREADER_CPP_

#include "logging/Logging.hpp"

#include "sspmodules/sspcardreader/Nljs.hpp"

//#include "CreateElink.hpp"
#include "SSPCardReader.hpp"
//#include "SspIssues.hpp"

#include "logging/Logging.hpp"

//#include "flxcard/FlxException.h"

#include <chrono>
Expand Down Expand Up @@ -81,25 +84,25 @@ SSPCardReader::init(const data_t& args)
} else {
TLOG_DEBUG(TLVL_WORK_STEPS) << ": SSPCardReader output queue is " << qi.inst;
}
};
}

TLOG_DEBUG(TLVL_ENTER_EXIT_METHODS) << "SSPCardReader init complete.";
// Set function for the SSPCardWrapper's block processor.
//m_card_wrapper->set_block_addr_handler(m_block_router);
// m_card_wrapper->set_block_addr_handler(m_block_router);
}

void
SSPCardReader::do_configure(const data_t& args)
{

TLOG_DEBUG(TLVL_ENTER_EXIT_METHODS) << "SSPCardReader do_configure called.";
if (!m_configured) {
TLOG_DEBUG(TLVL_WORK_STEPS) << ": SSPCardReader not yet configured so digging in.";
m_cfg = args.get<dunedaq::sspmodules::sspcardreader::Conf>();
m_card_id = m_cfg.card_id;
m_card_wrapper->configure(args);
TLOG_DEBUG(TLVL_WORK_STEPS) << ": SSPCardReader do_configure coming back from SSPCardWrapper configure.";
m_configured=true;
m_configured = true;
} else {
TLOG_DEBUG(TLVL_WORK_STEPS) << ": SSPCardReader is already configured so not going to configure again.";
}
Expand All @@ -113,7 +116,6 @@ SSPCardReader::do_start(const data_t& args)
TLOG_DEBUG(TLVL_ENTER_EXIT_METHODS) << "SSPCardReader do_start called.";
m_card_wrapper->start(args);
TLOG_DEBUG(TLVL_ENTER_EXIT_METHODS) << "SSPCardReader do_start complete.";

}

void
Expand All @@ -126,10 +128,11 @@ SSPCardReader::do_stop(const data_t& args)

void
SSPCardReader::get_info(opmonlib::InfoCollector& /*ci*/, int /*level*/)
{
}
{}

} // namespace sspmodules
} // namespace dunedaq

DEFINE_DUNE_DAQ_MODULE(dunedaq::sspmodules::SSPCardReader)

#endif // SSPMODULES_PLUGINS_SSPCARDREADER_CPP_
3 changes: 1 addition & 2 deletions plugins/SSPCardReader.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class SSPCardReader : public dunedaq::appfwk::DAQModule
using module_conf_t = dunedaq::sspmodules::sspcardreader::Conf;

// Constants
//static constexpr int s_elink_multiplier = 64;
// static constexpr int s_elink_multiplier = 64;

// Commands
void do_configure(const data_t& args);
Expand All @@ -72,7 +72,6 @@ class SSPCardReader : public dunedaq::appfwk::DAQModule

// SSP Cards
std::unique_ptr<SSPCardWrapper> m_card_wrapper;

};

} // namespace dunedaq::sspmodules
Expand Down
Loading

0 comments on commit f7eb392

Please sign in to comment.