Changeset 2533 for trunk


Ignore:
Timestamp:
11/19/03 20:38:55 (21 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r2531 r2533  
    22to   send  a   Changelog   file  to  a  line  printer  directly.  Thanks.
    33
     4
    45                                                 -*-*- END OF LINE -*-*-
     6 2003/11/19: Markus Gaug
     7
     8   * manalysis/MPedCalcPedRun:
     9     - implemented function ReInit
     10     - implemented pointer fRunheader
     11     - fNumHiGainSamples now called from fRunHeader inside ReInit
     12     - Now, fNumHiGainSamples gets right number, instead of inf
     13
     14   * mhist/MHCalibrationConig:
     15     - gkStartQlast changed from 5000 to 10000.
     16
    517 2003/11/18: Thomas Bretz
    618
  • trunk/MagicSoft/Mars/manalysis/MPedCalcPedRun.cc

    r2237 r2533  
    4343#include "MLogManip.h"
    4444
     45#include "MRawRunHeader.h" 
    4546#include "MRawEvtPixelIter.h"
    4647#include "MRawEvtData.h"
     
    7778        return kFALSE;
    7879
    79     fNumHiGainSamples = fRawEvt->GetNumHiGainSamples();
     80    return kTRUE;
     81}
     82
     83Bool_t MPedCalcPedRun::ReInit(MParList *pList )   
     84{
     85
     86    fRunheader = (MRawRunHeader*)pList->FindObject("MRawRunHeader");
     87    if (!fRunheader)
     88        {
     89        *fLog << warn << dbginf <<
     90                "Warning - cannot check file type, MRawRunHeader not found." << endl;
     91        }
     92    else
     93        if (fRunheader->GetRunType() == kRTMonteCarlo)
     94        {
     95            return kTRUE;
     96        }
     97
     98    fNumHiGainSamples =  fRunheader->GetNumSamplesHiGain();
    8099
    81100    return kTRUE;
     101
    82102}
    83103
     
    102122
    103123        pix.Set(higainped, higainrms);
    104         //pix.SetPedestalRms(higainpederr, higainrmserr);
     124        *fLog << dbg << higainped << " " << higainrms << endl;
     125       //pix.SetPedestalRms(higainpederr, higainrmserr);
    105126    }
    106127
  • trunk/MagicSoft/Mars/manalysis/MPedCalcPedRun.h

    r2237 r2533  
    1414#endif
    1515
     16class MRawRunHeader;
    1617class MRawEvtData;
    1718class MPedestalCam;
     
    2122    Byte_t fNumHiGainSamples;
    2223
     24    MRawRunHeader *fRunheader; // raw event run header
    2325    MRawEvtData  *fRawEvt;     // raw event data (time slices)
    2426    MPedestalCam *fPedestals;  // Pedestals of all pixels in the camera
     
    2830    //Float_t CalcHiGainMeanErr(Float_t higainrms) const;
    2931    //Float_t CalcHiGainRmsErr(Float_t higainrms) const;
     32
     33    Bool_t MPedCalcPedRun::ReInit(MParList *pList);
    3034
    3135    Int_t PreProcess(MParList *pList);
  • trunk/MagicSoft/Mars/mhist/MHCalibrationConfig.h

    r2525 r2533  
    2424
    2525// Starting number for the highest value of the Q-histo:
    26 const Axis_t gkStartQlast      = 5000.;
     26const Axis_t gkStartQlast      = 10000.;
    2727
    2828// Square root of 2 pi:
Note: See TracChangeset for help on using the changeset viewer.