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 
14 
16 
17 public:
18 
20 
25  }
26 
27  RefitDirection(std::string& type){
28 
31 
32  if (type == "alongMomentum") thePropagationDirection = alongMomentum;
33  else if (type == "oppositeToMomentum") thePropagationDirection = oppositeToMomentum;
34  else if (type == "insideOut") theGeoDirection = insideOut;
35  else if (type == "outsideIn") theGeoDirection = outsideIn;
36  else
37  throw cms::Exception("RefitDirection")
38  <<"Wrong refit direction chosen in TrackTransformer ParameterSet"
39  << "\n"
40  << "Possible choices are:"
41  << "\n"
42  << "RefitDirection = [alongMomentum, oppositeToMomentum, insideOut, outsideIn]";
43  }
44 
46  virtual ~RefitDirection(){};
47 
48  // Operations
50  if(theGeoDirection == undetermined) LogTrace("Reco|TrackingTools|TrackTransformer") << "Try to use undetermined geometrical direction";
51  return theGeoDirection;
52  }
54  if(thePropagationDirection == anyDirection) LogTrace("Reco|TrackingTools|TrackTransformer") << "Try to use anyDirection as propagation direction";
56  }
57 
58 protected:
59 
60 private:
63 };
64 #endif
65 
type
Definition: HCALResponse.h:22
PropagationDirection propagationDirection() const
GeometricalDirection geometricalDirection() const
RefitDirection()
Constructor.
PropagationDirection
virtual ~RefitDirection()
Destructor.
RefitDirection(std::string &type)
PropagationDirection thePropagationDirection
#define LogTrace(id)
GeometricalDirection theGeoDirection