Changeset 18549 for trunk/Mars/msim/MPhotonData.cc
- Timestamp:
- 08/26/16 13:03:45 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/msim/MPhotonData.cc
r18545 r18549 177 177 void MPhotonData::SimWavelength(Float_t wmin, Float_t wmax) 178 178 { 179 if (fWavelength>0)180 return;181 182 179 const Double_t w = gRandom->Uniform(wmin, wmax); 183 180 … … 288 285 fTime = f[4]/10.; // a relative arival time [ns] 289 286 fProductionHeight = pow(10, f[5]/1000.); // altitude of emission a.s.l. [cm] 290 fWavelength = TMath::Abs(f[7]);// wavelength [nm]: 0 undetermined, <0 already in p.e.287 fWavelength = f[7]; // wavelength [nm]: 0 undetermined, <0 already in p.e. 291 288 292 289 // Now reset all data members which are not in the stream … … 370 367 // gLog << "Num Photons: " << fNumPhotons << " from " << MMcEvtBasic::GetParticleName(fPrimary) << endl; 371 368 gLog << "Origin: " << MMcEvtBasic::GetParticleName(fPrimary) << endl; 372 gLog << "Wavelength: " << dec <<fWavelength << "nm" << endl;369 gLog << "Wavelength: " << fWavelength << "nm" << endl; 373 370 gLog << "Pos X/Y Cos U/V: " << fPosX << "/" << fPosY << " " << fCosU << "/" << fCosV << endl; 374 371 gLog << "Time/Prod.Height: " << fTime << "ns/" << fProductionHeight/100 << "m" << endl;
Note:
See TracChangeset
for help on using the changeset viewer.