This class store the shift in svd time w.r.t.
More...
#include <SVDClusterTimeShifter.h>
|
| SVDClusterTimeShifter (const TString &uniqueID="") |
| Default constructor.
|
|
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. More...
|
|
void | setClusterTimeShift (const TString &alg, const TString &sensorType, const std::vector< Double_t > &shiftValues) |
| Sets the cluster time shift in ns. More...
|
|
TString | get_uniqueID () const |
| Get the unique ID of the payload.
|
|
|
static std::string | name = std::string("SVDClusterTimeShifter") |
| name of the payload
|
|
|
TString | getSensorType (const int &layer, const int &sensor, const bool &isU) const |
| Returns the types of sensor grouping. More...
|
|
|
TString | m_uniqueID |
| unique identifier of the SVD reconstruction configuration payload
|
|
std::map< TString, std::map< TString, std::vector< Double_t > > > | m_svdClusterTimeShift |
| cluster time shifts
|
|
This class store the shift in svd time w.r.t.
cluster time also for any possible time algorithm. The shift value should be subtracted from the calibrated cluster time.
Definition at line 29 of file SVDClusterTimeShifter.h.
◆ getClusterTimeShift()
Double_t getClusterTimeShift |
( |
const TString & |
alg, |
|
|
const int & |
layer, |
|
|
const int & |
sensor, |
|
|
const bool & |
isU, |
|
|
const int & |
size |
|
) |
| const |
|
inline |
Returns cluster time shift in ns.
- Parameters
-
alg | : Cluster time algorithm |
layer | : layer number |
sensor | : sensor number |
isU | : is U side? |
size | : Cluster size |
- Returns
- double : value of the cluster time shift
Definition at line 49 of file SVDClusterTimeShifter.h.
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];
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.
◆ getSensorType()
TString getSensorType |
( |
const int & |
layer, |
|
|
const int & |
sensor, |
|
|
const bool & |
isU |
|
) |
| const |
|
inlineprotected |
Returns the types of sensor grouping.
- Parameters
-
layer | : layer number |
sensor | : sensor number |
isU | : is U side? |
- Returns
- TString : type of sensor group
Definition at line 100 of file SVDClusterTimeShifter.h.
◆ setClusterTimeShift()
void setClusterTimeShift |
( |
const TString & |
alg, |
|
|
const TString & |
sensorType, |
|
|
const std::vector< Double_t > & |
shiftValues |
|
) |
| |
|
inline |
Sets the cluster time shift in ns.
- Parameters
-
alg | : Cluster time algorithm |
sensorType | : type of sensor group |
shiftValues | : vector of shift values to be set |
Definition at line 76 of file SVDClusterTimeShifter.h.
The documentation for this class was generated from the following files: