Jpp  18.4.0
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | List of all members
JAANET::cut Struct Reference

General purpose class of phase space generation. More...

#include <JHead.hh>

Inheritance diagram for JAANET::cut:
JAANET::cut_in JAANET::cut_nu JAANET::cut_primary JAANET::cut_seamuon

Public Member Functions

 cut ()
 Default constructor. More...
 
 cut (const JRange_t &_E, const JRange_t &_cosT)
 Constructor. More...
 
 cut (const double Emin, const double Emax, const double cosTmin, const double cosTmax)
 Constructor. More...
 
bool less (const cut &object) const
 Comparison. More...
 
bool match (const cut &object) const
 Test match. More...
 
 ClassDefNV (cut, 1)
 

Public Attributes

JRange_t E
 Energy range [GeV]. More...
 
JRange_t cosT
 Cosine zenith angle range. More...
 

Detailed Description

General purpose class of phase space generation.

Definition at line 341 of file JHead.hh.

Constructor & Destructor Documentation

JAANET::cut::cut ( )
inline

Default constructor.

Definition at line 345 of file JHead.hh.

345  :
346  E (0.0, 0.0),
347  cosT(0.0, 0.0)
348  {}
JRange_t E
Energy range [GeV].
Definition: JHead.hh:419
JRange_t cosT
Cosine zenith angle range.
Definition: JHead.hh:420
JAANET::cut::cut ( const JRange_t _E,
const JRange_t _cosT 
)
inline

Constructor.

Parameters
_Eenergy range
_cosTcosine zenith angle range

Definition at line 356 of file JHead.hh.

357  :
358  E (_E),
359  cosT(_cosT)
360  {}
JRange_t E
Energy range [GeV].
Definition: JHead.hh:419
JRange_t cosT
Cosine zenith angle range.
Definition: JHead.hh:420
JAANET::cut::cut ( const double  Emin,
const double  Emax,
const double  cosTmin,
const double  cosTmax 
)
inline

Constructor.

Parameters
Eminenergy range lower bound
Emaxenergy range upper bound
cosTmincosine zenith angle lower bound
cosTmaxcosine zenith angle upper bound

Definition at line 370 of file JHead.hh.

373  :
374  E (Emin, Emax),
375  cosT(cosTmin, cosTmax)
376  {}
JRange_t E
Energy range [GeV].
Definition: JHead.hh:419
JRange_t cosT
Cosine zenith angle range.
Definition: JHead.hh:420

Member Function Documentation

bool JAANET::cut::less ( const cut object) const
inline

Comparison.

Parameters
objectcut
Returns
true if this cut less than given cut; else false

Definition at line 384 of file JHead.hh.

385  {
386  if (E.getLowerLimit() == object.E.getLowerLimit()) {
387 
388  if (E.getUpperLimit() == object.E.getUpperLimit()) {
389 
390  if (cosT.getLowerLimit() == object.cosT.getLowerLimit()) {
391  return cosT.getUpperLimit() < object.cosT.getUpperLimit();
392  } else {
393  return cosT.getLowerLimit() < object.cosT.getLowerLimit();
394  }
395 
396  } else {
397 
398  return E.getUpperLimit() < object.E.getUpperLimit();
399  }
400 
401  } else {
402 
403  return E.getLowerLimit() < object.E.getLowerLimit();
404  }
405  }
T getLowerLimit() const
Get lower limit.
Definition: JRange.hh:202
JRange_t E
Energy range [GeV].
Definition: JHead.hh:419
T getUpperLimit() const
Get upper limit.
Definition: JRange.hh:213
JRange_t cosT
Cosine zenith angle range.
Definition: JHead.hh:420
bool JAANET::cut::match ( const cut object) const
inline

Test match.

Parameters
objectcut
Returns
true if matches; else false

Definition at line 413 of file JHead.hh.

414  {
415  return (E .equals(object.E) &&
416  cosT.equals(object.cosT));
417  }
bool equals(const range_type &range) const
Equal method.
Definition: JRange.hh:275
JRange_t E
Energy range [GeV].
Definition: JHead.hh:419
JRange_t cosT
Cosine zenith angle range.
Definition: JHead.hh:420
bool equals(const JFirst_t &first, const JSecond_t &second, const double precision=std::numeric_limits< double >::min())
Check equality.
Definition: JMathToolkit.hh:86
JAANET::cut::ClassDefNV ( cut  ,
 
)

Member Data Documentation

JRange_t JAANET::cut::E

Energy range [GeV].

Definition at line 419 of file JHead.hh.

JRange_t JAANET::cut::cosT

Cosine zenith angle range.

Definition at line 420 of file JHead.hh.


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