From 98057520d305929709a8f4bff8017cd2b2b8662f Mon Sep 17 00:00:00 2001 From: Richard Jones Date: Sat, 1 Jan 2022 08:49:46 -0500 Subject: [PATCH] * suppress compiler warnings about unused variables [rtj] --- src/CobremsGeneration.cc | 8 +++++--- src/GlueXPhotonBeamGenerator.cc | 6 ------ src/GlueXSensitiveDetectorCDC.cc | 2 -- 3 files changed, 5 insertions(+), 11 deletions(-) diff --git a/src/CobremsGeneration.cc b/src/CobremsGeneration.cc index 97f632a..126216d 100644 --- a/src/CobremsGeneration.cc +++ b/src/CobremsGeneration.cc @@ -72,8 +72,8 @@ CobremsGeneration::CobremsGeneration(double Emax_GeV, double Epeak_GeV) fBeamEmittance = 2.5e-9; // m r fCollimatorSpotrms = 0.0005; // m fCollimatorDistance = 76.0; // m - fCollimatorDiameter = 0.0034; // m - fTargetThickness = 20e-6; // m + fCollimatorDiameter = 0.005; // m + fTargetThickness = 50e-6; // m fTargetThetay = 0.050; // radians fTargetThetaz = 0; // radians setTargetCrystal("diamond"); @@ -656,11 +656,13 @@ double CobremsGeneration::Rate_dNcdxdp(double x, double phi) #if COBREMS_GENERATOR_VERBOSITY > 1 if (qzmin < 99) { +#else + if (false) { +#endif std::cout << hmin << "," << kmin << "," << lmin << " is the best plane at x=" << x << std::endl; } -#endif return sum; } diff --git a/src/GlueXPhotonBeamGenerator.cc b/src/GlueXPhotonBeamGenerator.cc index 26e35f8..77af8c1 100644 --- a/src/GlueXPhotonBeamGenerator.cc +++ b/src/GlueXPhotonBeamGenerator.cc @@ -100,12 +100,6 @@ GlueXPhotonBeamGenerator::GlueXPhotonBeamGenerator(CobremsGeneration *gen) } } - // These cutoffs should be set empirically, as low as possible - // for good efficiency, but not too low so as to avoid excessive - // warnings about Pcut violations. - - double raddz = fCobrems->getTargetThickness() * m; - prepareImportanceSamplingPDFs(); // Create interface for interactive commands diff --git a/src/GlueXSensitiveDetectorCDC.cc b/src/GlueXSensitiveDetectorCDC.cc index 87c067a..add9024 100644 --- a/src/GlueXSensitiveDetectorCDC.cc +++ b/src/GlueXSensitiveDetectorCDC.cc @@ -630,8 +630,6 @@ void GlueXSensitiveDetectorCDC::add_cluster(hit_vector_t &hits, // drift radius double dradius_cm = hit.d_cm; - double d2 = dradius_cm * dradius_cm; - double d3 = dradius_cm * d2; // Find the drift time for this cluster. Drift time depends on B: // (dependence derived from Garfield calculations)