Changeset 2876 for trunk/MagicSoft


Ignore:
Timestamp:
01/21/04 18:52:05 (21 years ago)
Author:
moralejo
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
2 added
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r2875 r2876  
    44
    55                                                 -*-*- END OF LINE -*-*-
     6 2004/01/21: Abelardo Moralejo
     7
     8   * mcalib/MMcCalibrationCalc.[h,cc]
     9     - Added. First version of the task intended to calculate the
     10       conversion factors from ADC counts to photons in the MC. It has
     11       a different aim than the recently renamed class
     12       "MMcCalibrationUpdate" (which takes care that the correct
     13       pedestals and conversion factors are supplied to each event, but
     14       does not really calculate anything).
     15
     16   * mcalib/Makefile, CalibLinkDef.h
     17     - Added new class MMcCalibrationCalc
     18
     19   * manalysis/MMcCalibrationUpdate.[h,cc]
     20     - Now the container MCalibrationCam is not created or modified if
     21       it is found that one such container already exists in the
     22       Parameter list (from a previous calibration).
     23
    624
    725 2004/01/21: Thomas Bretz
     
    1634
    1735
    18  2004/01/21: Abelardo moralejo
     36 2004/01/21: Abelardo Moralejo
    1937
    2038   * mmc/MMcEvt.hxx
  • trunk/MagicSoft/Mars/manalysis/MMcCalibrationUpdate.cc

    r2873 r2876  
    7373    fADC2PhOuter = 1.;
    7474
     75    fFillCalibrationCam = kTRUE;
     76
    7577}
    7678
     
    117119    return kTRUE;
    118120
    119   fCalCam = (MCalibrationCam*) pList->FindCreateObj(AddSerialNumber("MCalibrationCam"));
     121
     122  fCalCam = (MCalibrationCam*) pList->FindObject(AddSerialNumber("MCalibrationCam"));
    120123  if ( !fCalCam )
    121124    {
    122       *fLog << err << dbginf << "Cannot create MCalibrationCam... aborting." << endl;
    123       return kFALSE;
     125      *fLog << warn << dbginf << AddSerialNumber("MCalibrationCam") << " does not exist... Creating." << endl;
     126
     127      fCalCam = (MCalibrationCam*) pList->FindCreateObj(AddSerialNumber("MCalibrationCam"));
     128      if ( !fCalCam )
     129        {
     130          *fLog << err << dbginf << "Cannot create " << AddSerialNumber("MCalibrationCam") << "... aborting." << endl;
     131          return kFALSE;
     132        }
     133    }
     134  else
     135    {
     136      fFillCalibrationCam = kFALSE;
     137      *fLog << warn << dbginf << AddSerialNumber("MCalibrationCam") << " already exists... " << endl;
    124138    }
    125139
     
    185199    fConversionHiLo = fHeaderFadc->GetLow2HighGain();
    186200
     201    //
     202    // If MCalibrationCam already existed in the parameter list before
     203    // MMcCalibrationUpdate::PreProcess was executed (from a
     204    // previous calibration loop) we must not fill it, hence nothing
     205    // else has to be done in ReInit:
     206    //
     207    if ( !fFillCalibrationCam )
     208      return kTRUE;
     209
    187210
    188211    const int num = fCalCam->GetSize();
  • trunk/MagicSoft/Mars/manalysis/MMcCalibrationUpdate.h

    r2867 r2876  
    3030    Float_t fConversionHiLo;
    3131
     32    Bool_t  fFillCalibrationCam;
     33
    3234public:
    3335    MMcCalibrationUpdate(const char *name=NULL, const char *title=NULL);
  • trunk/MagicSoft/Mars/mcalib/CalibLinkDef.h

    r2734 r2876  
    1717#pragma link C++ class MHCalibrationPixel+;
    1818
     19#pragma link C++ class MMcCalibrationCalc++;
     20
    1921#endif
  • trunk/MagicSoft/Mars/mcalib/Makefile

    r2855 r2876  
    2323#
    2424INCLUDES = -I. -I../mbase -I../mhbase -I../mgui -I../mgeom -I../manalysis \
    25            -I../mraw -I../mtools
     25           -I../mraw -I../mtools -I../mmc -I../mimage
     26
    2627# mhbase:    MBinning MH
    2728# mgui:      MCamEvent (McalibrationCam)
    2829# mgeom:     MGeomCam (McalibrationCam - necessary?)
    2930# manalysis: MExtractedSignal, MCerPhotEvt (move to mcalib?)
    30 # mraw:      MRawRunHeader, MRawEvtHeader, MRawEvtPixelIter (3xMCalibrationCalc)
    31 
     31# mraw:      MRawRunHeader, MRawEvtHeader, MRawEvtPixelIter (3xMCalibrationCalc)# mmc:       MMcFadcHeader, MMcEvt
     32# mimage     MHillas
    3233
    3334#------------------------------------------------------------------------------
     
    4344           MHCalibrationBlindPixel.cc \
    4445           MHCalibrationPINDiode.cc \
    45            MHCalibrationPixel.cc
     46           MHCalibrationPixel.cc \
     47           MMcCalibrationCalc.cc
    4648
    4749SRCS    = $(SRCFILES)
Note: See TracChangeset for help on using the changeset viewer.