Changeset 3667 for trunk/MagicSoft


Ignore:
Timestamp:
04/06/04 13:58:05 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r3665 r3667  
    1818
    1919                                                 -*-*- END OF LINE -*-*-
     20
     21 2004/04/06: Thomas Bretz
     22
     23   * mcalib/MCalibrationCam.[h,cc]:
     24     - simplified call to initialization by new function Init()
     25
     26   * mcalib/MH*.cc:
     27     - fixed some warnings (comparision between signed and unsigned)
     28
     29   * manalysis/MGeomApply.cc:
     30     - use new Init-funtion of MCalibrationCam
     31
     32   * mastro/MAstro.cc:
     33     - some fixes to the conversion functions
     34
     35   * mastro/MAstroCamera.[h,cc]:
     36     - added comments
     37     - changed argument type of AddPrimitives
     38     
     39   * mastro/MAstroCatalog.[h,cc]:
     40     - many changes to make it possible to overlay the
     41       catalog on top of a 2D histogram
     42     
     43   * mbase/MEvtLoop.cc:
     44     - fixed estimation of run-time
     45
     46   * mbase/MMath.[h,cc]:
     47     - added member functions for signed significances
     48
     49   * mbase/MParContainer.cc:
     50     - changed GetterMethod() to support double reference data mebers
     51
     52   * mbase/MStatusDisplay.cc:
     53     - removed some obsolete debug outputs
     54
     55   * mbase/MTask.[h,cc]:
     56     - removed fNumExecutions, fStopwatch already counts the calls
     57     - slight chagnes to output of PrintStatistics
     58
     59   * mbase/MTaskList.[h,cc]:
     60     - slight chagnes to output of PrintStatistics
     61     
     62   * mbase/MTime.cc:
     63     - removed +TwoPi from GetGmst
     64
     65   * mcamera/MCameraAUX.h, mcamera/MCameraHV.h, mcamera/MCameraLV.h,
     66     mcamera/MCameraLid.h, mcamera/MCameraLids.h,
     67     mcamera/MCameraPowerSupply.h:
     68     - added missing Getter functions
     69
     70   * mcamera/MCameraHV.h:
     71     - removed obsolete data-meber fMean
     72
     73   * mdata/DataLinkDef.h:
     74     - added MDataFormula
     75
     76   * mdata/MDataChain.cc, mdata/Makefile:
     77     - enhanced dosumentation
     78     - implemented use of multi argument functions
     79     - added ^-operator
     80
     81   * mdata/MDataList.[h,cc]:
     82     - added ^-operator
     83     - enhanced IsValid
     84
     85   * mfbase/MFilterList.cc:
     86     - changed a warn-output to inf
     87
     88   * mgeom/MGeomCam.[h,cc]:
     89     - added getter returning index corresponding to XY
     90
     91   * mgeom/MGeomPix.[h,cc]:
     92     - added getter IsInside
     93
     94   * mhist/MHCamera.cc:
     95     - Return 0 in GetMean if no entries
     96
     97   * mhist/MHFalseSource.[h,cc]:
     98     - removed conversion stuff (mm/deg)
     99     - slight change to calculation of significance
     100     - added dist-cuts
     101     - added histogram showing number of entries
     102     - added display of catalog
     103
     104   * mhist/MHStarMap.cc:
     105     - added comment
     106     
     107   * mimage/MHillasExt.[h,cc]:
     108     - changed class version to 3
     109     - added new data-member fMaxDist
     110     
     111   * mimage/MNewImagePar.[h,cc]:
     112     - added new data member fUsedArea and fCoreArea
     113
     114   * mmc/MMcConfigRunHeader.h:
     115     - readded GetMirrors (WHY WAS IT GONE?)
     116
     117   * mpointing/MPointingPos.[h,cc]
     118     - implemented Getter to get coordinates in rad
     119     
     120   * mpointing/MSrcPosCalc.[h,cc]:
     121     - fixed direction of rotation
     122     - for the moment do use fTime
     123
     124
    20125
    21126 2004/04/06: Markus Gaug
     
    856961
    857962   * mcalib/MCalibrationChargeCam.[h,cc]
    858    * mcalib/MCalibrationChargePix.h
    859    * mcalib/MCalibrationChargeCalc.cc
     963     mcalib/MCalibrationChargePix.h, mcalib/MCalibrationChargeCalc.cc:
    860964     - removed pointers to MGeomCam and MBadPixelsCam in MCalibrationChargeCam
    861965     - use two loops over pixels in order to determine mean flux of phe;s to
  • trunk/MagicSoft/Mars/NEWS

    r3574 r3667  
    11                                                               -*-*- END -*-*-
    22 *** Version <cvs>
    3  
     3
     4   - implementes multi-argument support in MDataChain
     5     ("pow(a, b)")
     6
     7   - implemented double reference support in MDataChain
     8     ("MCameraLV.fPowerSupplyA.fVoltagePos5V")
     9
    410   - added support in MF for expressiond like
    511     "MHillas.fWidth<2*<MHillas.fLength"
  • trunk/MagicSoft/Mars/manalysis/MGeomApply.cc

    r3660 r3667  
    7575#include "MGeomCam.h"
    7676#include "MPedestalCam.h"
    77 #include "MCalibrationChargeCam.h"
    78 #include "MCalibrationRelTimeCam.h"
    79 #include "MCalibrationQECam.h"
    80 #include "MCalibrationPedCam.h"
     77#include "MCalibrationCam.h"
    8178#include "MPedPhotCam.h"
    8279#include "MExtractedSignalCam.h"
     
    140137        ped->InitSize(cam->GetNumPixels());
    141138
    142     MCalibrationChargeCam *cal =
    143       (MCalibrationChargeCam*)pList->FindObject(AddSerialNumber("MCalibrationChargeCam"));
     139    MCalibrationCam *cal = (MCalibrationCam*)pList->FindObject(AddSerialNumber("MCalibrationChargeCam"));
    144140    if (cal)
    145       {
    146         cal->InitSize          ( cam->GetNumPixels()  );
    147         cal->InitAverageAreas  ( cam->GetNumAreas()   );
    148         cal->InitAverageSectors( cam->GetNumSectors() );
    149       }
     141        cal->Init(*cam);
    150142
    151     MCalibrationRelTimeCam *cat =
    152       (MCalibrationRelTimeCam*)pList->FindObject(AddSerialNumber("MCalibrationRelTimeCam"));
     143    MCalibrationCam *cat = (MCalibrationCam*)pList->FindObject(AddSerialNumber("MCalibrationRelTimeCam"));
    153144    if (cat)
    154       {
    155         cat->InitSize          ( cam->GetNumPixels()  );
    156         cat->InitAverageAreas  ( cam->GetNumAreas()   );
    157         cat->InitAverageSectors( cam->GetNumSectors() );
    158       }
    159    
    160     MCalibrationQECam *qe =
    161       (MCalibrationQECam*)pList->FindObject(AddSerialNumber("MCalibrationQECam"));
     145        cat->Init(*cam);
     146
     147    MCalibrationCam *qe = (MCalibrationCam*)pList->FindObject(AddSerialNumber("MCalibrationQECam"));
    162148    if (qe)
    163       {
    164         qe->InitSize           ( cam->GetNumPixels()  );
    165         qe->InitAverageAreas   ( cam->GetNumAreas()   );
    166         qe->InitAverageSectors ( cam->GetNumSectors() );
    167       }
    168    
    169     MCalibrationPedCam *pcam =
    170       (MCalibrationPedCam*)pList->FindObject(AddSerialNumber("MCalibrationPedCam"));
     149        qe->Init(*cam);
     150
     151    MCalibrationCam *pcam = (MCalibrationCam*)pList->FindObject(AddSerialNumber("MCalibrationPedCam"));
    171152    if (pcam)
    172       {
    173         pcam->InitSize           ( cam->GetNumPixels()  );
    174         pcam->InitAverageAreas   ( cam->GetNumAreas()   );
    175         pcam->InitAverageSectors ( cam->GetNumSectors() );
    176       }
    177    
     153        pcam->Init(*cam);
     154
    178155    MPedPhotCam *pedphot = (MPedPhotCam*)pList->FindObject(AddSerialNumber("MPedPhotCam"));
    179156    if (pedphot)
    180157        pedphot->InitSize(cam->GetNumPixels());
    181158
    182 
    183159    MExtractedSignalCam *ext = (MExtractedSignalCam*)pList->FindObject(AddSerialNumber("MExtractedSignalCam"));
    184160    if (ext)
    185161        ext->InitSize(cam->GetNumPixels());
    186 
    187162
    188163    MBlindPixels *bnd = (MBlindPixels*)pList->FindObject(AddSerialNumber("MBlindPixels"));
  • trunk/MagicSoft/Mars/manalysis/MHPedestalCam.cc

    r3651 r3667  
    189189  fCam = (MCalibrationCam*)pList->FindObject("MCalibrationPedCam");
    190190  if (!fCam)
    191     {
     191  {
    192192      fCam = (MCalibrationCam*)pList->FindCreateObj(AddSerialNumber("MCalibrationPedCam"));
    193193      if (!fCam)
    194         {
    195           gLog << err << "Cannot find nor create MCalibrationPedCam ... abort." << endl;
    196194          return kFALSE;
    197         }
    198       else
    199         {
    200           fCam->InitSize(npixels);
    201           fCam->InitAverageAreas(nareas);
    202           fCam->InitAverageSectors(nsectors);
    203         }
    204     }
     195
     196      fCam->Init(*fGeom);
     197  }
    205198 
    206199  Float_t sliceshi = signal->GetNumUsedHiGainFADCSlices();
     
    369362    }
    370363 
    371   const Int_t npixels  = fGeom->GetNumPixels();
    372   const Int_t nareas   = fGeom->GetNumAreas();
    373   const Int_t nsectors = fGeom->GetNumSectors();
    374 
    375   Float_t sumareahi  [nareas],   sumarealo  [nareas];
    376   Float_t sumsectorhi[nsectors], sumsectorlo[nsectors];
    377   Int_t   numareahi  [nareas],   numarealo  [nareas];
    378   Int_t   numsectorhi[nsectors], numsectorlo[nsectors];
    379 
    380   for (UInt_t j=0; j<nareas; j++)
    381     {
    382       sumareahi[j] = sumarealo[j] = 0.;
    383       numareahi[j] = numarealo[j] = 0;
    384     }
    385  
    386   for (UInt_t j=0; j<nsectors; j++)
    387     {
    388       sumsectorhi[j] = sumsectorlo[j] = 0.;
    389       numsectorhi[j] = numsectorlo[j] = 0;
    390     }
    391  
    392 
    393   for (Int_t i=0; i<npixels; i++)
    394     {
    395 
     364  const UInt_t npixels  = fGeom->GetNumPixels();
     365  const UInt_t nareas   = fGeom->GetNumAreas();
     366  const UInt_t nsectors = fGeom->GetNumSectors();
     367
     368  TArrayF sumareahi(nareas);
     369  TArrayF sumarealo(nareas);
     370  TArrayF sumsectorhi(nsectors);
     371  TArrayD sumsectorlo(nsectors);
     372  TArrayI numareahi(nareas);
     373  TArrayI numarealo(nareas);
     374  TArrayI numsectorhi(nsectors);
     375  TArrayI numsectorlo(nsectors);
     376
     377  for (UInt_t i=0; i<npixels; i++)
     378  {
    396379      MHGausEvents &histhi = (*this)[i];
    397380      MHGausEvents &histlo = (*this)(i);
    398381
    399382      if (histhi.IsExcluded())
    400         continue;
     383          continue;
    401384
    402385      const MExtractedSignalPix &pix = (*signal)[i];
    403      
     386
    404387      const Float_t pedhi = pix.GetExtractedSignalHiGain();
    405388      const Float_t pedlo = pix.GetExtractedSignalLoGain();
  • trunk/MagicSoft/Mars/mcalib/MCalibrationCam.cc

    r3645 r3667  
    196196}
    197197
     198void MCalibrationCam::Init(const MGeomCam &geom)
     199{
     200    InitSize          (geom.GetNumPixels() );
     201    InitAverageAreas  (geom.GetNumAreas()  );
     202    InitAverageSectors(geom.GetNumSectors());
     203}
     204
    198205// --------------------------------------------------------------------------
    199206//
  • trunk/MagicSoft/Mars/mcalib/MCalibrationCam.h

    r3646 r3667  
    1414class MBadPixelsPix;
    1515class MBadPixelsCam;
     16class MGeomCam;
     17
    1618class MCalibrationCam : public MParContainer, public MCamEvent
    1719{
     
    3133 
    3234  virtual void Clear(    Option_t *o="" );
     35  void Init(const MGeomCam &geom);
    3336  void InitSize( const UInt_t i );
    3437  void InitAverageAreas(  const UInt_t i );
  • trunk/MagicSoft/Mars/mcalib/MHCalibrationCam.cc

    r3650 r3667  
    639639{
    640640 
    641   for (Int_t j=0; j<fGeom->GetNumAreas(); j++)
     641  for (UInt_t j=0; j<fGeom->GetNumAreas(); j++)
    642642    {
    643643 
  • trunk/MagicSoft/Mars/mcalib/MHCalibrationChargeCam.cc

    r3650 r3667  
    387387    }
    388388 
    389   const Int_t npixels  = fGeom->GetNumPixels();
    390   const Int_t nareas   = fGeom->GetNumAreas();
    391   const Int_t nsectors = fGeom->GetNumSectors();
    392   const Int_t lofirst  = signal->GetFirstUsedSliceLoGain();
     389  const UInt_t npixels  = fGeom->GetNumPixels();
     390  const UInt_t nareas   = fGeom->GetNumAreas();
     391  const UInt_t nsectors = fGeom->GetNumSectors();
     392  const UInt_t lofirst  = signal->GetFirstUsedSliceLoGain();
    393393
    394394  Float_t sumhiarea  [nareas],   sumloarea  [nareas],   timehiarea  [nareas],   timeloarea  [nareas];
     
    410410 
    411411
    412   for (Int_t i=0; i<npixels; i++)
     412  for (UInt_t i=0; i<npixels; i++)
    413413    {
    414414
  • trunk/MagicSoft/Mars/mcalib/MHCalibrationRelTimeCam.cc

    r3653 r3667  
    297297    }
    298298 
    299   const Int_t npixels  = fGeom->GetNumPixels();
    300   const Int_t nareas   = fGeom->GetNumAreas();
    301   const Int_t nsectors = fGeom->GetNumSectors();
     299  const UInt_t npixels  = fGeom->GetNumPixels();
     300  const UInt_t nareas   = fGeom->GetNumAreas();
     301  const UInt_t nsectors = fGeom->GetNumSectors();
    302302
    303303  Float_t sumareahi  [nareas],   sumarealo  [nareas];
  • trunk/MagicSoft/Mars/mhist/MHCamera.cc

    r3551 r3667  
    289289    }
    290290
    291     return Profile(mean/n);
     291    return n==0 ? 0 : Profile(mean/n);
    292292}
    293293
     
    316316        }
    317317    }
     318
     319    if (n==0)
     320        return 0;
    318321
    319322    sum /= n;
  • trunk/MagicSoft/Mars/mreport/MReportDrive.cc

    r2892 r3667  
    8181{
    8282    fName  = "MReportDrive";
    83     fTitle = "Class for DRIVE-REPORT information";
     83    fTitle = "Class for DRIVE-REPORT information (raw telescope position)";
    8484}
    8585
Note: See TracChangeset for help on using the changeset viewer.