BOSS 7.0.3
BESIII Offline Software System
Loading...
Searching...
No Matches
InstallArea/include/MdcGeomSvc/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
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)