#include #include #include using namespace RAT; double PhotonThinning::fThinningFactor = 1.0; void PhotonThinning::BeginOfRun() { SetFactor( DB::Get()->GetLink("MC")->GetD("thin_factor") ); } void PhotonThinning::SetFactor( const double factor ) { Log::Assert( factor >= 1.0, "PhotonThinning::SetFactor: Cannot set a photon thinning factor that is < 1.0" ); fThinningFactor = factor; }