CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
pftools::Erl_mlp Class Reference

#include <Erl_mlp.h>

Public Member Functions

double ecalFraction (const double t1=0.0, const double t2=0.0, const double t3=0.0, const double t4=0.0, const double t5=0.0, const double t6=0.0, const double t7=0.0)
 
 Erl_mlp ()
 
double evaluate (const double t1=0.0, const double t2=0.0, const double t3=0.0, const double t4=0.0, const double t5=0.0, const double t6=0.0, const double t7=0.0)
 
void setOffsetAndSlope (const double offset, const double slope)
 
virtual ~Erl_mlp ()
 

Private Member Functions

double ecalOutput ()
 
double neuron_01010 ()
 
double neuron_01020 ()
 
double neuron_01030 ()
 
double neuron_01040 ()
 
double neuron_01050 ()
 
double neuron_01060 ()
 
double neuron_01070 ()
 
double neuron_01090 ()
 
double neuron_01100 ()
 
double neuron_01110 ()
 
double neuron_01120 ()
 
double neuron_01130 ()
 
double neuron_01140 ()
 
double neuron_01150 ()
 
double neuron_01160 ()
 
double neuron_01170 ()
 
double neuron_01190 ()
 
double neuron_01200 ()
 
double output ()
 
double transform (const double k)
 

Private Attributes

double offset_
 
double slope_
 
double t1_
 
double t2_
 
double t3_
 
double t4_
 
double t5_
 
double t6_
 
double t7_
 

Detailed Description

Definition at line 9 of file Erl_mlp.h.

Constructor & Destructor Documentation

Erl_mlp::Erl_mlp ( )

Definition at line 7 of file Erl_mlp.cc.

8 {
9 
10 }
Erl_mlp::~Erl_mlp ( )
virtual

Definition at line 12 of file Erl_mlp.cc.

13 {
14 }

Member Function Documentation

double pftools::Erl_mlp::ecalFraction ( const double  t1 = 0.0,
const double  t2 = 0.0,
const double  t3 = 0.0,
const double  t4 = 0.0,
const double  t5 = 0.0,
const double  t6 = 0.0,
const double  t7 = 0.0 
)
inline

Definition at line 34 of file Erl_mlp.h.

References ecalOutput(), t1_, t2_, t3_, t4_, t5_, t6_, and t7_.

Referenced by pftools::CalibCompare::evaluateCalibrations().

36  {
37  t1_ = t1;
38  t2_ = t2;
39  t3_ = t3;
40  t4_ = t4;
41  t5_ = t5;
42  t6_ = t6;
43  t7_ = t7;
44 
45  return ecalOutput();
46  }
double t7_
Definition: Erl_mlp.h:49
double t1_
Definition: Erl_mlp.h:49
double ecalOutput()
Definition: Erl_mlp.h:62
double t3_
Definition: Erl_mlp.h:49
double t5_
Definition: Erl_mlp.h:49
double t2_
Definition: Erl_mlp.h:49
double t6_
Definition: Erl_mlp.h:49
double t4_
Definition: Erl_mlp.h:49
double pftools::Erl_mlp::ecalOutput ( )
inlineprivate

Definition at line 62 of file Erl_mlp.h.

References neuron_01200().

Referenced by ecalFraction().

62  {
63  return neuron_01200() * 8.0/5.0;
64  }
double neuron_01200()
Definition: Erl_mlp.h:67
double pftools::Erl_mlp::evaluate ( const double  t1 = 0.0,
const double  t2 = 0.0,
const double  t3 = 0.0,
const double  t4 = 0.0,
const double  t5 = 0.0,
const double  t6 = 0.0,
const double  t7 = 0.0 
)
inline

Definition at line 20 of file Erl_mlp.h.

References output(), t1_, t2_, t3_, t4_, t5_, t6_, and t7_.

Referenced by pftools::CalibCompare::evaluateCalibrations().

