16#include <calibration/CalibrationAlgorithm.h>
17#include <framework/database/DBObjPtr.h>
18#include <framework/gearbox/Const.h>
20#include <cdc/dbobjects/CDCDedxHadronCor.h>
21#include <cdc/calibration/CDCdEdx/HadronSaturation.h>
22#include <cdc/calibration/CDCdEdx/HadronPrep.h>
60 void setBGPars(
const std::string& particle,
double nbin,
double min,
double max)
85 void prepareSample(std::vector< std::string >& particles,
const std::string& filename,
const std::string& sfx,
bool correct);
96 std::map<std::string, std::array<double, 3>>
m_bgpar = {
97 {
"electron", {18, 600, 9600}},
98 {
"pion", {4, 2.0, 12.94}},
99 {
"kaon", {4, 1.10, 3.6}},
100 {
"muon", {8, 2.83, 28.83}},
101 {
"proton", {6, 0.44, 0.85}}
A calibration algorithm for hadron saturation.
void setBGPars(const std::string &particle, double nbin, double min, double max)
function to set beta gamma parameters for particle
int m_cosBins
bins for cosine
std::map< std::string, std::array< double, 3 > > m_bgpar
bg bins, min, max for different particles
DBObjPtr< CDCDedxHadronCor > m_DBHadronCor
db object for dE/dx hadron saturation parameters
void getExpRunInfo()
function to get exp/run information (payload object, plotting)
double m_cosMax
max range of cosine
CDCDedxHadSatAlgorithm()
Constructor: Sets the description, the properties and the parameters of the algorithm.
void prepareSample(std::vector< std::string > &particles, const std::string &filename, const std::string &sfx, bool correct)
function to prepare sample for bgcurve hadron saturation and monitoring plots
bool m_ismakePlots
produce plots for monitoring
std::string m_suffix
string suffix for object names
void setCosPars(int bin, double min, double max)
function to cos parameters for particle
void setProtonCut(double value)
function to set the cut to clean protons
double m_cosMin
min range of cosine
double m_cut
cut to clean protons
virtual EResult calibrate() override
CDC dE/dx Hadron saturation algorithm.
virtual ~CDCDedxHadSatAlgorithm()
Destructor.
void createPayload()
function to store payloads after full calibration
void setMonitoringPlots(bool value=false)
function to enable monitoring plots
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.