ChargeHistosAction Class Reference

An action that fills some charge histograms. More...

#include <ChargeHistosAction.h>

Inheritance diagram for ChargeHistosAction:

CollectionAction

List of all members.

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.


Detailed Description

An action that fills some charge histograms.

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:


Constructor & Destructor Documentation

ChargeHistosAction::ChargeHistosAction ( const char *  actionName,
TString  outFileName 
)

Constructor.

Parameters:
actionName The action's name.
outFileName The output ROOT file name.


Member Function Documentation

void ChargeHistosAction::OnGood ( PamLevel2 *  event  )  [virtual]

The histogram filling method.

This routine fills the charge histograms for the selected event.

Parameters:
event The selected event.

Reimplemented from CollectionAction.


The documentation for this class was generated from the following files:

Generated on Fri Jun 5 15:09:01 2009 for PamCut by  doxygen 1.5.9