6#include "Conditions/GeneralCSVLoader.h"
20 want_d2e_ = parameters.
get<
bool>(
"want_d2e");
21 connections_table_ = parameters.
get<std::string>(
"connections_table");
31 return std::make_pair(
44 std::string connections_table_;
50 :
framework::ConditionsObject(CONDITIONS_OBJECT_NAME),
51 ldmx::ElectronicsMap<ldmx::HcalElectronicsID, ldmx::HcalDigiID>(
58 if (std::find(cols.begin(), cols.end(),
"Section") != cols.end()) {
66 ss <<
"Two different mappings for electronics channel " << eid;
67 EXCEPTION_RAISE(
"DuplicateMapping", ss.str());
106 int link = 2 * hgcroc;
131 auto strip{(bar_number - 1) +
134 strip = (4 - bar_number) +
142 if (this->
exists(eleid)) {
143 std::stringstream ss;
144 ss <<
"Two different mappings for electronics channel " << eleid;
145 EXCEPTION_RAISE(
"DuplicateMapping", ss.str());
Base class for provider of conditions information like pedestals, gains, electronics maps,...
#define DECLARE_CONDITIONS_PROVIDER(CLASS)
Macro which allows the framework to construct a producer given its name during configuration.
Class which contains logic for how the detector items connect to and relate with the reconstruction c...
bool nextRow()
Advance to next row if possible.
int getInteger(const std::string &colname, bool ignore_case=true) const
Get the value for the given column in the current row as an integer.
std::vector< std::string > columnNames() const
Get the column names.
Specialization of the GeneralCSVLoader for loading from a file/stream.
Class which defines the run/event/type range for which a given condition is valid,...
Base class for all providers of conditions objects.
const Process & process() const
Get the process handle.
ConditionsObjectProvider(const std::string &objname, const std::string &tagname, const framework::config::Parameters ¶meters, Process &process)
Class constructor.
Base class for all conditions objects, very simple.
Class which represents the process under execution.
Class encapsulating parameters for configuring a processor.
const T & get(const std::string &name) const
Retrieve the parameter of the given name.
virtual void releaseConditionsObject(const framework::ConditionsObject *co)
Take no action on release, as the object is permanently owned by the Provider.
virtual std::pair< const framework::ConditionsObject *, framework::ConditionsIOV > getCondition(const ldmx::EventHeader &context)
Pure virtual getCondition function.
Class which provides various information about how the parts of the Hcal connect to each other.
HcalDetectorMap(const std::string &connections_table, bool want_d2e)
Default constructor which builds the necessary maps.
static constexpr const char * CONDITIONS_OBJECT_NAME
The name of the EID <-> DetID map for the ECal.
void addEntry(ldmx::HcalElectronicsID eid, ldmx::HcalDigiID did)
bool exists(ldmx::HcalElectronicsID eid) const
Extension of HcalAbstractID providing access to HCal digi information.
Identifies a location in the Hcal readout chain.
All classes in the ldmx-sw project use this namespace.