Belle II Software development
CDCDedxWireGain Class Reference

dE/dx wire gain calibration constants More...

#include <CDCDedxWireGain.h>

Inheritance 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.
 

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.
 

Detailed Description

dE/dx wire gain calibration constants

Definition at line 25 of file CDCDedxWireGain.h.

Constructor & Destructor Documentation

◆ CDCDedxWireGain() [1/2]

CDCDedxWireGain ( )
inline

Default constructor.

Definition at line 32 of file CDCDedxWireGain.h.

32: m_wiregains() {};
std::vector< double > m_wiregains
Note, we are using dense packed wire number (0-14336) defined as follows: const int iwire = (superlay...

◆ CDCDedxWireGain() [2/2]

CDCDedxWireGain ( const std::vector< double > &  wiregains)
inlineexplicit

Constructor.

Definition at line 37 of file CDCDedxWireGain.h.

37: m_wiregains(wiregains) {};

◆ ~CDCDedxWireGain()

~CDCDedxWireGain ( )
inline

Destructor.

Definition at line 42 of file CDCDedxWireGain.h.

42{};

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 };

◆ operator*=()

CDCDedxWireGain & operator*= ( CDCDedxWireGain const &  rhs)
inline

Combine payloads.

Definition at line 47 of file CDCDedxWireGain.h.

48 {
49 for (unsigned int bin = 0; bin < m_wiregains.size(); ++bin) {
50 m_wiregains[bin] *= rhs.getWireGain(bin);
51 }
52 return *this;
53 }

◆ setWireGain()

void setWireGain ( int  wire,
double  gain 
)
inline

Set wire gain.

Definition at line 58 of file CDCDedxWireGain.h.

59 {
60 if (wire < 0 || (unsigned)wire >= m_wiregains.size())
61 B2WARNING("Asking for a CDC Wire that is not found!");
62 else m_wiregains[wire] = gain;
63 }

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: