Changeset 5871 for trunk/MagicSoft
- Timestamp:
- 01/17/05 13:45:41 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjobs/MJPedestal.cc
r5870 r5871 932 932 if (fExtractor) 933 933 { 934 if (!fExtractor->InheritsFrom("MExtractTimeAndCharge")) 934 const Float_t f = 0.5+fExtractor->GetHiGainFirst(); 935 const Float_t n = 0.5+fExtractor->GetNumHiGainSamples(); 936 pedcalc.SetExtractWindow((Int_t)f, (Int_t)n); 937 pedlogain.SetExtractWindow((Int_t)(15+f), (Int_t)n); 938 939 if (!fExtractor->InheritsFrom("MExtractTimeAndCharge")) 935 940 { 936 const Float_t f = 0.5+fExtractor->GetHiGainFirst(); 937 const Float_t n = 0.5+fExtractor->GetNumHiGainSamples(); 938 pedcalc.SetExtractWindow((Int_t)f, (Int_t)n); 939 pedlogain.SetExtractWindow((Int_t)(15+f), (Int_t)n); 940 941 if (fExtractionType!=kFundamental) 941 if (fExtractionType!=kFundamental) 942 942 { 943 944 945 946 943 *fLog << inf; 944 *fLog << "Signal extractor doesn't inherit from MExtractTimeAndCharge..." << endl; 945 *fLog << " --> falling back to fundamental pedestal extraction." << endl; 946 fExtractionType=kFundamental; 947 947 } 948 948 } 949 950 949 950 if (fExtractionType!=kFundamental) 951 951 { 952 953 954 955 956 952 pedcalc.SetRandomCalculation(fExtractionType==kWithExtractorRndm); 953 pedlogain.SetRandomCalculation(fExtractionType==kWithExtractorRndm); 954 955 pedcalc.SetExtractor((MExtractTimeAndCharge*)fExtractor); 956 pedlogain.SetExtractor((MExtractTimeAndCharge*)fExtractor); 957 957 } 958 958 }
Note:
See TracChangeset
for help on using the changeset viewer.