Jpp 20.0.0-rc.9-29-gccc23c492-D
the software that should make you happy
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Member Functions | Protected Attributes | Friends | List of all members
JFIT::JShower3EZ Class Reference

Data structure for fit of straight line in positive z-direction with energy. More...

#include <JShower3EZ.hh>

Inheritance diagram for JFIT::JShower3EZ:
JFIT::JShower3Z JFIT::JPoint4D

Public Types

typedef double JShower3EZ::* parameter_type
 

Public Member Functions

 JShower3EZ ()
 Default constructor.
 
 JShower3EZ (const JShower3Z &line, const double &E=0, const double By=1.0)
 Constructor.
 
 JShower3EZ (const JPoint4D &point, const JVersor3Z &dir, const double E=0, const double By=1.0)
 Constructor.
 
double getBy () const
 Get bjorken y.
 
double getE () const
 Get E.
 
JShower3EZnegate ()
 Prefix unary minus.
 
JShower3EZadd (const JShower3EZ &value)
 Addition operator.
 
JShower3EZsub (const JShower3EZ &value)
 Subtraction operator.
 
JShower3EZmul (const double value)
 Multiplication operator.
 
JShower3EZdiv (const double value)
 Division operator.
 
JShower3Zadd (const JShower3Z &value)
 Addition operator.
 
JShower3Zsub (const JShower3Z &value)
 Subtraction operator.
 

Static Public Member Functions

static parameter_type pBy ()
 
static parameter_type pE ()
 
static parameter_type pDX ()
 
static parameter_type pDY ()
 
static parameter_type pX ()
 
static parameter_type pY ()
 
static parameter_type pZ ()
 
static parameter_type pT ()
 

Protected Attributes

double __E
 
double __By
 

Friends

std::istream & operator>> (std::istream &in, JShower3EZ &object)
 Read object from input.
 
std::ostream & operator<< (std::ostream &out, const JShower3EZ &object)
 Write object to output.
 

Detailed Description

Data structure for fit of straight line in positive z-direction with energy.

Note that the position coordinates are defined with respect to the given direction.

Definition at line 27 of file JShower3EZ.hh.

Member Typedef Documentation

◆ parameter_type

typedef double JShower3EZ::* JFIT::JShower3EZ::parameter_type

Definition at line 202 of file JShower3EZ.hh.

Constructor & Destructor Documentation

◆ JShower3EZ() [1/3]

JFIT::JShower3EZ::JShower3EZ ( )
inline

Default constructor.

Definition at line 36 of file JShower3EZ.hh.

36 :
37 JShower3Z()
38 {}
JShower3Z()
Default constructor.
Definition JShower3Z.hh:49

◆ JShower3EZ() [2/3]

JFIT::JShower3EZ::JShower3EZ ( const JShower3Z & line,
const double & E = 0,
const double By = 1.0 )
inline

Constructor.

Parameters
lineline
EE [GeV]
Bybjorken y

Definition at line 48 of file JShower3EZ.hh.

48 :
49 JShower3Z(line),
50 __E(E),
51 __By(By)
52 {}

◆ JShower3EZ() [3/3]

JFIT::JShower3EZ::JShower3EZ ( const JPoint4D & point,
const JVersor3Z & dir,
const double E = 0,
const double By = 1.0 )
inline

Constructor.

Parameters
pointpoint
dirdirection
EE [GeV]
Bybjorken y

Definition at line 62 of file JShower3EZ.hh.

65 :
66 JShower3Z(JPoint4D(point), JVersor3Z(dir)),
67 __E(E),
68 __By(By)
69 {}
JPoint4D()
Default constructor.
Definition JPoint4D.hh:29

Member Function Documentation

◆ getBy()

double JFIT::JShower3EZ::getBy ( ) const
inline

Get bjorken y.

Returns
bjorken y

Definition at line 76 of file JShower3EZ.hh.

77 {
78 return __By;
79 }

◆ getE()

double JFIT::JShower3EZ::getE ( ) const
inline

Get E.

Returns
Energy [GeV]

Definition at line 86 of file JShower3EZ.hh.

87 {
88 return __E;
89 }

◆ negate()

JShower3EZ & JFIT::JShower3EZ::negate ( )
inline

Prefix unary minus.

Returns
shower

Definition at line 95 of file JShower3EZ.hh.

96 {
98 __E = -__E;
99 __By = -__By;
100
101 return *this;
102 }
JShower3Z & negate()
Prefix unary minus.
Definition JShower3Z.hh:71

◆ add() [1/2]

JShower3EZ & JFIT::JShower3EZ::add ( const JShower3EZ & value)
inline

Addition operator.

Parameters
valueshower
Returns
shower

Definition at line 111 of file JShower3EZ.hh.

112 {
113 JShower3Z::add(value);
114 __E += value.getE();
115 __By += value.getBy();
116
117 return *this;
118 }
JShower3Z & add(const JShower3Z &value)
Addition operator.
Definition JShower3Z.hh:85

