Ignore:
Timestamp:
02/08/04 20:52:18 (21 years ago)
Author:
gaug
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mcalib/MHCalibrationPINDiode.cc

    r3007 r3056  
    4848MHCalibrationPINDiode::MHCalibrationPINDiode(const char *name, const char *title)
    4949    : fChargeNbins(1000),
    50       fTimeNbins(64),
    51       fChargevsNbins(10000),
    52       fTimeFirst(-0.25),
    53       fTimeLast(31.75)
     50      fChargevsNbins(10000)
    5451{
    5552
     
    6865    fHPINDiodeCharge->SetDirectory(NULL);
    6966
    70     fHPINDiodeTime = new TH1F("HPINDiodeTime","Distribution of Mean Arrival Times PINDiode",
    71                               fTimeNbins,fTimeFirst,fTimeLast);
    72     fHPINDiodeTime->SetXTitle("Mean Arrival Times [FADC slice nr]");
    73     fHPINDiodeTime->SetYTitle("Nr. of events");
    74     fHPINDiodeTime->Sumw2();
    75     fHPINDiodeTime->SetDirectory(NULL);
    76 
    7767    fHPINDiodeChargevsN = new TH1I("HPINDiodeChargevsN","Sum of Hi Gain Charges vs. Event Number Pixel ",
    7868                                 fChargevsNbins,-0.5,(Axis_t)fChargevsNbins - 0.5);
     
    8878
    8979  delete fHPINDiodeCharge;
    90   delete fHPINDiodeTime;
    9180  delete fHPINDiodeChargevsN;
    9281
    9382  if (fChargeGausFit)
    9483    delete fChargeGausFit;
    95   if (fRelTimeGausFit)
    96     delete fRelTimeGausFit;
    9784  if (fFitLegend)
    9885    delete fFitLegend;
     
    11097  fChargeProb              = -1.;
    11198  fChargeNdf               = -1;
    112   fRelTimeProb             = -1.;
    113   fRelTimeNdf              = -1;
    114   fRelTimeMean             = -1.;
    115   fRelTimeSigma            = -1.;
    116 
    117   fRelTimeLowerFitRangeHiGain = -99.;
    118   fRelTimeUpperFitRangeHiGain = -99.;
    119   fRelTimeLowerFitRangeLoGain = -99.;
    120   fRelTimeUpperFitRangeLoGain = -99.;
    12199
    122100  if (fChargeGausFit)
    123101    delete fChargeGausFit;
    124   if (fRelTimeGausFit)
    125     delete fRelTimeGausFit;
    126102  if (fFitLegend)
    127103    delete fFitLegend;
     
    137113
    138114  fHPINDiodeCharge->Reset();
    139   fHPINDiodeTime->Reset();
    140115  fHPINDiodeChargevsN->Reset();
    141116}
     
    145120{
    146121    return (fHPINDiodeCharge->Fill(q) > -1);
    147 }
    148 
    149 Bool_t MHCalibrationPINDiode::FillTime(Float_t t)
    150 {
    151     return (fHPINDiodeTime->Fill(t)   > -1);
    152122}
    153123
     
    160130{
    161131
    162   Int_t nbins = 30;
     132  Int_t nbins = 20;
    163133
    164134  CutEdges(fHPINDiodeCharge,nbins);
Note: See TracChangeset for help on using the changeset viewer.