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 
15 public:
16 
18 
23  }
24 
25  explicit RefitDirection(std::string const& type){
26 
29 
30  if (type == "alongMomentum") thePropagationDirection = alongMomentum;
31  else if (type == "oppositeToMomentum") thePropagationDirection = oppositeToMomentum;
32  else if (type == "insideOut") theGeoDirection = insideOut;
33  else if (type == "outsideIn") theGeoDirection = outsideIn;
34  else
35  throw cms::Exception("RefitDirection")
36  <<"Wrong refit direction chosen in TrackTransformer ParameterSet"
37  << "\n"
38  << "Possible choices are:"
39  << "\n"
40  << "RefitDirection = [alongMomentum, oppositeToMomentum, insideOut, outsideIn]";
41  }
42 
43  // Operations
45  if(theGeoDirection == undetermined) LogTrace("Reco|TrackingTools|TrackTransformer") << "Try to use undetermined geometrical direction";
46  return theGeoDirection;
47  }
49  if(thePropagationDirection == anyDirection) LogTrace("Reco|TrackingTools|TrackTransformer") << "Try to use anyDirection as propagation direction";
51  }
52 
53 protected:
54 
55 private:
58 };
59 #endif
60 
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)