Changeset 7560 for trunk/MagicSoft/Mars/mjobs/MJPedestal.cc
- Timestamp:
- 03/02/06 13:24:28 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjobs/MJPedestal.cc
r7425 r7560 843 843 } 844 844 845 Bool_t MJPedestal::PulsePosCheck(const MParList &plist) const845 Int_t MJPedestal::PulsePosCheck(const MParList &plist) const 846 846 { 847 847 if (fIsPixelCheck) … … 951 951 { 952 952 *fLog << err << "Pulse is too much to the left, cannot go below 0!" << endl; 953 return kFALSE;953 return -1; 954 954 955 955 } … … 959 959 *fLog << numhigainsamples << "+" << numlogainsamples << "-1" << endl; 960 960 *fLog << " Cannot extract at all!" << endl; 961 return kFALSE;961 return -3; 962 962 } 963 963 if (newlast+wslogain > numlogainsamples) … … 970 970 *fLog << "(ATTENTION, you will lose late cosmics pulses!)" << endl; 971 971 *fLog << endl; 972 return kFALSE;972 return -2; 973 973 } 974 974 … … 986 986 } 987 987 988 Bool_t MJPedestal::Process()988 Int_t MJPedestal::Process() 989 989 { 990 990 if (!fSequence.IsValid()) … … 1271 1271 return kFALSE; 1272 1272 1273 if (!PulsePosCheck(plist)) 1274 return kFALSE; 1273 const Int_t rc = PulsePosCheck(plist); 1274 if (rc<1) 1275 return rc; 1275 1276 1276 1277 *fLog << all << GetDescriptor() << ": Done." << endl;
Note:
See TracChangeset
for help on using the changeset viewer.