|
ATLAS Offline Software
|
Go to the documentation of this file.
18 PairBuilder ::~ PairBuilder()
24 bool xValueInserted =
m_xvalues.insert(xstrip).second;
28 bool yValueInserted =
m_yvalues.insert(ystrip).second;
32 bool xValueInserted =
m_xvalues.insert(xystrip).second;
33 bool yValueInserted =
m_yvalues.insert(xystrip).second;
34 if ((not
m_xvalues.empty()) and (not
m_yvalues.empty()) and xValueInserted and yValueInserted) {
74 int arrSize =
e.numberOfPairs();
75 for(
int i=0;
i<arrSize;++
i){
76 os <<
"( " <<
e.xOfPairAt(
i) <<
", " <<
e.yOfPairAt(
i) <<
" )" << std::endl;
JetConstituentVector::iterator iterator
std::vector< XYPair > PairVector
void formNewPairsWithY(const int yval)
std::ostream & operator<<(std::ostream &os, const PairBuilder &e)
Overloaded "operator <<" for output of PairBuilder objects.
const PairVector & pairs() const
Return the pairs as a vector of pairs of integers.
Class to build pairs of XY values.
float weight() const
Return the 'weight', = 1/(number of pairs)
std::pair< int, int > XYPair
int yOfPairAt(const int indx) const
Return the Y value of a specific pair.
void inputx(const int xstrip)
Input a new x value.
void formNewPairsWithX(const int xval)
int xOfPairAt(const int indx) const
Return the X value of a specific pair.
int numberOfPairs() const
Return the number of XY pairs made.
void inputxy(const int ystrip)
Input a new y value.
void inputy(const int ystrip)
Input a new y value.
IntSet m_xvalues
use sets to avoid duplicate values
PairVector m_pairs
Vector to hold the pairs produced.
XYPair pairAtIndex(const int indx) const
Return a specific XY pair at some vector index.