00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00033
00034
00044
00045
00046 #include "database/MJDatabaseElement.hh"
00047 #include "database/MJDatabase.hh"
00048 #include <iostream>
00049
00050
00051
00052
00053 #include "database/MJDatabaseMEGACrystal.hh"
00054
00055
00056
00057 MJDatabaseMEGACrystal::MJDatabaseMEGACrystal()
00058 {
00059
00060 }
00061 MJDatabaseMEGACrystal::MJDatabaseMEGACrystal(string name, int id,
00062 string matName,
00063 double h, double Ir, double Or,
00064 double coreD, double rot[],
00065 double Idlw, double Odlw, char t)
00066 : _name(name),
00067 _id(id),
00068 _matName(matName),
00069 _height(h),
00070 _innerR(Ir),
00071 _outerR(Or),
00072 _coreDepth(coreD),
00073 _innerDeadLayerW(Idlw),
00074 _outerDeadLayerW(Odlw),
00075 _diodType(t)
00076 {
00077 _material = MJDatabase::GetElement(matName);
00078
00079 }
00080
00081 MJDatabaseMEGACrystal::MJDatabaseMEGACrystal(const MJDatabaseMEGACrystal & other)
00082 {
00083
00084 }
00085
00086 MJDatabaseMEGACrystal::~MJDatabaseMEGACrystal()
00087 {
00088 }
00089 void
00090 MJDatabaseMEGACrystal::print()
00091 {
00092 cout << "***** MEGA Crystal Prperties *****" << endl
00093 <<"Name : " << GetIdentity() << endl
00094 <<"Index : " << GetIndex() << endl
00095 <<"Material name : " << GetMaterialName() << endl
00096 <<"Height : " << GetHeight() << endl
00097 <<"Inner radius : " << GetInnerR() << endl
00098 <<"Outer radius : " << GetOuterR() << endl
00099 <<"Core depth : " << GetCoreDepth() << endl
00100 <<"Inner dead layer : " << GetInnerDeadLayerWidth() << endl
00101 <<"Outer dead layer : " << GetOuterDeadLayerWidth() << endl
00102 <<"Diod type : " << GetDiodType() << endl
00103 <<"Material : " << endl;
00104
00105 }
00106