11#include <TEfficiency.h>
12#include <calibration/CalibrationAlgorithm.h>
13#include <framework/database/DBObjPtr.h>
15#include <cdc/dbobjects/CDCGeometry.h>
16#include <cdc/dbobjects/CDCBadWires.h>
54 static double chiTest(TGraphAsymmErrors* graph1, TGraphAsymmErrors* graph2,
double minVale,
double maxValue);
Database object for bad wires.
TList * m_efficiencyList
TList of efficiencies.
void setAverageOccupancyThreshold(const float threshold)
Set the average occupancy threshold.
static double chiTest(TGraphAsymmErrors *graph1, TGraphAsymmErrors *graph2, double minVale, double maxValue)
chitest
~WireEfficiencyAlgorithm() override
Destructor.
WireEfficiencyAlgorithm(const WireEfficiencyAlgorithm &)=delete
Copy constructor (disabled).
void detectBadWires()
detects bad wires.
CDCBadWires * m_badWireList
BadWireList that willbe built.
DBObjPtr< CDCGeometry > m_cdcGeo
Geometry of CDC.
void setHistFileName(const std::string &name)
Set name for histogram output.
WireEfficiencyAlgorithm()
Constructor.
WireEfficiencyAlgorithm & operator=(const WireEfficiencyAlgorithm &)=delete
Operator = (disabled).
EResult calibrate() override
Run algo on data.
void buildEfficiencies()
create 2D TEfficiency for each wire
bool hasEnoughData()
check if there is enough data to run the calibration
float m_averageOccupancyThreshold
Threshold for the average layer occupancy to run the calibration.
std::string m_outputFileName
name of the output file
EResult
The result of calibration.
CalibrationAlgorithm(const std::string &collectorModuleName)
Constructor - sets the prefix for collected objects (won't be accesses until execute(....
Class for accessing objects in the database.
Abstract base class for different kinds of events.