KLM database importer.
More...
#include <KLMElectronicsMapImporter.h>
|
| KLMElectronicsMapImporter () |
| Constructor.
|
|
| ~KLMElectronicsMapImporter () |
| Destructor.
|
|
void | setIOV (int experimentLow, int runLow, int experimentHigh, int runHigh) |
| Set interval of validity.
|
|
void | clearElectronicsMap () |
| Clear electronics map (to be able to import its multiple versions).
|
|
void | loadBKLMElectronicsMap (int version) |
| Load BKLM electronics map. More...
|
|
void | loadEKLMElectronicsMap (int version, bool mc) |
| Load EKLM electronics map. More...
|
|
void | setLane (int subdetector, int section, int sector, int layer, int lane) |
| Set non-default lane for all channels in a module. More...
|
|
void | setLane (int subdetector, int section, int sector, int layer, int plane, int lane) |
| Set non-default lane for all channels in a plane. More...
|
|
void | importElectronicsMap () |
| Import electronics map.
|
|
|
int | getEKLMStripFirmwareBySoftware (int stripSoftware) const |
| Get EKLM firmware strip number by software strip number. More...
|
|
void | setChannelsEKLMSegment (int section, int sector, int layer, int plane, int segment, int firmwareSegment) |
| Set channels for EKLM segment. More...
|
|
void | addEKLMLane (int section, int sector, int layer, int copper, int slot, int lane) |
| Add EKLM electronics map lane. More...
|
|
KLM database importer.
Definition at line 27 of file KLMElectronicsMapImporter.h.
◆ addEKLMLane()
void addEKLMLane |
( |
int |
section, |
|
|
int |
sector, |
|
|
int |
layer, |
|
|
int |
copper, |
|
|
int |
slot, |
|
|
int |
lane |
|
) |
| |
|
private |
Add EKLM electronics map lane.
- Parameters
-
[in] | section | Section. |
[in] | sector | Sector. |
[in] | layer | Layer. |
[in] | copper | Copper. |
[in] | slot | Slot. |
[in] | lane | Lane. |
Definition at line 187 of file KLMElectronicsMapImporter.cc.
192 int axis = plane - 1;
195 section, sector, layer, plane, strip);
197 std::pair<KLMChannelNumber, KLMElectronicsChannel>(
static constexpr int getMaximalStripNumber()
Get maximal strip number.
static constexpr int getMaximalPlaneNumber()
Get maximal plane number.
BKLM electronics channel.
const KLMElementNumbers * m_ElementNumbers
Element numbers.
std::map< KLMChannelNumber, KLMElectronicsChannel > m_ChannelMap
Data for creation of the electronics map.
int getEKLMStripFirmwareBySoftware(int stripSoftware) const
Get EKLM firmware strip number by software strip number.
KLMChannelNumber channelNumberEKLM(int section, int sector, int layer, int plane, int strip) const
Get channel number for EKLM.
uint16_t KLMChannelNumber
Channel number.
◆ getEKLMStripFirmwareBySoftware()
int getEKLMStripFirmwareBySoftware |
( |
int |
stripSoftware | ) |
const |
|
private |
Get EKLM firmware strip number by software strip number.
- Parameters
-
[in] | stripSoftware | Software strip number. |
Definition at line 175 of file KLMElectronicsMapImporter.cc.
◆ loadBKLMElectronicsMap()
void loadBKLMElectronicsMap |
( |
int |
version | ) |
|
Load BKLM electronics map.
- Parameters
-
[in] | version | map version: 1) Before experiment 10. 2) Experiment 10 and later (mapping in chimney sector has changed) |
Definition at line 47 of file KLMElectronicsMapImporter.cc.
◆ loadEKLMElectronicsMap()
void loadEKLMElectronicsMap |
( |
int |
version, |
|
|
bool |
mc |
|
) |
| |
Load EKLM electronics map.
- Parameters
-
[in] | version | Map version: 1) Phase 2, experiment 3. Connection of cables was wrong for backward sectors 2 and 3. 2) Phase 3, starting from experiment 4. |
[in] | mc | MC or data (MC does not have occasional cable switches that exist in the data). |
Definition at line 222 of file KLMElectronicsMapImporter.cc.
◆ setChannelsEKLMSegment()
void setChannelsEKLMSegment |
( |
int |
section, |
|
|
int |
sector, |
|
|
int |
layer, |
|
|
int |
plane, |
|
|
int |
segment, |
|
|
int |
firmwareSegment |
|
) |
| |
|
private |
◆ setLane() [1/2]
void setLane |
( |
int |
subdetector, |
|
|
int |
section, |
|
|
int |
sector, |
|
|
int |
layer, |
|
|
int |
lane |
|
) |
| |
Set non-default lane for all channels in a module.
- Parameters
-
[in] | subdetector | Subdetector. |
[in] | section | Section. |
[in] | sector | Sector. |
[in] | layer | Layer. |
[in] | lane | Lane. |
Definition at line 391 of file KLMElectronicsMapImporter.cc.
◆ setLane() [2/2]
void setLane |
( |
int |
subdetector, |
|
|
int |
section, |
|
|
int |
sector, |
|
|
int |
layer, |
|
|
int |
plane, |
|
|
int |
lane |
|
) |
| |
Set non-default lane for all channels in a plane.
- Parameters
-
[in] | subdetector | Subdetector. |
[in] | section | Section. |
[in] | sector | Sector. |
[in] | layer | Layer. |
[in] | plane | Plane. |
[in] | lane | Lane. |
Definition at line 410 of file KLMElectronicsMapImporter.cc.
The documentation for this class was generated from the following files: