Ignore:
Timestamp:
04/23/07 20:11:25 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mmovie
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mmovie/MMovieWrite.cc

    r8411 r8434  
    7878//   MBadPixelsCam
    7979//   MMovieData
     80//   [MMcEvt]
    8081//
    8182/////////////////////////////////////////////////////////////////////////////
     
    9798#include "MGeomCam.h"
    9899#include "MGeomPix.h"
     100
     101#include "MMcEvt.hxx"
    99102
    100103#include "MH.h"
     
    279282        return kFALSE;
    280283    }
     284
     285    fMC = (MMcEvt*)plist->FindObject("MMcEvt");
    281286
    282287    return OpenPipe();
     
    592597
    593598    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);
    597610
    598611    // -----------------------------------------
     
    763776
    764777    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
    766789    MHCamera h(*fCam);
    767     h.SetTitle(Form("%d: Run #%d,  Evt %d", GetNumExecutions()+1,
    768                     fRun->GetRunNumber(), fHead->GetDAQEvtNumber()));
     790    h.SetTitle(s);
    769791    h.SetAllUsed();
    770792    h.SetYTitle("V [au]");
     
    815837//
    816838// Example:
    817 //   MMoviePrepare.TargetLength: 5 <seconds>
    818 //   MMoviePrepare.NumEvents: 500
    819 //   MMoviePrepare.Threshold: 2 <rms>
    820 //   MMoviePrepare.Filename: movie.mpg
     839//   MMovieWrite.TargetLength: 5 <seconds>
     840//   MMovieWrite.NumEvents: 500
     841//   MMovieWrite.Threshold: 2 <rms>
     842//   MMovieWrite.Filename: movie.mpg
    821843//
    822844Int_t MMovieWrite::ReadEnv(const TEnv &env, TString prefix, Bool_t print)
  • trunk/MagicSoft/Mars/mmovie/MMovieWrite.h

    r8406 r8434  
    99class TASImage;
    1010
     11class MMcEvt;
    1112class MGeomCam;
    1213class MMovieData;
     
    2627    MBadPixelsCam *fBad;   //! Information about bad pixels
    2728    MPedestalCam  *fPed;   //! Fundamental pedestal for palette and cleaning
     29    MMcEvt        *fMC;    //! Informatio about MC events
    2830
    2931    MMovieData    *fIn;    //! Input data with splines for all pixels
  • trunk/MagicSoft/Mars/mmovie/Makefile

    r8397 r8434  
    2121INCLUDES = -I. -I../mbase -I../mraw -I../mgeom -I../mhbase -I../mgui \
    2222           -I../mcalib -I../msignal -I../mbadpixels -I../mpedestal   \
    23            -I../mhist
     23           -I../mhist -I../mmc
    2424
    2525SRCFILES = MMoviePrepare.cc \
Note: See TracChangeset for help on using the changeset viewer.