11#include <framework/logging/Logger.h>
53 if (wire < 0 || (
unsigned)wire >=
m_badwires.size())
54 B2WARNING(
"Asking for a CDC Wire that is not found!");
66 if (wire < 0 || (
unsigned)wire >=
m_badwires.size()) {
67 B2WARNING(
"Asking for a CDC Wire that is not found!");
81 std::ofstream fBadWires;
82 if (save)fBadWires.open(Form(
"cdcdedx_badwires_%s.txt", sfx.c_str()));
84 unsigned int badcount = 0, goodcount = 0;
85 std::cout <<
"List of bad wires" << std::endl;
87 for (
int jwire = 0; jwire < 14336; jwire++) {
90 std::cout <<
"\t" << badcount <<
": wire # " << jwire << std::endl;
91 if (save)fBadWires << jwire <<
"\n";
95 if ((badcount + goodcount) !=
m_badwires.size())
96 std::cout <<
"Wire sum is not 14336" << std::endl;
98 std::cout <<
"\t Total bad wires # " << badcount << std::endl;
dE/dx wire gain calibration constants
std::vector< double > m_badwires
dE/dx gains for each wire
CDCDedxBadWires()
Default constructor.
void printBadWireStatus(bool save=true, std::string sfx="local") const
print all wire numbers
ClassDef(CDCDedxBadWires, 1)
ClassDef.
bool getBadWireStatus(int wire) const
Return wire gain.
void setBadWireStatus(int wire, bool status)
Set wire gain.
~CDCDedxBadWires()
Destructor.
CDCDedxBadWires(const std::vector< double > &badwires)
Constructor.
Abstract base class for different kinds of events.