Changeset 3248 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
02/21/04 01:14:08 (21 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r3246 r3248  
    44
    55                                                 -*-*- END OF LINE -*-*-
    6  2004/01/19: Markus Gaug
     6 
     7
     8 2004/02/20: Markus Gaug
     9
     10   * mcalib/MCalibrationChargeCalc.[h,cc]
     11   * mcalib/MCalibrationChargeCam.[h,cc]
     12   * mcalib/MCalibrationChargePINDiode.[h,cc]
     13   * mcalib/MCalibrationCalc.[h,cc]
     14   * mcalib/MCalibrationCam.[h,cc]
     15   * mcalib/MCalibrationPINDiode.[h,cc]
     16
     17   - added the "charge" versions, remove the old ones. The histograms
     18     should be filled in the MH... versions independently of
     19     MCalibrationChargeCalc. This is fully realized for the PIN Didoe
     20     now and will later be so for the pixels and the blind pixel.
     21
     22   * mcalib/MHCalibrationChargePINDiode.[h,cc]
     23
     24   - receives a pointer to MCalibrationChargePINDiode which is filled
     25     with the results and told to calculate the fluxes in the
     26     Finalize function
     27 
     28
     29 2004/02/19: Markus Gaug
    730
    831   * mcalib/MCalibrationPix.[h,cc], mcalib/MCalibrationCam.cc,
     
    2144
    2245
    23  2004/01/19: Abelardo Moralejo
     46 2004/02/19: Abelardo Moralejo
    2447
    2548   * mhist/MHEvent.[h,cc]:
     
    4770
    4871
    49  2004/01/19: Thomas Bretz
     72 2004/02/19: Thomas Bretz
    5073
    5174   * manalysis/MCerPhotEvt.h:
     
    6992
    7093
    71  2004/01/18: Markus Gaug
     94 2004/02/18: Markus Gaug
    7295
    7396    * macros/calibration.C
     
    82105
    83106
    84  2004/01/18: Abelardo Moralejo
     107 2004/02/18: Abelardo Moralejo
    85108
    86109    * mtools/MCubicSpline.cc
     
    107130
    108131
    109  2004/01/18: Thomas Bretz
     132 2004/02/18: Thomas Bretz
    110133
    111134   * manalysis/MPedestalCam.[h,cc]:
     
    132155
    133156
    134  2004/01/17: Raquel de los Reyes
     157 2004/02/17: Raquel de los Reyes
    135158
    136159   * macros/CCDataCheck.C
     
    139162
    140163
    141  2004/01/17: Abelardo Moralejo
     164 2004/02/17: Abelardo Moralejo
    142165
    143166   * macros/readrfl.C
     
    152175
    153176
    154  2004/01/17: Raquel de los Reyes
     177 2004/02/17: Raquel de los Reyes
    155178
    156179   * mcamera/MCameraHV.h
  • trunk/MagicSoft/Mars/mcalib/MHCalibrationChargePINDiode.cc

    r3200 r3248  
    4141#include "MLogManip.h"
    4242
     43#include "MParList.h"
     44
    4345#include "MExtractedSignalPINDiode.h"
     46#include "MCalibrationChargePINDiode.h"
    4447
    4548ClassImp(MHCalibrationChargePINDiode);
     
    6164//
    6265MHCalibrationChargePINDiode::MHCalibrationChargePINDiode(const char *name, const char *title)
    63     : fHRmsCharge()
     66    : fPINDiode(NULL), fHRmsCharge()
    6467{
    6568
     
    121124Bool_t MHCalibrationChargePINDiode::SetupFill(const MParList *pList)
    122125{
    123 
    124126  Init();
     127  return kTRUE;
     128}
     129
     130Bool_t MHCalibrationChargePINDiode::ReInit(MParList *pList)
     131{
     132
     133  fPINDiode = (MCalibrationChargePINDiode*)pList->FindCreateObj("MCalibrationChargePINDiode");
     134  if (!fPINDiode)
     135  {
     136      *fLog << err << GetDescriptor() << ": ERROR: Could not find MCalibrationChargePINDiode ... aborting " << endl;
     137      return kFALSE;
     138  }
     139
    125140  return kTRUE;
    126141}
     
    176191  CreateFourierSpectrum();
    177192
     193  fPINDiode->SetMeanCharge(     GetMean()     );
     194  fPINDiode->SetMeanChargeErr(  GetMeanErr()  );
     195  fPINDiode->SetSigmaCharge(    GetSigma()    );
     196  fPINDiode->SetSigmaChargeErr( GetSigmaErr() );
     197
     198  fPINDiode->SetAbsTimeMean(    GetAbsTimeMean() );
     199  fPINDiode->SetAbsTimeRms(     GetAbsTimeRms()  );
     200
     201  fPINDiode->SetRmsChargeMean(     GetRmsChargeMean()        );
     202  fPINDiode->SetRmsChargeMeanErr(  GetRmsChargeMeanErr()     );
     203  fPINDiode->SetRmsChargeSigma(    GetRmsChargeSigma()       );
     204  fPINDiode->SetRmsChargeSigmaErr( GetRmsChargeSigmaErr()    );
     205
     206  fPINDiode->CalcFluxOutsidePlexiglass();
    178207
    179208  return kTRUE;
  • trunk/MagicSoft/Mars/mcalib/MHCalibrationChargePINDiode.h

    r3175 r3248  
    88
    99class TH1F;
     10class MCalibrationChargePINDiode;
    1011class MHCalibrationChargePINDiode : public MHCalibrationChargePix
    1112{
    1213private:
    1314
    14   TH1F fHRmsCharge;         // Variance of summed FADC slices
     15  MCalibrationChargePINDiode *fPINDiode;  //! Storage container of the results
     16
     17  TH1F fHRmsCharge;                       // Variance of summed FADC slices
    1518
    1619  static const Int_t   fgChargeNbins;
     
    3033  Axis_t  fRmsChargeLast; 
    3134
     35  Float_t  fRmsChargeMean;
     36  Float_t  fRmsChargeMeanErr;
     37  Float_t  fRmsChargeSigma;
     38  Float_t  fRmsChargeSigmaErr;
     39
    3240  Float_t fExtractSlices;
    3341 
     
    4149 
    4250  Bool_t SetupFill(const MParList *pList);
    43   Bool_t Fill(const MParContainer *par, const Stat_t w=1);
     51  Bool_t ReInit   (      MParList *pList);
     52  Bool_t Fill     (const MParContainer *par, const Stat_t w=1);
    4453  Bool_t Finalize();
    4554
    4655  // Setters
    47   void SetChargeNbins(const Int_t  bins =fgChargeNbins)    { fChargeNbins = bins; }
    48   void SetChargeFirst(const Axis_t first=fgChargeFirst)    { fChargeFirst = first; }
    49   void SetChargeLast( const Axis_t last =fgChargeLast)     { fChargeLast  = last; }
     56  void SetChargeNbins(const Int_t  bins =fgChargeNbins)          { fChargeNbins = bins;    }
     57  void SetChargeFirst(const Axis_t first=fgChargeFirst)          { fChargeFirst = first;    }
     58  void SetChargeLast( const Axis_t last =fgChargeLast)           { fChargeLast  = last;    }
    5059 
    51   void SetAbsTimeNbins(const Int_t  bins =fgAbsTimeNbins)    { fAbsTimeNbins = bins; }
    52   void SetAbsTimeFirst(const Axis_t first=fgAbsTimeFirst)    { fAbsTimeFirst = first; }
    53   void SetAbsTimeLast( const Axis_t last =fgAbsTimeLast)     { fAbsTimeLast  = last; }
     60  void SetAbsTimeNbins(const Int_t  bins =fgAbsTimeNbins)        { fAbsTimeNbins = bins;    }
     61  void SetAbsTimeFirst(const Axis_t first=fgAbsTimeFirst)        { fAbsTimeFirst = first;  }
     62  void SetAbsTimeLast( const Axis_t last =fgAbsTimeLast)         { fAbsTimeLast  = last;    }
    5463
    55   void SetRmsChargeNbins(const Int_t  bins =fgRmsChargeNbins)    { fRmsChargeNbins = bins; }
     64  void SetRmsChargeNbins(const Int_t  bins =fgRmsChargeNbins)    { fRmsChargeNbins = bins;  }
    5665  void SetRmsChargeFirst(const Axis_t first=fgRmsChargeFirst)    { fRmsChargeFirst = first; }
    57   void SetRmsChargeLast( const Axis_t last =fgRmsChargeLast)     { fRmsChargeLast  = last; }
     66  void SetRmsChargeLast( const Axis_t last =fgRmsChargeLast)     { fRmsChargeLast  = last;  }
    5867
    5968  // Getters
    6069  TH1F *GetHRmsCharge()                  { return &fHRmsCharge;  }
    6170  const TH1F *GetHRmsCharge()            const { return &fHRmsCharge;  }
     71
     72  Float_t  GetRmsChargeMean()            const { return fRmsChargeMean; }
     73  Float_t  GetRmsChargeMeanErr()         const { return fRmsChargeMeanErr; }
     74  Float_t  GetRmsChargeSigma()           const { return fRmsChargeSigma; }
     75  Float_t  GetRmsChargeSigmaErr()        const { return fRmsChargeSigmaErr; }
    6276
    6377  // Fill histos
Note: See TracChangeset for help on using the changeset viewer.