Changeset 17643 for trunk/Mars/msimcamera
- Timestamp:
- 04/03/14 11:54:28 (11 years ago)
- Location:
- trunk/Mars/msimcamera
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/msimcamera/MSimAPD.cc
r17202 r17643 70 70 #include "MAvalanchePhotoDiode.h" 71 71 72 #include "MParameters.h" 73 72 74 ClassImp(MSimAPD); 73 75 … … 126 128 return kFALSE; 127 129 } 130 131 fCrosstalkCoeffParam = (MParameterD*)pList->FindCreateObj("MParameterD","CrosstalkCoeffParam"); 132 if (!fCrosstalkCoeffParam) 133 { 134 *fLog << err << "CrosstalkCoeffParam [MParameterD] not found... aborting." << endl; 135 return kFALSE; 136 } 137 fCrosstalkCoeffParam->SetVal(fCrosstalkCoeff); 128 138 129 139 fRates = (MPedestalCam*)pList->FindObject("AccidentalPhotonRates", "MPedestalCam"); -
trunk/Mars/msimcamera/MSimAPD.h
r17067 r17643 15 15 class MPhotonStatistics; 16 16 class MPedestalCam; 17 class MParameterD; 17 18 18 19 class MSimAPD : public MTask … … 23 24 MPhotonStatistics *fStat; //! Storing event statistics (needed for the start-time) 24 25 MPedestalCam *fRates; //! Accidental Photon Rates for all pixels 26 27 MParameterD *fCrosstalkCoeffParam; 25 28 26 29 TObjArray fAPDs; //! Array keeping the necessary number of APDs -
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 -
trunk/Mars/msimcamera/MSimCamera.h
r17148 r17643 15 15 16 16 class MSpline3; 17 class MParameterD; 17 18 18 19 class MSimCamera : public MTask … … 28 29 MAnalogChannels *fCamera; //! Output of the analog signals 29 30 MMcEvt *fMcEvt; //! For information stored in MMcEvt 31 32 MParameterD *fCrosstalkCoeffParam; 30 33 31 34 const MSpline3 *fSpline; // Pulse Shape
Note:
See TracChangeset
for help on using the changeset viewer.