#include <ChargeHistosAction.h>
Public Member Functions | |
ChargeHistosAction (const char *actionName, TString outFileName) | |
Constructor. | |
~ChargeHistosAction () | |
Destructor. | |
void | OnGood (PamLevel2 *event) |
The histogram filling method. | |
void | Finalize () |
Saves the histograms and closes the file. |
This class uses ToFNuclei, TrkNuclei and CaloNuclei to compute the charge of the particle and fills various histograms. Note that if the Nuclei routines are not available in the environment it is possible to exclude the corresponding code by passing the appropriate flags to the compiler (see the EXCLUDEFLAGS variable in the PamCut's makefile). Currently, filled histograms are:
ChargeHistosAction::ChargeHistosAction | ( | const char * | actionName, | |
TString | outFileName | |||
) |
Constructor.
actionName | The action's name. | |
outFileName | The output ROOT file name. |
void ChargeHistosAction::OnGood | ( | PamLevel2 * | event | ) | [virtual] |
The histogram filling method.
This routine fills the charge histograms for the selected event.
event | The selected event. |
Reimplemented from CollectionAction.