BOSS 7.0.4
BESIII Offline Software System
Loading...
Searching...
No Matches
Mdc/MdcGeomSvc/MdcGeomSvc-00-01-37/MdcGeomSvc/MdcGeoMisc.h
Go to the documentation of this file.
1// $Id: MdcGeoMisc.h,v 1.2 2006/11/14 02:33:21 panmh Exp $ // -*-c++-*-
2// a template header file for a class called "MdcGeoMisc"
3#ifndef MDC_GEO_MISC_H
4#define MDC_GEO_MISC_H
5
6#include <iostream>
7
8class MdcGeoMisc {
9
10 public:
11 // Constructor.
12 MdcGeoMisc():fOuterR(0),fInnerR(0),fOuterTk(0),fInnerTk(0),fNSWire(0),fNFWire(0),
13 fLayerNo(0),fWireNo(0),fSLayerNo(0),fSWireR(0),fFWireR(0){};
14
15 // Copy and Assignment
16 MdcGeoMisc(const MdcGeoMisc& e):fOuterR(e.OuterR()),fInnerR(e.InnerR()),fOuterTk(e.OuterTk()),fInnerTk(e.InnerTk()),fNSWire(e.NSWire()),fNFWire(e.NFWire()),
17 fLayerNo(e.LayerNo()),fWireNo(e.WireNo()),fSLayerNo(e.SLayerNo()),fSWireR(e.SWireR()),fFWireR(e.FWireR()){};
18
20 if(this!=&e)
21 {
22 fOuterR=e.OuterR();
23 fInnerR=e.InnerR();
24 fOuterTk=e.OuterTk();
25 fInnerTk=e.InnerTk();
26 fNSWire=e.NSWire();
27 fNFWire=e.NFWire();
28
29 fLayerNo=e.LayerNo();
30 fWireNo=e.WireNo();
31 fSLayerNo=e.SLayerNo();
32 fSWireR=e.SWireR();
33 fFWireR=e.FWireR();
34 }
35 return *this;
36 }
37
38 // Destructor
40
41 public: // Extractors
42 double OuterR(void) const { return fOuterR; };
43 double InnerR(void) const { return fInnerR; };
44 double OuterTk(void) const { return fOuterTk; };
45 double InnerTk(void) const { return fInnerTk; };
46 int NSWire(void) const { return fNSWire; };
47 int NFWire(void) const { return fNFWire; };
48
49 int LayerNo(void) const { return fLayerNo;}
50 int WireNo(void) const { return fWireNo;}
51 int SLayerNo(void) const { return fSLayerNo;}
52 double SWireR(void) const { return fSWireR; }
53 double FWireR(void) const { return fFWireR; }
54
55
56 public: // Modifiers
57 double OuterR(double i) { return fOuterR=i; };
58 double InnerR(double i) { return fInnerR=i; };
59 double OuterTk(double i) { return fOuterTk=i; };
60 double InnerTk(double i) { return fInnerTk=i; };
61 int NSWire(int i) { return fNSWire=i; };
62 int NFWire(int i) { return fNFWire=i; };
63
64 int LayerNo(int i) { return fLayerNo=i;}
65 int WireNo(int i) { return fWireNo=i;}
66 int SLayerNo(int i) { return fSLayerNo=i;}
67 double SWireR(double i) { return fSWireR=i;}
68 double FWireR(double i) { return fFWireR=i;}
69
70
71 private:
72 double fOuterR; //radius of outer cylinder (mm)
73 double fInnerR; //radius of inner cylinder (mm)
74 double fOuterTk; //thickness of outer wall (mm)
75 double fInnerTk; //thickness of inner wall (mm)
76 int fNSWire; //# of sense wires
77 int fNFWire; //# of field wires
78
79 int fLayerNo; // Total layers number of Mdc
80 int fWireNo; // Total wires number of Mdc
81 int fSLayerNo; // Total signal layers number
82 double fSWireR; //radius of signalwire (micrometer)
83 double fFWireR; //radius of fieldwire (micrometer)
84};
85
86#endif /* MdcGeoMisc_CLASS */
87
88
MdcGeoMisc & operator=(const MdcGeoMisc &e)