CGEM BOSS 6.6.5.i
BESIII Offline Software System
Loading...
Searching...
No Matches
TrkBase::Predicates::hasView Class Reference

#include <TrkPredicates.h>

+ Inheritance diagram for TrkBase::Predicates::hasView:

Public Member Functions

 hasView (TrkEnums::TrkViewInfo view=TrkEnums::bothView)
 
bool operator() (const TrkHitOnTrk &h) const
 

Detailed Description

Definition at line 64 of file TrkPredicates.h.

Constructor & Destructor Documentation

◆ hasView()

TrkBase::Predicates::hasView::hasView ( TrkEnums::TrkViewInfo view = TrkEnums::bothView)
inline

Definition at line 66 of file TrkPredicates.h.

66: _view(view) { }

Member Function Documentation

◆ operator()()

bool TrkBase::Predicates::hasView::operator() ( const TrkHitOnTrk & h) const
inline

Definition at line 67 of file TrkPredicates.h.

68 {
69 if (_view==TrkEnums::bothView) return true;
70 TrkEnums::TrkViewInfo hotview = h.whatView();
71 if (h.svtHitOnTrack() != 0) {
72 return _view == hotview;
73 } else if (h.mdcHitOnTrack() != 0) {
74// unfortunately the Mdc calls stereo hits 'both view': I'm re-interpreting it here
75 return _view == TrkEnums::xyView && hotview == _view ||
76 _view == TrkEnums::zView && hotview == TrkEnums::bothView;
77 }
78 return false;
79 }
virtual const SvtHitOnTrack * svtHitOnTrack() const
virtual const MdcHitOnTrack * mdcHitOnTrack() const
virtual TrkEnums::TrkViewInfo whatView() const =0
@ bothView
Definition TrkEnums.h:22

The documentation for this class was generated from the following file: