CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
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 
44  virtual ~RefitDirection(){};
45 
46  // Operations
48  if(theGeoDirection == undetermined) LogTrace("Reco|TrackingTools|TrackTransformer") << "Try to use undetermined geometrical direction";
49  return theGeoDirection;
50  }
52  if(thePropagationDirection == anyDirection) LogTrace("Reco|TrackingTools|TrackTransformer") << "Try to use anyDirection as propagation direction";
54  }
55 
56 protected:
57 
58 private:
61 };
62 #endif
63 
type
Definition: HCALResponse.h:21
PropagationDirection propagationDirection() const
GeometricalDirection geometricalDirection() const
RefitDirection()
Constructor.
PropagationDirection
virtual ~RefitDirection()
Destructor.
RefitDirection(std::string &type)
PropagationDirection thePropagationDirection
#define LogTrace(id)
GeometricalDirection theGeoDirection