#include <RefitDirection.h>
Public Types | |
enum | GeometricalDirection { insideOut, outsideIn, undetermined } |
Public Member Functions | |
GeometricalDirection | geometricalDirection () const |
PropagationDirection | propagationDirection () const |
RefitDirection (std::string &type) | |
RefitDirection () | |
Constructor. | |
virtual | ~RefitDirection () |
Destructor. | |
Private Attributes | |
GeometricalDirection | theGeoDirection |
PropagationDirection | thePropagationDirection |
Help class in order to handle the different refit possibilities
Definition at line 15 of file RefitDirection.h.
Definition at line 19 of file RefitDirection.h.
RefitDirection::RefitDirection | ( | ) | [inline] |
Constructor.
Definition at line 22 of file RefitDirection.h.
References anyDirection, theGeoDirection, thePropagationDirection, and undetermined.
RefitDirection::RefitDirection | ( | std::string & | type | ) | [inline] |
Definition at line 27 of file RefitDirection.h.
References alongMomentum, anyDirection, Exception, insideOut, oppositeToMomentum, outsideIn, theGeoDirection, thePropagationDirection, and undetermined.
{ thePropagationDirection = anyDirection; theGeoDirection = undetermined; if (type == "alongMomentum") thePropagationDirection = alongMomentum; else if (type == "oppositeToMomentum") thePropagationDirection = oppositeToMomentum; else if (type == "insideOut") theGeoDirection = insideOut; else if (type == "outsideIn") theGeoDirection = outsideIn; else throw cms::Exception("RefitDirection") <<"Wrong refit direction chosen in TrackTransformer ParameterSet" << "\n" << "Possible choices are:" << "\n" << "RefitDirection = [alongMomentum, oppositeToMomentum, insideOut, outsideIn]"; }
virtual RefitDirection::~RefitDirection | ( | ) | [inline, virtual] |
GeometricalDirection RefitDirection::geometricalDirection | ( | ) | const [inline] |
Definition at line 49 of file RefitDirection.h.
References LogTrace, theGeoDirection, and undetermined.
{ if(theGeoDirection == undetermined) LogTrace("Reco|TrackingTools|TrackTransformer") << "Try to use undetermined geometrical direction"; return theGeoDirection; }
PropagationDirection RefitDirection::propagationDirection | ( | void | ) | const [inline] |
Definition at line 53 of file RefitDirection.h.
References anyDirection, LogTrace, and thePropagationDirection.
{ if(thePropagationDirection == anyDirection) LogTrace("Reco|TrackingTools|TrackTransformer") << "Try to use anyDirection as propagation direction"; return thePropagationDirection; }
Definition at line 61 of file RefitDirection.h.
Referenced by geometricalDirection(), and RefitDirection().
Definition at line 62 of file RefitDirection.h.
Referenced by propagationDirection(), and RefitDirection().