| 17 |
* For each event, the content of ALL the rigidity bins, which satisfy the above condition, is increased by 1. |
* For each event, the content of ALL the rigidity bins, which satisfy the above condition, is increased by 1. |
| 18 |
* Since this is quite different from what is done by Histo1DAction::Fill(), the OnGodd() implementation |
* Since this is quite different from what is done by Histo1DAction::Fill(), the OnGodd() implementation |
| 19 |
* is customary and doesn't call Fill(). Notice that this implies that no overflow nor underflow counter is |
* is customary and doesn't call Fill(). Notice that this implies that no overflow nor underflow counter is |
| 20 |
* maintained (i current implementation). |
* maintained (in current implementation). |
| 21 |
*/ |
*/ |
| 22 |
class TrkSigmaDeflHistoAction: public Histo1DAction<Int_t> { |
class TrkSigmaDeflHistoAction: public Histo1DAction<Int_t> { |
| 23 |
|
|
| 24 |
public: |
public: |
| 25 |
|
|
| 26 |
/*! @brief Constructor. |
/*! @brief Constructor. |
|
* |
|
|
* Binning is read from a text file. |
|
| 27 |
* |
* |
| 28 |
* @param actionName The action's name. |
* @param actionName The action's name. |
|
* @param rigBinsFile The file containing the bins (with sign, eventually; from lowest to highest). |
|
| 29 |
* @param outFileBase The file base name for the ROOT histogram output (".root" will be appended). |
* @param outFileBase The file base name for the ROOT histogram output (".root" will be appended). |
| 30 |
* If "", no ROOT output will be produced. |
* If "", no ROOT output will be produced. |
| 31 |
* @param mode The mode of ROOT file creation (see documentation of TFile constructor |
* @param mode The mode of ROOT file creation (see documentation of TFile constructor |
| 32 |
|
* @param outRoot If true, the output file in ROOT format will be produced. |
| 33 |
|
* @param outText If true, the output file in text format will be produced. |
| 34 |
* in ROOT's reference guide). |
* in ROOT's reference guide). |
| 35 |
* @param title The ROOT histogram title. |
* @param title The ROOT histogram title. |
| 36 |
*/ |
*/ |
| 37 |
TrkSigmaDeflHistoAction(const char *actionName, TString outFileBase = "", TString mode = "UPDATE", |
TrkSigmaDeflHistoAction(const char *actionName, TString outFileBase = "", TString mode = "UPDATE", bool outRoot = |
| 38 |
bool outRoot = true, bool outText = true, TString title = "Sigma(deflection)"); |
true, bool outText = true, TString title = "Sigma(deflection)"); |
|
|
|
| 39 |
|
|
| 40 |
/*! @brief Destructor */ |
/*! @brief Destructor */ |
| 41 |
~TrkSigmaDeflHistoAction() { |
~TrkSigmaDeflHistoAction() { |