CMS 3D CMS Logo

RefitDirection.h
Go to the documentation of this file.
1 #ifndef TrackingTools_TrackRefitter_RefitDirection_H
2 #define TrackingTools_TrackRefitter_RefitDirection_H
3 
12 
14 public:
16 
21  }
22 
23  explicit RefitDirection(std::string const& type) {
26 
27  if (type == "alongMomentum")
29  else if (type == "oppositeToMomentum")
31  else if (type == "insideOut")
33  else if (type == "outsideIn")
35  else
36  throw cms::Exception("RefitDirection")
37  << "Wrong refit direction chosen in TrackTransformer ParameterSet"
38  << "\n"
39  << "Possible choices are:"
40  << "\n"
41  << "RefitDirection = [alongMomentum, oppositeToMomentum, insideOut, outsideIn]";
42  }
43 
44  // Operations
47  LogTrace("Reco|TrackingTools|TrackTransformer") << "Try to use undetermined geometrical direction";
48  return theGeoDirection;
49  }
52  LogTrace("Reco|TrackingTools|TrackTransformer") << "Try to use anyDirection as propagation direction";
54  }
55 
56 protected:
57 private:
60 };
61 #endif
RefitDirection()
Constructor.
PropagationDirection
#define LogTrace(id)
PropagationDirection thePropagationDirection
PropagationDirection propagationDirection() const
GeometricalDirection theGeoDirection
RefitDirection(std::string const &type)
GeometricalDirection geometricalDirection() const