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