Belle II Software  release-08-01-10
CDCWireHitRequirements Class Reference

Database object containing cut values to filter CDCWireHits. More...

#include <CDCWireHitRequirements.h>

Inheritance diagram for CDCWireHitRequirements:
Collaboration diagram for CDCWireHitRequirements:

Public Member Functions

 CDCWireHitRequirements ()=default
 Default constructor.
 
 CDCWireHitRequirements (boost::property_tree::ptree tree)
 Constructor using a boost::property_tree.
 
 ~CDCWireHitRequirements ()=default
 Destructor.
 
const intRange_tgetADCRangeFirstSuperLayer () const
 Get allowed ADC range (first super layer of CDC). An upper value of -1 stands for unbounded.
 
void setADCRangeFirstSuperLayer (const intRange_t &ADCRangeFirstSuperLayer)
 Set allowed ADC range (first super layer of CDC). An upper value of -1 stands for unbounded.
 
const intRange_tgetADCRangeOuterSuperLayers () const
 Get allowed ADC range (outer super layers of CDC). An upper value of -1 stands for unbounded.
 
void setADCRangeOuterSuperLayers (const intRange_t &ADCRangeOuterSuperLayers)
 Set allowed ADC range (outer super layers of CDC). An upper value of -1 stands for unbounded.
 
const intRange_tgetTOTRangeFirstSuperLayer () const
 Get allowed TOT range (first super layer of CDC). An upper value of -1 stands for unbounded.
 
void setTOTRangeFirstSuperLayer (const intRange_t &TOTRangeFirstSuperLayer)
 Set allowed TOT range (first super layer of CDC). An upper value of -1 stands for unbounded.
 
const intRange_tgetTOTRangeOuterSuperLayers () const
 Get allowed TOT range (outer super layers of CDC). An upper value of -1 stands for unbounded.
 
void setTOTRangeOuterSuperLayers (const intRange_t &TOTRangeOuterSuperLayers)
 Set allowed TOT range (outer super layers of CDC). An upper value of -1 stands for unbounded.
 
const floatRange_tgetADCOverTOTRangeFirstSuperLayer () const
 Get allowed ADC/TOT range (first super layer of CDC). An upper value of -1 stands for unbounded.
 
void setADCOverTOTRangeFirstSuperLayer (const floatRange_t &ADCOverTOTRangeFirstSuperLayer)
 Set allowed ADC/TOT range (first super layer of CDC). An upper value of -1 stands for unbounded.
 
const floatRange_tgetADCOverTOTRangeOuterSuperLayers () const
 Get allowed ADC/TOT range (outer super layers of CDC). An upper value of -1 stands for unbounded.
 
void setADCOverTOTRangeOuterSuperLayers (const floatRange_t &ADCOverTOTRangeOuterSuperLayers)
 Set allowed ADC/TOT range (outer super layers of CDC). An upper value of -1 stands for unbounded.
 
const std::map< short, short > getMaxADCGivenTOTFirstSuperLayer () const
 Get map of maximum allowed ADC given TOT (first super layer of CDC). An upper value of -1 stands for unbounded.
 
short getMaxADCGivenTOTFirstSuperLayer (short tot) const
 Get maximum allowed ADC given TOT (first super layer of CDC). An upper value of -1 stands for unbounded.
 
void setMaxADCGivenTOTFirstSuperLayer (const std::map< short, short > &MaxADCGivenTOTFirstSuperLayer)
 Set map of maximum allowed ADC given TOT (first super layer of CDC). An upper value of -1 stands for unbounded.
 
const std::map< short, short > getMaxADCGivenTOTOuterSuperLayers () const
 Get map of maximum allowed ADC given TOT (outer super layers of CDC). An upper value of -1 stands for unbounded.
 
short getMaxADCGivenTOTOuterSuperLayers (short tot) const
 Get maximum allowed ADC given TOT (outer super layers of CDC). An upper value of -1 stands for unbounded.
 
void setMaxADCGivenTOTOuterSuperLayers (const std::map< short, short > &MaxADCGivenTOTOuterSuperLayers)
 Set map of maximum allowed ADC given TOT (outer super layers of CDC). An upper value of -1 stands for unbounded.
 
void dump () const
 Print content.
 

Private Types

typedef std::pair< short, short > intRange_t
 Integer range. More...
 
typedef std::pair< float, float > floatRange_t
 Float range. More...
 

Private Member Functions

 ClassDef (CDCWireHitRequirements, 2)
 ROOT ClassDef.
 

Private Attributes

intRange_t m_ADCRangeFirstSuperLayer = {1, -1}
 Allowed ADC range (first super layer of CDC). More...
 
intRange_t m_ADCRangeOuterSuperLayers = {1, -1}
 Allowed ADC range (outer super layers of CDC). More...
 
intRange_t m_TOTRangeFirstSuperLayer = {1, -1}
 Allowed TOT range (first super layer of CDC). More...
 
intRange_t m_TOTRangeOuterSuperLayers = {1, -1}
 Allowed TOT range (outer super layers of CDC). More...
 
