Inheritance diagram for MCoincidenceTester:
module CoincidenceTester enable = true verbosity = info TimeWindow = 100 CoincidenceType = Static TowerFile = detectorMap.txt OutList = list.txt CoincidenceList = coincList.txt MultiplicityHisto = false DistanceHisto = false PositionHisto = false MultiplicityPositionGraph = false MultiplicityTimeGraph = false MultiplicityDurationGraph = false DistanceTimeGraph = false SummaryFile = Q_STRING_DEFAULT CutFile = cuts.txt endmod
Public Member Functions | |
MCoincidenceTester (QSequence *s) | |
constructor | |
~MCoincidenceTester () | |
destructor | |
void | Init () |
Init method. | |
QEvent * | Do (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 | |
QCoincidenceFiller * | fFiller |
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 |
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
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 |
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