CMS 3D CMS Logo

RefitDirection.h
Go to the documentation of this file.
1 #ifndef TrackingTools_TrackRefitter_RefitDirection_H
2 #define TrackingTools_TrackRefitter_RefitDirection_H
3 
12 
14 public:
16 
21  }
22 
23  explicit RefitDirection(std::string const& type) {
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  }
43 
44  // Operations
47  LogTrace("Reco|TrackingTools|TrackTransformer") << "Try to use undetermined geometrical direction";
48  return theGeoDirection;
49  }
52  LogTrace("Reco|TrackingTools|TrackTransformer") << "Try to use anyDirection as propagation direction";
54  }
55 
56 protected:
57 private:
60 };
61 #endif
anyDirection
Definition: PropagationDirection.h:4
MessageLogger.h
RefitDirection::RefitDirection
RefitDirection()
Constructor.
Definition: RefitDirection.h:18
RefitDirection::GeometricalDirection
GeometricalDirection
Definition: RefitDirection.h:15
oppositeToMomentum
Definition: PropagationDirection.h:4
RefitDirection::thePropagationDirection
PropagationDirection thePropagationDirection
Definition: RefitDirection.h:59
RefitDirection::RefitDirection
RefitDirection(std::string const &type)
Definition: RefitDirection.h:23
RefitDirection::theGeoDirection
GeometricalDirection theGeoDirection
Definition: RefitDirection.h:58
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
RefitDirection::undetermined
Definition: RefitDirection.h:15
RefitDirection::propagationDirection
PropagationDirection propagationDirection() const
Definition: RefitDirection.h:50
type
type
Definition: SiPixelVCal_PayloadInspector.cc:37
RefitDirection
Definition: RefitDirection.h:13
PropagationDirection.h
Exception
Definition: hltDiff.cc:246
PropagationDirection
PropagationDirection
Definition: PropagationDirection.h:4
RefitDirection::insideOut
Definition: RefitDirection.h:15
RefitDirection::geometricalDirection
GeometricalDirection geometricalDirection() const
Definition: RefitDirection.h:45
LogTrace
#define LogTrace(id)
Definition: MessageLogger.h:224
RefitDirection::outsideIn
Definition: RefitDirection.h:15
alongMomentum
Definition: PropagationDirection.h:4