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();
98 std::vector< int > TTCluster< edm::Ref< edm::DetSetVector< Phase2TrackerDigi >,
Phase2TrackerDigi > >::findRows()
const 100 std::vector< int >
temp;
101 temp.reserve(theHits.size());
102 for (
unsigned int i = 0;
i < theHits.size();
i++ )
104 temp.push_back( theHits[
i]->row() );
110 std::vector< int > TTCluster< edm::Ref< edm::DetSetVector< Phase2TrackerDigi >,
Phase2TrackerDigi > >::findCols()
const 112 std::vector< int >
temp;
113 temp.reserve(theHits.size());
114 for (
unsigned int i = 0;
i < theHits.size();
i++ )
116 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.