Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/feature/10000_poldi_coverity_iss…
Browse files Browse the repository at this point in the history
…ues'
  • Loading branch information
NickDraper committed Aug 8, 2014
2 parents 8f24207 + 6349aa4 commit c5d534a
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,13 @@ namespace Poldi
*/

struct DetectorElementCharacteristics {
DetectorElementCharacteristics()
DetectorElementCharacteristics() :
distance(0.0),
totalDistance(0.0),
twoTheta(0.0),
sinTheta(0.0),
cosTheta(1.0),
tof1A(0.0)
{ }

DetectorElementCharacteristics(int element, const PoldiAbstractDetector_sptr &detector, const PoldiAbstractChopper_sptr &chopper)
Expand All @@ -51,7 +57,7 @@ struct DetectorElementCharacteristics {
twoTheta = detector->twoTheta(element);
sinTheta = sin(twoTheta / 2.0);
cosTheta = cos(twoTheta / 2.0);
tof1A = Conversions::dtoTOF(1.0, totalDistance, sinTheta); //4947.990234375;//2.0 * totalDistance * sinTheta * PhysicalConstants::NeutronMass / (PhysicalConstants::h * 1e7);//4947.99013618171464192258; //063732507753820628;//4947.990; //Conversions::dtoTOF(1.0, totalDistance, sinTheta);
tof1A = Conversions::dtoTOF(1.0, totalDistance, sinTheta);
}

double distance;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ PoldiAutoCorrelationCore::PoldiAutoCorrelationCore(Kernel::Logger &g_log) :
m_chopper(),
m_wavelengthRange(),
m_deltaT(),
m_deltaD(),
m_timeBinCount(),
m_detectorElements(),
m_weightsForD(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ PoldiPeakCollection::PoldiPeakCollection(IntensityType intensityType) :
}

PoldiPeakCollection::PoldiPeakCollection(const TableWorkspace_sptr &workspace) :
m_peaks()
m_peaks(),
m_intensityType(Maximum),
m_profileFunctionName()
{
if(workspace) {
constructFromTableWorkspace(workspace);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ using namespace API;
DECLARE_FUNCTION(PoldiSpectrumDomainFunction)

PoldiSpectrumDomainFunction::PoldiSpectrumDomainFunction() :
ParamFunction()
ParamFunction(),
m_chopperSlitOffsets(),
m_deltaT(0.0),
m_timeTransformer()
{

}
Expand Down

0 comments on commit c5d534a

Please sign in to comment.