diff --git a/CRVResponse/src/CrvDigitizer_module.cc b/CRVResponse/src/CrvDigitizer_module.cc index ac5ad1dca8..b491381bdf 100644 --- a/CRVResponse/src/CrvDigitizer_module.cc +++ b/CRVResponse/src/CrvDigitizer_module.cc @@ -103,7 +103,7 @@ namespace mu2e const std::vector &voltages = crvDigiMC.GetVoltages(); double startTime = crvDigiMC.GetStartTime(); double TDC0time = crvDigiMC.GetTDC0Time(); - double NZS = crvDigiMC.IsNZS(); + bool NZS = crvDigiMC.IsNZS(); //start time gets measured with respect to FEB's TDC near the event window start. //that's the TDC that gets set to TDC=0 and can be anywhere within: event window start <= t < event window start + digitization period diff --git a/CRVResponse/src/CrvWaveformsGenerator_module.cc b/CRVResponse/src/CrvWaveformsGenerator_module.cc index a2d4aa83ec..a6a484f4b4 100644 --- a/CRVResponse/src/CrvWaveformsGenerator_module.cc +++ b/CRVResponse/src/CrvWaveformsGenerator_module.cc @@ -266,7 +266,7 @@ namespace mu2e } //collect CrvSteps and SimParticles responsible for this single waveform - std::set > steps; //use a set to remove dublicate steppoints + std::set > steps; //use a set to remove duplicate steppoints std::map, int> simparticles; for(size_t j=0; jfirst; - prevNumberPhotons=i->second; - first=false; - } + prevBeta=i->first; + prevNumberPhotons=i->second; + first=false; } return photons.rbegin()->second*fabs(charge/eplus); //this shouldn't happen } diff --git a/CRVResponse/src/MakeCrvSiPMCharges.cc b/CRVResponse/src/MakeCrvSiPMCharges.cc index df4f09f7cd..92c8a1840c 100644 --- a/CRVResponse/src/MakeCrvSiPMCharges.cc +++ b/CRVResponse/src/MakeCrvSiPMCharges.cc @@ -71,14 +71,14 @@ double MakeCrvSiPMCharges::GenerateAvalanche(Pixel &pixel, const std::pairIsZombie()) throw std::logic_error("Could not open photon map file."); _photonMap = (TH2F*)_photonMapFile->FindObjectAny("photonMap"); - if(_photonMap==NULL) throw std::logic_error("Could not find photon map."); + if(!_photonMap) throw std::logic_error("Could not find photon map."); } }