22  {
23  t1_ = t1;
24  t2_ = t2;
25  t3_ = t3;
26  t4_ = t4;
27  t5_ = t5;
28  t6_ = t6;
29  t7_ = t7;
30 
31  return output();
32  }
double t7_
Definition: Erl_mlp.h:49
double output()
Definition: Erl_mlp.h:57
double t1_
Definition: Erl_mlp.h:49
double t3_
Definition: Erl_mlp.h:49
double t5_
Definition: Erl_mlp.h:49
double t2_
Definition: Erl_mlp.h:49
double t6_
Definition: Erl_mlp.h:49
double t4_
Definition: Erl_mlp.h:49
double pftools::Erl_mlp::neuron_01010 ( )
inlineprivate

Definition at line 81 of file Erl_mlp.h.

References t1_.

Referenced by neuron_01090(), neuron_01100(), neuron_01110(), neuron_01120(), neuron_01130(), neuron_01140(), neuron_01150(), neuron_01160(), and neuron_01170().

81 { return t1_; }
double t1_
Definition: Erl_mlp.h:49
double pftools::Erl_mlp::neuron_01020 ( )
inlineprivate

Definition at line 82 of file Erl_mlp.h.

References t2_.

Referenced by neuron_01090(), neuron_01100(), neuron_01110(), neuron_01120(), neuron_01130(), neuron_01140(), neuron_01150(), neuron_01160(), and neuron_01170().

82 { return t2_; }
double t2_
Definition: Erl_mlp.h:49
double pftools::Erl_mlp::neuron_01030 ( )
inlineprivate

Definition at line 83 of file Erl_mlp.h.

References t3_.

Referenced by neuron_01090(), neuron_01100(), neuron_01110(), neuron_01120(), neuron_01130(), neuron_01140(), neuron_01150(), neuron_01160(), and neuron_01170().

83 { return t3_; }
double t3_
Definition: Erl_mlp.h:49
double pftools::Erl_mlp::neuron_01040 ( )
inlineprivate

Definition at line 84 of file Erl_mlp.h.

References t4_.

Referenced by neuron_01090(), neuron_01100(), neuron_01110(), neuron_01120(), neuron_01130(), neuron_01140(), neuron_01150(), neuron_01160(), and neuron_01170().

84 { return t4_; }
double t4_
Definition: Erl_mlp.h:49
double pftools::Erl_mlp::neuron_01050 ( )
inlineprivate

Definition at line 85 of file Erl_mlp.h.

References t5_.

Referenced by neuron_01090(), neuron_01100(), neuron_01110(), neuron_01120(), neuron_01130(), neuron_01140(), neuron_01150(), neuron_01160(), and neuron_01170().

85 { return t5_; }
double t5_
Definition: Erl_mlp.h:49
double pftools::Erl_mlp::neuron_01060 ( )
inlineprivate

Definition at line 86 of file Erl_mlp.h.

References t6_.

Referenced by neuron_01090(), neuron_01100(), neuron_01110(), neuron_01120(), neuron_01130(), neuron_01140(), neuron_01150(), neuron_01160(), and neuron_01170().

86 { return t6_; }
double t6_
Definition: Erl_mlp.h:49
double pftools::Erl_mlp::neuron_01070 ( )
inlineprivate

Definition at line 87 of file Erl_mlp.h.

References t7_.

Referenced by neuron_01090(), neuron_01100(), neuron_01110(), neuron_01120(), neuron_01130(), neuron_01140(), neuron_01150(), neuron_01160(), and neuron_01170().

87 { return t7_; }
double t7_
Definition: Erl_mlp.h:49
double pftools::Erl_mlp::neuron_01090 ( )
inlineprivate

Definition at line 70 of file Erl_mlp.h.

References alignCSCRings::e, neuron_01010(), neuron_01020(), neuron_01030(), neuron_01040(), neuron_01050(), neuron_01060(), neuron_01070(), and transform().

Referenced by neuron_01190(), and neuron_01200().

