/[PAMELA software]/PamCut/CollectionActions/FluxHistoAction/FluxHistoAction.h
ViewVC logotype

Diff of /PamCut/CollectionActions/FluxHistoAction/FluxHistoAction.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by pam-fi, Fri May 29 10:08:48 2009 UTC revision 1.4 by pam-fi, Wed Aug 5 13:59:47 2009 UTC
# Line 35  public: Line 35  public:
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 outOptions 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() {
# Line 52  public: Line 55  public:
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    
# Line 62  private: Line 65  private:
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;

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.23