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
12 unresolved threads
2 files
+ 77
0
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 35
0
/*****************************************************************************\
* (c) Copyright 2018-2020 CERN for the benefit of the LHCb Collaboration *
\*****************************************************************************/
#pragma once
#include "Common.h"
#include "AlgorithmTypes.cuh"
#include "InputProvider.h"
namespace bank_types_provider {
struct Parameters {
DEVICE_OUTPUT(dev_raw_offsets_t, unsigned) dev_raw_offsets;
DEVICE_OUTPUT(dev_raw_types_t, unsigned) dev_raw_types;
HOST_OUTPUT(host_raw_bank_version_t, int) host_raw_bank_version;
PROPERTY(raw_bank_type_t, "bank_type", "type of raw bank to provide", BankTypes) prop_raw_bank_type;
};
struct bank_types_provider_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&,
const Allen::Context& context) const;
private:
Property<raw_bank_type_t> m_bank_type {this, BankTypes::ODIN};
};
} // namespace bank_types_provider
Loading