Skip to content
Snippets Groups Projects

Draft: HLT1 lines to handle Error Banks from each subdetector

Closed Alessandro Scarabotto requested to merge error_banks_line into master
2 files
+ 107
107
Compare changes
  • Side-by-side
  • Inline
Files
2
/*****************************************************************************\
* (c) Copyright 2018-2020 CERN for the benefit of the LHCb Collaboration *
\*****************************************************************************/
#pragma once
// /*****************************************************************************\
// * (c) Copyright 2018-2020 CERN for the benefit of the LHCb Collaboration *
// \*****************************************************************************/
// #pragma once
#include "AlgorithmTypes.cuh"
// #include "AlgorithmTypes.cuh"
#include "Common.h"
#include "InputProvider.h"
#include "BankMapping.h"
#include <gsl/span>
#include "MEPTools.h"
// #include "Common.h"
// #include "InputProvider.h"
// #include "BankMapping.h"
// #include <gsl/span>
// #include "MEPTools.h"
namespace host_error_banks_cut {
struct Parameters {
HOST_OUTPUT(host_event_list_output_t, unsigned) host_event_list;
HOST_OUTPUT(host_number_of_events_t, unsigned) host_number_of_events;
HOST_OUTPUT(host_number_of_selected_events_t, unsigned) host_number_of_selected_events;
DEVICE_OUTPUT(dev_number_of_events_t, unsigned) dev_number_of_events;
MASK_OUTPUT(dev_event_list_output_t) dev_event_list;
};
// namespace host_error_banks_cut {
// struct Parameters {
// HOST_OUTPUT(host_event_list_output_t, unsigned) host_event_list;
// HOST_OUTPUT(host_number_of_events_t, unsigned) host_number_of_events;
// HOST_OUTPUT(host_number_of_selected_events_t, unsigned) host_number_of_selected_events;
// DEVICE_OUTPUT(dev_number_of_events_t, unsigned) dev_number_of_events;
// MASK_OUTPUT(dev_event_list_output_t) dev_event_list;
// };
// Algorithm
struct host_error_banks_cut_t : public HostAlgorithm, Parameters {
void set_arguments_size(
ArgumentReferences<Parameters> arguments,
const RuntimeOptions& runtime_options,
const Constants&,
const HostBuffers&) const;
// // Algorithm
// struct host_error_banks_cut_t : public HostAlgorithm, Parameters {
// void set_arguments_size(
// ArgumentReferences<Parameters> arguments,
// const RuntimeOptions& runtime_options,
// const Constants&,
// const HostBuffers&) const;
void operator()(
const ArgumentReferences<Parameters>& arguments,
const RuntimeOptions& runtime_options,
const Constants&,
HostBuffers& host_buffers,
const Allen::Context& context) const;
};
} // namespace host_error_banks_cut
\ No newline at end of file
// void operator()(
// const ArgumentReferences<Parameters>& arguments,
// const RuntimeOptions& runtime_options,
// const Constants&,
// HostBuffers& host_buffers,
// const Allen::Context& context) const;
// };
// } // namespace host_error_banks_cut
\ No newline at end of file
Loading