LDMX Software
EcalDetectorMap.h
Go to the documentation of this file.
1
8#ifndef ECAL_ECALDETECTORMAP_H_
9#define ECAL_ECALDETECTORMAP_H_
10
11#include <vector>
12
13#include "Conditions/GeneralCSVLoader.h"
15#include "DetDescr/EcalID.h"
18
19namespace ecal {
20
49 public ldmx::ElectronicsMap<ldmx::EcalElectronicsID, ldmx::EcalID> {
50 public:
52 static constexpr const char* CONDITIONS_OBJECT_NAME{"EcalDetectorMap"};
53
61 EcalDetectorMap(const std::string& cell_map,
62 const std::string& motherboard_map,
63 const std::string& layer_map, bool want_d2e);
64
67
68 private:
75
78
93 std::vector<CellInformation> cells_;
94
110 std::vector<MotherboardLinksInformation> elinks_;
111
123 std::vector<MotherboardsPerLayer> layers_;
124};
125
126} // namespace ecal
127
128#endif // ECAL_ECALDETECTORMAP_H_
Base class for conditions information like pedestals, gains, electronics maps, etc.
Class that identifies a location in the Ecal readout chain.
Class that defines an ECal detector ID with a cell number.
Class designed for efficient mapping between electronics ids (using packed index techniques) and dete...
Class which parses a CSV file and provides the rows one at a time to a user The parser ignores any li...
Class which provides various information about how the parts of the Ecal connect to each other.
void loadCellMap(conditions::GeneralCSVLoader &loader)
import cell map from the provided CSV loader
void loadMotherboardMap(conditions::GeneralCSVLoader &loader)
import motherboard map from the provided CSV loader
static constexpr const char * CONDITIONS_OBJECT_NAME
The name of the EID <-> DetID map for the ECal.
void buildElectronicsMap()
build the electronics map from loaded maps
void loadLayerMap(conditions::GeneralCSVLoader &loader)
import layer map from the provided CSV loader
Base class for all conditions objects, very simple.
ElectronicsMap.
Table of per-module cell information.
int rocid
hgcroc id on the module (which of the six)
int module_cellid
precision information
Table of per-motherboard connections information.
int roc_elink_number
hgcroc link id on the module (which of the two)
Table of per-layer motherboard layouts.
int daq_opticallink
mother global optical link number