BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
Mdc/MdcGeomSvc/include/MdcGeomSvc/MdcGeoEnd.h
Go to the documentation of this file.
1// a template header file for a class called "MdcGeoEnd"
2#ifndef MDC_GEO_End_H
3#define MDC_GEO_End_H
4
5#include <iostream>
6#include <string>
7using namespace std;
8
9class MdcGeoEnd {
10 // class used for construct tube and endplate in MC
11public:
12 MdcGeoEnd( void ){};
13 ~MdcGeoEnd( void ){};
14
15public:
16 int Id( void ) const { return fId; }
17 double Length( void ) const { return fLength; } // Full length In Z direction
18 double InnerR( void ) const {
19 return fInnerR;
20 } // From Z axes to bottom surface of those segments.
21 double OutR( void ) const {
22 return fOutR;
23 } // From Z axes to upper surface of those
24 // segments.
25 double Z( void ) const { return fZ; } // Offset value of segment center from Z=0
26 string Name( void ) const { return fName; } // name of segment
27
28public:
29 void Id( int x ) { fId = x; }
30 void Length( double x ) { fLength = x; }
31 void InnerR( double x ) { fInnerR = x; }
32 void OutR( double x ) { fOutR = x; }
33 void Z( double x ) { fZ = x; }
34 void Name( string x ) { fName = x; }
35
36private:
37 int fId;
38 double fLength, fInnerR, fOutR, fZ;
39 string fName;
40};
41
42#endif /* MdcGeoEnd_CLASS */