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

Database object for bad wires. More...

#include <CDCBadWires.h>

Inheritance diagram for CDCBadWires:
Collaboration diagram for CDCBadWires:

Public Member Functions

 CDCBadWires ()
 Default constructor.
 
void setWire (const WireID &wid, double eff=0)
 Set the wire in the list. More...
 
void setWire (unsigned short iCLayer, unsigned short iWire, double eff=0)
 Set the wire in the list. More...
 
unsigned short getEntries () const
 Get the no. More...
 
std::map< unsigned short, float > getWires () const
 Get the whole list.
 
bool isBadWire (const WireID &wid) const
 Check if the wire is totally-dead (eff=0); to be replaced by isDeadWire() in future... More...
 
bool isDeadWire (const WireID &wid, double &eff) const
 Check if dead wire. More...
 
bool isHotWire (const WireID &wid) const
 Check if the wire is hot/noisy. More...
 
void dump () const
 Print out contents.
 
void outputToFile (std::string fileName) const
 Output the contents in text file format.
 

Private Member Functions

 ClassDef (CDCBadWires, 2)
 ClassDef.
 

Private Attributes

std::map< unsigned short, float > m_wires
 badwire list
 

Detailed Description

Database object for bad wires.

Definition at line 27 of file CDCBadWires.h.

Member Function Documentation

◆ getEntries()

unsigned short getEntries ( ) const
inline

Get the no.

of entries in the list

Definition at line 59 of file CDCBadWires.h.

60  {
61  return m_wires.size();
62  }
std::map< unsigned short, float > m_wires
badwire list
Definition: CDCBadWires.h:153

◆ isBadWire()

bool isBadWire ( const WireID wid) const
inline

Check if the wire is totally-dead (eff=0); to be replaced by isDeadWire() in future...

Parameters
widwire id to be checked
Returns
true if dead wire; false if not

Definition at line 77 of file CDCBadWires.h.

◆ isDeadWire()

bool isDeadWire ( const WireID wid,
double &  eff 
) const
inline

Check if dead wire.

Parameters
widwire id to be checked
effefficiency of the wirte
Returns
true if dead wire; false if not

Definition at line 93 of file CDCBadWires.h.

◆ isHotWire()

bool isHotWire ( const WireID wid) const
inline

Check if the wire is hot/noisy.

Parameters
widwire id to be checked
Returns
true if hot wire; false if not

Definition at line 109 of file CDCBadWires.h.

◆ setWire() [1/2]

void setWire ( const WireID wid,
double  eff = 0 
)
inline

Set the wire in the list.

Parameters
widwire-id to be registered
effwire efficiency; specify 0 <= eff < 1 for dead wire; eff > 1 for hot/noisy wire

Definition at line 40 of file CDCBadWires.h.

◆ setWire() [2/2]

void setWire ( unsigned short  iCLayer,
unsigned short  iWire,
double  eff = 0 
)
inline

Set the wire in the list.

Parameters
iCLayer(continuous) layer-id of badwire
iWirewire-id of badwire
effwire efficiency; specify 0 <= eff < 1 for dead wire; eff > 1 for hot/noisy wire

Definition at line 51 of file CDCBadWires.h.


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