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 205 of file PndApolloniusTriplet.h.

Member Function Documentation

◆ operator+=()

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

Definition at line 210 of file PndApolloniusTriplet.h.

References fFirstRow, fLastRow, and fMidRow.

211  {
212  fFirstRow.insert(fFirstRow.end(), right.fFirstRow.begin(), right.fFirstRow.end());
213  fMidRow.insert(fMidRow.end(), right.fMidRow.begin(), right.fMidRow.end());
214  fLastRow.insert(fLastRow.end(), right.fLastRow.begin(), right.fLastRow.end());
215 
216  return *this;
217  }
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 219 of file PndApolloniusTriplet.h.

220  {
221  output << "FirstRow: ";
222  std::for_each(t.fFirstRow.begin(), t.fFirstRow.end(), [](PndSttHit *hit) { std::cout << hit->GetTubeID() << "(" << hit->GetX() << "," << hit->GetY() << ") /"; });
223  output << std::endl;
224  output << "MidRow: ";
225  std::for_each(t.fMidRow.begin(), t.fMidRow.end(), [](PndSttHit *hit) { std::cout << hit->GetTubeID() << "(" << hit->GetX() << "," << hit->GetY() << ") /"; });
226  output << std::endl;
227  output << "LastRow: ";
228  std::for_each(t.fLastRow.begin(), t.fLastRow.end(), [](PndSttHit *hit) { std::cout << hit->GetTubeID() << "(" << hit->GetX() << "," << hit->GetY() << ") /"; });
229  output << std::endl;
230 
231  return output;
232  }

Member Data Documentation

◆ fFirstRow

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

Definition at line 206 of file PndApolloniusTriplet.h.

Referenced by operator+=().

◆ fLastRow

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

Definition at line 208 of file PndApolloniusTriplet.h.

Referenced by operator+=().

◆ fMidRow

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

Definition at line 207 of file PndApolloniusTriplet.h.

Referenced by operator+=().


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