Changeset 3445 for trunk


Ignore:
Timestamp:
03/09/04 14:36:31 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r3444 r3445  
    22to   send  a   Changelog   file  to  a  line  printer  directly.  Thanks.
    33
     4For your entries please follow this style:
     5
     6_yyyy/mm/dd:_[Your Name]
     7_
     8___*_filename:
     9_____-_description
     10_
     11___*_filename2, filename3:
     12_____-_description
     13_
     14_
     15_
     16
     17While an underscore is a placeholder for a white-space or an empty line.
    418
    519                                                 -*-*- END OF LINE -*-*-
     20 2004/03/09: Thomas Bretz
     21
     22   * Makefile.rules:
     23     - replaced *.o by $(...) for building archives
     24
     25   * mjobs/MJCalibration.cc:
     26     - exchanged  apply  and merge task
     27
     28   * mjobs/MJCalibration.h, mjobs/MJExtractSignal.h, mjobs/MJPedestal.h:
     29     - fixed some const-qualifiers
     30
     31   * mcalib/MHCalibrationChargeBlindPix.cc,
     32     mcalib/MHCalibrationChargeCam.cc,
     33     mcalib/MHCalibrationChargePINDiode.cc
     34     - removed some obsolete output when calling FindCreateObj
     35     - changed some 'not found' output messages to be 'Mars-compliant'
     36     - replaced some gLog by *fLog
     37
     38
     39
    640 2004/03/08: Markus Gaug
    741   
    8   * mbadpixels/MBadPixelsPix.h
     42   * mbadpixels/MBadPixelsPix.h
    943     - small modifications for better readability
    1044     - remove Getters for calibration methods
    1145
    12   * mcalib/MCalibrationChargeCam.cc
     46   * mcalib/MCalibrationChargeCam.cc
    1347     - displaying saturation also for not-valid pixels in GetPixelContent
     48
     49
    1450
    1551 2004/03/08: Thomas Bretz
  • trunk/MagicSoft/Mars/Makefile.rules

    r3325 r3445  
    33$(LIB): $(OBJS) $(CINT)Cint.o
    44        @echo " - Building Library lib$(LIB)"
    5         $(AR) $(LIB) *.o
     5        $(AR) $(LIB) $(OBJS) $(CINT)Cint.o
    66        @echo " "
    77
  • trunk/MagicSoft/Mars/mcalib/MCalibrationChargeCalc.cc

    r3435 r3445  
    348348
    349349      if (bad.IsBad())
    350         {
     350      {
    351351          pix.SetExcluded();
    352352          continue;
    353         }
    354      
     353      }
     354
    355355      pix.SetAbsTimeBordersHiGain(fSignals->GetFirstUsedSliceHiGain(),
    356356                                  fSignals->GetLastUsedSliceHiGain());
  • trunk/MagicSoft/Mars/mcalib/MHCalibrationChargeBlindPix.cc

    r3323 r3445  
    241241    if (!fRawEvt)
    242242    {
    243       *fLog << err << dbginf << "MRawEvtData not found... aborting." << endl;
     243      *fLog << err << "MRawEvtData not found... aborting." << endl;
    244244      return kFALSE;
    245245    }
     
    248248  if (!fSignal)
    249249  {
    250       *fLog << err << GetDescriptor() << ": ERROR: Could not find MExtractedSignalBlindPixel ... aborting " << endl;
     250      *fLog << err << "MExtractedSignalBlindPixel not found... aborting " << endl;
    251251      return kFALSE;
    252252  }
     
    262262  fBlindPix = (MCalibrationChargeBlindPix*)pList->FindCreateObj("MCalibrationChargeBlindPix");
    263263  if (!fBlindPix)
    264   {
    265       *fLog << err << GetDescriptor() << ": ERROR: Could not find MCalibrationChargeBlindPix ... aborting " << endl;
    266       return kFALSE;
    267   }
     264      return kFALSE;
    268265
    269266  return kTRUE;
  • trunk/MagicSoft/Mars/mcalib/MHCalibrationChargeCam.cc

    r3434 r3445  
    275275 
    276276  fRawEvt = (MRawEvtData*)pList->FindObject("MRawEvtData");
    277 
    278277  if (!fRawEvt)
    279278  {
    280       gLog << err << dbginf << "MRawEvtData not found... aborting." << endl;
     279      *fLog << err << dbginf << "MRawEvtData not found... aborting." << endl;
    281280      return kFALSE;
    282281  }
    283282
    284283  fGeom = (MGeomCam*)pList->FindObject("MGeomCam");
    285 
    286284  if (!fGeom)
    287285  {
    288       gLog << err << dbginf << "MGeomCam not found... aborting." << endl;
     286      *fLog << err << "MGeomCam not found... aborting." << endl;
    289287      return kFALSE;
    290288  }
     
    306304  fBadPixels = (MBadPixelsCam*)pList->FindCreateObj("MBadPixelsCam");
    307305  if (!fBadPixels)
     306      return kFALSE;
     307
     308
     309  fCam = (MCalibrationChargeCam*)pList->FindCreateObj("MCalibrationChargeCam");
     310  if (!fCam)
     311      return kFALSE;
     312
     313  MExtractedSignalCam *signal = (MExtractedSignalCam*)pList->FindObject("MExtractedSignalCam");
     314  if (!signal)
    308315  {
    309       gLog << err << GetDescriptor() << ": ERROR: Could not find MBadPixelsCam ... aborting " << endl;
     316      *fLog << err << "MExtractedSignalCam not found... abort." << endl;
    310317      return kFALSE;
    311318  }
    312 
    313 
    314   fCam = (MCalibrationChargeCam*)pList->FindCreateObj("MCalibrationChargeCam");
    315   if (!fCam)
    316   {
    317       gLog << err << GetDescriptor() << ": ERROR: Could not find MCalibrationChargeCam ... aborting " << endl;
    318       return kFALSE;
    319   }
    320 
    321   MExtractedSignalCam *signal = (MExtractedSignalCam*)pList->FindObject("MExtractedSignalCam");
    322   if (!signal)
    323     {
    324       gLog << err << "No argument in MExtractedSignalCam::ReInit... abort." << endl;
    325       return kFALSE;
    326     }
    327319
    328320  const Int_t n = signal->GetSize();
     
    382374  if (!signal)
    383375    {
    384       gLog << err << "No argument in MExtractedSignalCam::Fill... abort." << endl;
     376      *fLog << err << "No argument in MExtractedSignalCam::Fill... abort." << endl;
    385377      return kFALSE;
    386378    }
     
    390382  if (fHiGainArray->GetEntries() != n)
    391383    {
    392       gLog << err << "ERROR - Size mismatch... abort." << endl;
     384      *fLog << err << "ERROR - Size mismatch... abort." << endl;
    393385      return kFALSE;
    394386    }
     
    396388  if (fLoGainArray->GetEntries() != n)
    397389    {
    398       gLog << err << "ERROR - Size mismatch... abort." << endl;
     390      *fLog << err << "ERROR - Size mismatch... abort." << endl;
    399391      return kFALSE;
    400392    }
  • trunk/MagicSoft/Mars/mcalib/MHCalibrationChargePINDiode.cc

    r3280 r3445  
    134134  if (!fPINDiode)
    135135  {
    136       *fLog << err << GetDescriptor() << ": ERROR: Could not find MCalibrationChargePINDiode ... aborting " << endl;
     136      *fLog << err << "MCalibrationChargePINDiode not found... aborting " << endl;
    137137      return kFALSE;
    138138  }
     
    163163  if (fExtractSlices != 0. && slices != fExtractSlices )
    164164    {
    165       gLog << err << "Number of used signal slices changed in MExtractedSignalCam  ... abort."
     165      *fLog << err << "Number of used signal slices changed in MExtractedSignalCam  ... abort."
    166166           << endl;
    167167      return kFALSE;
  • trunk/MagicSoft/Mars/mjobs/MJCalibration.cc

    r3438 r3445  
    508508    MCalibrationChargeCalc   calcalc;
    509509
    510     MFillH fillpin(  "MHCalibrationChargePINDiode" , "MExtractedSignalPINDiode"   );
    511     MFillH fillblind("MHCalibrationChargeBlindPix" , "MExtractedSignalBlindPixel" );
    512     MFillH fillcam  ("MHCalibrationChargeCam"      , "MExtractedSignalCam"        );
     510    MFillH fillpin  ("MHCalibrationChargePINDiode", "MExtractedSignalPINDiode");
     511    MFillH fillblind("MHCalibrationChargeBlindPix", "MExtractedSignalBlindPixel");
     512    MFillH fillcam  ("MHCalibrationChargeCam",      "MExtractedSignalCam");
    513513    //
    514514    // Apply a filter against cosmics
     
    522522
    523523    tlist.AddToList(&read);
     524    tlist.AddToList(&merge);
    524525    tlist.AddToList(&apply);
    525     tlist.AddToList(&merge);
    526526    tlist.AddToList(&extract);
    527527    tlist.AddToList(&pinext); 
  • trunk/MagicSoft/Mars/mjobs/MJCalibration.h

    r3252 r3445  
    4040    TString GetOutputFile() const;
    4141
    42     const MCalibrationChargeCam &GetCalibrationCam() const { return fCalibrationCam; }
    43     const MBadPixelsCam         &GetBadPixels()      const { return fBadPixels; }
     42    MCalibrationChargeCam &GetCalibrationCam() { return fCalibrationCam; }
     43    const MBadPixelsCam &GetBadPixels() const { return fBadPixels; }
    4444
    45     void SetBadPixels(MBadPixelsCam &bad) { bad.Copy(fBadPixels); }
     45    void SetBadPixels(const MBadPixelsCam &bad) { bad.Copy(fBadPixels); }
    4646
    4747    Bool_t ReadCalibrationCam();
  • trunk/MagicSoft/Mars/mjobs/MJExtractSignal.h

    r3253 r3445  
    4444    TString GetOutputFileD() const;
    4545
    46     const MPedPhotCam   &GetPedPhotCam() const { return fPedPhotCam; }
     46    MPedPhotCam &GetPedPhotCam() { return fPedPhotCam; }
    4747    const MBadPixelsCam &GetBadPixels()  const { return fBadPixels; }
    4848
    49     void SetBadPixels(MBadPixelsCam &bad) { bad.Copy(fBadPixels); }
     49    void SetBadPixels(const MBadPixelsCam &bad) { bad.Copy(fBadPixels); }
    5050
    5151    Bool_t ProcessD(MPedestalCam &pedcam);
  • trunk/MagicSoft/Mars/mjobs/MJPedestal.h

    r3155 r3445  
    4040    TString GetOutputFile() const;
    4141
    42     const MPedestalCam  &GetPedestalCam() const { return fPedestalCam; }
    43     const MBadPixelsCam &GetBadPixels()   const { return fBadPixels; }
     42    MPedestalCam &GetPedestalCam() { return fPedestalCam; }
     43    const MBadPixelsCam &GetBadPixels() const { return fBadPixels; }
    4444
    45     void SetBadPixels(MBadPixelsCam &bad) { bad.Copy(fBadPixels); }
     45    void SetBadPixels(const MBadPixelsCam &bad) { bad.Copy(fBadPixels); }
    4646
    4747    Bool_t ProcessFile();
Note: See TracChangeset for help on using the changeset viewer.