9#include <vxd/dataobjects/VxdID.h>
10#include <svd/dataobjects/SVDRecoTimeBase.h>
13#include <gtest/gtest.h>
44 VxdID sensorID(3, 4, 1);
45 std::vector<float> init_bins({ -5.0, -3.0, -1.0, 1.0, 3.0, 5.0});
48 EXPECT_EQ(sensorID, timeBase.getSensorID());
49 EXPECT_FALSE(timeBase.isUStrip());
50 EXPECT_EQ(init_bins.size() - 1, timeBase.getNBins());
52 for (
size_t ib = 0; ib < bins.size(); ++ib)
53 EXPECT_EQ(init_bins[ib], bins[ib]);
61 VxdID sensorID(3, 4, 1);
62 std::vector<float> init_bins({ -5.0, -3.0, -1.0, 1.0, 3.0, 5.0});
65 EXPECT_EQ(
"VXDID : 25632 = 3.4.1 side: V bins: -5 -3 -1 1 3 5 ", timeBase.toString());
The SVD RecoTimeBase class.
std::size_t getNBins() const
Get number of bins.
const BinEdgesArray & getBins() const
Get the bins array.
float BinnedDataType
Types for bins array.
VxdID getSensorID() const
Get the sensor ID.
std::vector< BinnedDataType > BinEdgesArray
BinEdgesArray[i] is the left edge of bin i.
bool isUStrip() const
Get strip direction.
Class to uniquely identify a any structure of the PXD and SVD.
Abstract base class for different kinds of events.