Changeset 19542 for trunk/Mars
- Timestamp:
- 06/04/19 10:25:32 (5 years ago)
- Location:
- trunk/Mars/msimcamera
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/msimcamera/MSimRandomPhotons.cc
r10092 r19542 131 131 #include "MSpline3.h" 132 132 #include "MParSpline.h" 133 #include "M Reflector.h"133 #include "MOptics.h" 134 134 135 135 ClassImp(MSimRandomPhotons); … … 144 144 : fGeom(0), fEvt(0), fStat(0), /*fEvtHeader(0),*/ fRunHeader(0), 145 145 fRates(0), fSimulateWavelength(kFALSE), fNameGeomCam("MGeomCam"), 146 fFileNameNSB("resmc/night-sky-la-palma.txt") 146 fFileNameNSB("resmc/night-sky-la-palma.txt"), fForce(kFALSE) 147 147 { 148 148 fName = name ? name : "MSimRandomPhotons"; … … 202 202 } 203 203 204 M Reflector *r = (MReflector*)pList->FindObject("Reflector", "MReflector");204 MOptics *r = (MOptics*)pList->FindObject("Reflector", "MOptics"); 205 205 if (!r) 206 206 { 207 *fLog << err << "Reflector [M Reflector] not found... aborting." << endl;207 *fLog << err << "Reflector [MOptics] not found... aborting." << endl; 208 208 return kFALSE; 209 209 } … … 349 349 if (eff.GetSpline()->Eval(wmin)>1e-5) 350 350 { 351 *fLog << err<< "ERROR - Total transmission efficiency at ";351 *fLog << (fForce?warn:err) << "ERROR - Total transmission efficiency at "; 352 352 *fLog << wmin << "nm is not zero... abort." << endl; 353 353 *fLog << " PhotonDetectionEfficency: " << s1->GetSpline()->Eval(wmin) << endl; … … 355 355 *fLog << " MirrorReflectivity: " << s3->GetSpline()->Eval(wmin) << endl; 356 356 *fLog << " TotalEfficiency: " << eff.GetSpline()->Eval(wmin) << endl; 357 return kFALSE; 357 if (!fForce) 358 return kFALSE; 358 359 } 359 360 if (eff.GetSpline()->Eval(wmax)>1e-5) 360 361 { 361 *fLog << err<< "ERROR - Total transmission efficiency at ";362 *fLog << (fForce?warn:err) << "ERROR - Total transmission efficiency at "; 362 363 *fLog << wmax << "nm is not zero... abort." << endl; 363 364 *fLog << " PhotonDetectionEfficency: " << s1->GetSpline()->Eval(wmax) << endl; … … 365 366 *fLog << " MirrorReflectivity: " << s3->GetSpline()->Eval(wmax) << endl; 366 367 *fLog << " TotalEfficiency: " << eff.GetSpline()->Eval(wmax) << endl; 367 return kFALSE; 368 if (!fForce) 369 return kFALSE; 368 370 } 369 371 … … 526 528 { 527 529 Bool_t rc = kFALSE; 530 if (IsEnvDefined(env, prefix, "Force", print)) 531 { 532 rc = kTRUE; 533 fForce = GetEnvValue(env, prefix, "Force", fForce); 534 } 535 528 536 if (IsEnvDefined(env, prefix, "FrequencyFixed", print)) 529 537 { -
trunk/Mars/msimcamera/MSimRandomPhotons.h
r9991 r19542 35 35 TString fFileNameNSB; 36 36 37 Bool_t fForce; 38 37 39 // MTask 38 40 Int_t PreProcess(MParList *pList);
Note:
See TracChangeset
for help on using the changeset viewer.