◆ sub() [1/2]

JShower3EZ & JFIT::JShower3EZ::sub ( const JShower3EZ & value)
inline

Subtraction operator.

Parameters
valueshower
Returns
shower

Definition at line 127 of file JShower3EZ.hh.

128 {
129 JShower3Z::sub(value);
130 __E -= value.getE();
131 __By -= value.getBy();
132
133 return *this;
134 }
JShower3Z & sub(const JShower3Z &value)
Subtraction operator.
Definition JShower3Z.hh:99

◆ mul()

JShower3EZ & JFIT::JShower3EZ::mul ( const double value)
inline

Multiplication operator.

Parameters
valuemultiplication factor
Returns
shower

Definition at line 143 of file JShower3EZ.hh.

144 {
145 JShower3Z::mul(value);
146 __E *= value;
147 __By *= value;
148
149 return *this;
150 }
JShower3Z & mul(const double value)
Multiplication operator.
Definition JShower3Z.hh:113

◆ div()

JShower3EZ & JFIT::JShower3EZ::div ( const double value)
inline

Division operator.

Parameters
valuedivision factor
Returns
shower

Definition at line 159 of file JShower3EZ.hh.

160 {
161 JShower3Z::div(value);
162 __E /= value;
163 __By /= value;
164
165 return *this;
166 }
JShower3Z & div(const double value)
Divison operator.
Definition JShower3Z.hh:127

◆ pBy()

static parameter_type JFIT::JShower3EZ::pBy ( )
inlinestatic

Definition at line 204 of file JShower3EZ.hh.

204{ return &JShower3EZ::__By; }

◆ pE()

static parameter_type JFIT::JShower3EZ::pE ( )
inlinestatic

Definition at line 205 of file JShower3EZ.hh.

205{ return &JShower3EZ::__E; }

◆ add() [2/2]

JShower3Z & JFIT::JShower3Z::add ( const JShower3Z & value)
inlineinherited

Addition operator.

Parameters
valueshower
Returns
shower

Definition at line 85 of file JShower3Z.hh.

86 {
87 JPoint4D ::add(value);
88 JVersor3Z::add(value);
89
90 return *this;
91 }

◆ sub() [2/2]

JShower3Z & JFIT::JShower3Z::sub ( const JShower3Z & value)
inlineinherited

Subtraction operator.

Parameters
valueshower
Returns
shower

Definition at line 99 of file JShower3Z.hh.

100 {
101 JPoint4D ::sub(value);
102 JVersor3Z::sub(value);
103
104 return *this;
105 }

◆ pDX()

static parameter_type JFIT::JShower3Z::pDX ( )
inlinestaticinherited

Definition at line 171 of file JShower3Z.hh.

171{ return &JShower3Z::__dx; }

◆ pDY()

static parameter_type JFIT::JShower3Z::pDY ( )
inlinestaticinherited

Definition at line 172 of file JShower3Z.hh.

172{ return &JShower3Z::__dy; }

◆ pX()

static parameter_type JFIT::JPoint4D::pX ( )
inlinestaticinherited

Definition at line 58 of file JPoint4D.hh.

58{ return &JPoint4D::__x; }

◆ pY()

static parameter_type JFIT::JPoint4D::pY ( )
inlinestaticinherited

Definition at line 59 of file JPoint4D.hh.

59{ return &JPoint4D::__y; }

◆ pZ()

static parameter_type JFIT::JPoint4D::pZ ( )
inlinestaticinherited

Definition at line 60 of file JPoint4D.hh.

60{ return &JPoint4D::__z; }

◆ pT()

static parameter_type JFIT::JPoint4D::pT ( )
inlinestaticinherited

Definition at line 61 of file JPoint4D.hh.

61{ return &JPoint4D::__t; }

Friends And Related Symbol Documentation

◆ operator>>

std::istream & operator>> ( std::istream & in,
JShower3EZ & object )
friend

Read object from input.

Parameters
ininput stream
objectobject
Returns
input stream

Definition at line 176 of file JShower3EZ.hh.

177 {
178 in >> static_cast<JShower3Z&>(object);
179 in >> object.__E;
180 in >> object.__By;
181
182 return in;
183 }

◆ operator<<

std::ostream & operator<< ( std::ostream & out,
const JShower3EZ & object )
friend

Write object to output.

Parameters
outoutput stream
objectobject
Returns
output stream

Definition at line 193 of file JShower3EZ.hh.

194 {
195 out << static_cast<const JShower3Z&>(object);
196 out << object.__E;
197 out << object.__By;
198
199 return out;
200 }

Member Data Documentation

◆ __E

double JFIT::JShower3EZ::__E
protected

Definition at line 207 of file JShower3EZ.hh.

◆ __By

double JFIT::JShower3EZ::__By
protected

Definition at line 208 of file JShower3EZ.hh.


The documentation for this class was generated from the following file: