13 return m_beta[0].hasBetaLIP;
48 return std::numeric_limits<double>::max();
57 return std::numeric_limits<double>::max();
63 float x =
m_beta[0].Pos[0];
64 float y =
m_beta[0].Pos[1];
65 constexpr
int grid_side_length = 11;
66 constexpr
int n_tiles = grid_side_length * grid_side_length;
67 constexpr
double tile_width = 0.1 + 11.5;
69 if (std::fabs(x) < tile_width * 1.5 && std::fabs(y) < tile_width * 1.5)
72 int nx = int(x / tile_width + 5.5);
73 int ny = int(y / tile_width + 5.5);
74 int t = ny * grid_side_length + nx;
75 return t > n_tiles ? -1 : t;
82 constexpr
int nbadtiles = 5;
83 std::array<int, nbadtiles> kbadtile = {3, 7, 87, 100, 108};
85 float x =
m_beta[0].Pos[0];
86 float y =
m_beta[0].Pos[1];
87 float cut_aerogelexternalborder = 3500.;
89 float cut_aerogel_nafborder[2] = {17., 19.};
93 if (std::max(std::fabs(x), std::fabs(y)) > cut_aerogel_nafborder[0])
96 if (x * x + y * y > cut_aerogelexternalborder)
98 if (std::max(std::fabs(x), std::fabs(y)) < cut_aerogel_nafborder[1])
100 for (
int kbad = 0; kbad < nbadtiles; kbad++) {
void Dump() const
Dump on screen container content.
int GetTileIndex() const
Get the ID of the radiator tile where the ring is generated.
std::vector< RichAdditionalData > m_data
TofBetaVariable< float > Beta
Beta measurement, one for each type. See Tof::BetaType for list of types.
double BetaConsistencyTof(const TofBaseData &tofData) const
Get the estimator for beta consistency between Rich and Tof.
void Clear()
Clear container content.
Container class for base Tof info.
static const std::string BranchName
bool HasBetaLIP() const
Returns true if Standalone LIP beta measurement is available.
double BetaConsistency() const
Get the estimator for beta consistency between CIEMAT and LIP reconstructions.
bool RingGeomTest() const
Checks if the track impact point on the radiator falls on the on the edge of the radiator (absolute o...
bool IsNaF() const
Returns true if the radiator is NaF; false if it is AGL.
static const std::string BranchName
RichBetaVariable< float > GetBetaError() const
Get the Beta error.
std::vector< RichBaseDataR > m_beta
RichBetaVariable< float > GetBeta() const
Get the Beta measurements.
void Dump() const
Dump on screen container content.
Rich container class description.
std::enable_if< std::is_convertible< Key, size_t >::value, bool >::type ContainsKeys(const std::array< T, N > &container, Key key)
std::map< Rich::BetaType, T > RichBetaVariable
void Clear()
Clear container content.