70 { return transform(1.77006431112942702599e-01 * neuron_01070() + 2.00000000000000011102e-01 * neuron_01060() + 2.14497710612496367277e-01 * neuron_01050() + 1.43625191299545074131e+00 * neuron_01040() + 1.35895192827592214968e+00 * neuron_01030() + 3.42315251134937381661e-01 * neuron_01020() + 2.12812599023514514851e-01 * neuron_01010()) ; }
double neuron_01010()
Definition: Erl_mlp.h:81
double neuron_01040()
Definition: Erl_mlp.h:84
double neuron_01060()
Definition: Erl_mlp.h:86
double neuron_01020()
Definition: Erl_mlp.h:82
double neuron_01070()
Definition: Erl_mlp.h:87
double neuron_01050()
Definition: Erl_mlp.h:85
double transform(const double k)
Definition: Erl_mlp.h:52
double neuron_01030()
Definition: Erl_mlp.h:83
double pftools::Erl_mlp::neuron_01100 ( )
inlineprivate

Definition at line 71 of file Erl_mlp.h.

References alignCSCRings::e, neuron_01010(), neuron_01020(), neuron_01030(), neuron_01040(), neuron_01050(), neuron_01060(), neuron_01070(), and transform().

Referenced by neuron_01190(), and neuron_01200().

71 { return transform(2.43335108048174653117e-02 * neuron_01070() + 2.00000000000000011102e-01 * neuron_01060() + -1.54265303752188047415e-02 * neuron_01050() + 5.31887393676174879964e-01 * neuron_01040() + 1.29700229375154463263e+00 * neuron_01030() + -2.51855201382369053853e-01 * neuron_01020() + -5.06439475438290737097e-02 * neuron_01010()) ; }
double neuron_01010()
Definition: Erl_mlp.h:81
double neuron_01040()
Definition: Erl_mlp.h:84
double neuron_01060()
Definition: Erl_mlp.h:86
double neuron_01020()
Definition: Erl_mlp.h:82
double neuron_01070()
Definition: Erl_mlp.h:87
double neuron_01050()
Definition: Erl_mlp.h:85
double transform(const double k)
Definition: Erl_mlp.h:52
double neuron_01030()
Definition: Erl_mlp.h:83
double pftools::Erl_mlp::neuron_01110 ( )
inlineprivate

Definition at line 72 of file Erl_mlp.h.

References alignCSCRings::e, neuron_01010(), neuron_01020(), neuron_01030(), neuron_01040(), neuron_01050(), neuron_01060(), neuron_01070(), and transform().

Referenced by neuron_01190(), and neuron_01200().

72 { return transform(2.26240107787991917565e-02 * neuron_01070() + 2.00000000000000011102e-01 * neuron_01060() + -5.41830867221511913723e-02 * neuron_01050() + 5.34848607670024622784e-01 * neuron_01040() + 1.31149902444579002925e+00 * neuron_01030() + -2.64338982863860205708e-01 * neuron_01020() + -4.06486696831378502281e-02 * neuron_01010()) ; }
double neuron_01010()
Definition: Erl_mlp.h:81
double neuron_01040()
Definition: Erl_mlp.h:84
double neuron_01060()
Definition: Erl_mlp.h:86
double neuron_01020()
Definition: Erl_mlp.h:82
double neuron_01070()
Definition: Erl_mlp.h:87
double neuron_01050()
Definition: Erl_mlp.h:85
double transform(const double k)
Definition: Erl_mlp.h:52
double neuron_01030()
Definition: Erl_mlp.h:83
double pftools::Erl_mlp::neuron_01120 ( )
inlineprivate

Definition at line 73 of file Erl_mlp.h.

References alignCSCRings::e, neuron_01010(), neuron_01020(), neuron_01030(), neuron_01040(), neuron_01050(), neuron_01060(), neuron_01070(), and transform().

Referenced by neuron_01190(), and neuron_01200().

73 { return transform(3.53971299195493110945e-02 * neuron_01070() + 2.00000000000000011102e-01 * neuron_01060() + -8.37804537629018991618e-02 * neuron_01050() + 6.07782495555854840319e-01 * neuron_01040() + 1.18563130862724230852e+00 * neuron_01030() + -2.68121286212209153366e-01 * neuron_01020() + -6.12015780590782140780e-02 * neuron_01010()) ; }
double neuron_01010()
Definition: Erl_mlp.h:81
double neuron_01040()
Definition: Erl_mlp.h:84
double neuron_01060()
Definition: Erl_mlp.h:86
double neuron_01020()
Definition: Erl_mlp.h:82
double neuron_01070()
Definition: Erl_mlp.h:87
double neuron_01050()
Definition: Erl_mlp.h:85
double transform(const double k)
Definition: Erl_mlp.h:52
double neuron_01030()
Definition: Erl_mlp.h:83
double pftools::Erl_mlp::neuron_01130 ( )
inlineprivate

