16 int rowMin = 99999999;
19 for (
unsigned int i = 0;
i <
theHits.size();
i++) {
21 if (this->getRows().empty()) {
24 row = this->getRows()[
i];
31 return abs(rowMax - rowMin + 1);
37 unsigned int hitIdx)
const {
40 if (this->getRows().
empty() || this->getCols().
empty()) {
44 int row = this->getRows()[hitIdx];
45 int col = this->getCols()[hitIdx];
55 double averageCol = 0.0;
56 double averageRow = 0.0;
60 if (this->getRows().empty() || this->getCols().empty()) {
63 averageCol += (*hitIter)->column();
64 averageRow += (*hitIter)->row();
69 for (
unsigned int j = 0;
j <
theHits.size();
j++) {
70 averageCol += theCols[
j];
71 averageRow += theRows[
j];
84 double averageCol = 0.0;
85 double averageRow = 0.0;
89 if (this->getRows().empty() || this->getCols().empty()) {
92 averageCol += (*hitIter)->column() + 0.5;
93 averageRow += (*hitIter)->row() + 0.5;
98 for (
unsigned int j = 0;
j <
theHits.size();
j++) {
99 averageCol += theCols[
j] + 0.5;
100 averageRow += theRows[
j] + 0.5;
112 std::vector<int>
temp;
114 for (
unsigned int i = 0;
i <
theHits.size();
i++) {
122 std::vector<int>
temp;
124 for (
unsigned int i = 0;
i <
theHits.size();
i++) {
Measurement2DPoint MeasurementPoint
Measurement points are two-dimensional by default.
Abs< T >::type abs(const T &t)
hitCont::const_iterator hitIter
NOTE: this is needed even if it seems not.