Commit c01d79ad authored by Jens Kroeger's avatar Jens Kroeger
Browse files

EventDefinitionM26: mark string as const in get_next_event_from_det() so I can...

EventDefinitionM26: mark string as const in get_next_event_from_det() so I can pass 'Mimosa26' as rvalue
parent cc3e1ed8
......@@ -84,7 +84,7 @@ void EventDefinitionM26::initialize() {
}
unsigned EventDefinitionM26::get_next_event_with_det(eudaq::FileReaderUP& filereader,
std::string& det,
const std::string& det,
long double& begin,
long double& end) {
do {
......
......@@ -77,13 +77,15 @@ namespace corryvreckan {
/**
* @brief get_next_event_with_det
* @param filereader: eudaq::FileReader
* @param det: detetcor name to search for in data
* @param det: detector name to search for in data
* @param begin: timestamp of begin of event
* @param end: timestamp of end of event
* @return
*/
unsigned
get_next_event_with_det(eudaq::FileReaderUP& filereader, std::string& det, long double& begin, long double& end);
unsigned get_next_event_with_det(eudaq::FileReaderUP& filereader,
const std::string& det,
long double& begin,
long double& end);
// EUDAQ configuration to be passed to the decoder instance
eudaq::ConfigurationSPC eudaq_config_;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment