Changeset 5601 for trunk


Ignore:
Timestamp:
12/15/04 10:25:49 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r5599 r5601  
    2121                                                 -*-*- END OF LINE -*-*-
    2222
     23 2004/12/15: Thomas Bretz (important bugfixes for callisto)
     24
     25   * callisto.rc:
     26     - fixed wrong names in comments
     27
     28   * mjobs/MJCalibrateSignal.cc:
     29     - fixed naming of the two MPedCalcFromLoGain
     30     - set correct pedestal container for extractor
     31
     32   * msignal/MArrivalTimeCam.h:
     33     - added Reset() function
     34
     35   * msignal/MExtractTime.cc:
     36     - replaced parts of the common PreProcess by new function PreProcessStd
     37
     38   * msignal/MExtractTimeAndCharge.cc:
     39     - removed Clear() in Process() -- this is automatically done by
     40       Reset()
     41
     42   * msignal/MExtractedSignalCam.h:
     43     - added Reset() function
     44
     45   * msignal/MExtractor.[h,cc]:
     46     - moved some common parts of PreProcess to new function PreProcessStd
     47       this fixed the problem that searching for fPedestals was
     48       overwritten in MExtractTime
     49
     50
     51
    2352 2004/12/15: Abelardo Moralejo
    2453
    25   * mmc/MMcConfigRunHeader.h
    26     - added data member fPmtTimeJitter, sigma of gaussian of the time
    27       jitter introduced in the time of each photoelectron.
     54   * mmc/MMcConfigRunHeader.h
     55     - added data member fPmtTimeJitter, sigma of gaussian of the time
     56       jitter introduced in the time of each photoelectron.
     57
     58
    2859
    2960 2004/12/14: Markus Gaug
    3061
    31   * msignal/MExtractor.[h,cc]
    32     - add possibility to set pedestal pointer from outside
    33 
    34   * msignal/MExtractTimeAndCharge.[h,cc]
    35     - make modification of extraction window only for case of now
    36       high-gain saturation.
    37 
    38   * msignal/MExtractTimeAndChargeSpline.cc
    39     - fixed some smaller bugs for special cases
    40 
    41   * mcalib/MCalibrationIntensityChargeCam.[h,cc]
    42     - implemented automatic plotting of Razmik plot and others
     62   * msignal/MExtractor.[h,cc]
     63     - add possibility to set pedestal pointer from outside
     64
     65   * msignal/MExtractTimeAndCharge.[h,cc]
     66     - make modification of extraction window only for case of now
     67       high-gain saturation.
     68
     69   * msignal/MExtractTimeAndChargeSpline.cc
     70     - fixed some smaller bugs for special cases
     71
     72   * mcalib/MCalibrationIntensityChargeCam.[h,cc]
     73     - implemented automatic plotting of Razmik plot and others
     74
    4375
    4476
    4577 2004/12/14: Markus Gaug and Abelardo Moralejo
    4678
    47   * msignal/MExtractFixedWindowPeakSearch.cc
    48     - adjusted the offset from peak search window to extraction window
    49       such that they start at the same slice for the case:
    50       fOffsetFromWindow=0. This was the original intention of the
    51       extractor and had been lost at some place. Instead, the default
    52       (fOffsetFromWindow=1) did before correspond to an offset of 2
    53       slices which gave wrong results for the calibration and further
    54       default settings.
    55     - Changed one comparison: (Byte_t - Byte_t) > 0 to (Byte_t > Byte_t)
    56       since the first mode is always true (a negative "byte" simply gives
    57       256-difference. The version before could have lead to crashes from
    58       time to time.
     79   * msignal/MExtractFixedWindowPeakSearch.cc
     80     - adjusted the offset from peak search window to extraction window
     81       such that they start at the same slice for the case:
     82       fOffsetFromWindow=0. This was the original intention of the
     83       extractor and had been lost at some place. Instead, the default
     84       (fOffsetFromWindow=1) did before correspond to an offset of 2
     85       slices which gave wrong results for the calibration and further
     86       default settings.
     87     - Changed one comparison: (Byte_t - Byte_t) > 0 to (Byte_t > Byte_t)
     88       since the first mode is always true (a negative "byte" simply gives
     89       256-difference. The version before could have lead to crashes from
     90       time to time.
     91
     92
    5993
    6094 2004/12/12: Abelardo Moralejo
     
    6599      warning.
    66100
     101
     102
    67103 2004/12/09: Markus Gaug
    68104 
    69   * mhcalib/MHCalibrationPix.[h,cc]
    70     - fixed a bug in Reset(), fSaturation was not resetted before.
    71       Affects only intensity calibraion.
    72   * mhcalib/MHGausEvents.cc
    73     - fixed bug in Reset(), histogram ranges were not reset before.
    74       Affects only intensity calibraion.
     105   * mhcalib/MHCalibrationPix.[h,cc]
     106     - fixed a bug in Reset(), fSaturation was not resetted before.
     107       Affects only intensity calibraion.
     108   * mhcalib/MHGausEvents.cc
     109     - fixed bug in Reset(), histogram ranges were not reset before.
     110       Affects only intensity calibraion.
     111
     112
    75113
    76114 2004/12/09: Thomas Bretz
    77115
    78  * mbadpixels/MBadPixelsTreat.cc:
    79    - set default in constructor to UseInterpolation, ProcessPedestalEvt
    80      and ProcessTimes which is the callisto default
    81    - enhanced comments in output
     116  * mbadpixels/MBadPixelsTreat.cc:
     117    - set default in constructor to UseInterpolation, ProcessPedestalEvt
     118      and ProcessTimes which is the callisto default
     119    - enhanced comments in output
     120
    82121
    83122
  • trunk/MagicSoft/Mars/callisto.rc

    r5572 r5601  
    219219# Setup pedestal extractor for running through data
    220220# -------------------------------------------------------------------------
    221 #MJCalibrateSignalAB.ExtractPedestal: MPedCalcFromLoGain
    222 #MJCalibrateSignalAB.ExtractPedestal.PedestalUpdate:   yes
    223 #MJCalibrateSignalAB.ExtractPedestal.NumEventsDump:   1500
    224 #MJCalibrateSignalAB.ExtractPedestal.ExtractWinFirst:  15
    225 #MJCalibrateSignalAB.ExtractPedestal.ExtractWinSize:    6
    226 #MJCalibrateSignalAB.ExtractPedestal.CheckWinFirst:     0
    227 #MJCalibrateSignalAB.ExtractPedestal.CheckWinSize:     29
    228 #MJCalibrateSignalAB.ExtractPedestal.MaxHiGainVar:     40
    229 
    230 #MJCalibrateSignal.ExtractPedestal: MPedCalcFromLoGain
    231 #MJCalibrateSignal.ExtractPedestal.PedestalUpdate:   yes
    232 #MJCalibrateSignal.ExtractPedestal.NumEventsDump:   1500
    233 #MJCalibrateSignal.ExtractPedestal.ExtractWinFirst:  15
    234 #MJCalibrateSignal.ExtractPedestal.ExtractWinSize:    6
    235 #MJCalibrateSignal.ExtractPedestal.CheckWinFirst:     0
    236 #MJCalibrateSignal.ExtractPedestal.CheckWinSize:     29
    237 #MJCalibrateSignal.ExtractPedestal.MaxHiGainVar:     40
     221#MJCalibrateSignal.MPedCalcMeanFromLoGain.PedestalUpdate:   yes
     222#MJCalibrateSignal.MPedCalcMeanFromLoGain.NumEventsDump:   1500
     223#MJCalibrateSignal.MPedCalcMeanFromLoGain.ExtractWinFirst:  15
     224#MJCalibrateSignal.MPedCalcMeanFromLoGain.ExtractWinSize:    6
     225#MJCalibrateSignal.MPedCalcMeanFromLoGain.CheckWinFirst:     0
     226#MJCalibrateSignal.MPedCalcMeanFromLoGain.CheckWinSize:     29
     227#MJCalibrateSignal.MPedCalcMeanFromLoGain.MaxHiGainVar:     40
     228
     229#MJCalibrateSignal.MPedCalcRmsFromLoGain.PedestalUpdate:   yes
     230#MJCalibrateSignal.MPedCalcRmsFromLoGain.NumEventsDump:   1500
     231#MJCalibrateSignal.MPedCalcRmsFromLoGain.ExtractWinFirst:  15
     232#MJCalibrateSignal.MPedCalcRmsFromLoGain.ExtractWinSize:    6
     233#MJCalibrateSignal.MPedCalcRmsFromLoGain.CheckWinFirst:     0
     234#MJCalibrateSignal.MPedCalcRmsFromLoGain.CheckWinSize:     29
     235#MJCalibrateSignal.MPedCalcRmsFromLoGain.MaxHiGainVar:     40
    238236
    239237# -------------------------------------------------------------------------
  • trunk/MagicSoft/Mars/mjobs/MJCalibrateSignal.cc

    r5570 r5601  
    320320    MBadPixelsMerge        merge(&badpix);
    321321
    322     MPedCalcFromLoGain     pedlo1("MPedCalcFromLoGainAB");
     322    MPedCalcFromLoGain     pedlo1("MPedCalcMeanFromLoGain");
    323323    pedlo1.SetPedestalUpdate(kTRUE);
    324324    pedlo1.SetPedestalsOut(&pedcamab);
    325325
    326     MPedCalcFromLoGain     pedlo2;
     326    MPedCalcFromLoGain     pedlo2("MPedCalcRmsFromLoGain");
    327327    pedlo2.SetPedestalUpdate(kTRUE);
    328328    pedlo2.SetPedestalsIn(&pedcamab);
     
    336336
    337337        if (extractor1->InheritsFrom("MExtractTimeAndCharge"))
     338        {
    338339            pedlo2.SetExtractor((MExtractTimeAndCharge*)extractor1);
     340            extractor1->SetPedestals(&pedcamab);
     341        }
    339342    }
    340343
     
    345348    taskenv2.SetDefault(extractor2);
    346349    MCalibrateData         calib;
    347     if (filetype==3)
     350    if (filetype==3) // MC file
    348351    {
    349352        calib.SetCalibrationMode(MCalibrateData::kFfactor);
  • trunk/MagicSoft/Mars/msignal/MArrivalTimeCam.h

    r4274 r5601  
    3232    void Clear(Option_t *o="");
    3333    void SetLogStream(MLog *lg);
     34    void Reset() { Clear(); }
    3435
    3536    void InitSize(const UInt_t i);
  • trunk/MagicSoft/Mars/msignal/MExtractTime.cc

    r5558 r5601  
    110110Int_t MExtractTime::PreProcess(MParList *pList)
    111111{
    112   fRawEvt = (MRawEvtData*)pList->FindObject(AddSerialNumber("MRawEvtData"));
    113   if (!fRawEvt)
    114     {
    115         *fLog << err << AddSerialNumber("MRawEvtData") << " not found... aborting." << endl;
    116         return kFALSE;
    117     }
    118  
    119   fRunHeader = (MRawRunHeader*)pList->FindObject(AddSerialNumber("MRawRunHeader"));
    120   if (!fRunHeader)
    121     {
    122       *fLog << err << AddSerialNumber("MRawRunHeader") << " not found... aborting." << endl;
    123       return kFALSE;
    124     }
    125  
    126  
    127112  fArrTime = (MArrivalTimeCam*)pList->FindCreateObj("MArrivalTimeCam",AddSerialNumber(fNameTimeCam));
    128113  if (!fArrTime)
    129114      return kFALSE;
    130115
    131   fPedestals = (MPedestalCam*)pList->FindObject( AddSerialNumber(fNamePedestalCam), "MPedestalCam");
    132   if (!fPedestals)
    133     {
    134       *fLog << err << AddSerialNumber("MPedestalCam") << " not found... aborting" << endl;
    135       return kFALSE;
    136     }
    137  
    138   return kTRUE;
     116  return PreProcessStd(pList);
    139117}
    140118
  • trunk/MagicSoft/Mars/msignal/MExtractTimeAndCharge.cc

    r5595 r5601  
    159159Int_t MExtractTimeAndCharge::Process()
    160160{
     161    // This cleaning is nor necessary: It is done automatically by
     162    // Reset() before each execution of the Tasklist (Process())
     163    //  fArrTime->Clear();
     164    //  fSignals->Clear();
    161165
    162166  MRawEvtPixelIter pixel(fRawEvt);
    163   fArrTime->Clear();
    164   fSignals->Clear();
    165167
    166168  while (pixel.Next())
  • trunk/MagicSoft/Mars/msignal/MExtractedSignalCam.h

    r4274 r5601  
    3535    void Clear(Option_t *o="");
    3636    void SetLogStream(MLog *lg);
     37    void Reset() { Clear(); }
    3738
    3839    void InitSize(const UInt_t i);
  • trunk/MagicSoft/Mars/msignal/MExtractor.cc

    r5592 r5601  
    130130}
    131131
     132Int_t MExtractor::PreProcessStd(MParList *pList)
     133{
     134    fRawEvt = (MRawEvtData*)pList->FindObject(AddSerialNumber("MRawEvtData"));
     135    if (!fRawEvt)
     136    {
     137        *fLog << err << AddSerialNumber("MRawEvtData") << " not found... aborting." << endl;
     138        return kFALSE;
     139    }
     140
     141    fRunHeader = (MRawRunHeader*)pList->FindObject(AddSerialNumber("MRawRunHeader"));
     142    if (!fRunHeader)
     143    {
     144        *fLog << err << AddSerialNumber("MRawRunHeader") << " not found... aborting." << endl;
     145        return kFALSE;
     146    }
     147
     148
     149    if (fPedestals)
     150        return kTRUE;
     151
     152    fPedestals = (MPedestalCam*)pList->FindObject(AddSerialNumber(fNamePedestalCam), "MPedestalCam");
     153    if (!fPedestals)
     154    {
     155        *fLog << err << fNamePedestalCam << " not found... aborting" << endl;
     156        return kFALSE;
     157    }
     158
     159    return kTRUE;
     160}
     161
    132162// --------------------------------------------------------------------------
    133163//
     
    144174Int_t MExtractor::PreProcess(MParList *pList)
    145175{
    146 
    147   fRawEvt = (MRawEvtData*)pList->FindObject(AddSerialNumber("MRawEvtData"));
    148   if (!fRawEvt)
    149     {
    150       *fLog << err << AddSerialNumber("MRawEvtData") << " not found... aborting." << endl;
    151       return kFALSE;
    152     }
    153  
    154   fRunHeader = (MRawRunHeader*)pList->FindObject(AddSerialNumber("MRawRunHeader"));
    155   if (!fRunHeader)
    156     {
    157       *fLog << err << AddSerialNumber("MRawRunHeader") << " not found... aborting." << endl;
    158       return kFALSE;
    159     }
    160  
    161 
    162   if (!fPedestals)
    163     {
    164       fPedestals = (MPedestalCam*)pList->FindObject(AddSerialNumber(fNamePedestalCam), "MPedestalCam");
    165       if (!fPedestals)
    166         {
    167           *fLog << err << fNamePedestalCam << " not found... aborting" << endl;
    168           return kFALSE;
    169         }
    170     }
    171  
    172   fSignals = (MExtractedSignalCam*)pList->FindCreateObj("MExtractedSignalCam",AddSerialNumber(fNameSignalCam));
    173   if (!fSignals)
    174       return kFALSE;
    175  
    176   return kTRUE;
     176    fSignals = (MExtractedSignalCam*)pList->FindCreateObj("MExtractedSignalCam",AddSerialNumber(fNameSignalCam));
     177    if (!fSignals)
     178        return kFALSE;
     179
     180    return PreProcessStd(pList);
    177181}
    178182
  • trunk/MagicSoft/Mars/msignal/MExtractor.h

    r5592 r5601  
    6262  virtual void FindSignalLoGain(Byte_t *firstused, Float_t &sum, Byte_t &sat) const { }
    6363 
     64  Int_t   PreProcessStd(MParList *pList);
    6465  Int_t   PreProcess( MParList *pList );
    6566  Bool_t  ReInit    ( MParList *pList );
Note: See TracChangeset for help on using the changeset viewer.