Changeset 8439


Ignore:
Timestamp:
04/24/07 13:24:05 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/callisto_Dec04Jan05.rc

    r8415 r8439  
    469469#MMoviePrepare.FirstSlice: 0
    470470#MMoviePrepare.LastSlice:  15
    471 #MMoviePrepare.TargetLength: 5
    472 #MMoviePrepare.NumEvents: 500
    473 #MMoviePrepare.Threshold: 3
    474 #MMoviePrepare.Filename: filename.mpg
    475471#MovieFilter.Condition: MMovieData.fMax>5*MMovieData.fMedianPedestalRms
    476472#MImgCleanStd.CleanLevel1: 8.0
     
    478474#MFEvtNumber.FileName: ganymed00001218.root
    479475#MFEvtNumber.Selector: ThetaSquared.fVal<0.04 && DataType.fVal>0.5
     476#MMovieWrite.TargetLength: 5
     477#MMovieWrite.NumEvents: 500
     478#MMovieWrite.Threshold: 3
     479#MMovieWrite.FileName: filename.mpg
    480480
    481481# -------------------------------------------------------------------------
  • trunk/MagicSoft/Mars/callisto_MarApr05.rc

    r8415 r8439  
    465465#MMoviePrepare.FirstSlice: 0
    466466#MMoviePrepare.LastSlice:  15
    467 #MMoviePrepare.TargetLength: 5
    468 #MMoviePrepare.NumEvents: 500
    469 #MMoviePrepare.Threshold: 3
    470 #MMoviePrepare.Filename: filename.mpg
    471467#MovieFilter.Condition: MMovieData.fMax>5*MMovieData.fMedianPedestalRms
    472468#MImgCleanStd.CleanLevel1: 8.0
     
    474470#MFEvtNumber.FileName: ganymed00001218.root
    475471#MFEvtNumber.Selector: ThetaSquared.fVal<0.04 && DataType.fVal>0.5
     472#MMovieWrite.TargetLength: 5
     473#MMovieWrite.NumEvents: 500
     474#MMovieWrite.Threshold: 3
     475#MMovieWrite.FileName: filename.mpg
    476476
    477477# -------------------------------------------------------------------------
  • trunk/MagicSoft/Mars/callisto_mux.rc

    r8415 r8439  
    470470#MMoviePrepare.FirstSlice: 10
    471471#MMoviePrepare.LastSlice:  50
    472 #MMoviePrepare.TargetLength: 5
    473 #MMoviePrepare.NumEvents: 500
    474 #MMoviePrepare.Threshold: 3
    475 #MMoviePrepare.Filename: filename.mpg
    476472#MovieFilter.Condition: MMovieData.fMax>5*MMovieData.fMedianPedestalRms
    477473#MImgCleanStd.CleanLevel1: 8.0
     
    479475#MFEvtNumber.FileName: ganymed00001218.root
    480476#MFEvtNumber.Selector: ThetaSquared.fVal<0.04 && DataType.fVal>0.5
     477#MMovieWrite.TargetLength: 5
     478#MMovieWrite.NumEvents: 500
     479#MMovieWrite.Threshold: 3
     480#MMovieWrite.FileName: filename.mpg
    481481
    482482# -------------------------------------------------------------------------
  • trunk/MagicSoft/Mars/mjobs/MJCalib.h

    r8369 r8439  
    1111{
    1212public:
    13     enum DataType_t
    14     {
    15         kIsUseRootData,
    16         kIsUseRawData,
    17         kIsUseMC
    18     };
    1913
    2014private:
    2115
    2216    static const Int_t fgCheckedPixId;  //! Default for fCheckedPixId
    23 
    24     Byte_t fDataFlag;                   // Bit-field to store the data type
    2517
    2618    enum  Storage_t                     // Possible devices for calibration
     
    2921        kHistsStorage
    3022      };                                // Possible flags for the storage of results
    31    
     23
    3224    Byte_t fStorage;                    // Bit-field for chosen storage type
    3325
     
    4638
    4739    Bool_t fIsPulsePosCheck;            // Check pulse position?
    48     //Bool_t fIsHiLoCalibration;          // Choose to calibrate the high-gain vs. low-gains
    49    
     40
    5041    Bool_t CheckEnvLocal();
    51     Byte_t GetDataFlag() { return fDataFlag; }
    5242
    5343    Bool_t IsNoStorage    () const { return TESTBIT(fStorage,kNoStorage);    }
    5444    Bool_t IsHistsStorage () const { return TESTBIT(fStorage,kHistsStorage); }
    55    
     45
    5646public:
    57 
    5847    MJCalib();
    59 
    60     Bool_t IsUseRawData()  const { return fDataFlag==kIsUseRawData;  }
    61     Bool_t IsUseRootData() const { return fDataFlag==kIsUseRootData; }
    62     Bool_t IsUseMC()       const { return fDataFlag==kIsUseMC;       }
    6348
    6449    Bool_t IsUseBlindPixel() const { return TESTBIT(fDevices,kUseBlindPixel); }
    6550    Bool_t IsUsePINDiode  () const { return TESTBIT(fDevices,kUsePINDiode);   }
    6651
    67     void SetUseRawData () { fDataFlag=kIsUseRawData;  }
    68     void SetUseRootData() { fDataFlag=kIsUseRootData; }
    69     void SetUseMC      () { fDataFlag=kIsUseMC;       }
    70 
    71     void SetDataType(DataType_t type) { fDataFlag=type; }
    72  
    7352    void SetCheckedPixId ( const Int_t  i=fgCheckedPixId ) { fCheckedPixId  = i; }
    7453
     
    7655    void SetHistsStorage ( const Bool_t b=kTRUE ) { b ? SETBIT(fStorage,kHistsStorage) : CLRBIT(fStorage,kHistsStorage); }
    7756
    78     //void SetHiLoCalibration( const Bool_t b=kTRUE )  { fIsHiLoCalibration = b; }
    7957    void SetPixelCheck     ( const Bool_t b=kTRUE )  { fIsPixelCheck        = b; }
    8058    void SetPulsePosCheck  ( const Bool_t b=kTRUE )  { fIsPulsePosCheck     = b; }
  • trunk/MagicSoft/Mars/mjobs/MJPedestal.cc

    r8369 r8439  
    768768        fExtractType = GetEnv("UseData",kFALSE) ? kUseData : kUsePedRun;
    769769
    770     if (IsUseMC() && fExtractType==kUseData)
     770    if (fSequence.IsMonteCarlo() && fExtractType==kUseData)
    771771    {
    772772        // The reason is, that the standard data files contains empty
     
    870870    Float_t rmspulsetime   = 1.0;
    871871
    872     if (!IsUseMC())
     872    if (!fSequence.IsMonteCarlo())
    873873    {
    874874        if (fIsPixelCheck)
     
    899899    }
    900900
    901     *fLog << all << "Mean pulse time (" << (IsUseMC()?"MC":"cosmics") << "): ";
     901    *fLog << all << "Mean pulse time (" << (fSequence.IsMonteCarlo()?"MC":"cosmics") << "): ";
    902902    *fLog << meanpulsetime << "+-" << rmspulsetime << endl;
    903903
     
    10331033    {
    10341034        const Int_t n0 = IsUseData()
    1035             ? fSequence.SetupDatRuns(iter, 0, IsUseRawData())
    1036             : fSequence.SetupPedRuns(iter, 0, IsUseRawData());
     1035            ? fSequence.SetupDatRuns(iter, 0, !fSequence.IsMonteCarlo())
     1036            : fSequence.SetupPedRuns(iter, 0, !fSequence.IsMonteCarlo());
    10371037
    10381038        if (n0<=0)
     
    10401040    }
    10411041
    1042     if (IsUseRawData())
     1042    if (!fSequence.IsMonteCarlo())
    10431043    {
    10441044        rawread.AddFiles(iter);
     
    11321132    }
    11331133
     1134    //MFillH fillC("MHPedestalCor", "MPedestalSubtractedEvt", "FillAcor");
     1135    //fillC.SetNameTab("Acor");
     1136    //if (fExtractor && fExtractionType==kWithExtractorRndm)
     1137    //    tlist.AddToList(&fillC);
     1138
    11341139    // ----------------------------------------------------------------------
    11351140    //   Now we make sure, that in all cases the ranges are setup correctly
     
    11431148    ftp2.RequirePedestal();
    11441149
    1145     if (!IsUseMC() && (!fExtractor || !fExtractor->HasLoGain()))
     1150    if (!fSequence.IsMonteCarlo() && (!fExtractor || !fExtractor->HasLoGain()))
    11461151    {
    11471152        taskenv.SetFilter(&ftp2);
     
    12241229    }
    12251230
     1231
     1232    /*
     1233    MHCamEvent evt0(0, "Ped",    "Pedestal;;P [cnts/sl]");
     1234    MHCamEvent evt1(2, "PedRms", "Pedestal RMS;;\\sigma_{p} [cnts/sl]");
     1235
     1236    MFillH fill0(&evt0, &fPedestalCamOut, "FillPedestal");
     1237    MFillH fill1(&evt1, &fPedestalCamOut, "FillPedRms");
     1238
     1239    tlist.AddToList(&fill0);
     1240    tlist.AddToList(&fill1);
     1241    */
     1242
    12261243    //
    12271244    // Execute the eventloop
  • trunk/MagicSoft/Mars/mmovie/MMovieWrite.cc

    r8438 r8439  
    839839//   MMovieWrite.NumEvents: 500
    840840//   MMovieWrite.Threshold: 2 <rms>
    841 //   MMovieWrite.Filename: movie.mpg
     841//   MMovieWrite.FileName: movie.mpg
    842842//
    843843Int_t MMovieWrite::ReadEnv(const TEnv &env, TString prefix, Bool_t print)
     
    859859        rc = kTRUE;
    860860    }
    861     if (IsEnvDefined(env, prefix, "Filename", print))
    862     {
    863         fFilename = GetEnvValue(env, prefix, "Filename", fFilename);
     861    if (IsEnvDefined(env, prefix, "FileName", print))
     862    {
     863        fFilename = GetEnvValue(env, prefix, "FileName", fFilename);
    864864        rc = kTRUE;
    865865    }
Note: See TracChangeset for help on using the changeset viewer.