CbmRoot
Loading...
Searching...
No Matches
CbmCut< T > Class Template Reference

#include <CbmCut.h>

Public Member Functions

 CbmCut ()=default
 Default constructor Any check done to a non-configured object CbmCut will pass.
 
 CbmCut (T min, T max)
 Add a CbmTarget object to the list of targets with a key as trg_name.
 
bool Check (T a) const
 Check if the T is inside the configured ranges [min, max].
 
void SetMin (T val)
 
void SetMax (T val)
 
void SetRange (T min_val, T max_val)
 
GetMin () const
 
GetMax () const
 
bool GetMinState () const
 
bool GetMaxState () const
 

Private Attributes

bool fMinState {false}
 
bool fMaxState {false}
 
min_
 
max_
 

Friends

std::ostream & operator<< (std::ostream &out, const CbmCut< T > &obj)
 

Detailed Description

template<typename T>
class CbmCut< T >

Definition at line 13 of file CbmCut.h.

Constructor & Destructor Documentation

◆ CbmCut() [1/2]

template<typename T>
CbmCut< T >::CbmCut ( )
default

Default constructor Any check done to a non-configured object CbmCut will pass.

Referenced by operator<<.

◆ CbmCut() [2/2]

template<typename T>
CbmCut< T >::CbmCut ( T min,
T max )
inline

Add a CbmTarget object to the list of targets with a key as trg_name.

Parameters
minMinimum value for the check
maxMaximum value for the check When this constructor is created, check will be done for each boundary

Definition at line 27 of file CbmCut.h.

References max(), min(), SetMax(), and SetMin().

Member Function Documentation

◆ Check()

template<typename T>
bool CbmCut< T >::Check ( T a) const
inline

Check if the T is inside the configured ranges [min, max].

Parameters
aObject for which operators <= >= == is implemented
Returns
true or false depending on two possible general cases Case 1 --------------—########## TRUE ##########--------------— @MIN @MAX

Case 2

TRUE ####-----------------------------—#### TRUE

@MAX @MIN

Definition at line 45 of file CbmCut.h.

References fMaxState, fMinState, max_, and min_.

Referenced by TEST(), TEST(), and TEST().

◆ GetMax()

template<typename T>
T CbmCut< T >::GetMax ( ) const
inline

Definition at line 78 of file CbmCut.h.

References max_.

Referenced by TEST().

◆ GetMaxState()

template<typename T>
bool CbmCut< T >::GetMaxState ( ) const
inline

Definition at line 80 of file CbmCut.h.

References fMaxState.

Referenced by TEST(), and TEST().

◆ GetMin()

template<typename T>
T CbmCut< T >::GetMin ( ) const
inline

Definition at line 77 of file CbmCut.h.

References min_.

Referenced by TEST().

◆ GetMinState()

template<typename T>
bool CbmCut< T >::GetMinState ( ) const
inline

Definition at line 79 of file CbmCut.h.

References fMinState.

Referenced by TEST(), and TEST().

◆ SetMax()

template<typename T>
void CbmCut< T >::SetMax ( T val)
inline

Definition at line 58 of file CbmCut.h.

References fMaxState, and max_.

Referenced by CbmCut(), and SetRange().

◆ SetMin()

template<typename T>
void CbmCut< T >::SetMin ( T val)
inline

Definition at line 53 of file CbmCut.h.

References fMinState, and min_.

Referenced by CbmCut(), and SetRange().

◆ SetRange()

template<typename T>
void CbmCut< T >::SetRange ( T min_val,
T max_val )
inline

Definition at line 63 of file CbmCut.h.

References SetMax(), and SetMin().

Friends And Related Symbol Documentation

◆ operator<<

template<typename T>
std::ostream & operator<< ( std::ostream & out,
const CbmCut< T > & obj )
friend

Definition at line 69 of file CbmCut.h.

References CbmCut(), fMaxState, fMinState, max_, and min_.

Member Data Documentation

◆ fMaxState

template<typename T>
bool CbmCut< T >::fMaxState {false}
private

Definition at line 85 of file CbmCut.h.

Referenced by Check(), GetMaxState(), operator<<, and SetMax().

◆ fMinState

template<typename T>
bool CbmCut< T >::fMinState {false}
private

Definition at line 84 of file CbmCut.h.

Referenced by Check(), GetMinState(), operator<<, and SetMin().

◆ max_

template<typename T>
T CbmCut< T >::max_
private

Definition at line 87 of file CbmCut.h.

Referenced by Check(), GetMax(), operator<<, and SetMax().

◆ min_

template<typename T>
T CbmCut< T >::min_
private

Definition at line 86 of file CbmCut.h.

Referenced by Check(), GetMin(), operator<<, and SetMin().


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