| 1 |
pam-fi |
1.1 |
/* |
| 2 |
|
|
* TofBetaVsTrkRigHistoAction.h |
| 3 |
|
|
* |
| 4 |
|
|
* Created on: 24/jun/2010 |
| 5 |
|
|
* Author: S. Ricciarini |
| 6 |
|
|
*/ |
| 7 |
|
|
|
| 8 |
|
|
/*! @file TrkRigVsGPMomHistoAction.h The TrkRigVsGPMomHistoAction class declaration file. */ |
| 9 |
|
|
|
| 10 |
|
|
#ifndef TRKRIGVSGPMOMHISTOACTION_H_ |
| 11 |
|
|
#define TRKRIGVSGPMOMHISTOACTION_H_ |
| 12 |
|
|
|
| 13 |
|
|
#include "../Histo2DAction/Histo2DAction.h" |
| 14 |
|
|
|
| 15 |
|
|
/*! @brief An action that fills a Trk Rig (with sign, GV) vs. GPamela Momentum (GeV/c) histogram. */ |
| 16 |
|
|
class TrkRigVsGPMomHistoAction: public Histo2DAction<Int_t> { |
| 17 |
|
|
|
| 18 |
|
|
public: |
| 19 |
|
|
|
| 20 |
|
|
/*! @brief Constructor. |
| 21 |
|
|
* |
| 22 |
|
|
* @param actionName The action's name. |
| 23 |
|
|
* @param outFileBase The file base name for the ROOT histogram output (".root" will be appended). |
| 24 |
|
|
* If "", no ROOT output will be produced. |
| 25 |
|
|
* @param mode The mode of ROOT file creation (see documentation of TFile constructor |
| 26 |
|
|
* in ROOT's reference guide). |
| 27 |
|
|
* @param outRoot If true, an output ROOT file named outFileBase + ".root" will be produced. |
| 28 |
|
|
* @param outText If true, an output text file named outFileBase + ".txt" will be produced. It will overwrite an |
| 29 |
|
|
* eventually existing file with the same name. |
| 30 |
|
|
* @param title The ROOT histogram title. |
| 31 |
|
|
*/ |
| 32 |
|
|
TrkRigVsGPMomHistoAction(const char *actionName, TString outFileBase = "", TString mode = "UPDATE", bool outRoot = |
| 33 |
|
|
true, bool outText = true, TString title = "TRK Rig (GV) vs. GP Mom (GeV/c)"); |
| 34 |
|
|
|
| 35 |
|
|
/*! @brief Destructor */ |
| 36 |
|
|
~TrkRigVsGPMomHistoAction() { |
| 37 |
|
|
} |
| 38 |
|
|
|
| 39 |
|
|
/*! @brief Fills histogram with the selected event. |
| 40 |
|
|
* |
| 41 |
|
|
* @param event The selected event. |
| 42 |
|
|
*/ |
| 43 |
|
|
void OnGood(PamLevel2 *event); |
| 44 |
|
|
|
| 45 |
|
|
|
| 46 |
|
|
}; |
| 47 |
|
|
#endif /* TRKRIGVSGPMOMHISTOACTION_H_ */ |