All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 26 of file SurfWireLine.cxx.

27  {
28  // Get geometry service.
29 
30  art::ServiceHandle<geo::Geometry const> geom;
31 
32  // Get wire geometry.
33 
34  geo::WireGeo const& wgeom = geom->WireIDToWireGeo(wireid);
35 
36  // Get wire center and angle from the wire geometry.
37  // Put local origin at center of wire.
38 
39  double xyz[3] = {0.};
40  wgeom.GetCenter(xyz);
41  double phi = TMath::PiOver2() - wgeom.ThetaZ();
42 
43  // Update base class.
44 
45  *static_cast<SurfYZLine*>(this) = SurfYZLine(x, xyz[1], xyz[2], phi);
46  }
Geometry description of a TPC wireThe wire is a single straight segment on a wire plane...
Definition: WireGeo.h:65
process_name opflash particleana ie x
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
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
trkf::SurfWireLine::~SurfWireLine ( )
virtual

Destructor.

Definition at line 49 of file SurfWireLine.cxx.

50  {}

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