Class ElectronMatrixManager


class ElectronMatrixManager
derived from IMatrixManager

Used by tracksmearer to provide smear matrices corresponding to given track trajectories. It reads a flat file containing smear matrix data and creates a BinData object for every eta/phi bin.


Field Summary
 private vectorm_binData
          vector of BinData objects, each corresponding to an eta/phi/pt bin.
 private vectorm_etaBins
          bin boundaries
 private stringm_file1
          name of flat file containing smear matrix data.
 private stringm_file2
          name of flat file containing smear matrix data.
 private intm_idconfig
          detector configutartion
 private vectorm_momBins
          bin boundaries
 private intm_nbins
          number of bins
 private intm_option
          matrix rescaling option
 private HepRandomEngine *m_randomEngine
          random number generator pointer

Constructor Summary
ElectronMatrixManager()
          Default Constructor
ElectronMatrixManager(int option, HepRandomEngine * randomEngine)
          Constructor taking matrix rescaling option and a random number generator.

Destructor Summary
 virtual ~ElectronMatrixManager()
          Default Destructor

Method Summary
 private const BinIDgetBinID(const TrackTrajectory & track)
          returns BinID object corresponding to track trajectory
 const HepMatrix *getMatrix(const TrackTrajectory & track)
          returns correlation matrix corresponding to given track trajectory
 private voidinitialise()
          reads file, creates BinData objects and asks them to calculate their matrices

Field Detail

m_binData

private vector m_binData
vector of BinData objects, each corresponding to an eta/phi/pt bin.

m_etaBins

private vector m_etaBins
bin boundaries

m_file1

private string m_file1
name of flat file containing smear matrix data.

m_file2

private string m_file2
name of flat file containing smear matrix data.

m_idconfig

private int m_idconfig
detector configutartion

m_momBins

private vector m_momBins
bin boundaries

m_nbins

private int m_nbins
number of bins

m_option

private int m_option
matrix rescaling option

m_randomEngine

private HepRandomEngine * m_randomEngine
random number generator pointer
Constructor Detail

ElectronMatrixManager

public ElectronMatrixManager()
Default Constructor

ElectronMatrixManager

public ElectronMatrixManager(int option, HepRandomEngine * randomEngine)
Constructor taking matrix rescaling option and a random number generator.
Method Detail

~ElectronMatrixManager

public virtual ~ElectronMatrixManager()
Default Destructor
Method Detail

getBinID

private const BinID getBinID(const TrackTrajectory & track)
returns BinID object corresponding to track trajectory

getMatrix

public const HepMatrix * getMatrix(const TrackTrajectory & track)
returns correlation matrix corresponding to given track trajectory

initialise

private void initialise()
reads file, creates BinData objects and asks them to calculate their matrices