Changeset 8552 for trunk/MagicSoft/Mars/mhcalib
- Timestamp:
- 06/12/07 21:50:30 (18 years ago)
- Location:
- trunk/MagicSoft/Mars/mhcalib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhcalib/MHCalibrationChargeCam.cc
r8519 r8552 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: MHCalibrationChargeCam.cc,v 1. 59 2007-05-16 13:56:17tbretz Exp $2 ! $Name: not supported by cvs2svn $:$Id: MHCalibrationChargeCam.cc,v 1.60 2007-06-12 20:50:30 tbretz Exp $ 3 3 ! -------------------------------------------------------------------------- 4 4 ! … … 303 303 304 304 for (int i=0; i<navhi; i++) 305 cam->fAverageHiGainAreas->AddAt(GetAverageHiGainArea(i).Clone(),i);305 cam->fAverageHiGainAreas->AddAt(GetAverageHiGainArea(i).Clone(),i); 306 306 307 307 if (IsLoGain()) … … 1212 1212 // 1213 1213 for (Int_t i=0; i<nareas;i++) 1214 { 1215 1214 { 1216 1215 pad->cd(i+1); 1217 1216 1218 1217 MHCalibrationChargePix &hipix = (MHCalibrationChargePix&)GetAverageHiGainArea(i); 1218 1219 1219 // 1220 1220 // Ask for Hi-Gain saturation 1221 1221 // 1222 1222 if (hipix.GetSaturated() > fNumHiGainSaturationLimit*hipix.GetHGausHist()->GetEntries() && IsLoGain()) 1223 { 1223 { 1224 if (i>=fAverageLoGainAreas->GetSize()) 1225 continue; 1226 1224 1227 MHCalibrationChargePix &lopix = (MHCalibrationChargePix&)GetAverageLoGainArea(i); 1225 1228 DrawDataCheckPixel(lopix,i ? fOuterRefCharge : fInnerRefCharge); 1226 1229 } 1227 1230 else 1228 DrawDataCheckPixel(hipix,i ? fOuterRefCharge : fInnerRefCharge); 1229 1230 } 1231 DrawDataCheckPixel(hipix,i ? fOuterRefCharge : fInnerRefCharge); 1232 } 1231 1233 } 1232 1234 … … 1326 1328 xaxe2->SetRangeUser(0, pix.GetEvents()->GetSize()/pix.GetEventFrequency()); 1327 1329 } 1328 1329 1330 pix.DrawEvents(); 1330 1331 -
trunk/MagicSoft/Mars/mhcalib/MHCalibrationPulseTimeCam.cc
r8519 r8552 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: MHCalibrationPulseTimeCam.cc,v 1. 39 2007-05-16 13:56:17tbretz Exp $2 ! $Name: not supported by cvs2svn $:$Id: MHCalibrationPulseTimeCam.cc,v 1.40 2007-06-12 20:49:55 tbretz Exp $ 3 3 ! -------------------------------------------------------------------------- 4 4 ! … … 101 101 // sigmas in the camera. 102 102 // 103 // 104 // ClassVersion 2: 105 // --------------- 106 // - Byte_t fSaturationLimit 107 // - Byte_t fLowerSignalLimit 108 // + UInt_t fSaturationLimit 109 // + UInt_t fLowerSignalLimit 110 // 103 111 ///////////////////////////////////////////////////////////////////////////// 104 112 #include "MHCalibrationPulseTimeCam.h" … … 133 141 using namespace std; 134 142 135 const Byte_t MHCalibrationPulseTimeCam::fgSaturationLimit = 245;136 const Byte_t MHCalibrationPulseTimeCam::fgLowerSignalLimit = 85;143 const UInt_t MHCalibrationPulseTimeCam::fgSaturationLimit = 245; 144 const UInt_t MHCalibrationPulseTimeCam::fgLowerSignalLimit = 85; 137 145 const Int_t MHCalibrationPulseTimeCam::fgNumPixelsRequired = 2; 138 146 const Int_t MHCalibrationPulseTimeCam::fgHiGainNbins = 20; … … 172 180 fName = name ? name : "MHCalibrationPulseTimeCam"; 173 181 fTitle = title ? title : "Class to fill the extracted pulse times for cosmics "; 174 182 175 183 SetBinning(fgHiGainNbins, fgHiGainFirst, fgHiGainLast); 176 184 … … 389 397 continue; 390 398 391 // Get position of maximum 399 // Get position of maximum (FIXME: Extraction range?) 392 400 Float_t max; 393 const Int_t pos = evt->GetMax (idx, max);401 const Int_t pos = evt->GetMaxPos(idx, max); 394 402 395 403 // check if maximum is high enough … … 634 642 if (IsEnvDefined(env, prefix, "SaturationLimit", print)) 635 643 { 636 SetSaturationLimit(GetEnvValue(env, prefix, "SaturationLimit", fSaturationLimit));644 SetSaturationLimit(GetEnvValue(env, prefix, "SaturationLimit", (Int_t)fSaturationLimit)); 637 645 rc = kTRUE; 638 646 } … … 640 648 if (IsEnvDefined(env, prefix, "LowerSignalLimit", print)) 641 649 { 642 SetLowerSignalLimit(GetEnvValue(env, prefix,"LowerSignalLimit",fLowerSignalLimit));650 SetLowerSignalLimit(GetEnvValue(env, prefix, "LowerSignalLimit", (Int_t)fLowerSignalLimit)); 643 651 rc = kTRUE; 644 652 }
Note:
See TracChangeset
for help on using the changeset viewer.