CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
RoadSearchCircleSeed.cc File Reference
#include <cmath>
#include "RecoTracker/RoadSearchSeedFinder/interface/RoadSearchCircleSeed.h"
#include "RecoTracker/TkSeedGenerator/interface/FastCircle.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "DataFormats/SiStripDetId/interface/StripSubdetector.h"

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &ost, const RoadSearchCircleSeed &seed)
 

Function Documentation

std::ostream& operator<< ( std::ostream &  ost,
const RoadSearchCircleSeed seed 
)

Definition at line 284 of file RoadSearchCircleSeed.cc.

References RoadSearchCircleSeed::Center(), RoadSearchCircleSeed::ImpactParameter(), RoadSearchCircleSeed::InBarrel(), point, RoadSearchCircleSeed::Points(), RoadSearchCircleSeed::Radius(), RoadSearchCircleSeed::straightLine, RoadSearchCircleSeed::Type(), PV3DBase< T, PVType, FrameType >::x(), and PV3DBase< T, PVType, FrameType >::y().

284  {
285  //
286  // print operator
287  //
288 
289  if ( seed.Type() == RoadSearchCircleSeed::straightLine ) {
290  ost << "Straight Line: number of points: " << seed.Points().size() << "\n";
291  unsigned int counter = 0;
292  for ( std::vector<GlobalPoint>::const_iterator point = seed.Points().begin();
293  point != seed.Points().end();
294  ++point ) {
295  ++counter;
296  ost << " Point " << counter << ": " << point->x() << "," << point->y() << "\n";
297  }
298  } else {
299  ost << "Circle: number of points: " << seed.Points().size() << "\n";
300  ost << " Radius : " << seed.Radius() << "\n";
301  ost << " In the barrel : " << seed.InBarrel() << "\n";
302  ost << " ImpactParameter: " << seed.ImpactParameter() << "\n";
303  ost << " Center : " << seed.Center().x() << "," << seed.Center().y() << "\n";
304  unsigned int counter = 0;
305  for ( std::vector<GlobalPoint>::const_iterator point = seed.Points().begin();
306  point != seed.Points().end();
307  ++point ) {
308  ++counter;
309  ost << " Point " << counter << " : " << point->x() << "," << point->y() << "\n";
310  }
311  }
312 
313  return ost;
314 }
T y() const
Definition: PV3DBase.h:62
GlobalPoint Center() const
double ImpactParameter() const
std::vector< GlobalPoint > Points() const
T x() const
Definition: PV3DBase.h:61
*vegas h *****************************************************used in the default bin number in original ***version of VEGAS is ***a higher bin number might help to derive a more precise ***grade subtle point
Definition: invegas.h:5