11#include <framework/logging/Logger.h>
50 const int& layer,
const int& sensor,
51 const bool& isU,
const int& size)
const
56 if (
auto searchShift = (searchAlg->second).find(sensorType);
57 searchShift != (searchAlg->second).end()) {
58 int maxClusters = (searchShift->second).size();
61 else if (size > maxClusters)
62 return (searchShift->second)[maxClusters - 1];
64 return (searchShift->second)[size - 1];
77 const std::vector<Double_t>& shiftValues)
79 B2INFO(
"Shift values for " << alg <<
" and " << sensorType <<
" is set.");
100 TString
getSensorType(
const int& layer,
const int& sensor,
const bool& isU)
const
102 return TString::Format(
"L%iS%iS%c", layer, sensor, (isU ?
'U' :
'V'));
This class store the shift in svd time w.r.t.
ClassDef(SVDClusterTimeShifter, 1)
needed by root
TString m_uniqueID
unique identifier of the SVD reconstruction configuration payload
Double_t getClusterTimeShift(const TString &alg, const int &layer, const int &sensor, const bool &isU, const int &size) const
Returns cluster time shift in ns.
std::map< TString, std::map< TString, std::vector< Double_t > > > m_svdClusterTimeShift
cluster time shifts
TString getSensorType(const int &layer, const int &sensor, const bool &isU) const
Returns the types of sensor grouping.
SVDClusterTimeShifter(const TString &uniqueID="")
Default constructor.
void setClusterTimeShift(const TString &alg, const TString &sensorType, const std::vector< Double_t > &shiftValues)
Sets the cluster time shift in ns.
TString get_uniqueID() const
Get the unique ID of the payload.
static std::string name
name of the payload
Abstract base class for different kinds of events.