Definition at line 74 of file Erl_mlp.h.

References alignCSCRings::e, neuron_01010(), neuron_01020(), neuron_01030(), neuron_01040(), neuron_01050(), neuron_01060(), neuron_01070(), and transform().

Referenced by neuron_01190(), and neuron_01200().

74 { return transform(5.69937856406597387338e-02 * neuron_01070() + 2.00000000000000011102e-01 * neuron_01060() + -1.00016140981091974926e-01 * neuron_01050() + 7.03662421839865714901e-01 * neuron_01040() + 9.52968317012650611986e-01 * neuron_01030() + -2.73076926608740555569e-01 * neuron_01020() + -7.68552378252462947694e-02 * neuron_01010()) ; }
double neuron_01010()
Definition: Erl_mlp.h:81
double neuron_01040()
Definition: Erl_mlp.h:84
double neuron_01060()
Definition: Erl_mlp.h:86
double neuron_01020()
Definition: Erl_mlp.h:82
double neuron_01070()
Definition: Erl_mlp.h:87
double neuron_01050()
Definition: Erl_mlp.h:85
double transform(const double k)
Definition: Erl_mlp.h:52
double neuron_01030()
Definition: Erl_mlp.h:83
double pftools::Erl_mlp::neuron_01140 ( )
inlineprivate

Definition at line 75 of file Erl_mlp.h.

References alignCSCRings::e, neuron_01010(), neuron_01020(), neuron_01030(), neuron_01040(), neuron_01050(), neuron_01060(), neuron_01070(), and transform().

Referenced by neuron_01190(), and neuron_01200().

75 { return transform(8.30357728126230598686e-02 * neuron_01070() + 2.00000000000000011102e-01 * neuron_01060() + -1.03499741661745067733e-01 * neuron_01050() + 8.06348739275546733118e-01 * neuron_01040() + 6.38758549749190884803e-01 * neuron_01030() + -2.80508796980343866334e-01 * neuron_01020() + -7.87991143999155069233e-02 * neuron_01010()) ; }
double neuron_01010()
Definition: Erl_mlp.h:81
double neuron_01040()
Definition: Erl_mlp.h:84
double neuron_01060()
Definition: Erl_mlp.h:86
double neuron_01020()
Definition: Erl_mlp.h:82
double neuron_01070()
Definition: Erl_mlp.h:87
double neuron_01050()
Definition: Erl_mlp.h:85
double transform(const double k)
Definition: Erl_mlp.h:52
double neuron_01030()
Definition: Erl_mlp.h:83
double pftools::Erl_mlp::neuron_01150 ( )
inlineprivate

Definition at line 76 of file Erl_mlp.h.

References alignCSCRings::e, neuron_01010(), neuron_01020(), neuron_01030(), neuron_01040(), neuron_01050(), neuron_01060(), neuron_01070(), and transform().

Referenced by neuron_01190(), and neuron_01200().

76 { return transform(1.09487813610100057082e-01 * neuron_01070() + 2.00000000000000011102e-01 * neuron_01060() + -9.70768580095677652286e-02 * neuron_01050() + 9.10591921032660733815e-01 * neuron_01040() + 2.66241721261271546695e-01 * neuron_01030() + -2.89724454229762784507e-01 * neuron_01020() + -6.80058450136514086592e-02 * neuron_01010()) ; }
double neuron_01010()
Definition: Erl_mlp.h:81
double neuron_01040()
Definition: Erl_mlp.h:84
double neuron_01060()
Definition: Erl_mlp.h:86
double neuron_01020()
Definition: Erl_mlp.h:82
double neuron_01070()
Definition: Erl_mlp.h:87
double neuron_01050()
Definition: Erl_mlp.h:85
double transform(const double k)
Definition: Erl_mlp.h:52
double neuron_01030()
Definition: Erl_mlp.h:83
double pftools::Erl_mlp::neuron_01160 ( )
inlineprivate

