BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
Mdc/MdcGeomSvc/include/MdcGeomSvc/MdcGeoSuper.h
Go to the documentation of this file.
1// $Id: MdcGeoSuper.h,v 1.1.1.1 2005/02/25 09:13:20 codeman Exp $ // -*-c++-*-
2// header file for a class called "MdcGeoSuper"
3#ifndef MDC_GEO_SUPER_H
4#define MDC_GEO_SUPER_H
5
6#include <iostream>
7
8class MdcGeoSuper {
9
10public:
11 // Constructor.
12 MdcGeoSuper() : fId( 0 ), fUpperR( 0 ), fLowerR( 0 ), fType( -1 ){};
13
14 // Copy and Assignment
16 : fId( e.Id() ), fUpperR( e.UpperR() ), fLowerR( e.LowerR() ), fType( e.Type() ){};
17
19 if ( this != &e )
20 {
21 fId = e.Id();
22 fUpperR = e.UpperR();
23 fLowerR = e.LowerR();
24 fType = e.Type();
25 }
26 return *this;
27 }
28
29 // Destructor
31
32public: // Extractors
33 int Id( void ) const { return fId; };
34 double UpperR( void ) const { return fUpperR; };
35 double LowerR( void ) const { return fLowerR; };
36 int Type( void ) const { return fType; };
37
38public: // Modifiers
39 int Id( int i ) { return fId = i; };
40 double UpperR( double i ) { return fUpperR = i; };
41 double LowerR( double i ) { return fLowerR = i; };
42 int Type( int i ) { return fType = i; };
43
44private:
45 int fId;
46 double fUpperR;
47 double fLowerR;
48 int fType;
49};
50
51#endif /* MdcGeoSuper_CLASS */
MdcGeoSuper & operator=(const MdcGeoSuper &e)