BOSS 7.0.1
BESIII Offline Software System
Loading...
Searching...
No Matches
Reconstruction/MdcPatRec/TrkBase/TrkBase-00-01-12/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
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; }
45private:
46 unsigned short _view;
47// some useful statics; make them public so they can be used
48public:
49 static const unsigned short _xyview;
50 static const unsigned short _zview;
51 static const unsigned short _bothview;
52};
53
54#endif
TTree * data
void addView(TrkEnums::TrkViewInfo view)
static const unsigned short _bothview
TrkView & operator=(const TrkView &)
Definition: TrkView.cxx:42
TrkView(const TrkView &)
TrkView(unsigned short &data)
static const unsigned short _xyview
bool operator==(const TrkView &other) const
Definition: TrkView.cxx:89
TrkView(TrkEnums::TrkViewInfo view=TrkEnums::noView)
bool contains(TrkEnums::TrkViewInfo view) const
TrkEnums::TrkViewInfo view() const
Definition: TrkView.cxx:70
virtual ~TrkView()
bool contains(const TrkView &other) const
static const unsigned short _zview
bool operator!=(const TrkView &other) const
Definition: TrkView.cxx:94