Definition at line 77 of file Erl_mlp.h.

References alignCSCRings::e, neuron_01010(), neuron_01020(), neuron_01030(), neuron_01040(), neuron_01050(), neuron_01060(), neuron_01070(), and transform().

Referenced by neuron_01190(), and neuron_01200().

77 { return transform(1.32909925381862498162e-01 * neuron_01070() + 2.00000000000000011102e-01 * neuron_01060() + -8.45644764303960794205e-02 * neuron_01050() + 1.01870729141489779757e+00 * neuron_01040() + -1.39709767812830482070e-01 * neuron_01030() + -3.01085409364046208136e-01 * neuron_01020() + -4.85758323472233188856e-02 * neuron_01010()) ; }
double neuron_01010()
Definition: Erl_mlp.h:81
double neuron_01040()
Definition: Erl_mlp.h:84
double neuron_01060()
Definition: Erl_mlp.h:86
double neuron_01020()
Definition: Erl_mlp.h:82
double neuron_01070()
Definition: Erl_mlp.h:87
double neuron_01050()
Definition: Erl_mlp.h:85
double transform(const double k)
Definition: Erl_mlp.h:52
double neuron_01030()
Definition: Erl_mlp.h:83
double pftools::Erl_mlp::neuron_01170 ( )
inlineprivate

Definition at line 78 of file Erl_mlp.h.

References alignCSCRings::e, neuron_01010(), neuron_01020(), neuron_01030(), neuron_01040(), neuron_01050(), neuron_01060(), neuron_01070(), and transform().

Referenced by neuron_01190(), and neuron_01200().

78 { return transform(1.50514730336528679278e-01 * neuron_01070() + 2.00000000000000011102e-01 * neuron_01060() + -7.16821794819610530469e-02 * neuron_01050() + 1.14442797677888430385e+00 * neuron_01040() + -5.53609997511943840998e-01 * neuron_01030() + -3.18164032162814081062e-01 * neuron_01020() + -2.52943742434275434250e-02 * neuron_01010()) ; }
double neuron_01010()
Definition: Erl_mlp.h:81
double neuron_01040()
Definition: Erl_mlp.h:84
double neuron_01060()
Definition: Erl_mlp.h:86
double neuron_01020()
Definition: Erl_mlp.h:82
double neuron_01070()
Definition: Erl_mlp.h:87
double neuron_01050()
Definition: Erl_mlp.h:85
double transform(const double k)
Definition: Erl_mlp.h:52
double neuron_01030()
Definition: Erl_mlp.h:83
double pftools::Erl_mlp::neuron_01190 ( )
inlineprivate

Definition at line 66 of file Erl_mlp.h.

References neuron_01090(), neuron_01100(), neuron_01110(), neuron_01120(), neuron_01130(), neuron_01140(), neuron_01150(), neuron_01160(), and neuron_01170().

Referenced by output().

66 { return 5.06272330366805203838e-02 * neuron_01110() + 7.27249962994314103071e-02 * neuron_01100() + 6.87531379353593874448e-01 * neuron_01090() + 5.90999649535358523300e-02 * neuron_01170() + 5.11852363238117641364e-02 * neuron_01160() + 4.49943694412880193512e-02 * neuron_01150() + 4.07425660324388025368e-02 * neuron_01140() + 3.93358734274708785050e-02 * neuron_01130() + 4.19854685691317813800e-02 * neuron_01120(); }
double neuron_01170()
Definition: Erl_mlp.h:78
double neuron_01110()
Definition: Erl_mlp.h:72
double neuron_01090()
Definition: Erl_mlp.h:70
double neuron_01150()
Definition: Erl_mlp.h:76
double neuron_01160()
Definition: Erl_mlp.h:77
double neuron_01120()
Definition: Erl_mlp.h:73
double neuron_01140()
Definition: Erl_mlp.h:75
double neuron_01100()
Definition: Erl_mlp.h:71
double neuron_01130()
Definition: Erl_mlp.h:74
double pftools::Erl_mlp::neuron_01200 ( )
inlineprivate

Definition at line 67 of file Erl_mlp.h.

References neuron_01090(), neuron_01100(), neuron_01110(), neuron_01120(), neuron_01130(), neuron_01140(), neuron_01150(), neuron_01160(), and neuron_01170().

