Changeset 8498 for trunk/MagicSoft/Mars/msignal
- Timestamp:
- 05/11/07 16:47:18 (18 years ago)
- Location:
- trunk/MagicSoft/Mars/msignal
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/msignal/MExtractBlindPixel.cc
r8490 r8498 231 231 232 232 fBlindPixel->SetExtractionType(fExtractionType); 233 233 /* 234 234 for (UInt_t i=0;i<fBlindPixelIdx.GetSize();i++) 235 235 { … … 246 246 } 247 247 } 248 /* 248 249 249 const Int_t higainsamples = fRunHeader->GetNumSamplesHiGain(); 250 250 const Int_t logainsamples = fRunHeader->GetNumSamplesLoGain(); -
trunk/MagicSoft/Mars/msignal/MExtractPINDiode.cc
r8367 r8498 208 208 209 209 fPedMean.Reset(); 210 210 /* 211 211 const MPedestalPix &ped = (*fPedestals)[fPINDiodeIdx]; 212 212 … … 222 222 return kFALSE; 223 223 } 224 224 */ 225 225 if (fSlices) 226 226 delete fSlices; -
trunk/MagicSoft/Mars/msignal/MExtractor.cc
r8364 r8498 115 115 116 116 const UInt_t MExtractor::fgSaturationLimit = 245; 117 const TString MExtractor::fgNamePedestalCam = "MPedestalCam";118 117 const TString MExtractor::fgNameSignalCam = "MExtractedSignalCam"; 119 118 const Float_t MExtractor::fgOffsetLoGain = 1.51; // 5 ns … … 127 126 // - all variables to 0 128 127 // - fSaturationLimit to fgSaturationLimit 129 // - fNamePedestalCam to fgNamePedestalCam130 128 // - fNameSignalCam to fgNameSignalCam 131 129 // - fNoiseCalculation to kFALSE … … 133 131 MExtractor::MExtractor(const char *name, const char *title) 134 132 : fResolutionPerPheHiGain(0), fResolutionPerPheLoGain(0), 135 fPedestals(NULL), fSignals(NULL), fRawEvt(NULL), fRunHeader(NULL), 136 fSignal(NULL), 133 fSignals(NULL), fRawEvt(NULL), fRunHeader(NULL), fSignal(NULL), 137 134 /*fHiLoLast(0),*/ fNumHiGainSamples(0), fNumLoGainSamples(0) 138 135 { … … 140 137 fTitle = title ? title : "Base class for signal extractors"; 141 138 142 SetNamePedestalCam();143 139 SetNameSignalCam(); 144 140 SetOffsetLoGain(); … … 162 158 // MRawEvtData 163 159 // MRawRunHeader 164 // MPedestalCam165 160 // 166 161 Int_t MExtractor::PreProcessStd(MParList *pList) … … 185 180 { 186 181 *fLog << err << AddSerialNumber("MPedestalSubtractedEvt") << " not found... aborting." << endl; 187 return kFALSE;188 }189 190 191 if (fPedestals)192 return kTRUE;193 194 fPedestals = (MPedestalCam*)pList->FindObject(AddSerialNumber(fNamePedestalCam), "MPedestalCam");195 if (!fPedestals)196 {197 *fLog << err << AddSerialNumber(fNamePedestalCam) << " [MPedestalCam] not found... aborting" << endl;198 182 return kFALSE; 199 183 } … … 207 191 // - MRawEvtData 208 192 // - MRawRunHeader 209 // - MPedestalCam210 193 // 211 194 // The following output containers are also searched and created if … … 480 463 *fLog << " Num Samples Hi/Lo: " << Form("%2.1f %2.1f", fNumHiGainSamples, fNumLoGainSamples) << endl; 481 464 } 482 if (fPedestals) 483 *fLog << " Pedestals: " << fPedestals->GetName() << ", " << fPedestals << endl; 484 } 465 } -
trunk/MagicSoft/Mars/msignal/MExtractor.h
r8364 r8498 17 17 class MRawRunHeader; 18 18 19 class MPedestalCam;20 19 class MPedestalSubtractedEvt; 21 20 class MExtractedSignalCam; … … 33 32 protected: 34 33 static const UInt_t fgSaturationLimit; //! Default for fSaturationLimit (now set to: 254) 35 static const TString fgNamePedestalCam; //! "MPedestalCam"36 34 static const TString fgNameSignalCam; //! "MExtractedSignalCam" 37 35 38 36 Float_t fOffsetLoGain; // Offset of the low-gain signal w.r.t. the High-Gain slices 39 37 40 MPedestalCam *fPedestals; //! Pedestals of all pixels in the camera41 38 MExtractedSignalCam *fSignals; //! Extracted signal of all pixels in the camera 42 39 43 40 MRawEvtData *fRawEvt; //! Raw event data (time slices) 44 41 MRawRunHeader *fRunHeader; //! RunHeader information 45 42 46 43 MPedestalSubtractedEvt *fSignal; //! 47 44 48 45 Byte_t fHiGainFirst; // First FADC slice nr. to extract the High Gain signal 49 46 Byte_t fHiGainLast; // Last FADC slice nr. to extract the High Gain signal … … 61 58 UInt_t fSaturationLimit; // Highest FADC slice value until being declared saturated 62 59 63 TString fNamePedestalCam; // Name of the 'MPedestalCam' container64 60 TString fNameSignalCam; // Name of the 'MExtractedSignalCam' container 65 61 … … 107 103 void SetOffsetLoGain ( const Float_t f=fgOffsetLoGain ) { fOffsetLoGain = f; } 108 104 void SetSaturationLimit ( const UInt_t lim=fgSaturationLimit ) { fSaturationLimit = lim; } 109 void SetNamePedestalCam ( const char *name=fgNamePedestalCam.Data()) { fNamePedestalCam = name; }110 105 void SetNameSignalCam ( const char *name=fgNameSignalCam.Data() ) { fNameSignalCam = name; } 111 106 void SetNoiseCalculation( const Bool_t b=kTRUE ) { fNoiseCalculation = b; } 112 113 void SetPedestals (MPedestalCam *pedcam) { fPedestals = pedcam; }114 MPedestalCam *GetPedestals() { return fPedestals; }115 107 116 108 // TObject
Note:
See TracChangeset
for help on using the changeset viewer.