Jpp test-rotations-old
the software that should make you happy
Loading...
Searching...
No Matches
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.
 
 cut (const JRange_t &_E, const JRange_t &_cosT)
 Constructor.
 
 cut (const double Emin, const double Emax, const double cosTmin, const double cosTmax)
 Constructor.
 
bool less (const cut &object) const
 Comparison.
 
bool match (const cut &object) const
 Test match.
 
 ClassDefNV (cut, 1)
 

Public Attributes

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

 

Detailed Description

General purpose class of phase space generation.

Definition at line 341 of file JHead.hh.

Constructor & Destructor Documentation

◆ cut() [1/3]

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 cosT
Cosine zenith angle range
Definition JHead.hh:420
JRange_t E
Energy range [GeV].
Definition JHead.hh:419

◆ cut() [2/3]

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 {}

◆ cut() [3/3]

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 {}

Member Function Documentation

◆ less()

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
T getUpperLimit() const
Get upper limit.
Definition JRange.hh:213

◆ match()

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
bool equals(const JFirst_t &first, const JSecond_t &second, const double precision=std::numeric_limits< double >::min())
Check equality.

◆ ClassDefNV()

JAANET::cut::ClassDefNV ( cut ,
1  )

Member Data Documentation

◆ E

JRange_t JAANET::cut::E

Energy range [GeV].

Definition at line 419 of file JHead.hh.

◆ cosT

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: