Skip to content
Snippets Groups Projects
Commit 21e91b49 authored by Adam Edward Barton's avatar Adam Edward Barton :speech_balloon:
Browse files

Merge branch '22.0-cleanup-PixelCalibAlgs' into 'master'

22.0-cleanup-PixelCalibAlgs

See merge request atlas/athena!45368
parents ce6482dc f71b63c0
No related branches found
No related tags found
No related merge requests found
...@@ -3,16 +3,17 @@ ...@@ -3,16 +3,17 @@
*/ */
#include <cmath> #include <cmath>
#include <stdexcept>
double norm_rawToT(double input) double norm_rawToT(double input)
{ {
throw; throw std::runtime_error("Exception in doNormalization.C");
return (input-21.)/12.; return (input-21.)/12.;
} }
double back_rawToT(double input) double back_rawToT(double input)
{ {
throw; throw std::runtime_error("Exception in doNormalization.C");
return input*12.+21.; return input*12.+21.;
} }
...@@ -29,31 +30,31 @@ double back_ToT(double input) ...@@ -29,31 +30,31 @@ double back_ToT(double input)
double norm_pitch(double input) double norm_pitch(double input)
{ {
if (fabs(input-0.4)<0.001) if (std::fabs(input-0.4)<0.001)
{ {
return -0.5; return -0.5;
} }
if (fabs(input-0.6)<0.001) if (std::fabs(input-0.6)<0.001)
{ {
return +0.5; return +0.5;
} }
std::cout << " WARNING inpus is: " << input << std::endl; std::cout << " WARNING input is: " << input << std::endl;
throw; throw std::runtime_error("Exception in doNormalization.C");
return -1; return -1;
} }
double back_pitch(double input) double back_pitch(double input)
{ {
if (fabs(input-(-0.5))<0.001) if (std::fabs(input-(-0.5))<0.001)
{ {
return 0.4; return 0.4;
} }
if (fabs(input-0.5)<0.001) if (std::fabs(input-0.5)<0.001)
{ {
return 0.6; return 0.6;
} }
std::cout << " WARNING inpus is: " << input << std::endl; std::cout << " WARNING input is: " << input << std::endl;
throw; throw std::runtime_error("Exception in doNormalization.C");
return 0; return 0;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment