/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
TrackingTools/TrajectoryState/interface/TrajectoryStateClosestToBeamLine.h
58 строк
2 KB
Cms Build
Clang-Format
31 май 2019, 13:16
31 май 2019, 13:16
14da925
Код
Авторство
О чём код?
#ifndef TrajectoryStateClosestToBeamLine_H #define TrajectoryStateClosestToBeamLine_H #include "DataFormats/GeometryVector/interface/GlobalPoint.h" #include "TrackingTools/TrajectoryState/interface/FreeTrajectoryState.h" #include "DataFormats/GeometryCommonDetAlgo/interface/Measurement1D.h" #include "DataFormats/BeamSpot/interface/BeamSpot.h" /** * Trajectory state defined at the point of closest approach (PCA) of the * track to the beamline. It gives also access to the point on the beamline which is * the closest to the track. */ class TrajectoryStateClosestToBeamLine { public: typedef FreeTrajectoryState FTS; TrajectoryStateClosestToBeamLine() : valid(false) {} TrajectoryStateClosestToBeamLine(const FTS& stateAtPCA, const GlobalPoint& pointOnBeamLine, const reco::BeamSpot& beamSpot) : theFTS(stateAtPCA), thePointOnBeamLine(pointOnBeamLine), theBeamSpot(beamSpot), valid(true) {} ~TrajectoryStateClosestToBeamLine() {} /** * State of the track at the PCA to the beamline */ FTS const& trackStateAtPCA() const { return theFTS; } /** * Point on the beamline which is the closest to the track */ GlobalPoint const& beamLinePCA() const { return thePointOnBeamLine; } /** * Transverse impact parameter of the track to the beamline. * It is the transverse distance of the two PCAs. */ Measurement1D transverseImpactParameter() const; /** * The beamline */ reco::BeamSpot const& beamSpot() { return theBeamSpot; } inline bool isValid() const { return valid; } private: FTS theFTS; GlobalPoint thePointOnBeamLine; reco::BeamSpot theBeamSpot; bool valid; }; #endif