Berkeley Nuclear Data Software
Public Member Functions | List of all members
RangeCut Class Reference

#include <CutClasses.h>

Inheritance diagram for RangeCut:
Inheritance graph
[legend]
Collaboration diagram for RangeCut:
Collaboration graph
[legend]

Public Member Functions

 RangeCut ()
 
double getLowerBound ()
 
double getUpperBound ()
 
void setLowerBound (double a_cutValue)
 
void setUpperBound (double a_cutValue)
 
bool passesCut (double a_X, const std::vector< double > &a_Ys={}) const
 
std::vector< std::pair< double, double > > getNPoints (int a_N, double a_minX, double a_maxX)
 
RangeCutclone ()
 
- Public Member Functions inherited from CutBase
 CutBase ()
 
std::string getVarXName () const
 
std::string getVarYName () const
 
void setVarXName (std::string a_varXName)
 
void setVarYName (std::string a_varYName)
 
void setRange (double a_min, double a_max)
 
TCutG * getTCut (int a_N=10, double a_minX=0, double a_maxX=0, std::string a_name="CUTG")
 
virtual ~CutBase ()
 

Additional Inherited Members

- Protected Attributes inherited from CutBase
std::string m_varXName
 
std::string m_varYName
 
double m_rMin
 
double m_rMax
 
bool m_hasRange
 

Constructor & Destructor Documentation

◆ RangeCut()

RangeCut::RangeCut ( )
Here is the caller graph for this function:

Member Function Documentation

◆ clone()

RangeCut * RangeCut::clone ( )
virtual

Implements CutBase.

Here is the call graph for this function:

◆ getLowerBound()

double RangeCut::getLowerBound ( )

◆ getNPoints()

std::vector< std::pair< double, double > > RangeCut::getNPoints ( int  a_N,
double  a_minX,
double  a_maxX 
)
virtual

since this cut is linear the number of points specifiec is ignored and the 4 corners are generated

Reimplemented from CutBase.

◆ getUpperBound()

double RangeCut::getUpperBound ( )

◆ passesCut()

bool RangeCut::passesCut ( double  a_X,
const std::vector< double > &  a_Ys = {} 
) const
inlinevirtual

this function returns true if a_X is > m_lowerBound and < m_upperBound otherwise it returns false

Implements CutBase.

Here is the caller graph for this function:

◆ setLowerBound()

void RangeCut::setLowerBound ( double  a_cutValue)
Here is the caller graph for this function:

◆ setUpperBound()

void RangeCut::setUpperBound ( double  a_cutValue)
Here is the caller graph for this function:

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