Belle II Software  release-06-01-15
ARICHReconstructionPar Class Reference

The Class for ARICH reconstruction parameters. More...

#include <ARICHReconstructionPar.h>

Inheritance diagram for ARICHReconstructionPar:
Collaboration diagram for ARICHReconstructionPar:

Public Member Functions

 ARICHReconstructionPar ()
 Default constructor.
 
void initializeDefault ()
 initializes "default" values of parameters
 
void setBackgroundPDF (TF1 *bkgPDF)
 Set background PDF function for cherenkov angle distribution (vs. More...
 
void setThcResolution (TF1 *thcRes)
 Set function for cherenkov angle resolution vs. More...
 
void setAerogelFOM (const std::vector< float > &aerogelFOM)
 Set aerogel figure of merit for cherenkov photon yield. More...
 
void setFlatBkgPerPad (const float flatBkgPerPad)
 Set flat background per pad. More...
 
void setParameters (const std::vector< float > &pars)
 Set additional cherenkov angle PDF parameters. More...
 
const std::vector< float > & getParameters () const
 Get vector of additional cherenkov angle PDF parameters. More...
 
const TF1 * getBackgroundPDF () const
 Get background PDF function. More...
 
double getThcResolution (double momentum) const
 Get Cherenkov angle resolution (without smearing due to pad size!) at given track momentum. More...
 
double getAerogelFOM (unsigned iLayer) const
 Get aerogel cherenkov photon yield for tile of selected layer. More...
 
float getFlatBkgPerPad () const
 Get flat background per pad. More...
 
double getBackgroundPerPad (double th_cer, const std::vector< double > &pars) const
 Get expected number of background hits for pad at given theta. More...
 
double getExpectedBackgroundHits (const std::vector< double > &pars, double minThc=0.1, double maxThc=0.5) const
 Get number of expected background hits in ring (0.1<theta<0.5rad by default) More...
 
double getNPadsInRing (double maxThc, double minThc=0.0, double trackTh=0.45) const
 Get average number of pads in ring. More...
 
void print () const
 Print parameters values.
 

Private Member Functions

 ClassDef (ARICHReconstructionPar, 1)
 ClassDef, must be the last term before the closing {}.
 

Private Attributes

TF1 * m_bkgPDF = NULL
 background PDF function (function of theta)
 
TF1 * m_thcResolution = NULL
 cherenkov angle resolution (function of track momentum)
 
std::vector< float > m_pars
 vector of other pdf parameters
 
std::vector< float > m_aerogelFOM
 aerogel figure of merit (for photon yield)
 
float m_flatBkgPerPad = 0.0
 expected background hits per pad (treated flat over detector surface)
 

Detailed Description

The Class for ARICH reconstruction parameters.

This class provides ARICH parameters for reconstruction (i.e. likelihood calculation)

Definition at line 24 of file ARICHReconstructionPar.h.

Member Function Documentation

◆ getAerogelFOM()

double getAerogelFOM ( unsigned  iLayer) const
inline

Get aerogel cherenkov photon yield for tile of selected layer.

Parameters
iLayeraerogel layer
Returns
aerogel cherenkov photon yield

Definition at line 112 of file ARICHReconstructionPar.h.

113  {
114  return m_aerogelFOM.at(iLayer);
115  }
std::vector< float > m_aerogelFOM
aerogel figure of merit (for photon yield)

◆ getBackgroundPDF()

const TF1* getBackgroundPDF ( ) const
inline

Get background PDF function.

Returns
background PDF function

Definition at line 92 of file ARICHReconstructionPar.h.

◆ getBackgroundPerPad()

double getBackgroundPerPad ( double  th_cer,
const std::vector< double > &  pars 
) const

Get expected number of background hits for pad at given theta.

Parameters
th_cerpad theta angle
parsvector of parameters for PDF (beta, track hits HAPD window (1 or 0))
Returns
expected number of backgrond hits on pad

Definition at line 36 of file ARICHReconstructionPar.cc.

37 {
38 
39  int ipar = 0;
40  for (auto par : pars) {
41  m_bkgPDF->SetParameter(ipar, par);
42  ipar++;
43  }
44  return m_bkgPDF->Eval(th_cer) + m_flatBkgPerPad;
45 }
float m_flatBkgPerPad
expected background hits per pad (treated flat over detector surface)
TF1 * m_bkgPDF
background PDF function (function of theta)

◆ getExpectedBackgroundHits()

double getExpectedBackgroundHits ( const std::vector< double > &  pars,
double  minThc = 0.1,
double  maxThc = 0.5 
) const

Get number of expected background hits in ring (0.1<theta<0.5rad by default)

Parameters
parsvector of parameters for PDF (beta, track hits HAPD window (1 or 0))
minThcinner theta angle of ring
maxThcoutter theta angle of ring
Returns
expected number of backgrond hits in ring

Definition at line 47 of file ARICHReconstructionPar.cc.

◆ getFlatBkgPerPad()

float getFlatBkgPerPad ( ) const
inline

Get flat background per pad.

Returns
flat background per pad

Definition at line 121 of file ARICHReconstructionPar.h.

◆ getNPadsInRing()

double getNPadsInRing ( double  maxThc,
double  minThc = 0.0,
double  trackTh = 0.45 
) const

Get average number of pads in ring.

Parameters
maxThcoutter theta angle of ring
minThcinner theta angle of ring
trackThtheta angle of track (global coordinates, z axis theta = 0)
Returns
average number of pads in ring

Definition at line 69 of file ARICHReconstructionPar.cc.

◆ getParameters()

const std::vector<float>& getParameters ( ) const
inline

Get vector of additional cherenkov angle PDF parameters.

Returns
vector of parameters

Definition at line 83 of file ARICHReconstructionPar.h.

◆ getThcResolution()

double getThcResolution ( double  momentum) const
inline

Get Cherenkov angle resolution (without smearing due to pad size!) at given track momentum.

Parameters
momentumtrack momentum
Returns
cherenkov angle resolution

Definition at line 102 of file ARICHReconstructionPar.h.

◆ setAerogelFOM()

void setAerogelFOM ( const std::vector< float > &  aerogelFOM)
inline

Set aerogel figure of merit for cherenkov photon yield.

Parameters
aerogelFOMvector of aerogel layers FOMs

Definition at line 56 of file ARICHReconstructionPar.h.

◆ setBackgroundPDF()

void setBackgroundPDF ( TF1 *  bkgPDF)
inline

Set background PDF function for cherenkov angle distribution (vs.

theta)

Parameters
bkgPDFbackground PDF

Definition at line 38 of file ARICHReconstructionPar.h.

◆ setFlatBkgPerPad()

void setFlatBkgPerPad ( const float  flatBkgPerPad)
inline

Set flat background per pad.

Parameters
flatBkgPerPadvalue of flat background per pad

Definition at line 65 of file ARICHReconstructionPar.h.

◆ setParameters()

void setParameters ( const std::vector< float > &  pars)
inline

Set additional cherenkov angle PDF parameters.

Parameters
parsvector of parameters

Definition at line 74 of file ARICHReconstructionPar.h.

◆ setThcResolution()

void setThcResolution ( TF1 *  thcRes)
inline

Set function for cherenkov angle resolution vs.

momentum

Parameters
thcRescherenkov angle resolution vs. momentum function

Definition at line 47 of file ARICHReconstructionPar.h.


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