BOSS 7.0.8
BESIII Offline Software System
Loading...
Searching...
No Matches
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&);
32 TrkView& operator =(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; }
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
virtual ~TrkView()
Definition: TrkView.cxx:49
static const unsigned short _bothview
Definition: TrkView.h:51
void addView(TrkEnums::TrkViewInfo view)
Definition: TrkView.cxx:53
TrkView & operator=(const TrkView &)
Definition: TrkView.cxx:42
static const unsigned short _xyview
Definition: TrkView.h:49
unsigned short viewData() const
Definition: TrkView.h:44
bool operator==(const TrkView &other) const
Definition: TrkView.cxx:89
static const unsigned short _zview
Definition: TrkView.h:50
TrkEnums::TrkViewInfo view() const
Definition: TrkView.cxx:70
bool contains(const TrkView &other) const
Definition: TrkView.cxx:84
bool operator!=(const TrkView &other) const
Definition: TrkView.cxx:94
TrkViewInfo
Definition: TrkEnums.h:22
@ noView
Definition: TrkEnums.h:22