Changeset 17643 for trunk/Mars/msimcamera/MSimCamera.cc
- Timestamp:
- 04/03/14 11:54:28 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/msimcamera/MSimCamera.cc
r17384 r17643 61 61 #include "MAnalogChannels.h" 62 62 63 #include "MParameters.h" 64 63 65 #include "MMcEvt.hxx" // To be replaced by a CheObs class 64 66 #include "MRawRunHeader.h" … … 74 76 MSimCamera::MSimCamera(const char* name, const char *title) 75 77 : fEvt(0), fStat(0), fRunHeader(0), fElectronicNoise(0), fGain(0), 76 fCamera(0), fMcEvt(0), fSpline(0), fBaselineGain(kFALSE),78 fCamera(0), fMcEvt(0),fCrosstalkCoeffParam(0), fSpline(0), fBaselineGain(kFALSE), 77 79 fDefaultOffset(-1), fDefaultNoise(-1), fDefaultGain(-1), fACFudgeFactor(0), 78 80 fACTimeConstant(0) … … 140 142 { 141 143 *fLog << err << "AccidentalPhotonRates [MPedestalCam] not found... aborting." << endl; 144 return kFALSE; 145 } 146 147 fCrosstalkCoeffParam = (MParameterD*)pList->FindCreateObj("MParameterD","CrosstalkCoeffParam"); 148 if (!fCrosstalkCoeffParam) 149 { 150 *fLog << err << "CrosstalkCoeffParam [MParameterD] not found... aborting." << endl; 142 151 return kFALSE; 143 152 } … … 273 282 } 274 283 275 // FIXME: I don't know how to get the variable fCrosstalkProb from 276 // the class APD (see MAvalanchePhotoDiode.h), because there is no 277 // getter for the APD array(fAPDs) in MSimAPD. 278 // So I set the crossTalkProb hardcoded to the value 0.15, which is 279 // equal to the value of the apd of type 4 280 const Double_t crossTalkProb = 0.15; 284 // Get the CrosstalkCoefficient Parameter 285 const Double_t crossTalkProb = fCrosstalkCoeffParam->GetVal(); 281 286 282 287 // To get the area of one Pulse, I only need to calculate the Integral
Note:
See TracChangeset
for help on using the changeset viewer.