MCoincidenceTester Class Reference

Inheritance diagram for MCoincidenceTester:

QModule QBaseModule List of all members.

Detailed Description

simple tool to test coincidences framework

Author:
Sergio Di Domizio

Carlos Martinez


Public Member Functions

 MCoincidenceTester (QSequence *s)
 constructor
 ~MCoincidenceTester ()
 destructor
void Init ()
 Init method.
QEventDo (QEvent *ev)
 Do method.
void Done ()
 Done method.

Private Member Functions

void ProduceSummaryPlots (const std::list< QCoincidence > &coincList) const
 produce summary plots from coincidences in coincList
void DumpEventList (const std::list< QCoincidence > &coincList)
 dump event list from coincidences in coincList
void DumpCoincidenceList (const std::list< QCoincidence > &coincList) const
 dump coincidence list in the same format as the ouptput of geant
void ReadCutsFile ()
 read file containing coincidence filtering parameters
double GetMinimumSumOfDistances (const QCoincidence &coinc, const QTower &tower) const
 return the minimum sum of distances between the events in a coincidence

Private Attributes

QCoincidenceFillerfFiller
std::string fOutList
std::string fCoincList
std::string fCutFile
std::string fTowerFile
bool fSkipExecution
std::list< QCoincidenceFilter * > fFilters
QVector * fEventList
bool fMultHisto
bool fDistanceHisto
bool fPositionHisto
bool fMultTimeGraph
bool fMultPositionGraph
bool fMultDurationGraph
bool fDistanceTimeGraph
bool fSummaryPlots
std::string fSummaryFile


Member Function Documentation

void MCoincidenceTester::DumpCoincidenceList ( const std::list< QCoincidence > &  coincList  )  const [private]

dump coincidence list in the same format as the ouptput of geant

The first line in the output is a comment line All others lines represent an event. Each line has the following fields:

void MCoincidenceTester::ReadCutsFile (  )  [private]

read file containing coincidence filtering parameters

Each line represents a cut. Lines beginning with # are treated as comments and are ignored. Each cut line must start with a valid tag, followed by a set of values. The format for the values depends on the particular tag. Some tags can occur only once in the file, while others can occur more than once.

The filters will be applied with the same order of appearance of the corresponding in the cuts file. For filters that allow multiple tags the first occurrence will matter.

Available tags are:

double MCoincidenceTester::GetMinimumSumOfDistances ( const QCoincidence coinc,
const QTower tower 
) const [private]

return the minimum sum of distances between the events in a coincidence

Parameters:
coinc the coincidence on which the minimum sum of distances is to be evaluated
tower an already configured QTower that will be used to evaluate distances
Returns:
minimum sum of distances or -1 in case of error (mismatch between the events in the coincidence and the detectors registered in the tower map.
For each event in a coincidence this function evaluates the sum of its distance with respect to all other events in the coincidence. The minimum value found is then returned.


Member Data Documentation

QCoincidenceFiller* MCoincidenceTester::fFiller [private]

pointer to the class used to build coincidences

std::string MCoincidenceTester::fOutList [private]

name of the output file containing the list of selected events

std::string MCoincidenceTester::fCoincList [private]

name of the output file containing the list of coincidences that passed the filters

std::string MCoincidenceTester::fCutFile [private]

name of the input file specifying the filters to be applied

std::string MCoincidenceTester::fTowerFile [private]

name of the file containing detector map description

bool MCoincidenceTester::fSkipExecution [private]

if true, execution of this module will be skipped

std::list<QCoincidenceFilter*> MCoincidenceTester::fFilters [private]

list of filters to be applied to coincidences

QVector* MCoincidenceTester::fEventList [private]

Vector containing the list of events that passed the filters. Used only if OutList is to be dumped into a SeqAuxData variable

bool MCoincidenceTester::fMultHisto [private]

variables controlling summary plots

bool MCoincidenceTester::fDistanceHisto [private]

variables controlling summary plots

bool MCoincidenceTester::fPositionHisto [private]

variables controlling summary plots

bool MCoincidenceTester::fMultTimeGraph [private]

variables controlling summary plots

bool MCoincidenceTester::fMultPositionGraph [private]

variables controlling summary plots

bool MCoincidenceTester::fMultDurationGraph [private]

variables controlling summary plots

bool MCoincidenceTester::fDistanceTimeGraph [private]

variables controlling summary plots

bool MCoincidenceTester::fSummaryPlots [private]

variables controlling summary plots

std::string MCoincidenceTester::fSummaryFile [private]

variables controlling summary plots


The documentation for this class was generated from the following files:
Generated on Fri Mar 6 13:40:41 2009 for CUORE Software by  doxygen 1.5.1