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
46  if (theGeoDirection == undetermined)
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
type
Definition: HCALResponse.h:21
PropagationDirection propagationDirection() const
GeometricalDirection geometricalDirection() const
RefitDirection()
Constructor.
PropagationDirection
PropagationDirection thePropagationDirection
#define LogTrace(id)
GeometricalDirection theGeoDirection
RefitDirection(std::string const &type)