CMS 3D CMS Logo

Public Types | Public Member Functions | Private Attributes

RefitDirection Class Reference

#include <RefitDirection.h>

List of all members.

Public Types

enum  GeometricalDirection { insideOut, outsideIn, undetermined }

Public Member Functions

GeometricalDirection geometricalDirection () const
PropagationDirection propagationDirection () const
 RefitDirection (std::string &type)
 RefitDirection ()
 Constructor.
virtual ~RefitDirection ()
 Destructor.

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 <riccardo.bellan@cern.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]
RefitDirection::RefitDirection ( std::string &  type) [inline]

Definition at line 27 of file RefitDirection.h.

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

                                 { 

    thePropagationDirection = anyDirection;
    theGeoDirection = undetermined;
 
    if (type == "alongMomentum") thePropagationDirection = alongMomentum;
    else if (type == "oppositeToMomentum") thePropagationDirection = oppositeToMomentum;
    else if (type == "insideOut") theGeoDirection = insideOut;
    else if (type == "outsideIn") theGeoDirection = outsideIn;
    else 
      throw cms::Exception("RefitDirection") 
        <<"Wrong refit direction chosen in TrackTransformer ParameterSet"
        << "\n"
        << "Possible choices are:"
        << "\n"
        << "RefitDirection = [alongMomentum, oppositeToMomentum, insideOut, outsideIn]";
  }
virtual RefitDirection::~RefitDirection ( ) [inline, virtual]

Destructor.

Definition at line 46 of file RefitDirection.h.

{};

Member Function Documentation

GeometricalDirection RefitDirection::geometricalDirection ( ) const [inline]

Definition at line 49 of file RefitDirection.h.

References LogTrace, theGeoDirection, and undetermined.

                                                           {
    if(theGeoDirection == undetermined) LogTrace("Reco|TrackingTools|TrackTransformer") << "Try to use undetermined geometrical direction";
    return theGeoDirection;
  }
PropagationDirection RefitDirection::propagationDirection ( void  ) const [inline]

Definition at line 53 of file RefitDirection.h.

References anyDirection, LogTrace, and thePropagationDirection.

                                                           {
    if(thePropagationDirection == anyDirection) LogTrace("Reco|TrackingTools|TrackTransformer") << "Try to use anyDirection as propagation direction";
    return thePropagationDirection;
  }

Member Data Documentation

Definition at line 61 of file RefitDirection.h.

Referenced by geometricalDirection(), and RefitDirection().

Definition at line 62 of file RefitDirection.h.

Referenced by propagationDirection(), and RefitDirection().