laura is hosted by Hepforge, IPPP Durham
Laura++  v1r1p1
A maximum likelihood fitting package for performing Dalitz-plot analysis.

Class for representing the 4D smearing matrix for mis-reconstructed signal (self cross feed) More...

#include <LauScfMap.hh>

Public Member Functions

 LauScfMap ()
 Constructor. More...
 
virtual ~LauScfMap ()
 Destructor. More...
 
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...
 

Private Member Functions

 LauScfMap (const LauScfMap &rhs)
 Copy constructor (not implemented) More...
 
LauScfMapoperator= (const LauScfMap &rhs)
 Copy assignment operator (not implemented) More...
 

Private Attributes

std::vector< TH2 * > histos_
 The vector of two-dimensional histograms. More...
 
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_. More...
 
Int_t nBinsX_
 Number of bins in the x-axis. More...
 
Int_t nBinsY_
 Number of bins in the y-axis. More...
 
Int_t numberOfBins_
 Number of bins in a 2D histogram (nBinsX_*nBinsY_) More...
 

Detailed Description

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 29 of file LauScfMap.hh.

Constructor & Destructor Documentation

LauScfMap::LauScfMap ( )

Constructor.

Definition at line 33 of file LauScfMap.cc.

LauScfMap::~LauScfMap ( )
virtual

Destructor.

Definition at line 40 of file LauScfMap.cc.

LauScfMap::LauScfMap ( const LauScfMap rhs)
private

Copy constructor (not implemented)

Member Function Documentation

Int_t LauScfMap::binNumber ( Double_t  xCoord,
Double_t  yCoord 
) const

Find the global bin number for the given co-ordinates.

Parameters
[in]xCoordthe vector of x co-ordinate
[in]yCoordthe vector of y co-ordinate
Returns
the global bin number

Definition at line 144 of file LauScfMap.cc.

Int_t LauScfMap::getNumberOfBins ( ) const
inline

Get the number of bins.

Returns
the number of bins

Definition at line 59 of file LauScfMap.hh.

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]xCoordsthe vector of x co-ordinates of the centre of each true bin
[out]yCoordsthe vector of y co-ordinates of the centre of each true bin

Definition at line 114 of file LauScfMap.cc.

LauScfMap& LauScfMap::operator= ( const LauScfMap rhs)
private

Copy assignment operator (not implemented)

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
[in]recoBinthe reco global bin number
[in]trueBinthe true bin index in the LauScfMap::histos_ storage (as provided by LauScfMap::trueBins)
Returns
the migration probability

Definition at line 165 of file LauScfMap.cc.

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]histosvector of two-dimensional histograms

Definition at line 47 of file LauScfMap.cc.

const std::vector< Int_t > * LauScfMap::trueBins ( Int_t  recoBin) const

Find which true bins contribute to the given reco bin.

Parameters
[in]recoBinthe 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 155 of file LauScfMap.cc.

TH2 * LauScfMap::trueHist ( Int_t  trueBin)

Retrieve the migration histogram for trueBin.

Parameters
[in]trueBinthe true global bin number
Returns
the migration histogram

Definition at line 176 of file LauScfMap.cc.

Member Data Documentation

std::map< Int_t, std::vector<Int_t> > LauScfMap::contribs_
private

Map that links each reco global bin number and the vector of true bin indices into LauScfMap::histos_.

Definition at line 109 of file LauScfMap.hh.

std::vector<TH2*> LauScfMap::histos_
private

The vector of two-dimensional histograms.

Definition at line 106 of file LauScfMap.hh.

Int_t LauScfMap::nBinsX_
private

Number of bins in the x-axis.

Definition at line 112 of file LauScfMap.hh.

Int_t LauScfMap::nBinsY_
private

Number of bins in the y-axis.

Definition at line 114 of file LauScfMap.hh.

Int_t LauScfMap::numberOfBins_
private

Number of bins in a 2D histogram (nBinsX_*nBinsY_)

Definition at line 116 of file LauScfMap.hh.


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