CGEM BOSS 6.6.5.f
BESIII Offline Software System
Loading...
Searching...
No Matches
Mdc/MdcGeomSvc/MdcGeomSvc-00-01-39/MdcGeomSvc/MdcGeoSuper.h
Go to the documentation of this file.
1// $Id: MdcGeoSuper.h,v 1.2 2015/10/22 06:21:15 wulh 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
10 public:
11 // Constructor.
12 MdcGeoSuper():fId(0),fUpperR(0),fLowerR(0),fType(-1){};
13
14 // Copy and Assignment
15 MdcGeoSuper(const MdcGeoSuper& e):fId(e.Id()),fUpperR(e.UpperR()),fLowerR(e.LowerR()),fType(e.Type()){};
16
18 if(this!=&e)
19 {
20 fId=e.Id();
21 fUpperR=e.UpperR();
22 fLowerR=e.LowerR();
23 fType=e.Type();
24 }
25 return *this;
26 }
27
28 // Destructor
30
31 public: // Extractors
32 int Id(void) const {return fId; };
33 double UpperR(void) const { return fUpperR; };
34 double LowerR(void) const { return fLowerR; };
35 int Type(void) const { return fType; };
36
37 public: // Modifiers
38 int Id(int i) { return fId=i; };
39 double UpperR(double i) { return fUpperR=i; };
40 double LowerR(double i) { return fLowerR=i; };
41 int Type(int i) { return fType=i; };
42
43 private:
44 int fId;
45 double fUpperR;
46 double fLowerR;
47 int fType;
48};
49
50#endif /* MdcGeoSuper_CLASS */
51
MdcGeoSuper & operator=(const MdcGeoSuper &e)