BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
Reconstruction/MdcPatRec/TrkBase/include/TrkBase/TrkView.h
Go to the documentation of this file.
1//--------------------------------------------------------------------------
2// File and Version Information:
3// $Id: TrkView.h,v 1.1.1.1 2005/04/21 06:01:42 zhangy Exp $
4//
5// Description:
6// Class TrkView. Simple struct to hold view information
7// in a bit
8//
9// Environment:
10// Software developed for the BaBar Detector at the SLAC B-Factory.
11//
12// Copyright Infomation;
13// Copyright (C) 2002 Lawrence Berkeley Laboratory
14//
15// Author(s): Dave Brown 10/25/02
16//
17//------------------------------------------------------------------------
18
19#ifndef TRKVIEW_H
20#define TRKVIEW_H
21
22#include "TrkBase/TrkEnums.h"
23
24class TrkView {
25public:
26 // construct from a view
28 // construct from data
29 TrkView( unsigned short& data );
30 // copy and equivalence are OK
31 TrkView( const TrkView& );
33 virtual ~TrkView();
34 // allow adding views
36 // accessor
38 // logical operations
39 bool contains( const TrkView& other ) const;
41 bool operator==( const TrkView& other ) const;
42 bool operator!=( const TrkView& other ) const;
43 // direct accessor for binary comparisons
44 unsigned short viewData() const { return _view; }
45
46private:
47 unsigned short _view;
48 // some useful statics; make them public so they can be used
49public:
50 static const unsigned short _xyview;
51 static const unsigned short _zview;
52 static const unsigned short _bothview;
53};
54
55#endif
TTree * data
void addView(TrkEnums::TrkViewInfo view)
TrkView & operator=(const TrkView &)
TrkView(const TrkView &)
TrkView(unsigned short &data)
bool operator==(const TrkView &other) const
TrkView(TrkEnums::TrkViewInfo view=TrkEnums::noView)
bool contains(TrkEnums::TrkViewInfo view) const
TrkEnums::TrkViewInfo view() const
Definition TrkView.cxx:48
virtual ~TrkView()
bool contains(const TrkView &other) const
bool operator!=(const TrkView &other) const