ATLAS Offline Software
Functions
NnNormalization.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

double norm_rawToT (const double input)
 
double back_rawToT (const double input)
 
double norm_ToT (const double input)
 
double back_ToT (const double input)
 
double norm_pitch (const double input, bool addIBL=false)
 
double back_pitch (const double input, const bool addIBL=false)
 
double norm_layerNumber (const double input)
 
double back_layerNumber (const double input)
 
double norm_layerType (const double input)
 
double back_layerType (const double input)
 
double norm_phi (const double input)
 
double back_phi (const double input)
 
double norm_theta (const double input)
 
double back_theta (const double input)
 
double norm_phiBS (const double input)
 
double back_phiBS (const double input)
 
double norm_thetaBS (const double input)
 
double back_thetaBS (const double input)
 
double norm_etaModule (const double input)
 
double back_etaModule (const double input)
 
double norm_posX (const double input, const bool recenter=false)
 
double back_posX (const double input, const bool recenter=false)
 
double norm_posY (const double input)
 
double back_posY (const double input)
 
double norm_errorX (const double input)
 
double back_errorX (const double input)
 
double norm_errorY (const double input)
 
double back_errorY (const double input)
 
double errorHalfIntervalX (const int nParticles)
 
double errorHalfIntervalY (const int nParticles)
 

Function Documentation

◆ back_errorX()

double back_errorX ( const double  input)

Definition at line 128 of file NnNormalization.cxx.

128  {
129  return input*0.001+0.0005;
130 }

◆ back_errorY()

double back_errorY ( const double  input)

Definition at line 136 of file NnNormalization.cxx.

136  {
137  return input*0.048+0.018;
138 }

◆ back_etaModule()

double back_etaModule ( const double  input)

Definition at line 104 of file NnNormalization.cxx.

104  {
105  return input*2.;
106 }

◆ back_layerNumber()

double back_layerNumber ( const double  input)

Definition at line 61 of file NnNormalization.cxx.

61  {
62  return input*0.8+0.95;
63 }

◆ back_layerType()

double back_layerType ( const double  input)

Definition at line 67 of file NnNormalization.cxx.

67  {
68  return input*0.65;
69 }

◆ back_phi()

double back_phi ( const double  input)

Definition at line 75 of file NnNormalization.cxx.

75  {
76  return input*0.1+0.1;
77 }

◆ back_phiBS()

double back_phiBS ( const double  input)

Definition at line 90 of file NnNormalization.cxx.

90  {
91  return input*0.1+0.1;
92 }

◆ back_pitch()

double back_pitch ( const double  input,
const bool  addIBL = false 
)

Definition at line 45 of file NnNormalization.cxx.

45  {
46  if (!addIBL){
47  if (roughlyEqual(input,-0.5)) return 0.4;
48  if (roughlyEqual(input,0.5)) return 0.6;
49  return std::numeric_limits<double>::quiet_NaN();
50  //throw SiClusterizationToolNormalizationException();
51  //return 0; //never reached!
52  } else {
53  return input*0.10+0.37;
54  }
55 }

◆ back_posX()

double back_posX ( const double  input,
const bool  recenter = false 
)

Definition at line 113 of file NnNormalization.cxx.

113  {
114  if (recenter) return input*0.41;
115  return input*0.41+(-0.58);
116 }

◆ back_posY()

double back_posY ( const double  input)

Definition at line 122 of file NnNormalization.cxx.

122  {
123  return input*0.34+0.;
124 }

◆ back_rawToT()

double back_rawToT ( const double  input)

Definition at line 20 of file NnNormalization.cxx.

20  {
21  return input*12.+21.;
22 }

◆ back_theta()

double back_theta ( const double  input)

Definition at line 83 of file NnNormalization.cxx.

83  {
84  return input*0.8;
85 }

◆ back_thetaBS()

double back_thetaBS ( const double  input)

Definition at line 98 of file NnNormalization.cxx.

98  {
99  return input*0.8;
100 }

