CMS 3D CMS Logo

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

◆ GeometricalDirection

Enumerator
insideOut 
outsideIn 
undetermined 

Definition at line 15 of file RefitDirection.h.

Constructor & Destructor Documentation

◆ RefitDirection() [1/2]

RefitDirection::RefitDirection ( )
inline

Constructor.

Definition at line 18 of file RefitDirection.h.

References anyDirection, theGeoDirection, thePropagationDirection, and undetermined.

◆ RefitDirection() [2/2]

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

Definition at line 23 of file RefitDirection.h.

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  }

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

Member Function Documentation

◆ geometricalDirection()

GeometricalDirection RefitDirection::geometricalDirection ( ) const
inline

Definition at line 45 of file RefitDirection.h.

45  {
47  LogTrace("Reco|TrackingTools|TrackTransformer") << "Try to use undetermined geometrical direction";
48  return theGeoDirection;
49  }

References LogTrace, theGeoDirection, and undetermined.

Referenced by TrackTransformer::transform().

◆ propagationDirection()

PropagationDirection RefitDirection::propagationDirection ( void  ) const
inline

Definition at line 50 of file RefitDirection.h.

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

References anyDirection, LogTrace, and thePropagationDirection.

Referenced by TrackTransformer::transform().

Member Data Documentation

◆ theGeoDirection

GeometricalDirection RefitDirection::theGeoDirection
private

Definition at line 58 of file RefitDirection.h.

Referenced by geometricalDirection(), and RefitDirection().

◆ thePropagationDirection

PropagationDirection RefitDirection::thePropagationDirection
private

Definition at line 59 of file RefitDirection.h.

Referenced by propagationDirection(), and RefitDirection().

anyDirection
Definition: PropagationDirection.h:4
oppositeToMomentum
Definition: PropagationDirection.h:4
RefitDirection::thePropagationDirection
PropagationDirection thePropagationDirection
Definition: RefitDirection.h:59
RefitDirection::theGeoDirection
GeometricalDirection theGeoDirection
Definition: RefitDirection.h:58
RefitDirection::undetermined
Definition: RefitDirection.h:15
type
type
Definition: SiPixelVCal_PayloadInspector.cc:37
Exception
Definition: hltDiff.cc:246
RefitDirection::insideOut
Definition: RefitDirection.h:15
LogTrace
#define LogTrace(id)
Definition: MessageLogger.h:224
RefitDirection::outsideIn
Definition: RefitDirection.h:15
alongMomentum
Definition: PropagationDirection.h:4