12#include <klm/dataobjects/KLMElementNumbers.h>
56 m_efficiency.insert(std::pair<KLMChannelNumber, float>(stripId, efficiency));
57 m_efficiencyError.insert(std::pair<KLMChannelNumber, float>(stripId, efficiencyError));
70 void setBarrelEfficiency(
int section,
int sector,
int layer,
int plane,
int strip,
float efficiency,
float efficiencyError = 0.)
87 void setEndcapEfficiency(
int section,
int sector,
int layer,
int plane,
int strip,
float efficiency,
float efficiencyError = 0.)
102 return std::numeric_limits<float>::quiet_NaN();
103 return search->second;
144 return std::numeric_limits<float>::quiet_NaN();
145 return search->second;
KLMChannelNumber channelNumberBKLM(int section, int sector, int layer, int plane, int strip) const
Get channel number for BKLM.
static const KLMElementNumbers & Instance()
Instantiation.
KLMChannelNumber channelNumberEKLM(int section, int sector, int layer, int plane, int strip) const
Get channel number for EKLM.
DBObject used to store the efficiencies of KLM strips.
std::map< KLMChannelNumber, float > m_efficiencyError
KLM strip efficiency error.
float getBarrelEfficiency(int section, int sector, int layer, int plane, int strip) const
Returns efficiency of a given BKLM strip using the geometrical infos.
float getEfficiencyError(KLMChannelNumber stripId) const
Returns error on efficiency of a given KLM strip using directly the stripId.
float getBarrelEfficiencyError(int section, int sector, int layer, int plane, int strip) const
Returns error on efficiency of a given BKLM strip using the geometrical infos.
~KLMStripEfficiency()
Default destructor.
std::map< KLMChannelNumber, float > m_efficiency
KLM strip efficiency.
void setEfficiency(KLMChannelNumber stripId, float efficiency, float efficiencyError=0.)
Set efficiency and relative error for a single KLM strip using directly the stripId.
ClassDef(KLMStripEfficiency, 1)
Class version.
void setEndcapEfficiency(int section, int sector, int layer, int plane, int strip, float efficiency, float efficiencyError=0.)
Set efficiency and relative error for a single EKLM strip using the geometrical infos.
float getEndcapEfficiencyError(int section, int sector, int layer, int plane, int strip) const
Returns error on efficiency of a given EKLM strip using the geometrical infos.
float getEndcapEfficiency(int section, int sector, int layer, int plane, int strip) const
Returns efficiency of a given EKLM strip using the geometrical infos.
void setBarrelEfficiency(int section, int sector, int layer, int plane, int strip, float efficiency, float efficiencyError=0.)
Set efficiency and relative error for a single BKLM strip using the geometrical infos.
float getEfficiency(KLMChannelNumber stripId) const
Returns efficiency of a given KLM strip using directly the stripId.
KLMStripEfficiency()
Default constructor.
uint16_t KLMChannelNumber
Channel number.
Abstract base class for different kinds of events.