Changeset 8434 for trunk/MagicSoft/Mars/mmovie
- Timestamp:
- 04/23/07 20:11:25 (18 years ago)
- Location:
- trunk/MagicSoft/Mars/mmovie
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mmovie/MMovieWrite.cc
r8411 r8434 78 78 // MBadPixelsCam 79 79 // MMovieData 80 // [MMcEvt] 80 81 // 81 82 ///////////////////////////////////////////////////////////////////////////// … … 97 98 #include "MGeomCam.h" 98 99 #include "MGeomPix.h" 100 101 #include "MMcEvt.hxx" 99 102 100 103 #include "MH.h" … … 279 282 return kFALSE; 280 283 } 284 285 fMC = (MMcEvt*)plist->FindObject("MMcEvt"); 281 286 282 287 return OpenPipe(); … … 592 597 593 598 const Double_t rms = fIn->GetMedianPedestalRms(); 594 595 h.SetMinimum(fIn->GetMax()-(fIn->GetMax()-rms)*99/98); // rms0 596 h.SetMaximum(fIn->GetMax()); 599 const Double_t max = fIn->GetMax(); // scale the lover limit such 600 const Double_t dif = (max-rms)*99/98; // that everything below rms is 601 const Double_t min = max-dif; // displayed as white 602 603 // If the maximum is equal or less the 604 // pedestal rms something must be wrong 605 if (dif<=0) 606 return kFALSE; 607 608 h.SetMinimum(min); 609 h.SetMaximum(max); 597 610 598 611 // ----------------------------------------- … … 763 776 764 777 cout << "MED=" << rms0 << endl; 765 */ 778 */ 779 780 TString s = Form("%d: ", GetNumExecutions()+1); 781 s += "Evt #"; 782 s += fHead->GetDAQEvtNumber(); 783 s += " of "; 784 s += "Run #"; 785 s += fRun->GetRunNumber(); 786 if (fMC) 787 s = fMC->GetDescription(s); 788 766 789 MHCamera h(*fCam); 767 h.SetTitle(Form("%d: Run #%d, Evt %d", GetNumExecutions()+1, 768 fRun->GetRunNumber(), fHead->GetDAQEvtNumber())); 790 h.SetTitle(s); 769 791 h.SetAllUsed(); 770 792 h.SetYTitle("V [au]"); … … 815 837 // 816 838 // Example: 817 // MMovie Prepare.TargetLength: 5 <seconds>818 // MMovie Prepare.NumEvents: 500819 // MMovie Prepare.Threshold: 2 <rms>820 // MMovie Prepare.Filename: movie.mpg839 // MMovieWrite.TargetLength: 5 <seconds> 840 // MMovieWrite.NumEvents: 500 841 // MMovieWrite.Threshold: 2 <rms> 842 // MMovieWrite.Filename: movie.mpg 821 843 // 822 844 Int_t MMovieWrite::ReadEnv(const TEnv &env, TString prefix, Bool_t print) -
trunk/MagicSoft/Mars/mmovie/MMovieWrite.h
r8406 r8434 9 9 class TASImage; 10 10 11 class MMcEvt; 11 12 class MGeomCam; 12 13 class MMovieData; … … 26 27 MBadPixelsCam *fBad; //! Information about bad pixels 27 28 MPedestalCam *fPed; //! Fundamental pedestal for palette and cleaning 29 MMcEvt *fMC; //! Informatio about MC events 28 30 29 31 MMovieData *fIn; //! Input data with splines for all pixels -
trunk/MagicSoft/Mars/mmovie/Makefile
r8397 r8434 21 21 INCLUDES = -I. -I../mbase -I../mraw -I../mgeom -I../mhbase -I../mgui \ 22 22 -I../mcalib -I../msignal -I../mbadpixels -I../mpedestal \ 23 -I../mhist 23 -I../mhist -I../mmc 24 24 25 25 SRCFILES = MMoviePrepare.cc \
Note:
See TracChangeset
for help on using the changeset viewer.