35 |
* |
* |
36 |
* @param actionName The action's name. |
* @param actionName The action's name. |
37 |
* @param outFileBase The output file base name. |
* @param outFileBase The output file base name. |
38 |
* @param rigBinsFile The file containing the rigidity bins |
* @param rigBinsFile The file containing the rigidity bins. |
39 |
|
* @param mode The mode of ROOT file creation (see documentation of TFile constructor |
40 |
|
* in ROOT's reference guide). In current implementation the text file output |
41 |
|
* does not support append. |
42 |
*/ |
*/ |
43 |
FluxHistoAction(const char *actionName, TString outFileBase, TString rigBinsFile); |
FluxHistoAction(const char *actionName, TString outFileBase, TString rigBinsFile, TString mode = "UPDATE"); |
44 |
|
|
45 |
/*! @brief Destructor */ |
/*! @brief Destructor */ |
46 |
~FluxHistoAction() { |
~FluxHistoAction() { |
55 |
/*! @brief Writes the histogram to the output files (ASCII and ROOT). |
/*! @brief Writes the histogram to the output files (ASCII and ROOT). |
56 |
* |
* |
57 |
* The output consists of a text file and of a ROOT file where the 1-dimensional rigidity |
* The output consists of a text file and of a ROOT file where the 1-dimensional rigidity |
58 |
* histogram (TH1F) is saved. The format of the text output is: (lower bin limit) (upper bin limit) (\# of events). |
* histogram (TH1F) is saved. |
59 |
*/ |
*/ |
60 |
void Finalize(); |
void Finalize(); |
61 |
|
|
65 |
vector<float> _bins; |
vector<float> _bins; |
66 |
TH1I _rootHisto; |
TH1I _rootHisto; |
67 |
vector<uint64_t> _textHisto; |
vector<uint64_t> _textHisto; |
68 |
|
TString _mode; |
69 |
|
|
70 |
#ifdef DEBUGPAMCUT |
#ifdef DEBUGPAMCUT |
71 |
int _outUp, _outDown; |
int _outUp, _outDown; |