Changeset 1600 for trunk/MagicSoft/include-Classes/MMcFormat
- Timestamp:
- 11/13/02 17:03:19 (22 years ago)
- Location:
- trunk/MagicSoft/include-Classes/MMcFormat
- Files:
-
- 3 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 -
trunk/MagicSoft/include-Classes/MMcFormat/MMcConfigRunHeader.h
r1596 r1600 5 5 #include <TClonesArray.h> 6 6 #endif 7 #ifndef ROOT_TArrayF 8 #include <TArrayF.h> 9 #endif 7 10 8 #ifndef MARS_MGeomMirror 11 9 #include "MGeomMirror.h" 12 10 #endif 13 14 11 #ifndef MARS_MGeomPMT 15 12 #include "MGeomPMT.h" … … 23 20 private: 24 21 // Mirror Information 25 UShort_t 22 UShort_t fNumMirrors; 26 23 Float_t fRadiusMirror;// [cm] Radius of a single mirror 27 24 TClonesArray *fMirrors; // FIXME: Change TClonesArray away from a pointer? … … 42 39 43 40 // Light Guides Information 44 TArrayF *fIncidentTheta; // [deg]45 TArrayF *fLightGuidesFactor;// []41 TArrayF fIncidentTheta; // [deg] 42 TArrayF fLightGuidesFactor;// [] 46 43 47 44 public: … … 51 48 void SetMagicDef(Float_t radius, Float_t focal, Float_t stdfocal, Float_t point, 52 49 Float_t stdpoint, Float_t adjust, Float_t spot, Float_t camwidth); 53 void SetLightGuides( TArrayF *theta, TArrayF *factor);50 void SetLightGuides(const TArrayF &theta, const TArrayF &factor); 54 51 55 52 UInt_t GetNumMirror() const { return fNumMirrors; } -
trunk/MagicSoft/include-Classes/MMcFormat/McLinkDef.h
r1243 r1600 10 10 #pragma link C++ class MMcTrigHeader+; 11 11 #pragma link C++ class MMcFadcHeader+; 12 #pragma link C++ class MMcConfigRunHeader+; 12 13 13 14 #endif
Note:
See TracChangeset
for help on using the changeset viewer.