MarlinTPC  1.2.0
Public Member Functions | Static Public Member Functions | Protected Attributes | Static Protected Attributes | List of all members
marlintpc::LinearGeometricMeanResolutionProcessor Class Reference

Resoltuion calculator for straight lines using the gemetric mean method. More...

#include <LinearGeometricMeanResolutionProcessor.h>

Inheritance diagram for marlintpc::LinearGeometricMeanResolutionProcessor:
marlintpc::ZBinTemplateProcessor< N_1D_HISTOS_GEOMETRIC_MEAN_RESOLUTION_PROCESSOR, N_2D_HISTOS_GEOMETRIC_MEAN_RESOLUTION_PROCESSOR >

Public Member Functions

virtual Processor * newProcessor ()
 The newProcessor() function does not make sense for this template class, so it throws an lcio::Exception.
 
virtual void init ()
 Register the AIDA histograms at the AIDAProcessor.
 
virtual void processRunHeader (lcio::LCRunHeader *run)
 
virtual void processEvent (lcio::LCEvent *evt)
 
virtual void check (lcio::LCEvent *evt)
 
virtual void end ()
 

Static Public Member Functions

static bool compareHit (const std::pair< TrackerHit *, double > &pair1, const std::pair< TrackerHit *, double > &pair2)
 

Protected Attributes

std::string _inputColName
 
int _histoBin
 
float _histoRange
 
bool isFirstCollection
 is true till the first output collection is wirten to an event used to to store parameters only in the first collection (also done, if collection is transient)
 
- Protected Attributes inherited from marlintpc::ZBinTemplateProcessor< N_1D_HISTOS_GEOMETRIC_MEAN_RESOLUTION_PROCESSOR, N_2D_HISTOS_GEOMETRIC_MEAN_RESOLUTION_PROCESSOR >
std::vector< std::vector
< AIDA::IHistogram1D * > > 
_1DHistos
 Vector of 1D histogram vectors.
 
std::vector< std::vector
< AIDA::IHistogram2D * > > 
_2DHistos
 Vector of 2D histogram vectors.
 
std::vector< std::string > _histo1DBaseNames
 Vector of base names for the 1D histograms. More...
 
std::vector< std::string > _histo2DBaseNames
 Vector of base names for the 2D histograms. More...
 
std::vector< std::string > _histo1DTitles
 Vector of titles for the 1D histograms. More...
 
std::vector< std::string > _histo2DTitles
 Vector of titles for the 2D histograms. More...
 
std::vector< HistoRange > _histoRanges1D
 Vector of ranges for the 1D histograms.
 
std::vector< HistoRange2D > _histoRanges2D
 Vector of ranges for the 2D histograms.
 
std::vector< int > _nBins1D
 Vector with number of bins for the 1D histograms.
 
std::vector< HistoNBins2D > _nBins2D
 Vector with number of bins for the 1D histograms.
 
float _minZ
 Minimum z value of lowest bin.
 
float _maxZ
 Maximum z value of highest bin.
 
int _nZBins
 Number of z bins.
 
float _zBinWidth
 Width of a bin, calculated as (_maxZ-_minZ)/_nZBins;.
 

Static Protected Attributes

static const unsigned int _histoGeoNIndex = 0
 The index of the template parameter for the hitsPerTrack histos We want to have these values divided into z bins.
 
static const unsigned int _histoGeoNminus1Index = 1
 
static const unsigned int _histoGeoZNIndex = 2
 
static const unsigned int _histoGeoZNminus1Index = 3
 

Additional Inherited Members

- Protected Member Functions inherited from marlintpc::ZBinTemplateProcessor< N_1D_HISTOS_GEOMETRIC_MEAN_RESOLUTION_PROCESSOR, N_2D_HISTOS_GEOMETRIC_MEAN_RESOLUTION_PROCESSOR >
 ZBinTemplateProcessor (const std::string &typeName)
 
void fillHistogram (unsigned int histoIndex, float x, float z)
 Fill value x into the histogram set histoIndex. More...
 
void fillHistogram (unsigned int histoIndex, float x, float y, float z)
 Fill the x and y value pair into the 2D histogram set histoIndex. More...
 

Detailed Description

Resoltuion calculator for straight lines using the gemetric mean method.

Determines the resolution via the geometric mean method. Only possible for straight line tracks!

Todo:
Currently only the histograms are filled. The resolution propper has to be calculated manually.

One can apply a cut in z direction. If this is used to create several z bins by using several instances of HitAndTrackChargeProcessor in the steering file, you have to apply unique names for HistoGeoN and HistoGeoNminus1 for each instance.

Input - Prerequisites

Output

Parameters
InputCollectionNameName of input collection, TrackerRawData
ApplyZCutFlag whether to cut in z , default 0
ZMinMinimal: z value, default 0 mm
ZMaxMaximal: z value, default 100 mm
HistoGeoNNameName of the histogramm with all hits in the track fit , default histoGeoN
HistoGeoNminus1NameName of the histogramm with n -1 hits in the track fit, default
HistoRangeHistograms will have range (-_histoRange, _histoRange), default _histoRange = 1mm
HistoBinHistograms will be binned with _histoBin, default _histoBin = 100
DisplayAllEventsFlag whether a Event Display shall be created in any Case
HistoGeoZNNameName of the histogramm with all hits in the track fit
HistoGeoZNminus1NameName of the histogramm with n -1 hits in the track fit
transDifftransverse Diffusion coefficent mu per sqrt(cm)
longDifflongitudinal Diffusion coefficent mu per sqrt(cm)
Author
Simone Zimmermann (with changes by C.Brezina)

Member Data Documentation

int marlintpc::LinearGeometricMeanResolutionProcessor::_histoBin
protected
  • binning of histograms
float marlintpc::LinearGeometricMeanResolutionProcessor::_histoRange
protected
  • range of histograms
std::string marlintpc::LinearGeometricMeanResolutionProcessor::_inputColName
protected
  • the name of the input collection

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