floatRange_t m_ADCOverTOTRangeFirstSuperLayer = {0.0, -1.0}
 Allowed ADC/TOT range (first super layer of CDC). More...
 
floatRange_t m_ADCOverTOTRangeOuterSuperLayers = {0.0, -1.0}
 Allowed ADC/TOT range (outer super layers of CDC). More...
 
std::map< short, short > m_MaxADCGivenTOTFirstSuperLayer = {}
 Map of conditions of the type: if TOT==x, then ADC<=y (first super layer of CDC). More...
 
std::map< short, short > m_MaxADCGivenTOTOuterSuperLayers = {}
 Map of conditions of the type: if TOT==x, then ADC<=y (outer super layers of CDC). More...
 

Detailed Description

Database object containing cut values to filter CDCWireHits.

The set of conditions is: {minADC<=ADC<=maxADC, minTOT<=TOT<=maxTOT, minADCOverTOT<=ADC/TOT<=maxACDOverTOT, if TOT==x, then ADC<=y (std::map)}. The first super layer of the CDC can have specific requirements. The other super layers of the CDC (outer super layers) share a single set of conditions. In the allowed range for ADC, TOT, ..., an upper value of -1 stands for unbounded. For example, the ADC range {5,-1} accepts all the hits with ADC>=5.

Definition at line 34 of file CDCWireHitRequirements.h.

Member Typedef Documentation

◆ floatRange_t

typedef std::pair<float, float> floatRange_t
private

Float range.

The first value is the lower bound, the second value is the upper bound. The two bounds are included in the allowed range. An upper value of -1 stands for unbounded.

Definition at line 47 of file CDCWireHitRequirements.h.

◆ intRange_t

typedef std::pair<short, short> intRange_t
private

Integer range.

The first value is the lower bound, the second value is the upper bound. The two bounds are included in the allowed range. An upper value of -1 stands for unbounded.

Definition at line 41 of file CDCWireHitRequirements.h.

Member Data Documentation

◆ m_ADCOverTOTRangeFirstSuperLayer

floatRange_t m_ADCOverTOTRangeFirstSuperLayer = {0.0, -1.0}
private

Allowed ADC/TOT range (first super layer of CDC).

An upper value of -1 stands for unbounded. The first value is the lower bound, the second value is the upper bound. The two bounds are included in the allowed range.

Definition at line 282 of file CDCWireHitRequirements.h.

◆ m_ADCOverTOTRangeOuterSuperLayers

floatRange_t m_ADCOverTOTRangeOuterSuperLayers = {0.0, -1.0}
private

Allowed ADC/TOT range (outer super layers of CDC).

An upper value of -1 stands for unbounded. The first value is the lower bound, the second value is the upper bound. The two bounds are included in the allowed range.

Definition at line 286 of file CDCWireHitRequirements.h.

◆ m_ADCRangeFirstSuperLayer

intRange_t m_ADCRangeFirstSuperLayer = {1, -1}
private

Allowed ADC range (first super layer of CDC).

An upper value of -1 stands for unbounded. The first value is the lower bound, the second value is the upper bound. The two bounds are included in the allowed range.

Definition at line 264 of file CDCWireHitRequirements.h.

◆ m_ADCRangeOuterSuperLayers

intRange_t m_ADCRangeOuterSuperLayers = {1, -1}
private

Allowed ADC range (outer super layers of CDC).

An upper value of -1 stands for unbounded. The first value is the lower bound, the second value is the upper bound. The two bounds are included in the allowed range.

Definition at line 268 of file CDCWireHitRequirements.h.

◆ m_MaxADCGivenTOTFirstSuperLayer

std::map<short, short> m_MaxADCGivenTOTFirstSuperLayer = {}
private

Map of conditions of the type: if TOT==x, then ADC<=y (first super layer of CDC).

An upper value of -1 stands for unbounded. The first value is the given TOT, the second value is the maximum ADC. The upper bound is included in the allowed range.

Definition at line 291 of file CDCWireHitRequirements.h.

◆ m_MaxADCGivenTOTOuterSuperLayers

std::map<short, short> m_MaxADCGivenTOTOuterSuperLayers = {}
private

Map of conditions of the type: if TOT==x, then ADC<=y (outer super layers of CDC).

An upper value of -1 stands for unbounded. The first value is the given TOT, the second value is the maximum ADC. The upper bound is included in the allowed range.

Definition at line 295 of file CDCWireHitRequirements.h.

◆ m_TOTRangeFirstSuperLayer

intRange_t m_TOTRangeFirstSuperLayer = {1, -1}
private

Allowed TOT range (first super layer of CDC).

An upper value of -1 stands for unbounded. The first value is the lower bound, the second value is the upper bound. The two bounds are included in the allowed range.

Definition at line 273 of file CDCWireHitRequirements.h.

◆ m_TOTRangeOuterSuperLayers

intRange_t m_TOTRangeOuterSuperLayers = {1, -1}
private

Allowed TOT range (outer super layers of CDC).

An upper value of -1 stands for unbounded. The first value is the lower bound, the second value is the upper bound. The two bounds are included in the allowed range.

Definition at line 277 of file CDCWireHitRequirements.h.


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