Changeset 8411 for trunk


Ignore:
Timestamp:
04/18/07 10:00:04 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r8410 r8411  
    1919                                                 -*-*- END OF LINE -*-*-
    2020
     21 2007/04/18 Thomas Bretz
     22
     23   * mjobs/Makefile:
     24     - added path to mmovie
     25
     26   * mmovie/MMoviePrepare.[h,cc]:
     27     - changed access to MCalibrateData to access to MCalibConstCam
     28
     29   * mmovie/MMovieWrite.cc:
     30     - fixed some typos in comments
     31
     32
     33
    2134 2007/04/17 Stefan Ruegamer
    2235
     
    2437     - modified the ccfile search to not find ccfiles twice if one
    2538       runnumber is part of a higher runnumber (as 23456 and 223456)
     39
    2640   * datacenter/scripts/movingrawfiles:
    2741     - added moving of rawfiles from the directory /magic/datacenter/
    2842       fromtape/rawdata/muxdata, which is the default rawfile folder of
    2943       the new muxtapes, to /magic/datacenter/fromtape/rawdata
     44
    3045   * datacenter/scripts/runcallisto:
    3146     - added condition for the linking of the .rc-file for muxdata
     47
    3248   * datacenter/scripts/makecallistolinks:
    3349     - commented reason2 out
  • trunk/MagicSoft/Mars/mjobs/Makefile

    r7152 r8411  
    2323           -I../mbadpixels -I../msignal -I../mraw -I../mpedestal -I../mtools \
    2424           -I../mimage -I../mpointing -I../mastro -I../mfbase -I../mhvstime \
    25            -I../mtrigger -I../mmuon -I../mmc
     25           -I../mtrigger -I../mmuon -I../mmc -I../mmovie
    2626
    2727SRCFILES = MSequence.cc \
  • trunk/MagicSoft/Mars/mmovie/MMoviePrepare.cc

    r8406 r8411  
    4949//   MPedestalSubtractedEvt
    5050//   MPedestalFundamental [MPedestalCam]
    51 //   MCalibrateData
     51//   MCalibConstCam
    5252//   MCalibrationRelTimeCam
    5353//   MRawRunHeader
     
    7575#include "MPedestalPix.h"
    7676
     77#include "MCalibConstCam.h"
     78#include "MCalibConstPix.h"
    7779
    7880#include "MCalibrationRelTimeCam.h"
     
    8284#include "MMovieData.h"
    8385#include "MRawRunHeader.h"
    84 #include "MCalibrateData.h"
    8586#include "MPedestalSubtractedEvt.h"
    8687
     
    143144        return kFALSE;
    144145    }
    145     fCal = (MCalibrateData*)plist->FindTaskListWithTask("MCalibrateData")->FindTask("MCalibrateData");
     146    fCal = (MCalibConstCam*)plist->FindObject("MCalibConstCam");
    146147    if (!fCal)
    147148    {
    148         *fLog << err << "MCalibrateData not found ... aborting." << endl;
     149        *fLog << err << "MCalibConstCam not found ... aborting." << endl;
    149150        return kFALSE;
    150151    }
     
    193194Double_t MMoviePrepare::GetMedianCalibConst() const
    194195{
    195     const MArrayF &calco = fCal->GetCalibConsts();
    196 
    197196    Int_t n = fCam->GetNumPixWithAidx(0);
    198197
     
    201200    for (UInt_t i=0; i<fCam->GetNumPixels(); i++)
    202201        if ((*fCam)[i].GetAidx()==0)
    203             arr[--n] = calco[i];
     202            arr[--n] = (*fCal)[i].GetCalibConst();
    204203
    205204    return TMath::Median(arr.GetSize(), arr.GetArray());
     
    246245
    247246    // For invalid calib constants we can use the sector average
    248     const MArrayF &calco = fCal->GetCalibConsts();
    249247    const UShort_t npix  = fEvt->GetNumPixels();
    250248    const Double_t slope = 1./GetMedianCalibConst();
     
    258256
    259257        const Float_t  offset = tpix.GetTimeOffset();
    260         const Float_t  cal    = calco[p];
     258        const Float_t  cal    = (*fCal)[p].GetCalibConst();
    261259        const Float_t *ptr    = fEvt->GetSamples(p)+fFirstSlice;
    262260        const Float_t  scale  = cal*slope*fCam->GetPixRatio(p);
     
    290288//
    291289// Example:
    292 //   MMoviewPrepare.FirstSlice: 10
    293 //   MMoviewPrepare.LastSlice:  50
     290//   MMoviePrepare.FirstSlice: 10
     291//   MMoviePrepare.LastSlice:  50
    294292//
    295293Int_t MMoviePrepare::ReadEnv(const TEnv &env, TString prefix, Bool_t print)
  • trunk/MagicSoft/Mars/mmovie/MMoviePrepare.h

    r8406 r8411  
    1111class MPedestalCam;
    1212class MRawRunHeader;
    13 class MCalibrateData;
     13class MCalibConstCam;
    1414class MCalibrationRelTimeCam;
    1515class MPedestalSubtractedEvt;
     
    1919private:
    2020    MPedestalSubtractedEvt *fEvt;    //! Slices with pedestal subtracted
    21     MCalibrateData         *fCal;    //! Calibration constants signal
     21    MCalibConstCam         *fCal;    //! Calibration constants signal
    2222    MCalibrationRelTimeCam *fRel;    //! Calibration constants time
    2323    MRawRunHeader          *fRun;    //! Run Header (sampling frequency)
  • trunk/MagicSoft/Mars/mmovie/MMovieWrite.cc

    r8406 r8411  
    815815//
    816816// Example:
    817 //   MMoviewPrepare.TargetLength: 5 <seconds>
    818 //   MMoviewPrepare.NumEvents: 500
    819 //   MMoviewPrepare.Threshold: 2 <rms>
    820 //   MMoviewPrepare.Filename: movie.mpg
     817//   MMoviePrepare.TargetLength: 5 <seconds>
     818//   MMoviePrepare.NumEvents: 500
     819//   MMoviePrepare.Threshold: 2 <rms>
     820//   MMoviePrepare.Filename: movie.mpg
    821821//
    822822Int_t MMovieWrite::ReadEnv(const TEnv &env, TString prefix, Bool_t print)
Note: See TracChangeset for help on using the changeset viewer.