17 int rowMin = 99999999;
20 for (
unsigned int i = 0;
i < theHits.size();
i++ )
23 if ( this->getRows().size() == 0 )
25 row = theHits[
i]->
row();
29 row = this->getRows()[
i];
36 return abs( rowMax - rowMin + 1 );
45 if ( this->getRows().
size() == 0 || this->getCols().
size() == 0 )
52 int row = this->getRows()[hitIdx];
53 int col = this->getCols()[hitIdx];
63 double averageCol = 0.0;
64 double averageRow = 0.0;
67 if ( theHits.size() != 0 )
69 if ( this->getRows().size() == 0 || this->getCols().size() == 0 )
71 typename std::vector< edm::Ref< edm::DetSetVector< Phase2TrackerDigi >,
Phase2TrackerDigi > >::const_iterator
hitIter;
72 for ( hitIter = theHits.begin();
73 hitIter != theHits.end();
76 averageCol += (*hitIter)->column();
77 averageRow += (*hitIter)->row();
79 averageCol /= theHits.size();
80 averageRow /= theHits.size();
84 for (
unsigned int j = 0; j < theHits.size(); j++ )
86 averageCol += theCols[j];
87 averageRow += theRows[j];
89 averageCol /= theHits.size();
90 averageRow /= theHits.size();
100 double averageCol = 0.0;
101 double averageRow = 0.0;
104 if ( theHits.size() != 0 )
106 if ( this->getRows().size() == 0 || this->getCols().size() == 0 )
108 typename std::vector< edm::Ref< edm::DetSetVector< Phase2TrackerDigi >,
Phase2TrackerDigi > >::const_iterator
hitIter;
109 for ( hitIter = theHits.begin();
110 hitIter != theHits.end();
113 averageCol += (*hitIter)->column()+0.5;
114 averageRow += (*hitIter)->row()+0.5;
116 averageCol /= theHits.size();
117 averageRow /= theHits.size();
121 for (
unsigned int j = 0; j < theHits.size(); j++ )
123 averageCol += theCols[j]+0.5;
124 averageRow += theRows[j]+0.5;
126 averageCol /= theHits.size();
127 averageRow /= theHits.size();
135 std::vector< int > TTCluster< edm::Ref< edm::DetSetVector< Phase2TrackerDigi >,
Phase2TrackerDigi > >::findRows()
const 137 std::vector< int >
temp;
138 temp.reserve(theHits.size());
139 for (
unsigned int i = 0;
i < theHits.size();
i++ )
141 temp.push_back( theHits[
i]->row() );
147 std::vector< int > TTCluster< edm::Ref< edm::DetSetVector< Phase2TrackerDigi >,
Phase2TrackerDigi > >::findCols()
const 149 std::vector< int >
temp;
150 temp.reserve(theHits.size());
151 for (
unsigned int i = 0;
i < theHits.size();
i++ )
153 temp.push_back( theHits[
i]->column() );
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.