Changeset 8891 for trunk/MagicSoft/Mars/msignal
- Timestamp:
- 05/15/08 19:37:27 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/msignal/MExtractTimeAndCharge.cc
r8661 r8891 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: MExtractTimeAndCharge.cc,v 1.6 8 2007-08-10 11:21:21tbretz Exp $2 ! $Name: not supported by cvs2svn $:$Id: MExtractTimeAndCharge.cc,v 1.69 2008-05-15 18:37:27 tbretz Exp $ 3 3 ! -------------------------------------------------------------------------- 4 4 ! … … 219 219 Int_t MExtractTimeAndCharge::Process() 220 220 { 221 const Int_t nums = fSignal->GetNumSamples(); 222 221 223 const Int_t numh = fRunHeader->GetNumSamplesHiGain(); 222 224 const Int_t numl = fRunHeader->GetNumSamplesLoGain(); 223 225 226 // Some sanity checks to get rid of some weird behaviour of the simulation 227 if (nums!=numh+numl) 228 { 229 *fLog << err << "MExtractTimeAndCharge::Process: ERROR - Number of samples in event "; 230 *fLog << "(" << nums << ")" << endl << " doesn't match number in run-header "; 231 *fLog << "(" << numh+numl << ")" << endl; 232 *fLog << " In case you are processing real data you have just found a bug." << endl; 233 *fLog << " If you process Monte Carlo data, it means probably that the length" << endl; 234 *fLog << " of the arrays in MRawEvtData are inconsistent with the run-header." << endl; 235 return kERROR; 236 } 237 238 // Start extraction 224 239 const UInt_t satlim = fSaturationLimit*fRunHeader->GetScale(); 225 240
Note:
See TracChangeset
for help on using the changeset viewer.