Project

General

Profile

Actions

Feature #241

open

Add functions for cut statistics to THaFormula

Added by Ole Hansen about 7 years ago. Updated about 7 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
16.00 h
Responsible:

Description

For special applications, it might be interesting to add two functions to THaFormula that evaluate to statistics of THaCuts: number of times called and number of times passed. Hall C's hcana currently implements a version of this in THcFormula for end-of-run reports.

It would be cleaner to merge the Hall C features directly in the THaFormula base class. This can be done pretty easily, for example, by using the "index" field of THaFormula::FVarDef_t to values other than zero. If FVarDef_t::type == kCut, then FVarDef_t::index indicates the evaluation mode: 0 = current result, 1 = number of times called, 2 = number of times passed.

Actions #1

Updated by Ole Hansen about 7 years ago

  • Description updated (diff)
Actions #2

Updated by Ole Hansen about 7 years ago

  • Description updated (diff)
Actions

Also available in: Atom PDF