CMS 3D CMS Logo

GhostTrack.h
Go to the documentation of this file.
1 #ifndef RecoBTag_GhostTrack_h
2 #define RecoBTag_GhostTrack_h
3 
4 #include <vector>
5 
8 
10 
13 
14 namespace reco {
15 
16  class GhostTrack {
17  public:
20  const std::vector<GhostTrackState> &states,
21  double ndof,
22  double chi2)
24 
27  const std::vector<TransientTrack> &tracks,
28  double ndof,
29  double chi2,
30  const std::vector<float> &weights = std::vector<float>(),
31  const GlobalPoint &origin = GlobalPoint(),
32  bool withOrigin = false);
33 
34  GhostTrack(const Track &ghostTrack,
35  const std::vector<TransientTrack> &tracks,
36  const std::vector<float> &weights = std::vector<float>(),
38  const GlobalPoint &origin = GlobalPoint(),
39  bool withOrigin = false);
40 
41  const GhostTrackPrediction &prediction() const { return prediction_; }
42  const GhostTrackPrediction &prior() const { return prior_; }
43 
44  const std::vector<GhostTrackState> &states() const { return states_; }
45  double ndof() const { return ndof_; }
46  double chi2() const { return chi2_; }
47 
48  operator Track() const { return prediction_.track(ndof_, chi2_); }
49 
50  private:
51  void initStates(const std::vector<TransientTrack> &tracks, const std::vector<float> &weights, double offset);
52 
55  std::vector<GhostTrackState> states_;
56  double ndof_;
57  double chi2_;
58  };
59 
60 } // namespace reco
61 
62 #endif // RecoBTag_GhostTrack_h
reco::GhostTrack::prior_
GhostTrackPrediction prior_
Definition: GhostTrack.h:54
GhostTrackPrediction.h
reco::GhostTrack::states_
std::vector< GhostTrackState > states_
Definition: GhostTrack.h:55
reco::GhostTrack::states
const std::vector< GhostTrackState > & states() const
Definition: GhostTrack.h:44
reco::GhostTrack::ndof
double ndof() const
Definition: GhostTrack.h:45
GhostTrackState.h
reco
fixed size matrix
Definition: AlignmentAlgorithmBase.h:46
TransientTrack.h
reco::GhostTrackPrediction::track
Track track(double ndof=0., double chi2=0.) const
Definition: GhostTrackPrediction.cc:189
reco::GhostTrack::chi2_
double chi2_
Definition: GhostTrack.h:57
reco::GhostTrack::initStates
void initStates(const std::vector< TransientTrack > &tracks, const std::vector< float > &weights, double offset)
Definition: GhostTrack.cc:14
TrackFwd.h
reco::GhostTrack::prediction
const GhostTrackPrediction & prediction() const
Definition: GhostTrack.h:41
HLT_FULL_cff.weights
weights
Definition: HLT_FULL_cff.py:99207
reco::Track
Definition: Track.h:27
GlobalPoint
Global3DPoint GlobalPoint
Definition: GlobalPoint.h:10
tracks
const uint32_t *__restrict__ const HitContainer *__restrict__ TkSoA *__restrict__ tracks
Definition: CAHitNtupletGeneratorKernelsImpl.h:176
reco::GhostTrack::chi2
double chi2() const
Definition: GhostTrack.h:46
reco::GhostTrack
Definition: GhostTrack.h:16
reco::GhostTrack::ndof_
double ndof_
Definition: GhostTrack.h:56
reco::GhostTrack::GhostTrack
GhostTrack(const GhostTrackPrediction &prior, const GhostTrackPrediction &prediction, const std::vector< GhostTrackState > &states, double ndof, double chi2)
Definition: GhostTrack.h:18
reco::GhostTrack::prior
const GhostTrackPrediction & prior() const
Definition: GhostTrack.h:42
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
hltrates_dqm_sourceclient-live_cfg.offset
offset
Definition: hltrates_dqm_sourceclient-live_cfg.py:82
GlobalPoint.h
reco::GhostTrack::prediction_
GhostTrackPrediction prediction_
Definition: GhostTrack.h:53