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

dE/dx wire gain calibration constants More...

#include <CDCDedxWireGain.h>

Inheritance diagram for CDCDedxWireGain:
Collaboration diagram for CDCDedxWireGain:

Public Member Functions

 CDCDedxWireGain ()
 Default constructor.
 
 CDCDedxWireGain (const std::vector< double > &wiregains)
 Constructor.
 
 ~CDCDedxWireGain ()
 Destructor.
 
CDCDedxWireGainoperator*= (CDCDedxWireGain const &rhs)
 Combine payloads.
 
void setWireGain (int wire, double gain)
 Set wire gain.
 
float getWireGain (int wire) const
 Return wire gain. More...
 

Private Member Functions

 ClassDef (CDCDedxWireGain, 5)
 ClassDef.
 

Private Attributes

std::vector< double > m_wiregains
 Note, we are using dense packed wire number (0-14336) defined as follows: const int iwire = (superlayer == 0) ? 160*layer+wire : m_nLayerWires[superlayer-1]+(160+32*(superlayer-1))*layer+wire; -see reconstruction/modules/CDCDedxPIDModule. More...
 

Detailed Description

dE/dx wire gain calibration constants

Definition at line 25 of file CDCDedxWireGain.h.

Member Function Documentation

◆ getWireGain()

float getWireGain ( int  wire) const
inline

Return wire gain.

Parameters
wirenumber

Definition at line 68 of file CDCDedxWireGain.h.

69  {
70  if (wire < 0 || (unsigned)wire >= m_wiregains.size()) {
71  B2WARNING("Asking for a CDC Wire that is not found!");
72  return 1.0;
73  }
74  double gain = m_wiregains[wire];
75  return gain;
76  };
std::vector< double > m_wiregains
Note, we are using dense packed wire number (0-14336) defined as follows: const int iwire = (superlay...

Member Data Documentation

◆ m_wiregains

std::vector<double> m_wiregains
private

Note, we are using dense packed wire number (0-14336) defined as follows: const int iwire = (superlayer == 0) ? 160*layer+wire : m_nLayerWires[superlayer-1]+(160+32*(superlayer-1))*layer+wire; -see reconstruction/modules/CDCDedxPIDModule.

dE/dx gains for each wire

Definition at line 83 of file CDCDedxWireGain.h.


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