8#include <cdc/calibration/FudgeFactorCalibrationAlgorithm.h>
9#include <calibration/CalibrationAlgorithm.h>
16#include <TStopwatch.h>
18#include <framework/database/DBObjPtr.h>
19#include <framework/database/IntervalOfValidity.h>
20#include <framework/logging/Logger.h>
31 " -------------------------- CDC fudge factor Calibration Algorithm -------------------------\n"
37 B2INFO(
"Start calibration");
40 gErrorIgnoreLevel = 3001;
47 B2INFO(
"ExpRun used for DB Geometry : " << exprun.first <<
" " << exprun.second);
78 B2INFO(
"Storing histograms");
79 TFile* fout =
new TFile(
m_histName.c_str(),
"RECREATE");
83 if (hEvtT0) hEvtT0->Write();
84 if (hExtraCDCHit) hExtraCDCHit->Write();
86 if (hPval_pos) hPval_pos->Write();
87 if (hPval_neg) hPval_neg->Write();
89 if (hNDF_pos) hNDF_pos->Write();
90 if (hNDF_neg) hNDF_neg->Write();
92 if (hnCDC_pos) hnCDC_pos->Write();
93 if (hnCDC_neg) hnCDC_neg->Write();
95 if (hdPt) hdPt->Write();
96 if (hdD0) hdD0->Write();
97 if (hdZ0) hdZ0->Write();
99 if (hdPt_cm) hdPt_cm->Write();
100 if (hdPtPt_cm) hdPtPt_cm->Write();
101 if (hdPhi0_cm) hdPhi0_cm->Write();
102 if (hdTheta_cm) hdTheta_cm->Write();
103 TTree* newtree = (TTree*)tree->CloneTree();
104 newtree->SetName(
"dimuon");
std::string m_histName
root file name
FudgeFactorCalibrationAlgorithm()
Constructor.
EResult calibrate() override
Run algo on data.
void updateDBObjPtrs(const unsigned int event, const int run, const int experiment)
Updates any DBObjPtrs by calling update(event) for DBStore.
void setDescription(const std::string &description)
Set algorithm description (in constructor)
const std::vector< Calibration::ExpRun > & getRunList() const
Get the list of runs for which calibration is called.
EResult
The result of calibration.
@ c_OK
Finished successfully =0 in Python.
CalibrationAlgorithm(const std::string &collectorModuleName)
Constructor - sets the prefix for collected objects (won't be accesses until execute(....
std::shared_ptr< T > getObjectPtr(const std::string &name, const std::vector< Calibration::ExpRun > &requestedRuns)
Get calibration data object by name and list of runs, the Merge function will be called to generate t...
Abstract base class for different kinds of events.