11 #include <reconstruction/dbobjects/CDCDedxWireGain.h>
12 #include <reconstruction/dbobjects/CDCDedxBadWires.h>
13 #include <calibration/CalibrationAlgorithm.h>
14 #include <framework/database/DBObjPtr.h>
76 void plotBadWires(
int nDeadwires,
int oDeadwires,
int Badwires);
A calibration algorithm for CDC dE/dx wire gains.
bool isLayerScale
method of scaling layer avg
void setLocalTrucation(bool value=false)
funtion to set trucation method (local vs global)
double fTrucMax
max trunc range for mean
double getLayerAverage(std::vector< double > tempWire)
function to get layer avg from outer layers
TH2F * getHistoPattern(TString badFileName, TString suffix)
function to plot wires in hist with input file
int fStartRun
boundary start at this run
double fdEdxMax
max dedx range for wiregain cal
std::string m_badWireFPath
Save arithmetic and truncated mean for the 'dedx' values.
bool isMergePayload
merge payload at the of calibration
bool isLTruc
method of trunc range for mean
DBObjPtr< CDCDedxBadWires > m_DBBadWires
Bad wire DB object.
std::vector< double > flayerAvg
layer wire avg of trun mean
void setLayerScaling(bool value=false)
funtion to set layer scaling
CDCDedxWireGainAlgorithm()
Constructor: Sets the description, the properties and the parameters of the algorithm.
DBObjPtr< CDCDedxWireGain > m_DBWireGains
Wire gain DB object.
virtual ~CDCDedxWireGainAlgorithm()
Destructor.
double fTrucMin
min trunc range for mean
double getIndexVal(int iWire, TString what)
function to return various CDC indexing for given wire
void setMergePayload(bool value=true)
function to decide merge vs relative gains
virtual EResult calibrate() override
Wire gain algorithm.
std::string m_badWireFName
name of bad wire file
double fdEdxMin
min dedx range for wiregain cal
void getTrucationBins(TH1D *htemp, int &binlow, int &binhigh)
function to get bins of trunction from histogram
int fdEdxBins
number of bins for dedx histogram
bool isMakePlots
produce plots for status
void setMonitoringPlots(bool value=false)
funtion to set flag active for plotting
void plotBadWires(int nDeadwires, int oDeadwires, int Badwires)
function to plot bad wire status (then and now)
void generateNewPayloads(std::vector< double > dedxTruncmean)
function to finally store new payload after full calibration
Base class for calibration algorithms.
EResult
The result of calibration.
Class for accessing objects in the database.
Abstract base class for different kinds of events.