Belle II Software  release-08-01-10
KLMStripEfficiency Class Reference

DBObject used to store the efficiencies of KLM strips. More...

#include <KLMStripEfficiency.h>

Inheritance diagram for KLMStripEfficiency:
Collaboration diagram for KLMStripEfficiency:

Public Member Functions

 KLMStripEfficiency ()
 Default constructor.
 
 ~KLMStripEfficiency ()
 Default destructor.
 
void setEfficiency (KLMChannelNumber stripId, float efficiency, float efficiencyError=0.)
 Set efficiency and relative error for a single KLM strip using directly the stripId. More...
 
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. More...
 
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. More...
 
float getEfficiency (KLMChannelNumber stripId) const
 Returns efficiency of a given KLM strip using directly the stripId. More...
 
float getBarrelEfficiency (int section, int sector, int layer, int plane, int strip) const
 Returns efficiency of a given BKLM strip using the geometrical infos. More...
 
float getEndcapEfficiency (int section, int sector, int layer, int plane, int strip) const
 Returns efficiency of a given EKLM strip using the geometrical infos. More...
 
float getEfficiencyError (KLMChannelNumber stripId) const
 Returns error on efficiency of a given KLM strip using directly the stripId. More...
 
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. More...
 
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. More...
 

Private Member Functions

 ClassDef (KLMStripEfficiency, 1)
 Class version.
 

Private Attributes

std::map< KLMChannelNumber, float > m_efficiency
 KLM strip efficiency.
 
std::map< KLMChannelNumber, float > m_efficiencyError
 KLM strip efficiency error.
 

Detailed Description

DBObject used to store the efficiencies of KLM strips.

Needed for the Muid calculation.

Definition at line 31 of file KLMStripEfficiency.h.

Member Function Documentation

◆ getBarrelEfficiency()

float getBarrelEfficiency ( int  section,
int  sector,
int  layer,
int  plane,
int  strip 
) const
inline

Returns efficiency of a given BKLM strip using the geometrical infos.

Parameters
section1 for BF sectors, 0 for BB sectors
sectorsector number
layerlayer number
planeplane number
stripstrip number

Definition at line 114 of file KLMStripEfficiency.h.

115  {
116  const KLMElementNumbers* elementNumbers = &(KLMElementNumbers::Instance());
117  KLMChannelNumber stripId = elementNumbers->channelNumberBKLM(section, sector, layer, plane, strip);
118  return getEfficiency(stripId);
119  }
static const KLMElementNumbers & Instance()
Instantiation.
float getEfficiency(KLMChannelNumber stripId) const
Returns efficiency of a given KLM strip using directly the stripId.
uint16_t KLMChannelNumber
Channel number.

◆ getBarrelEfficiencyError()

float getBarrelEfficiencyError ( int  section,
int  sector,
int  layer,
int  plane,
int  strip 
) const
inline

Returns error on efficiency of a given BKLM strip using the geometrical infos.

Parameters
section1 for BF sectors, 0 for BB sectors
sectorsector number
layerlayer number
planeplane number
stripstrip number

Definition at line 156 of file KLMStripEfficiency.h.

◆ getEfficiency()

float getEfficiency ( KLMChannelNumber  stripId) const
inline

Returns efficiency of a given KLM strip using directly the stripId.

Parameters
stripIdKLM strip identifier

Definition at line 98 of file KLMStripEfficiency.h.

◆ getEfficiencyError()

float getEfficiencyError ( KLMChannelNumber  stripId) const
inline

Returns error on efficiency of a given KLM strip using directly the stripId.

Parameters
stripIdKLM strip identifier

Definition at line 140 of file KLMStripEfficiency.h.

◆ getEndcapEfficiency()

float getEndcapEfficiency ( int  section,
int  sector,
int  layer,
int  plane,
int  strip 
) const
inline

Returns efficiency of a given EKLM strip using the geometrical infos.

Parameters
section2 for EF sectors, 1 for EB sectors
sectorsector number
layerlayer number
planeplane number
stripstrip number

Definition at line 129 of file KLMStripEfficiency.h.

◆ getEndcapEfficiencyError()

float getEndcapEfficiencyError ( int  section,
int  sector,
int  layer,
int  plane,
int  strip 
) const
inline

Returns error on efficiency of a given EKLM strip using the geometrical infos.

Parameters
section2 for EF sectors, 1 for EB sectors
sectorsector number
layerlayer number
planeplane number
stripstrip number

Definition at line 171 of file KLMStripEfficiency.h.

◆ setBarrelEfficiency()

void setBarrelEfficiency ( int  section,
int  sector,
int  layer,
int  plane,
int  strip,
float  efficiency,
float  efficiencyError = 0. 
)
inline

Set efficiency and relative error for a single BKLM strip using the geometrical infos.

Parameters
section1 for BF sectors, 0 for BB sectors
sectorsector number
layerlayer number
planeplane number
stripstrip number
efficiencyefficiency of the strip
efficiencyErrorerror on the efficiency of the strip

Definition at line 70 of file KLMStripEfficiency.h.

◆ setEfficiency()

void setEfficiency ( KLMChannelNumber  stripId,
float  efficiency,
float  efficiencyError = 0. 
)
inline

Set efficiency and relative error for a single KLM strip using directly the stripId.

Parameters
stripIdKLM strip identifier
efficiencyefficiency of the strip
efficiencyErrorerror on the efficiency of the strip

Definition at line 54 of file KLMStripEfficiency.h.

◆ setEndcapEfficiency()

void setEndcapEfficiency ( int  section,
int  sector,
int  layer,
int  plane,
int  strip,
float  efficiency,
float  efficiencyError = 0. 
)
inline

Set efficiency and relative error for a single EKLM strip using the geometrical infos.

Parameters
section2 for EF sectors, 1 for EB sectors
sectorsector number
layerlayer number
planeplane number
stripstrip number
efficiencyefficiency of the strip
efficiencyErrorerror on the efficiency of the strip

Definition at line 87 of file KLMStripEfficiency.h.


The documentation for this class was generated from the following file: