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

dE/dx wire gain calibration constants More...

#include <CDCDedxBadWires.h>

Inheritance diagram for CDCDedxBadWires:
Collaboration diagram for CDCDedxBadWires:

Public Member Functions

 CDCDedxBadWires ()
 Default constructor.
 
 CDCDedxBadWires (const std::vector< double > &badwires)
 Constructor.
 
 ~CDCDedxBadWires ()
 Destructor.
 
void setBadWireStatus (int wire, bool status)
 Set wire gain.
 
bool getBadWireStatus (int wire) const
 Return wire gain. More...
 
void printBadWireStatus (bool save=true, std::string sfx="local") const
 print all wire numbers
 

Private Member Functions

 ClassDef (CDCDedxBadWires, 1)
 ClassDef.
 

Private Attributes

std::vector< double > m_badwires
 dE/dx gains for each wire
 

Detailed Description

dE/dx wire gain calibration constants

Definition at line 29 of file CDCDedxBadWires.h.

Member Function Documentation

◆ getBadWireStatus()

bool getBadWireStatus ( int  wire) const
inline

Return wire gain.

Parameters
wirenumber

Definition at line 64 of file CDCDedxBadWires.h.

65  {
66  if (wire < 0 || (unsigned)wire >= m_badwires.size()) {
67  B2WARNING("Asking for a CDC Wire that is not found!");
68  }
69 
70  bool status = kFALSE;
71  if (m_badwires[wire] == 0)return kTRUE;
72  return status;
73  }
std::vector< double > m_badwires
dE/dx gains for each wire

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