/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/Muc/MucCalibAlg/MucCalibAlg-00-02-16/src/MucEntityCal.cxx

Go to the documentation of this file.
00001 //------------------------------------------------------------------------------|
00002 //      [File  ]:                       MucEntityCal.cxx                        |
00003 //      [Brief ]:       MUC geometry entity class for calibration               |
00004 //      [Author]:       Xie Yuguang, <ygxie@mail.ihep.ac.cn>                    |
00005 //      [Date  ]:       Mar 28, 2006                                            |
00006 //------------------------------------------------------------------------------|
00007 
00008 #include<iostream>
00009 #include<string>
00010 
00011 #include "MucCalibAlg/MucEntityCal.h"
00012 
00013 using namespace std;
00014 
00015 // Constructor
00016 MucEntityCal::MucEntityCal( int part, int segment, int layer )
00017 {
00018   m_Part      = part;
00019   m_Segment   = segment;
00020   m_Layer     = layer;
00021   m_ID        = 0;              // only 1 entity, default
00022 
00023   MucEntityCal::Init();
00024 }
00025 
00026 MucEntityCal::MucEntityCal( int part, int segment, int layer, int id )
00027 {
00028   m_Part    = part;
00029   m_Segment = segment;
00030   m_Layer   = layer;
00031   m_ID      = id;
00032   
00033   Init();
00034 }
00035 
00036 MucEntityCal::MucEntityCal( const MucEntityCal &other )
00037 {
00038   m_Part    = other.m_Part;
00039   m_Segment = other.m_Segment;
00040   m_Layer   = other.m_Layer;
00041   m_ID      = other.m_ID;
00042   
00043   m_Theta   = other.m_Theta;
00044   m_Thin    = other.m_Thin;
00045   m_W       = other.m_W;
00046   m_H       = other.m_H;
00047   m_L       = other.m_L;
00048   m_Wu      = other.m_Wu;
00049   m_Wd      = other.m_Wd;
00050   m_Area    = other.m_Area;
00051 }
00052 
00053 MucEntityCal& MucEntityCal::operator =( const MucEntityCal &other )
00054 {
00055   if( this == &other) return *this;
00056         
00057   m_Part    = other.m_Part;
00058   m_Segment = other.m_Segment;
00059   m_Layer   = other.m_Layer;
00060   m_ID      = other.m_ID;
00061   
00062   m_Theta   = other.m_Theta;    
00063   m_Thin    = other.m_Thin;     
00064   m_W       = other.m_W;
00065   m_H       = other.m_H;
00066   m_L       = other.m_L;
00067   m_Wu      = other.m_Wu;
00068   m_Wd      = other.m_Wd;
00069   m_Area    = other.m_Area;
00070   
00071   return *this;
00072 }
00073 
00074 // Destructor
00075 MucEntityCal::~MucEntityCal()
00076 {
00077   ;
00078 }
00079 
00080 // Get methods
00081 int MucEntityCal::GetPart()     { return m_Part;    }
00082 int MucEntityCal::GetSegment()  { return m_Segment; }
00083 int MucEntityCal::GetLayer()    { return m_Layer;   }
00084 int MucEntityCal::GetID()       { return m_ID;      }
00085 double MucEntityCal::GetTheta() { return m_Theta;   }
00086 double MucEntityCal::GetRin()   { return m_Rin;     }
00087 double MucEntityCal::GetRout()  { return m_Rout;    }
00088 double MucEntityCal::GetRc()    { return m_Rc;      }
00089 double MucEntityCal::GetThin()  { return m_Thin;    } 
00090 double MucEntityCal::GetW()     { return m_W;       }
00091 double MucEntityCal::GetH()     { return m_H;       }
00092 double MucEntityCal::GetL()     { return m_L;       }
00093 double MucEntityCal::GetWu()    { return m_Wu;      }
00094 double MucEntityCal::GetWd()    { return m_Wd;      }
00095 double MucEntityCal::GetArea()  { return m_Area;    }
00096 
00097 // Set methods
00098 void MucEntityCal::Init()
00099 {
00100   MucEntityCal::SetTheta();
00101   MucEntityCal::SetRin();
00102   MucEntityCal::SetRout();
00103   MucEntityCal::SetRc();
00104   MucEntityCal::SetThin();
00105   MucEntityCal::SetW();
00106   MucEntityCal::SetWu();
00107   MucEntityCal::SetWd();
00108   MucEntityCal::SetH();
00109   MucEntityCal::SetL();
00110   MucEntityCal::SetArea();
00111 }
00112 
00113 void MucEntityCal::SetTheta(){ m_Theta  = 0.;   }
00114 void MucEntityCal::SetRin()  { m_Rin    = 0.;   }
00115 void MucEntityCal::SetRout() { m_Rout   = 0.;   }
00116 void MucEntityCal::SetRc()   { m_Rc     = 0.;   }
00117 void MucEntityCal::SetThin() { m_Thin   = 0.;   }
00118 void MucEntityCal::SetW()    { m_W      = 0.;   }
00119 void MucEntityCal::SetWu()   { m_Wu     = 0.;   }
00120 void MucEntityCal::SetWd()   { m_Wd     = 0.;   }
00121 void MucEntityCal::SetH()    { m_H      = 0.;   }
00122 void MucEntityCal::SetL()    { m_L      = 0.;   }
00123 void MucEntityCal::SetArea() { m_Area   = 0.;   }
00124 
00125 // END
00126 
00127 

Generated on Tue Nov 29 23:12:55 2016 for BOSS_7.0.2 by  doxygen 1.4.7