TrkView Class Reference

#include <TrkView.h>

List of all members.

Public Member Functions

 TrkView (TrkEnums::TrkViewInfo view=TrkEnums::noView)
 TrkView (unsigned short &data)
 TrkView (const TrkView &)
TrkViewoperator= (const TrkView &)
virtual ~TrkView ()
void addView (TrkEnums::TrkViewInfo view)
TrkEnums::TrkViewInfo view () const
bool contains (const TrkView &other) const
bool contains (TrkEnums::TrkViewInfo view) const
bool operator== (const TrkView &other) const
bool operator!= (const TrkView &other) const
unsigned short viewData () const

Static Public Attributes

static const unsigned short _xyview
static const unsigned short _zview
static const unsigned short _bothview

Private Attributes

unsigned short _view


Detailed Description

Definition at line 24 of file TrkView.h.


Constructor & Destructor Documentation

TrkView::TrkView ( TrkEnums::TrkViewInfo  view = TrkEnums::noView  ) 

Definition at line 27 of file TrkView.cxx.

References addView().

00027                                          :
00028   _view(0)
00029 {
00030   addView(view);
00031 }

TrkView::TrkView ( unsigned short &  data  ) 

Definition at line 33 of file TrkView.cxx.

00033                                     :
00034   _view( (pat & _bothview))
00035 {
00036 }

TrkView::TrkView ( const TrkView  ) 

Definition at line 38 of file TrkView.cxx.

00038                                      : _view(other._view)
00039 {}

TrkView::~TrkView (  )  [virtual]

Definition at line 49 of file TrkView.cxx.

00050 {}


Member Function Documentation

void TrkView::addView ( TrkEnums::TrkViewInfo  view  ) 

Definition at line 53 of file TrkView.cxx.

References _bothview, _view, _xyview, _zview, TrkEnums::bothView, TrkEnums::noView, TrkEnums::xyView, and TrkEnums::zView.

Referenced by TrkHotListFull::svtView(), and TrkView().

00053                                          {
00054   switch (view) {
00055   case TrkEnums::noView: default:
00056     break;
00057   case TrkEnums::xyView:
00058     _view |= _xyview;
00059     break;
00060   case TrkEnums::zView:
00061     _view |= _zview;
00062     break;
00063   case TrkEnums::bothView:
00064     _view |= _bothview;
00065     break;
00066   }
00067 }

bool TrkView::contains ( TrkEnums::TrkViewInfo  view  )  const

Definition at line 99 of file TrkView.cxx.

References contains(), and EvtCyclic3::other().

00099                                                  {
00100   TrkView other(view);
00101   return contains(other);
00102 }

bool TrkView::contains ( const TrkView other  )  const

Definition at line 84 of file TrkView.cxx.

References _view, and EvtCyclic3::other().

Referenced by contains(), and TrkHotList::hasSvtView().

00084                                             {
00085   return (other.viewData() & _view) == other.viewData();
00086 }

bool TrkView::operator!= ( const TrkView other  )  const

Definition at line 94 of file TrkView.cxx.

References _view, and EvtCyclic3::other().

00094                                                 {
00095   return other.viewData() !=  _view;
00096 }

TrkView & TrkView::operator= ( const TrkView  ) 

Definition at line 42 of file TrkView.cxx.

References _view, and EvtCyclic3::other().

00042                                         {
00043   if(this != &other){
00044     _view = other._view;
00045   }
00046   return *this;
00047 }

bool TrkView::operator== ( const TrkView other  )  const

Definition at line 89 of file TrkView.cxx.

References _view, and EvtCyclic3::other().

00089                                                {
00090   return other.viewData() == _view;
00091 }

TrkEnums::TrkViewInfo TrkView::view (  )  const

Definition at line 70 of file TrkView.cxx.

References _bothview, _view, _xyview, _zview, TrkEnums::bothView, TrkEnums::noView, TrkEnums::xyView, and TrkEnums::zView.

00070                     {
00071   switch (_view) {
00072   case 0: default:
00073     return TrkEnums::noView;
00074   case _xyview:
00075     return TrkEnums::xyView;
00076   case _zview:
00077     return TrkEnums::zView;
00078   case _bothview:
00079     return TrkEnums::bothView;
00080   } 
00081 }

unsigned short TrkView::viewData (  )  const [inline]

Definition at line 44 of file TrkView.h.

References _view.

00044 { return _view; }


Member Data Documentation

const unsigned short TrkView::_bothview [static]

Definition at line 51 of file TrkView.h.

Referenced by addView(), and view().

unsigned short TrkView::_view [private]

Definition at line 46 of file TrkView.h.

Referenced by addView(), contains(), operator!=(), operator=(), operator==(), view(), and viewData().

const unsigned short TrkView::_xyview [static]

Definition at line 49 of file TrkView.h.

Referenced by addView(), and view().

const unsigned short TrkView::_zview [static]

Definition at line 50 of file TrkView.h.

Referenced by addView(), and view().


Generated on Tue Nov 29 23:36:17 2016 for BOSS_7.0.2 by  doxygen 1.4.7