11#include <calibration/CalibrationAlgorithm.h>
12#include <reconstruction/calibration/BeamSpotBoostInvMass/InvariantMassMuMuStandAlone.h>
13#include <reconstruction/calibration/BeamSpotBoostInvMass/InvariantMassBhadStandAlone.h>
14#include <reconstruction/calibration/BeamSpotBoostInvMass/calibTools.h>
49 std::vector<InvariantMassMuMuCalib::Event>
getDataMuMu(
const std::vector<std::string>& files,
bool is4S);
52 std::vector<InvariantMassBhadCalib::Event>
getDataHadB(
const std::vector<std::string>& files);
62 std::vector<std::vector<CalibrationData>>
adjustOffResonanceEnergy(std::vector<std::vector<CalibrationData>> CalResultsBlocks,
63 const std::vector<std::vector<InvariantMassMuMuCalib::Event>>& evtsMuMuBlocks);
Base class for calibration algorithms.
EResult
The result of calibration.
Class implementing InvariantMass calibration algorithm.
bool m_runHadB
Run the calibration from had-B decays.
virtual ~InvariantMassAlgorithm()
Destructor.
void setMuMuEcmsSpread(double spread)
set the spread
void setMuMuEcmsOffset(double shift)
set the energy offset
TString m_lossFunctionOuter
Outer loss function (for calibration intervals with constant InvarinatMass spread)
void setInnerLoss(const std::string &loss)
Set inner loss function (for calibration subintervals)
InvariantMassAlgorithm()
Constructor set the prefix to BoostVectorCollector.
void setOuterLoss(const std::string &loss)
Set outer loss function (for calibration intervals)
std::vector< std::vector< CalibrationData > > adjustOffResonanceEnergy(std::vector< std::vector< CalibrationData > > CalResultsBlocks, const std::vector< std::vector< InvariantMassMuMuCalib::Event > > &evtsMuMuBlocks)
Adjust the energy of the off-resonance runs based on the energy offset between mumu and hadB method i...
double m_eCMSmumuShift
Shift between the energy from the mumu events and the real value.
std::vector< InvariantMassMuMuCalib::Event > getDataMuMu(const std::vector< std::string > &files, bool is4S)
Load the mumu data from files.
std::vector< InvariantMassBhadCalib::Event > getDataHadB(const std::vector< std::string > &files)
Load the hadB data from files.
void includeHadBcalib(bool state=true)
Include calibration based on Hadronic B decays.
virtual EResult calibrate() override
Run algo on data.
TString m_lossFunctionInner
Inner loss function (for calibration subintervals with constant InvariantMass)
double m_eCMSmumuSpread
Energy spread for mumu only run (m_runHadB == false)
Abstract base class for different kinds of events.