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

Date:
2008/11/04 14:46:37
Revision:
1.2
Author
R. Bellan - INFN Torino ricca.nosp@m.rdo..nosp@m.bella.nosp@m.n@ce.nosp@m.rn.ch

Definition at line 15 of file RefitDirection.h.

Member Enumeration Documentation

Enumerator
insideOut 
outsideIn 
undetermined 

Definition at line 19 of file RefitDirection.h.

Constructor & Destructor Documentation

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, edm::hlt::Exception, insideOut, oppositeToMomentum, outsideIn, theGeoDirection, thePropagationDirection, and undetermined.

27  {
28 
31 
32  if (type == "alongMomentum") thePropagationDirection = alongMomentum;
33  else if (type == "oppositeToMomentum") thePropagationDirection = oppositeToMomentum;
34  else if (type == "insideOut") theGeoDirection = insideOut;
35  else if (type == "outsideIn") theGeoDirection = outsideIn;
36  else
37  throw cms::Exception("RefitDirection")
38  <<"Wrong refit direction chosen in TrackTransformer ParameterSet"
39  << "\n"
40  << "Possible choices are:"
41  << "\n"
42  << "RefitDirection = [alongMomentum, oppositeToMomentum, insideOut, outsideIn]";
43  }
type
Definition: HCALResponse.h:22
PropagationDirection thePropagationDirection
GeometricalDirection theGeoDirection
virtual RefitDirection::~RefitDirection ( )
inlinevirtual

Destructor.

Definition at line 46 of file RefitDirection.h.

46 {};

Member Function Documentation

GeometricalDirection RefitDirection::geometricalDirection ( ) const
inline

Definition at line 49 of file RefitDirection.h.

References LogTrace, theGeoDirection, and undetermined.

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

Definition at line 53 of file RefitDirection.h.

References anyDirection, LogTrace, and thePropagationDirection.

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

Member Data Documentation

GeometricalDirection RefitDirection::theGeoDirection
private

Definition at line 61 of file RefitDirection.h.

Referenced by geometricalDirection(), and RefitDirection().

PropagationDirection RefitDirection::thePropagationDirection
private

Definition at line 62 of file RefitDirection.h.

Referenced by propagationDirection(), and RefitDirection().