#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. | |
Private Attributes | |
ToFNuclei * | _tofNuclei |
TH1F | _chargeS11 |
TH1F | _chargeS12 |
TH1F | _chargeS21 |
TH1F | _chargeS22 |
TH1F | _chargeS31 |
TH1F | _chargeS32 |
TH2F | _chCorrS11S12 |
TH2F | _chCorrS11S21 |
TH2F | _chCorrS11S22 |
TH2F | _chCorrS11S31 |
TH2F | _chCorrS11S32 |
TH2F | _chCorrS12S21 |
TH2F | _chCorrS12S22 |
TH2F | _chCorrS12S31 |
TH2F | _chCorrS12S32 |
TH2F | _chCorrS21S22 |
TH2F | _chCorrS21S31 |
TH2F | _chCorrS21S32 |
TH2F | _chCorrS22S31 |
TH2F | _chCorrS22S32 |
TH2F | _chCorrS31S32 |
CaloNuclei * | _caloNuclei |
TH1F | _chargeCalo |
TrkNuclei * | _trkNuclei |
TH1F | _chargeTrk |
TString | _outFileName |
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:
Definition at line 43 of file ChargeHistosAction.h.
ChargeHistosAction::ChargeHistosAction | ( | const char * | actionName, | |
TString | outFileName | |||
) |
Constructor.
actionName | The action's name. | |
outFileName | The output ROOT file name. |
Definition at line 12 of file ChargeHistosAction.cpp.
ChargeHistosAction::~ChargeHistosAction | ( | ) |
Destructor.
Definition at line 50 of file ChargeHistosAction.cpp.
References _caloNuclei, _tofNuclei, and _trkNuclei.
void ChargeHistosAction::Finalize | ( | ) | [virtual] |
Saves the histograms and closes the file.
Implements CollectionAction.
Definition at line 116 of file ChargeHistosAction.cpp.
References _chargeCalo, _chargeS11, _chargeS12, _chargeS21, _chargeS22, _chargeS31, _chargeS32, _chargeTrk, _chCorrS11S12, _chCorrS11S21, _chCorrS11S22, _chCorrS11S31, _chCorrS11S32, _chCorrS12S21, _chCorrS12S22, _chCorrS12S31, _chCorrS12S32, _chCorrS21S22, _chCorrS21S31, _chCorrS21S32, _chCorrS22S31, _chCorrS22S32, _chCorrS31S32, and _outFileName.
void ChargeHistosAction::OnGood | ( | PamLevel2 * | event | ) | [virtual] |
The histogram filling method.
This routine fills the charge histograms for the selected event.
event | The selected event. |
Implements CollectionAction.
Definition at line 69 of file ChargeHistosAction.cpp.
References _caloNuclei, _chargeCalo, _chargeS11, _chargeS12, _chargeS21, _chargeS22, _chargeS31, _chargeS32, _chargeTrk, _chCorrS11S12, _chCorrS11S21, _chCorrS11S22, _chCorrS11S31, _chCorrS11S32, _chCorrS12S21, _chCorrS12S22, _chCorrS12S31, _chCorrS12S32, _chCorrS21S22, _chCorrS21S31, _chCorrS21S32, _chCorrS22S31, _chCorrS22S32, _chCorrS31S32, _tofNuclei, and _trkNuclei.
CaloNuclei* ChargeHistosAction::_caloNuclei [private] |
Definition at line 96 of file ChargeHistosAction.h.
Referenced by OnGood(), and ~ChargeHistosAction().
TH1F ChargeHistosAction::_chargeCalo [private] |
TH1F ChargeHistosAction::_chargeS11 [private] |
TH1F ChargeHistosAction::_chargeS12 [private] |
TH1F ChargeHistosAction::_chargeS21 [private] |
TH1F ChargeHistosAction::_chargeS22 [private] |
TH1F ChargeHistosAction::_chargeS31 [private] |
TH1F ChargeHistosAction::_chargeS32 [private] |
TH1F ChargeHistosAction::_chargeTrk [private] |
TH2F ChargeHistosAction::_chCorrS11S12 [private] |
TH2F ChargeHistosAction::_chCorrS11S21 [private] |
TH2F ChargeHistosAction::_chCorrS11S22 [private] |
TH2F ChargeHistosAction::_chCorrS11S31 [private] |
TH2F ChargeHistosAction::_chCorrS11S32 [private] |
TH2F ChargeHistosAction::_chCorrS12S21 [private] |
TH2F ChargeHistosAction::_chCorrS12S22 [private] |
TH2F ChargeHistosAction::_chCorrS12S31 [private] |
TH2F ChargeHistosAction::_chCorrS12S32 [private] |
TH2F ChargeHistosAction::_chCorrS21S22 [private] |
TH2F ChargeHistosAction::_chCorrS21S31 [private] |
TH2F ChargeHistosAction::_chCorrS21S32 [private] |
TH2F ChargeHistosAction::_chCorrS22S31 [private] |
TH2F ChargeHistosAction::_chCorrS22S32 [private] |
TH2F ChargeHistosAction::_chCorrS31S32 [private] |
TString ChargeHistosAction::_outFileName [private] |
ToFNuclei* ChargeHistosAction::_tofNuclei [private] |
Definition at line 69 of file ChargeHistosAction.h.
Referenced by OnGood(), and ~ChargeHistosAction().
TrkNuclei* ChargeHistosAction::_trkNuclei [private] |
Definition at line 101 of file ChargeHistosAction.h.
Referenced by OnGood(), and ~ChargeHistosAction().