CMS 3D CMS Logo

GhostTrackState.h
Go to the documentation of this file.
1 #ifndef RecoBTag_GhostTrackState_h
2 #define RecoBTag_GhostTrackState_h
3 
4 #include <utility>
5 
9 
11 
13 
14 class VertexState;
15 
16 namespace reco {
17 
18  class TransientTrack;
19  class GhostTrackPrediction;
20 
23 
24  public:
27 
29  GhostTrackState(const GlobalPoint &pos, const CovarianceMatrix &cov);
32 
33  const TransientTrack &track() const;
34  const TrajectoryStateOnSurface &tsos() const;
35 
36  GlobalPoint globalPosition() const { return data().globalPosition(); }
37  GlobalError cartesianError() const { return data().cartesianError(); }
38  CovarianceMatrix cartesianCovariance() const { return data().cartesianCovariance(); }
39 
40  double lambda() const { return data().lambda(); }
41  double lambdaError(const GhostTrackPrediction &pred, const GlobalError &pvError = GlobalError()) const;
42  bool isValid() const { return Base::isValid() && data().isValid(); }
43  bool isTrack() const;
44  bool isVertex() const;
45 
46  void reset() { unsharedData().reset(); }
47  bool linearize(const GhostTrackPrediction &pred, bool initial = false, double lambda = 0.) {
48  return unsharedData().linearize(pred, initial, lambda);
49  }
50  bool linearize(const GhostTrackPrediction &pred, double lambda) { return unsharedData().linearize(pred, lambda); }
51 
52  double flightDistance(const GlobalPoint &point, const GlobalVector &dir) const;
53  double axisDistance(const GlobalPoint &point, const GlobalVector &dir) const;
54  double axisDistance(const GhostTrackPrediction &pred) const;
55 
56  Vertex vertexStateOnGhostTrack(const GhostTrackPrediction &pred, bool withMeasurementError = true) const {
57  return data().vertexStateOnGhostTrack(pred, withMeasurementError);
58  }
59  Vertex vertexStateOnMeasurement(const GhostTrackPrediction &pred, bool withGhostTrackError = true) const {
60  return data().vertexStateOnMeasurement(pred, withGhostTrackError);
61  }
62 
63  double weight() const { return data().weight(); }
64  void setWeight(double weight) { unsharedData().setWeight(weight); }
65  };
66 
67 } // namespace reco
68 
69 #endif // RecoBTag_GhostTrackState_h
TrajectoryStateOnSurface.h
reco::GhostTrackState::isVertex
bool isVertex() const
Definition: GhostTrackState.cc:47
reco::GhostTrackState::isValid
bool isValid() const
Definition: GhostTrackState.h:42
reco::BasicGhostTrackState::CovarianceMatrix
math::Error< 3 >::type CovarianceMatrix
Definition: BasicGhostTrackState.h:26
reco::GhostTrackState::track
const TransientTrack & track() const
Definition: GhostTrackState.cc:56
pos
Definition: PixelAliasList.h:18
reco::GhostTrackState::setWeight
void setWeight(double weight)
Definition: GhostTrackState.h:64
reco::GhostTrackState::isTrack
bool isTrack() const
Definition: GhostTrackState.cc:45
reco::GhostTrackState::cartesianError
GlobalError cartesianError() const
Definition: GhostTrackState.h:37
CovarianceMatrix
Definition: CovarianceMatrix.h:28
reco
fixed size matrix
Definition: AlignmentAlgorithmBase.h:46
reco::GhostTrackState::vertexStateOnGhostTrack
Vertex vertexStateOnGhostTrack(const GhostTrackPrediction &pred, bool withMeasurementError=true) const
Definition: GhostTrackState.h:56
relativeConstraints.error
error
Definition: relativeConstraints.py:53
reco::GhostTrackState::lambdaError
double lambdaError(const GhostTrackPrediction &pred, const GlobalError &pvError=GlobalError()) const
Definition: GhostTrackState.cc:72
reco::GhostTrackState::globalPosition
GlobalPoint globalPosition() const
Definition: GhostTrackState.h:36
reco::GhostTrackState
Definition: GhostTrackState.h:21
GlobalError
GlobalErrorBase< double, ErrorMatrixTag > GlobalError
Definition: GlobalError.h:13
reco::GhostTrackState::lambda
double lambda() const
Definition: GhostTrackState.h:40
reco::GhostTrackState::axisDistance
double axisDistance(const GlobalPoint &point, const GlobalVector &dir) const
Definition: GhostTrackState.cc:64
TrajectoryStateOnSurface
Definition: TrajectoryStateOnSurface.h:16
reco::BasicGhostTrackState::Vertex
std::pair< GlobalPoint, GlobalError > Vertex
Definition: BasicGhostTrackState.h:27
BasicGhostTrackState.h
reco::GhostTrackState::cartesianCovariance
CovarianceMatrix cartesianCovariance() const
Definition: GhostTrackState.h:38
ProxyBase11::unsharedData
T & unsharedData()
Definition: ProxyBase11.h:56
math::GlobalVector
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< float >, ROOT::Math::GlobalCoordinateSystemTag > GlobalVector
vector in glovbal coordinate system
Definition: Vector3D.h:28
ProxyBase11::isValid
bool isValid() const
Definition: ProxyBase11.h:69
GlobalError.h
GlobalErrorBase< double, ErrorMatrixTag >
reco::GhostTrackState::linearize
bool linearize(const GhostTrackPrediction &pred, bool initial=false, double lambda=0.)
Definition: GhostTrackState.h:47
reco::GhostTrackState::Vertex
BasicGhostTrackState::Vertex Vertex
Definition: GhostTrackState.h:26
reco::GhostTrackState::reset
void reset()
Definition: GhostTrackState.h:46
reco::GhostTrackState::linearize
bool linearize(const GhostTrackPrediction &pred, double lambda)
Definition: GhostTrackState.h:50
reco::GhostTrackState::CovarianceMatrix
BasicGhostTrackState::CovarianceMatrix CovarianceMatrix
Definition: GhostTrackState.h:25
reco::TransientTrack
Definition: TransientTrack.h:19
RunInfoPI::state
state
Definition: RunInfoPayloadInspectoHelper.h:16
ProxyBase11
Definition: ProxyBase11.h:23
VertexState
Definition: VertexState.h:13
reco::GhostTrackState::tsos
const TrajectoryStateOnSurface & tsos() const
Definition: GhostTrackState.cc:58
reco::GhostTrackState::Base
BasicGhostTrackState::Proxy Base
Definition: GhostTrackState.h:22
ProxyBase11::data
const T & data() const
Definition: ProxyBase11.h:51
GlobalVector.h
reco::GhostTrackState::GhostTrackState
GhostTrackState(const TransientTrack &track)
Definition: GhostTrackState.cc:34
reco::GhostTrackState::flightDistance
double flightDistance(const GlobalPoint &point, const GlobalVector &dir) const
Definition: GhostTrackState.cc:60
math::GlobalPoint
ROOT::Math::PositionVector3D< ROOT::Math::Cartesian3D< float >, ROOT::Math::GlobalCoordinateSystemTag > GlobalPoint
point in global coordinate system
Definition: Point3D.h:18
reco::GhostTrackPrediction
Definition: GhostTrackPrediction.h:21
point
*vegas h *****************************************************used in the default bin number in original ***version of VEGAS is ***a higher bin number might help to derive a more precise ***grade subtle point
Definition: invegas.h:5
reco::GhostTrackState::weight
double weight() const
Definition: GhostTrackState.h:63
GlobalPoint.h
weight
Definition: weight.py:1
reco::GhostTrackState::vertexStateOnMeasurement
Vertex vertexStateOnMeasurement(const GhostTrackPrediction &pred, bool withGhostTrackError=true) const
Definition: GhostTrackState.h:59
DeadROC_duringRun.dir
dir
Definition: DeadROC_duringRun.py:23