PandaRoot
PndApollonius::TripletValues Struct Reference

A structure that defines the three sets of STT hits (inner, mid, outer STT set), that are used to combine triplets. More...

#include <PndApolloniusTriplet.h>

Public Member Functions

TripletValuesoperator+= (const TripletValues &right)
 

Public Attributes

std::vector< PndSttHit * > fFirstRow
 
std::vector< PndSttHit * > fMidRow
 
std::vector< PndSttHit * > fLastRow
 

Friends

std::ostream & operator<< (std::ostream &output, const TripletValues &t)
 

Detailed Description

A structure that defines the three sets of STT hits (inner, mid, outer STT set), that are used to combine triplets.

Definition at line 217 of file PndApolloniusTriplet.h.

Member Function Documentation

◆ operator+=()

TripletValues& PndApollonius::TripletValues::operator+= ( const TripletValues right)
inline

Definition at line 222 of file PndApolloniusTriplet.h.

References fFirstRow, fLastRow, and fMidRow.

223  {
224  fFirstRow.insert(fFirstRow.end(), right.fFirstRow.begin(), right.fFirstRow.end());
225  fMidRow.insert(fMidRow.end(), right.fMidRow.begin(), right.fMidRow.end());
226  fLastRow.insert(fLastRow.end(), right.fLastRow.begin(), right.fLastRow.end());
227 
228  return *this;
229  }
std::vector< PndSttHit * > fFirstRow
std::vector< PndSttHit * > fMidRow
std::vector< PndSttHit * > fLastRow

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  output,
const TripletValues t 
)
friend

Definition at line 231 of file PndApolloniusTriplet.h.

232  {
233  output << "FirstRow: ";
234  std::for_each(t.fFirstRow.begin(), t.fFirstRow.end(), [](PndSttHit *hit) { std::cout << hit->GetTubeID() << "(" << hit->GetX() << "," << hit->GetY() << ") /"; });
235  output << std::endl;
236  output << "MidRow: ";
237  std::for_each(t.fMidRow.begin(), t.fMidRow.end(), [](PndSttHit *hit) { std::cout << hit->GetTubeID() << "(" << hit->GetX() << "," << hit->GetY() << ") /"; });
238  output << std::endl;
239  output << "LastRow: ";
240  std::for_each(t.fLastRow.begin(), t.fLastRow.end(), [](PndSttHit *hit) { std::cout << hit->GetTubeID() << "(" << hit->GetX() << "," << hit->GetY() << ") /"; });
241  output << std::endl;
242 
243  return output;
244  }

Member Data Documentation

◆ fFirstRow

std::vector<PndSttHit *> PndApollonius::TripletValues::fFirstRow

Definition at line 218 of file PndApolloniusTriplet.h.

Referenced by operator+=().

◆ fLastRow

std::vector<PndSttHit *> PndApollonius::TripletValues::fLastRow

Definition at line 220 of file PndApolloniusTriplet.h.

Referenced by operator+=().

◆ fMidRow

std::vector<PndSttHit *> PndApollonius::TripletValues::fMidRow

Definition at line 219 of file PndApolloniusTriplet.h.

Referenced by operator+=().


The documentation for this struct was generated from the following file: