18 want_d2e_ = parameters.getParameter<
bool>(
"want_d2e");
20 parameters.getParameter<std::string>(
"connections_table");
30 return std::make_pair(
43 std::string connections_table_;
49 :
framework::ConditionsObject(CONDITIONS_OBJECT_NAME),
50 ldmx::ElectronicsMap<ldmx::HcalElectronicsID, ldmx::HcalDigiID>(
89 int link = 2 * hgcroc;
114 auto strip{(BarNumber - 1) +
117 strip = (4 - BarNumber) +
125 if (this->
exists(eleid)) {
126 std::stringstream ss;
127 ss <<
"Two different mappings for electronics channel " << eleid;
128 EXCEPTION_RAISE(
"DuplicateMapping", ss.str());
Base class for provider of conditions information like pedestals, gains, electronics maps,...
#define DECLARE_CONDITIONS_PROVIDER_NS(NS, 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.
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.
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.