Public Member Functions | List of all members
trkf::SurfWireLine Class Reference

#include <SurfWireLine.h>

Inheritance diagram for trkf::SurfWireLine:
trkf::SurfYZLine trkf::SurfLine trkf::Surface

Public Member Functions

 SurfWireLine (const geo::WireID &wireid, double x)
 Constructor. More...
 
virtual ~SurfWireLine ()
 Destructor. More...
 
- Public Member Functions inherited from trkf::SurfYZLine
 SurfYZLine ()
 Default constructor. More...
 
 SurfYZLine (double x0, double y0, double z0, double phi)
 Initializing constructor. More...
 
virtual ~SurfYZLine ()
 Destructor. More...
 
double x0 () const
 X origin. More...
 
double y0 () const
 Y origin. More...
 
double z0 () const
 Z origin. More...
 
double phi () const
 Rotation angle about x-axis. More...
 
virtual Surfaceclone () const
 Clone method. More...
 
virtual bool isTrackValid (const TrackVector &vec) const
 Surface-specific tests of validity of track parameters. More...
 
virtual void toLocal (const double xyz[3], double uvw[3]) const
 Transform global to local coordinates. More...
 
virtual void toGlobal (const double uvw[3], double xyz[3]) const
 Transform local to global coordinates. More...
 
virtual TrackVector getDiff (const TrackVector &vec1, const TrackVector &vec2) const
 Calculate difference of two track parameter vectors. More...
 
virtual void getPosition (const TrackVector &vec, double xyz[3]) const
 Get position of track. More...
 
virtual void getMomentum (const TrackVector &vec, double mom[3], TrackDirection dir=UNKNOWN) const
 Get momentum vector of track. More...
 
virtual bool isParallel (const Surface &surf) const
 Test whether two surfaces are parallel, within tolerance. More...
 
virtual double distanceTo (const Surface &surf) const
 Find perpendicular distance to a parallel surface. More...
 
virtual bool isEqual (const Surface &surf) const
 Test two surfaces for equality, within tolerance. More...
 
virtual std::ostream & Print (std::ostream &out) const
 Printout. More...
 
- Public Member Functions inherited from trkf::SurfLine
 SurfLine ()
 Default constructor. More...
 
virtual ~SurfLine ()
 Destructor. More...
 
double PointingError (const TrackVector &vec, const TrackError &err) const
 Get pointing error of track. More...
 
void getStartingError (TrackError &err) const
 Get starting error matrix for Kalman filter. More...
 
- Public Member Functions inherited from trkf::Surface
 Surface ()
 Default constructor. More...
 
virtual ~Surface ()
 Destructor. More...
 
virtual TrackDirection getDirection (const TrackVector &, TrackDirection dir=UNKNOWN) const
 Get direction of track (default UNKNOWN). More...
 

Additional Inherited Members

- Public Types inherited from trkf::Surface
enum  TrackDirection { FORWARD, BACKWARD, UNKNOWN }
 Track direction enum. More...
 

Detailed Description

Definition at line 24 of file SurfWireLine.h.

Constructor & Destructor Documentation

trkf::SurfWireLine::SurfWireLine ( const geo::WireID wireid,
double  x 
)

Constructor.

Constructor.

Arguments:

wireid - Wire id. x - X coordinate.

Definition at line 25 of file SurfWireLine.cxx.

26  {
27  // Get geometry service.
28 
30 
31  // Get wire geometry.
32 
33  geo::WireGeo const& wgeom = geom->WireIDToWireGeo(wireid);
34 
35  // Get wire center and angle from the wire geometry.
36  // Put local origin at center of wire.
37 
38  double xyz[3] = {0.};
39  wgeom.GetCenter(xyz);
40  double phi = TMath::PiOver2() - wgeom.ThetaZ();
41 
42  // Update base class.
43 
44  *static_cast<SurfYZLine*>(this) = SurfYZLine(x, xyz[1], xyz[2], phi);
45  }
Geometry description of a TPC wireThe wire is a single straight segment on a wire plane...
Definition: WireGeo.h:65
double ThetaZ() const
Returns angle of wire with respect to z axis in the Y-Z plane in radians.
Definition: WireGeo.h:250
double phi() const
Rotation angle about x-axis.
Definition: SurfYZLine.h:95
list x
Definition: train.py:276
void GetCenter(double *xyz, double localz=0.0) const
Fills the world coordinate of a point on the wire.
Definition: WireGeo.cxx:73
SurfYZLine()
Default constructor.
Definition: SurfYZLine.cxx:25
WireGeo const & WireIDToWireGeo(geo::WireID const &wireid) const
trkf::SurfWireLine::~SurfWireLine ( )
virtual

Destructor.

Definition at line 48 of file SurfWireLine.cxx.

49  {}

The documentation for this class was generated from the following files: