CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
VectorHit.cc File Reference
#include "DataFormats/TrackerRecHit2D/interface/VectorHit.h"
#include "Geometry/CommonDetUnit/interface/StackGeomDet.h"
#include "CLHEP/Units/PhysicalConstants.h"

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &os, const VectorHit &vh)
 

Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const VectorHit vh 
)

Definition at line 173 of file VectorHit.cc.

References TrackingRecHit::geographicalId(), VectorHit::globalDirection(), VectorHit::localDirection(), VectorHit::localPosition(), VectorHit::lowerGlobalPos(), and VectorHit::upperGlobalPos().

173  {
174  os << " VectorHit create in the DetId#: " << vh.geographicalId() << "\n"
175  << " Vectorhit local position : " << vh.localPosition() << "\n"
176  << " Vectorhit local direction : " << vh.localDirection() << "\n"
177  << " Vectorhit global direction : " << vh.globalDirection() << "\n"
178  << " Lower cluster global position : " << vh.lowerGlobalPos() << "\n"
179  << " Upper cluster global position : " << vh.upperGlobalPos();
180 
181  return os;
182 }
virtual LocalVector localDirection() const
Definition: VectorHit.h:75
Global3DPoint upperGlobalPos() const
Definition: VectorHit.cc:108
Global3DVector globalDirection() const
Definition: VectorHit.cc:152
LocalPoint localPosition() const override
Definition: VectorHit.h:74
Global3DPoint lowerGlobalPos() const
Definition: VectorHit.cc:102
DetId geographicalId() const