Changeset 5144 for trunk/MagicSoft
- Timestamp:
- 09/28/04 18:30:48 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r5143 r5144 84 84 * msignal/MArrivalTime.cc: 85 85 - fixed GetPixelContent 86 87 * mastro/MAstroCamera.cc: 88 - replaced "unknown" by "n/a" 89 90 * mbase/MDirIter.[h,cc]: 91 - added Sort function (not yet fully tested) 92 93 * mgeom/MGeomCam.cc: 94 - removed automatic setting of ReadyToSave in constructor 95 PLEASE contact me if you have trouble with this 96 97 * mraw/MRawFileRead.cc: 98 - SetReadyToSave for run-header after reading 99 100 * msignal/MExtractSlidingWindow.cc: 101 - fixed ReInit-output 86 102 87 103 -
trunk/MagicSoft/Mars/mastro/MAstroCamera.cc
r4715 r5144 299 299 // Otherwise a new object is created. 300 300 // 301 // FIXME: Add Project functionand change treating MHCamera and 302 // TH2D accordingly 303 // 301 304 void MAstroCamera::AddPrimitives(TString o) 302 305 { … … 469 472 // Do _not_ remove this, name needs to be 470 473 // transferred to the starpos. 471 TString name = radec->GetName(); 472 if (name.Length()==0) { 473 starpos->SetName("unknown"); 474 } else { 475 starpos->SetName(radec->GetName()); 476 } 474 const TString name = radec->GetName(); 475 starpos->SetName(name.IsNull() ? "n/a" : name.Data()); 477 476 478 477 const TVector3 spot = fMirror0->GetReflection(star, fGeom->GetCameraDist())*1000; -
trunk/MagicSoft/Mars/mbase/MDirIter.cc
r4966 r5144 350 350 } 351 351 } 352 353 // -------------------------------------------------------------------------- 354 // 355 // Loop over all contents (files). Sort the files alphabetically. 356 // Delete the contents of this DirIter and add all sorted files 357 // to this DirIter. 358 // 359 void MDirIter::Sort() 360 { 361 MDirIter Next(*this); 362 363 TList l; 364 l.SetOwner(); 365 366 TString name; 367 while (!(name=Next()).IsNull()) 368 l.Add(new TNamed(name.Data(), "")); 369 370 l.Sort(); 371 372 fList.Delete(); 373 Close(); 374 fFilter = ""; 375 376 TIter NextN(&l); 377 TObject *o=0; 378 while ((o=NextN())) 379 AddDirectory(o->GetName()); 380 } -
trunk/MagicSoft/Mars/mbase/MDirIter.h
r4966 r5144 48 48 } 49 49 50 void Sort(); 51 50 52 Int_t AddDirectory(const char *dir, const char *filter="", Int_t recursive=0); 51 53 void Add(const MDirIter &iter); -
trunk/MagicSoft/Mars/mgeom/MGeomCam.cc
r3666 r5144 94 94 for (UInt_t i=0; i<npix; i++) 95 95 fPixels[i] = new MGeomPix; 96 97 SetReadyToSave();98 96 } 99 97 -
trunk/MagicSoft/Mars/mraw/MRawFileRead.cc
r4738 r5144 202 202 fNumEvents += fRawRunHeader->GetNumEvents(); 203 203 204 fRawRunHeader->SetReadyToSave(); 205 204 206 // 205 207 // Give the run header information to the 'sub-classes' -
trunk/MagicSoft/Mars/msignal/MExtractSlidingWindow.cc
r4899 r5144 17 17 ! 18 18 ! Author(s): Thomas Bretz, 02/2004 <mailto:tbretz@astro.uni-wuerzburg.de> 19 ! 20 ! Markus Gaug, 04/2004 <mailto:markus@ifae.es>19 ! Author(s): Hendrik Bartko, 01/2004 <mailto:hbartko@mppmu.mpg.de> 20 ! Author(s): Markus Gaug, 04/2004 <mailto:markus@ifae.es> 21 21 ! 22 22 ! Copyright: MAGIC Software Development, 2000-2004 … … 130 130 131 131 132 *fLog << endl;133 *fLog << inf << GetDescriptor() << ":Taking " << fNumHiGainSamples134 << " HiGain samples from a windowstarting with slice " << (Int_t)fHiGainFirst132 *fLog << dec << endl; 133 *fLog << inf << "Taking " << fNumHiGainSamples 134 << " HiGain samples starting with slice " << (Int_t)fHiGainFirst 135 135 << " to " << (Int_t)(fHiGainLast+fHiLoLast) << " incl" << endl; 136 *fLog << inf << GetDescriptor() << ":Taking " << fNumLoGainSamples137 << " LoGain samples from a windowstarting with slice " << (Int_t)fLoGainFirst136 *fLog << inf << "Taking " << fNumLoGainSamples 137 << " LoGain samples starting with slice " << (Int_t)fLoGainFirst 138 138 << " to " << (Int_t)fLoGainLast << " incl" << endl; 139 139
Note:
See TracChangeset
for help on using the changeset viewer.