CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 &type)
 
virtual ~RefitDirection ()
 Destructor. More...
 

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 &  type)
inline

Definition at line 25 of file RefitDirection.h.

References alongMomentum, anyDirection, edm::hlt::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
virtual RefitDirection::~RefitDirection ( )
inlinevirtual

Destructor.

Definition at line 44 of file RefitDirection.h.

44 {};

Member Function Documentation

GeometricalDirection RefitDirection::geometricalDirection ( ) const
inline

Definition at line 47 of file RefitDirection.h.

References LogTrace, theGeoDirection, and undetermined.

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

Definition at line 51 of file RefitDirection.h.

References anyDirection, LogTrace, and thePropagationDirection.

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

Member Data Documentation

GeometricalDirection RefitDirection::theGeoDirection
private

Definition at line 59 of file RefitDirection.h.

Referenced by geometricalDirection(), and RefitDirection().

PropagationDirection RefitDirection::thePropagationDirection
private

Definition at line 60 of file RefitDirection.h.

Referenced by propagationDirection(), and RefitDirection().