RigFillCut Class Reference

The rigidity vs threshold rigidity histogram filling. More...

#include <RigFillCut.h>

Inheritance diagram for RigFillCut:

PamCut

List of all members.

Public Member Functions

 RigFillCut (const char *cutName, std::vector< float > binning, float thresholdCoeff)
 Constructor.
 ~RigFillCut ()
 Destructor.
int Check (PamLevel2 *event)
 The rigidity and cutoff rigidity check.
void OnGood (PamLevel2 *event)
 The histogram filling.
SimpleMatrix< UInt_t > & GetHisto ()
 Returns the histogram.


Detailed Description

The rigidity vs threshold rigidity histogram filling.

This class checks the events and builds a 2D histogram binned in rigidity modulus and threshold rigidity. Each 2D bin will contain the number of events whose rigidity modulus and threshold rigidity (eg., Stoermer cutoff rigidity times a threshold coefficient) lie in that bin. Note that the meaning of this threshold coefficient is the same as in TrkRigGeoCut, so it must have the same value used for TrkRigGeoCut (consider using TrkRigGeoCut::GetThresholdCoeff() to retrieve its value). Events are discarded only if their rigidity modulus or cutoff rigidity lies outside the histogram bounds.

CUT DEPENDECIES: TrkPhSinCut for single physical track, TrkRigGeoCut for galactic event.


Constructor & Destructor Documentation

RigFillCut::RigFillCut ( const char *  cutName,
std::vector< float >  binning,
float  thresholdCoeff 
) [inline]

Constructor.

The binning vectors must contain both the upper and lower limits, and the elements must be ordered (ie., lowest value in the first element and so on) and positive, so that charge sign will be irrelevant.

Parameters:
cutName The cut's name.
binning A vector containing the histogram binning in rigidity modulus (X axis) and cutoff rigidity (Y axis).
thresholdCoeff The threshold rigidity coefficient for the event selection.


Member Function Documentation

int RigFillCut::Check ( PamLevel2 *  event  )  [virtual]

The rigidity and cutoff rigidity check.

The event is discarded if its rigidity modulus or threshold rigidity are outside the limits of the binnings. Please note that only absolute rigidity is considered.

Parameters:
event The event to analyze.
Returns:
CUTOK if both rigidity modulus and threshold rigidity is contained in the histogram limits.

0 otherwise.

Implements PamCut.

SimpleMatrix<UInt_t>& RigFillCut::GetHisto (  )  [inline]

Returns the histogram.

This method returns a SimpleMatrix. Its [i][j] element contain the number of analyzed events whose rigidity modulus falls in the i-th rigidity bin and whose threshold rigidity falls in the j-th rigidity bin.

Returns:
The rigidity modulus - threshold rigidity 2D histogram

void RigFillCut::OnGood ( PamLevel2 *  event  )  [virtual]

The histogram filling.

The method fills the histogram with the currently selected event.

Parameters:
event The currently selected event.

Reimplemented from PamCut.


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

Generated on Fri Jun 5 15:09:04 2009 for PamCut by  doxygen 1.5.9