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

Enumerator
insideOut 
outsideIn 
undetermined 

Definition at line 17 of file RefitDirection.h.

Constructor & Destructor Documentation

RefitDirection::RefitDirection ( )
inline

Constructor.

Definition at line 20 of file RefitDirection.h.

References anyDirection, theGeoDirection, thePropagationDirection, and undetermined.

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

Definition at line 25 of file RefitDirection.h.

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

25  {
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  }
type
Definition: HCALResponse.h:21
PropagationDirection thePropagationDirection
GeometricalDirection theGeoDirection

Member Function Documentation

GeometricalDirection RefitDirection::geometricalDirection ( ) const
inline

Definition at line 44 of file RefitDirection.h.

References LogTrace, and theGeoDirection.

Referenced by TrackTransformer::transform().

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

Definition at line 48 of file RefitDirection.h.

References anyDirection, LogTrace, and thePropagationDirection.

Referenced by TrackTransformer::transform().

48  {
49  if(thePropagationDirection == anyDirection) LogTrace("Reco|TrackingTools|TrackTransformer") << "Try to use anyDirection as propagation direction";
51  }
PropagationDirection thePropagationDirection
#define LogTrace(id)

Member Data Documentation

GeometricalDirection RefitDirection::theGeoDirection
private

Definition at line 56 of file RefitDirection.h.

Referenced by geometricalDirection(), and RefitDirection().

PropagationDirection RefitDirection::thePropagationDirection
private

Definition at line 57 of file RefitDirection.h.

Referenced by propagationDirection(), and RefitDirection().