CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Private Attributes
RefitDirection Class Reference

#include <RefitDirection.h>

Public Types

enum  GeometricalDirection { insideOut, outsideIn, undetermined }
 

Public Member Functions

GeometricalDirection geometricalDirection () const
 
PropagationDirection propagationDirection () const
 
 RefitDirection ()
 Constructor. More...
 
 RefitDirection (std::string const &type)
 

Private Attributes

GeometricalDirection theGeoDirection
 
PropagationDirection thePropagationDirection
 

Detailed Description

Help class in order to handle the different refit possibilities

Author
R. Bellan - INFN Torino ricca.nosp@m.rdo..nosp@m.bella.nosp@m.n@ce.nosp@m.rn.ch

Definition at line 13 of file RefitDirection.h.

Member Enumeration Documentation

Enumerator
insideOut 
outsideIn 
undetermined 

Definition at line 15 of file RefitDirection.h.

Constructor & Destructor Documentation

RefitDirection::RefitDirection ( )
inline

Constructor.

Definition at line 18 of file RefitDirection.h.

References anyDirection, theGeoDirection, thePropagationDirection, and undetermined.

RefitDirection::RefitDirection ( std::string const &  type)
inlineexplicit

Definition at line 23 of file RefitDirection.h.

References alongMomentum, anyDirection, Exception, insideOut, oppositeToMomentum, outsideIn, theGeoDirection, thePropagationDirection, and undetermined.

23  {
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  }
PropagationDirection thePropagationDirection
GeometricalDirection theGeoDirection

Member Function Documentation

GeometricalDirection RefitDirection::geometricalDirection ( ) const
inline

Definition at line 45 of file RefitDirection.h.

References LogTrace, theGeoDirection, and undetermined.

Referenced by TrackTransformer::transform().

45  {
47  LogTrace("Reco|TrackingTools|TrackTransformer") << "Try to use undetermined geometrical direction";
48  return theGeoDirection;
49  }
#define LogTrace(id)
GeometricalDirection theGeoDirection
PropagationDirection RefitDirection::propagationDirection ( void  ) const
inline

Definition at line 50 of file RefitDirection.h.

References anyDirection, LogTrace, and thePropagationDirection.

Referenced by TrackTransformer::transform().

50  {
52  LogTrace("Reco|TrackingTools|TrackTransformer") << "Try to use anyDirection as propagation direction";
54  }
#define LogTrace(id)
PropagationDirection thePropagationDirection

Member Data Documentation

GeometricalDirection RefitDirection::theGeoDirection
private

Definition at line 58 of file RefitDirection.h.

Referenced by geometricalDirection(), and RefitDirection().

PropagationDirection RefitDirection::thePropagationDirection
private

Definition at line 59 of file RefitDirection.h.

Referenced by propagationDirection(), and RefitDirection().