Changeset 842 for trunk/MagicSoft/Mars/manalysis
- Timestamp:
- 06/12/01 13:01:20 (23 years ago)
- Location:
- trunk/MagicSoft/Mars/manalysis
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/manalysis/MCT1ReadAscii.h
r716 r842 13 13 { 14 14 private: 15 TString fFileName; // the file name of the string16 15 ifstream *fIn; // the inputfile 17 16 MCerPhotEvt *fNphot; // the data container for all data. -
trunk/MagicSoft/Mars/manalysis/MCerPhotCalc.cc
r764 r842 113 113 } 114 114 115 fCerPhotEvt->SetHasChanged(); 116 115 117 return kTRUE; 116 118 } -
trunk/MagicSoft/Mars/manalysis/MHillas.cc
r765 r842 36 36 37 37 #include <math.h> 38 #include <fstream.h> 38 39 39 40 #include <TEllipse.h> … … 51 52 // Default constructor. 52 53 // 53 MHillas::MHillas(const char *name, const char *title) : 54 fAlpha(0), fTheta(0), fWidth(0), fLength(0), fSize(0), fDist(0), fEllipse(NULL) 54 MHillas::MHillas(const char *name, const char *title) : fEllipse(NULL) 55 55 { 56 56 *fName = name ? name : "MHillas"; 57 57 *fTitle = title ? title : "Storage container for Hillas parameter of one event"; 58 58 59 Reset(); 59 60 // FIXME: Initialization of values missing 60 61 } … … 66 67 MHillas::~MHillas() 67 68 { 69 Clear(); 70 } 71 72 void MHillas::Reset() 73 { 74 fAlpha = 0; 75 fTheta = 0; 76 fWidth = 0; 77 fLength = 0; 78 fSize = 0; 79 fDist = 0; 80 68 81 Clear(); 69 82 } … … 271 284 if (xmean<0) fTheta += kPI; // [rad] 272 285 286 SetHasChanged(); 287 273 288 return kTRUE; 274 289 } 290 291 void MHillas::AsciiRead(ifstream &fin) 292 { 293 fin >> fAlpha; 294 fin >> fTheta; 295 fin >> fWidth; 296 fin >> fLength; 297 fin >> fSize; 298 fin >> fDist; 299 } 300 301 void MHillas::AsciiWrite(ofstream &fout) const 302 { 303 fout << fAlpha << " "; 304 fout << fTheta << " "; 305 fout << fWidth << " "; 306 fout << fLength << " "; 307 fout << fSize << " "; 308 fout << fDist << endl; 309 } -
trunk/MagicSoft/Mars/manalysis/MHillas.h
r749 r842 27 27 ~MHillas(); 28 28 29 void Reset(); 30 29 31 Bool_t Calc(MGeomCam &geom, MCerPhotEvt &pix); 30 32 … … 42 44 Float_t GetTheta() const { return fTheta; } 43 45 46 void AsciiRead(ifstream &fin); 47 void AsciiWrite(ofstream &fout) const; 48 44 49 ClassDef(MHillas, 1) // Storage Container for Hillas Parameter 45 50 };
Note:
See TracChangeset
for help on using the changeset viewer.