Referenced by ecalOutput().

67 { return 2.45908500608800761889e-01 * neuron_01110() + 2.87953657915926142241e-01 * neuron_01100() + 1.12104946100116772967e-01 * neuron_01090() + -2.48512814545735039040e-01 * neuron_01170() + -1.73640293653000848950e-01 * neuron_01160() + -9.57729315919204349239e-02 * neuron_01150() + -1.34634120232926899480e-02 * neuron_01140() + 7.33600499895466356959e-02 * neuron_01130() + 1.62882613167782547281e-01 * neuron_01120(); }
double neuron_01170()
Definition: Erl_mlp.h:78
double neuron_01110()
Definition: Erl_mlp.h:72
double neuron_01090()
Definition: Erl_mlp.h:70
double neuron_01150()
Definition: Erl_mlp.h:76
double neuron_01160()
Definition: Erl_mlp.h:77
double neuron_01120()
Definition: Erl_mlp.h:73
double neuron_01140()
Definition: Erl_mlp.h:75
double neuron_01100()
Definition: Erl_mlp.h:71
double neuron_01130()
Definition: Erl_mlp.h:74
double pftools::Erl_mlp::output ( )
inlineprivate

Definition at line 57 of file Erl_mlp.h.

References neuron_01190(), offset_, and slope_.

Referenced by evaluate().

57  {
58  return ((80 * neuron_01190()) - offset_) / slope_;
59  //return 0;
60  }
double neuron_01190()
Definition: Erl_mlp.h:66
double offset_
Definition: Erl_mlp.h:50
double slope_
Definition: Erl_mlp.h:50
void pftools::Erl_mlp::setOffsetAndSlope ( const double  offset,
const double  slope 
)
inline

Definition at line 15 of file Erl_mlp.h.

References evf::evtn::offset(), offset_, slope, and slope_.

Referenced by pftools::CalibCompare::CalibCompare().

15  {
16  offset_ = offset;
17  slope_ = slope;
18  }
double offset_
Definition: Erl_mlp.h:50
static const double slope[3]
unsigned int offset(bool)
double slope_
Definition: Erl_mlp.h:50
double pftools::Erl_mlp::transform ( const double  k)
inlineprivate

Definition at line 52 of file Erl_mlp.h.

Referenced by neuron_01090(), neuron_01100(), neuron_01110(), neuron_01120(), neuron_01130(), neuron_01140(), neuron_01150(), neuron_01160(), and neuron_01170().

52  {
53  return tanh(k);
54  //return k/2.0;
55  }
int k[5][pyjets_maxn]

Member Data Documentation

double pftools::Erl_mlp::offset_
private

Definition at line 50 of file Erl_mlp.h.

Referenced by output(), and setOffsetAndSlope().

double pftools::Erl_mlp::slope_
private

Definition at line 50 of file Erl_mlp.h.

Referenced by output(), and setOffsetAndSlope().

double pftools::Erl_mlp::t1_
private

Definition at line 49 of file Erl_mlp.h.

Referenced by ecalFraction(), evaluate(), and neuron_01010().

double pftools::Erl_mlp::t2_
private

Definition at line 49 of file Erl_mlp.h.

Referenced by ecalFraction(), evaluate(), and neuron_01020().

double pftools::Erl_mlp::t3_
private

Definition at line 49 of file Erl_mlp.h.

Referenced by ecalFraction(), evaluate(), and neuron_01030().

double pftools::Erl_mlp::t4_
private

Definition at line 49 of file Erl_mlp.h.

Referenced by ecalFraction(), evaluate(), and neuron_01040().

double pftools::Erl_mlp::t5_
private

Definition at line 49 of file Erl_mlp.h.

Referenced by ecalFraction(), evaluate(), and neuron_01050().

double pftools::Erl_mlp::t6_
private

Definition at line 49 of file Erl_mlp.h.

Referenced by ecalFraction(), evaluate(), and neuron_01060().

double pftools::Erl_mlp::t7_
private

Definition at line 49 of file Erl_mlp.h.

Referenced by ecalFraction(), evaluate(), and neuron_01070().