◆ back_ToT()

double back_ToT ( const double  input)

Definition at line 28 of file NnNormalization.cxx.

28  {
29  return input*15000.+15000.;
30 }

◆ errorHalfIntervalX()

double errorHalfIntervalX ( const int  nParticles)

Definition at line 140 of file NnNormalization.cxx.

140  {
141  return (nParticles==1) ? 0.03:0.05;
142 }

◆ errorHalfIntervalY()

double errorHalfIntervalY ( const int  nParticles)

Definition at line 144 of file NnNormalization.cxx.

144  {
145  return (nParticles==1) ? 0.3:0.4;
146 }

◆ norm_errorX()

double norm_errorX ( const double  input)

Definition at line 125 of file NnNormalization.cxx.

125  {
126  return (input-0.0005)*1000.;
127 }

◆ norm_errorY()

double norm_errorY ( const double  input)

Definition at line 132 of file NnNormalization.cxx.

132  {
133  return (input-0.018)/0.048;
134 }

◆ norm_etaModule()

double norm_etaModule ( const double  input)

Definition at line 101 of file NnNormalization.cxx.

101  {
102  return input*0.5;
103 }

◆ norm_layerNumber()

double norm_layerNumber ( const double  input)

Definition at line 57 of file NnNormalization.cxx.

57  {
58  return (input-0.95)/0.8;
59 }

◆ norm_layerType()

double norm_layerType ( const double  input)

Definition at line 64 of file NnNormalization.cxx.

64  {
65  return input/0.65;
66 }

◆ norm_phi()

double norm_phi ( const double  input)

Definition at line 71 of file NnNormalization.cxx.

71  {
72  return (input-0.1)*10.;
73 }

◆ norm_phiBS()

double norm_phiBS ( const double  input)

Definition at line 86 of file NnNormalization.cxx.

86  {
87  return (input-0.1)*10.;
88 }

◆ norm_pitch()

double norm_pitch ( const double  input,
bool  addIBL = false 
)

Definition at line 32 of file NnNormalization.cxx.

32  {
33  if (!addIBL){
34  if (roughlyEqual(input,0.4)) return -0.5;
35  if (roughlyEqual(input,0.6)) return +0.5;
36  //sroe, changed in response to ATLASRECTS-1827
37  return std::numeric_limits<double>::quiet_NaN();
38  //throw SiClusterizationToolNormalizationException();
39  //return -1; //never reached!
40  } else {
41  return (input-0.37)*10.;
42  }
43 }

◆ norm_posX()

double norm_posX ( const double  input,
const bool  recenter = false 
)

Definition at line 108 of file NnNormalization.cxx.

108  {
109  if (recenter) return (input)/0.41;
110  return (input-(-0.58))/0.41;
111 }

◆ norm_posY()

double norm_posY ( const double  input)

Definition at line 118 of file NnNormalization.cxx.

118  {
119  return input/0.34;
120 }

◆ norm_rawToT()

double norm_rawToT ( const double  input)

Definition at line 16 of file NnNormalization.cxx.

16  {
17  return (input-21.)/12.;
18 }

◆ norm_theta()

double norm_theta ( const double  input)

Definition at line 79 of file NnNormalization.cxx.

79  {
80  return (input)/0.8;
81 }

◆ norm_thetaBS()

double norm_thetaBS ( const double  input)

Definition at line 94 of file NnNormalization.cxx.

94  {
95  return (input)/0.8;
96 }

◆ norm_ToT()

double norm_ToT ( const double  input)

Definition at line 24 of file NnNormalization.cxx.

24  {
25  return (input-15000.)/15000.;
26 }
JetGeom::recenter
point_t recenter(const point_t &p, const point_t &center)
Definition: cyl_geom.h:226
PlotPulseshapeFromCool.input
input
Definition: PlotPulseshapeFromCool.py:106
roughlyEqual
bool roughlyEqual(const double d, const double target, const double tolerance=0.001)
Definition: NnNormalization.cxx:12