Changeset 5307 for trunk/MagicSoft/Mars/msignal/MExtractTimeAndCharge.cc
- Timestamp:
- 10/22/04 15:59:02 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/msignal/MExtractTimeAndCharge.cc
r5242 r5307 74 74 75 75 const Float_t MExtractTimeAndCharge::fgLoGainStartShift = -2.8; 76 76 77 // -------------------------------------------------------------------------- 77 78 // … … 83 84 MExtractTimeAndCharge::MExtractTimeAndCharge(const char *name, const char *title) 84 85 { 85 86 fName = name ? name : "MExtractTimeAndCharge"; 87 fTitle = title ? title : "Base class for signal and time extractors"; 88 89 SetLoGainStartShift(); 86 fName = name ? name : "MExtractTimeAndCharge"; 87 fTitle = title ? title : "Base class for signal and time extractors"; 88 89 SetLoGainStartShift(); 90 90 } 91 91 … … 105 105 Int_t MExtractTimeAndCharge::PreProcess(MParList *pList) 106 106 { 107 108 if (!MExtractTime::PreProcess(pList)) 109 return kFALSE; 110 111 fSignals = (MExtractedSignalCam*)pList->FindCreateObj(AddSerialNumber("MExtractedSignalCam")); 112 if (!fSignals) 113 { 114 *fLog << err << GetDescriptor() 115 << ": Could not find nor create MExtractedSignalCam,... aborting." << endl; 116 return kFALSE; 117 } 118 119 120 return kTRUE; 107 if (!MExtractTime::PreProcess(pList)) 108 return kFALSE; 109 110 fSignals = (MExtractedSignalCam*)pList->FindCreateObj(AddSerialNumber("MExtractedSignalCam")); 111 if (!fSignals) 112 return kFALSE; 113 114 return kTRUE; 121 115 } 122 116 … … 132 126 Bool_t MExtractTimeAndCharge::ReInit(MParList *pList) 133 127 { 134 135 MExtractTime::ReInit(pList);136 137 fSignals->SetUsedFADCSlices(fHiGainFirst, fHiGainLast+fHiLoLast, fNumHiGainSamples,138 fLoGainFirst, fLoGainLast, fNumLoGainSamples);139 140 *fLog << dec << endl;141 *fLog << inf << GetDescriptor() << ":Taking " << fNumHiGainSamples128 if (!MExtractTime::ReInit(pList)) 129 return kFALSE; 130 131 fSignals->SetUsedFADCSlices(fHiGainFirst, fHiGainLast+fHiLoLast, fNumHiGainSamples, 132 fLoGainFirst, fLoGainLast, fNumLoGainSamples); 133 134 *fLog << dec << endl; 135 *fLog << inf << "Taking " << fNumHiGainSamples 142 136 << " HiGain samples from slice " << (Int_t)fHiGainFirst 143 137 << " to " << (Int_t)(fHiGainLast+fHiLoLast) << " incl" << endl; 144 *fLog << inf << GetDescriptor() << ":Taking " << fNumLoGainSamples138 *fLog << inf << "Taking " << fNumLoGainSamples 145 139 << " LoGain samples from slice " << (Int_t)fLoGainFirst 146 140 << " to " << (Int_t)fLoGainLast << " incl" << endl; 147 141 148 return kTRUE;142 return kTRUE; 149 143 } 150 144 … … 258 252 return MExtractTime::ReadEnv(env, prefix, print) ? kTRUE : rc; 259 253 } 254 255 void MExtractTimeAndCharge::Print(Option_t *o) const 256 { 257 *fLog << all; 258 if (IsA()==MExtractTimeAndCharge::Class()) 259 *fLog << GetDescriptor() << ":" << endl; 260 261 *fLog << " LoGainStartShift: " << fLoGainStartShift << endl; 262 MExtractTime::Print(o); 263 }
Note:
See TracChangeset
for help on using the changeset viewer.