Class for representing the 4D smearing matrix for mis-reconstructed signal (self cross feed)
More...
#include <LauScfMap.hh>
|
| LauScfMap () |
| Constructor.
|
|
virtual | ~LauScfMap () |
| Destructor.
|
|
void | setHistos (const std::vector< const TH2 * > &histos) |
| Construct the smearing matrix from the supplied histograms. More...
|
|
Int_t | getNumberOfBins () const |
| Get the number of bins. More...
|
|
void | listBinCentres (std::vector< Double_t > &xCoords, std::vector< Double_t > &yCoords) const |
| Create lists of the co-ordinates of the centres of true bins. More...
|
|
Int_t | binNumber (Double_t xCoord, Double_t yCoord) const |
| Find the global bin number for the given co-ordinates. More...
|
|
const std::vector< Int_t > * | trueBins (Int_t recoBin) const |
| Find which true bins contribute to the given reco bin. More...
|
|
Double_t | prob (Int_t recoBin, Int_t trueBin) const |
| Probability of a true event in the given true bin migrating to the reco bin. More...
|
|
TH2 * | trueHist (Int_t trueBin) |
| Retrieve the migration histogram for trueBin. More...
|
|
|
std::vector< TH2 * > | histos_ |
| The vector of two-dimensional histograms.
|
|
std::map< Int_t, std::vector< Int_t > > | contribs_ |
| Map that links each reco global bin number and the vector of true bin indices into LauScfMap::histos_.
|
|
Int_t | nBinsX_ |
| Number of bins in the x-axis.
|
|
Int_t | nBinsY_ |
| Number of bins in the y-axis.
|
|
Int_t | numberOfBins_ |
| Number of bins in a 2D histogram (nBinsX_*nBinsY_)
|
|
Class for representing the 4D smearing matrix for mis-reconstructed signal (self cross feed)
The smearing matrix is formed from a 2D array of 2D histograms
Definition at line 45 of file LauScfMap.hh.
◆ binNumber()
Int_t LauScfMap::binNumber |
( |
Double_t |
xCoord, |
|
|
Double_t |
yCoord |
|
) |
| const |
Find the global bin number for the given co-ordinates.
- Parameters
-
[in] | xCoord | the vector of x co-ordinate |
[in] | yCoord | the vector of y co-ordinate |
- Returns
- the global bin number
Definition at line 158 of file LauScfMap.cc.
◆ getNumberOfBins()
Int_t LauScfMap::getNumberOfBins |
( |
| ) |
const |
|
inline |
Get the number of bins.
- Returns
- the number of bins
Definition at line 75 of file LauScfMap.hh.
◆ listBinCentres()
void LauScfMap::listBinCentres |
( |
std::vector< Double_t > & |
xCoords, |
|
|
std::vector< Double_t > & |
yCoords |
|
) |
| const |
Create lists of the co-ordinates of the centres of true bins.
- Parameters
-
[out] | xCoords | the vector of x co-ordinates of the centre of each true bin |
[out] | yCoords | the vector of y co-ordinates of the centre of each true bin |
Definition at line 128 of file LauScfMap.cc.
◆ prob()
Double_t LauScfMap::prob |
( |
Int_t |
recoBin, |
|
|
Int_t |
trueBin |
|
) |
| const |
Probability of a true event in the given true bin migrating to the reco bin.
- Parameters
-
- Returns
- the migration probability
Definition at line 179 of file LauScfMap.cc.
◆ setHistos()
void LauScfMap::setHistos |
( |
const std::vector< const TH2 * > & |
histos | ) |
|
Construct the smearing matrix from the supplied histograms.
The histograms should give the migration probabilities from a given true bin to a given reco bin.
These can be constructed as follows:
Each histogram contains only the events that were generated in a given true bin.
The events are plotted at their reconstructed co-ordinates.
The histogram is then normalised.
All histograms should be identically binned.
There should be as many histograms supplied as there are bins in each.
The order of the histograms in the vector should match the ROOT "global bin number" ordering.
- Parameters
-
[in] | histos | vector of two-dimensional histograms |
Definition at line 58 of file LauScfMap.cc.
◆ trueBins()
const std::vector< Int_t > * LauScfMap::trueBins |
( |
Int_t |
recoBin | ) |
const |
Find which true bins contribute to the given reco bin.
- Parameters
-
[in] | recoBin | the reco global bin number |
- Returns
- the list of true bins that contribute (the numbers returned are not global bin numbers but the index in the LauScfMap::histos_ storage)
Definition at line 169 of file LauScfMap.cc.
◆ trueHist()
TH2 * LauScfMap::trueHist |
( |
Int_t |
trueBin | ) |
|
Retrieve the migration histogram for trueBin.
- Parameters
-
[in] | trueBin | the true global bin number |
- Returns
- the migration histogram
Definition at line 190 of file LauScfMap.cc.
The documentation for this class was generated from the following files:
- /home/epp/phsdba/Development/Laura++/master-dev/laura/inc/LauScfMap.hh
- /home/epp/phsdba/Development/Laura++/master-dev/laura/src/LauScfMap.cc