- Timestamp:
- 11/13/02 17:03:19 (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/include-Classes/MMcFormat/MMcConfigRunHeader.cc
r1597 r1600 35 35 // 36 36 //////////////////////////////////////////////////////////////////////////// 37 38 #ifndef MARS_MMcConfigRunHeader39 37 #include "MMcConfigRunHeader.h" 40 #endif41 38 42 39 #include <fstream.h> 43 40 #include <iomanip.h> 44 41 42 #include <TArrayF.h> 43 45 44 #include "MLog.h" 46 45 #include "MLogManip.h" 46 47 47 ClassImp(MMcConfigRunHeader); 48 48 … … 53 53 // 54 54 MMcConfigRunHeader::MMcConfigRunHeader(const char *name, const char *title) 55 : fNumMirrors(0), fNumPMTs(0), fIncidentTheta(181), fLightGuidesFactor(181) 55 56 { 56 57 fName = name ? name : "MMcConfigRunHeader"; 57 58 fTitle = title ? title : "Mc Configuration Information"; 58 59 59 fNumMirrors=0; 60 fNumPMTs=0; 61 62 fRadiusMirror=-10.0; 63 fFocalDist=-10.0; 64 fFocalStdev=-10.0; 65 fPointSpread=-10.0; 66 fPointStdev=-10.0; 67 fDevAdjust=-10.0; 68 fBlackSpot=-10.0; 69 fCameraWidth=-10.0; 70 71 fIncidentTheta->Set(181); 72 fLightGuidesFactor->Set(181); 60 fRadiusMirror=-1; 61 fFocalDist =-1; 62 fFocalStdev =-1; 63 fPointSpread =-1; 64 fPointStdev =-1; 65 fDevAdjust =-1; 66 fBlackSpot =-1; 67 fCameraWidth =-1; 73 68 74 69 fMirrors = new TClonesArray("MGeomMirror", 0); … … 77 72 } 78 73 79 // ------------------------------------------------------------------------- 74 // -------------------------------------------------------------------------- 80 75 // 81 // SetMagicDef76 // DESCRIPTION MISSING 82 77 // 83 78 void MMcConfigRunHeader::SetMagicDef(const Float_t radius, … … 101 96 } 102 97 103 void MMcConfigRunHeader::SetLightGuides(TArrayF *theta, TArrayF *factor){ 104 105 if(fIncidentTheta->GetSize()==theta->GetSize() && 106 fLightGuidesFactor->GetSize()==factor->GetSize()){ 107 theta->Copy(*fIncidentTheta); 108 factor->Copy(*fLightGuidesFactor); 109 } 110 else 111 *fLog<<err << "MMcConfigRunHeader::SetLightGuides: fIncidentTheta " 112 <<"and fLightGuidesFactor do not have " 113 <<"size of setting arrays"<<endl; 98 // -------------------------------------------------------------------------- 99 // 100 // DESCRIPTION MISSING 101 // 102 void MMcConfigRunHeader::SetLightGuides(const TArrayF &theta, const TArrayF &factor) 103 { 104 if (fIncidentTheta.GetSize() !=theta.GetSize() || 105 fLightGuidesFactor.GetSize()!=factor.GetSize()) 106 { 107 *fLog<< err << dbginf << "fIncidentTheta or fLightGuidesFactor "; 108 *fLog << "do not have size of setting arrays" << endl; 109 return; 110 } 114 111 112 fIncidentTheta = theta; 113 fLightGuidesFactor = factor; 115 114 } 116 117 118
Note:
See TracChangeset
for help on using the changeset viewer.