CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PathToPlane2Order.h
Go to the documentation of this file.
1 #ifndef PathToPlane2Order_H
2 #define PathToPlane2Order_H
3 
11 
19 
21 public:
22 
26 
27  PathToPlane2Order( const RKLocalFieldProvider& fld, const Frame* fieldFrame) :
28  theField(fld), theFieldFrame(fieldFrame) {}
29 
32  std::pair<bool,double> operator()( const Plane& plane,
33  const Vector3D& position,
34  const Vector3D& momentum,
35  double charge,
36  const PropagationDirection propDir = alongMomentum);
37 
38  std::pair<bool,double> operator()( const Plane& plane,
39  const GlobalPoint& position,
40  const GlobalVector& momentum,
41  double charge,
42  const PropagationDirection propDir = alongMomentum) {
43  return operator()( plane, theFieldFrame->toLocal(position).basicVector(),
44  theFieldFrame->toLocal(momentum).basicVector(), charge, propDir);
45  }
46 
47 private:
48 
51 };
52 
53 #endif
GloballyPositioned< Scalar > Frame
PropagationDirection
double charge(const std::vector< uint8_t > &Ampls)
Definition: Plane.h:17
static int position[TOTALCHAMBERS][3]
Definition: ReadPGInfo.cc:509
PathToPlane2Order(const RKLocalFieldProvider &fld, const Frame *fieldFrame)
std::pair< bool, double > operator()(const Plane &plane, const GlobalPoint &position, const GlobalVector &momentum, double charge, const PropagationDirection propDir=alongMomentum)
LocalPoint toLocal(const GlobalPoint &gp) const
std::pair< bool, double > operator()(const Plane &plane, const Vector3D &position, const Vector3D &momentum, double charge, const PropagationDirection propDir=alongMomentum)
Plane::Scalar Scalar
const RKLocalFieldProvider & theField
Basic3DVector< Scalar > Vector3D
const BasicVectorType & basicVector() const
Definition: PV3DBase.h:54
const Frame * theFieldFrame