Changeset 6753


Ignore:
Timestamp:
03/05/05 17:21:10 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mjobs/MJPedestal.cc

    r6751 r6753  
    12221222          {
    12231223            hcam->DrawClone();
     1224            gPad->SaveAs(Form("%s/PulsePosTest_all.root",fPathOut.Data()));
    12241225            MHCalibrationPix &pix = (*hcam)[fCheckedPixId];
    12251226            pix.DrawClone();
     1227            gPad->SaveAs(Form("%s/PulsePosTest_Pixel%04d.root",fPathOut.Data(),fCheckedPixId));
    12261228          }
    12271229       
     
    12331235            const Float_t rmspulsetime = cam->GetAverageArea(0).GetHiGainRms();
    12341236            *fLog << inf << "Mean pulse time (cosmics): " << meanpulsetime << "+-" << rmspulsetime << endl;
    1235             const Int_t newfirst = 1.5*rmspulsetime > 3.
    1236               ? (Int_t)(meanpulsetime-1.5*rmspulsetime)
    1237               : (Int_t)(meanpulsetime-3.);
     1237            const Int_t newfirst = (Int_t)(meanpulsetime-2.5);
    12381238            Int_t wshigain = fExtractor->InheritsFrom("MExtractTimeAndCharge")
    12391239              ?  ((MExtractTimeAndCharge*)fExtractor)->GetWindowSizeHiGain()
     
    12441244              ? ((MExtractTimeAndCharge*)fExtractor)->GetWindowSizeLoGain()
    12451245              : 6;
    1246             const Int_t newlast  = 1.5*rmspulsetime > 3.
    1247               ? (Int_t)(meanpulsetime+1.5*rmspulsetime)
    1248               : (Int_t)(meanpulsetime+3.);
     1246            const Int_t newlast  = (Int_t)(meanpulsetime+6.);
    12491247            *fLog << inf << "Try to set new range limits: ("<<newfirst<<","<<newlast+wshigain<<")"<<endl;
    12501248            if (newfirst < 0)
Note: See TracChangeset for help on using the changeset viewer.