Jpp  16.0.1
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 326 of file JHead.hh.

Constructor & Destructor Documentation

JAANET::cut::cut ( )
inline

Default constructor.

Definition at line 330 of file JHead.hh.

330  :
331  E (0.0, 0.0),
332  cosT(0.0, 0.0)
333  {}
JRange_t E
Energy range [GeV].
Definition: JHead.hh:404
JRange_t cosT
Cosine zenith angle range.
Definition: JHead.hh:405
JAANET::cut::cut ( const JRange_t _E,
const JRange_t _cosT 
)
inline

Constructor.

Parameters
_Eenergy range
_cosTcosine zenith angle range

Definition at line 341 of file JHead.hh.

342  :
343  E (_E),
344  cosT(_cosT)
345  {}
JRange_t E
Energy range [GeV].
Definition: JHead.hh:404
JRange_t cosT
Cosine zenith angle range.
Definition: JHead.hh:405
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 355 of file JHead.hh.

358  :
359  E (Emin, Emax),
360  cosT(cosTmin, cosTmax)
361  {}
JRange_t E
Energy range [GeV].
Definition: JHead.hh:404
JRange_t cosT
Cosine zenith angle range.
Definition: JHead.hh:405

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 369 of file JHead.hh.

370  {
371  if (E.getLowerLimit() == object.E.getLowerLimit()) {
372 
373  if (E.getUpperLimit() == object.E.getUpperLimit()) {
374 
375  if (cosT.getLowerLimit() == object.cosT.getLowerLimit()) {
376  return cosT.getUpperLimit() < object.cosT.getUpperLimit();
377  } else {
378  return cosT.getLowerLimit() < object.cosT.getLowerLimit();
379  }
380 
381  } else {
382 
383  return E.getUpperLimit() < object.E.getUpperLimit();
384  }
385 
386  } else {
387 
388  return E.getLowerLimit() < object.E.getLowerLimit();
389  }
390  }
T getLowerLimit() const
Get lower limit.
Definition: JRange.hh:202
JRange_t E
Energy range [GeV].
Definition: JHead.hh:404
T getUpperLimit() const
Get upper limit.
Definition: JRange.hh:213
JRange_t cosT
Cosine zenith angle range.
Definition: JHead.hh:405
bool JAANET::cut::match ( const cut object) const
inline

Test match.

Parameters
objectcut
Returns
true if matches; else false

Definition at line 398 of file JHead.hh.

399  {
400  return (E .equals(object.E) &&
401  cosT.equals(object.cosT));
402  }
bool equals(const range_type &range) const
Equal method.
Definition: JRange.hh:275
JRange_t E
Energy range [GeV].
Definition: JHead.hh:404
JRange_t cosT
Cosine zenith angle range.
Definition: JHead.hh:405
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 404 of file JHead.hh.

JRange_t JAANET::cut::cosT

Cosine zenith angle range.

Definition at line 405 of file JHead.hh.


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