| 9 |
|
|
| 10 |
#include "ChargeHistosAction.h" |
#include "ChargeHistosAction.h" |
| 11 |
|
|
| 12 |
ChargeHistosAction::ChargeHistosAction(const char *actionName, TString outFileName) : |
ChargeHistosAction::ChargeHistosAction(const char *actionName, TString outFileName, TString mode) : |
| 13 |
CollectionAction(actionName), |
CollectionAction(actionName), |
| 14 |
#ifndef NO_TOFNUCLEI |
#ifndef NO_TOFNUCLEI |
| 15 |
_tofNuclei(NULL), |
_tofNuclei(NULL), |
| 43 |
_trkNuclei(NULL), |
_trkNuclei(NULL), |
| 44 |
_chargeTrk("chargeTrk", "Charge Trk", 100, 0., 4.), |
_chargeTrk("chargeTrk", "Charge Trk", 100, 0., 4.), |
| 45 |
#endif |
#endif |
| 46 |
_outFileName(outFileName) { |
_outFileName(outFileName), _mode(mode) { |
| 47 |
} |
} |
| 48 |
|
|
| 49 |
|
|
| 114 |
} |
} |
| 115 |
|
|
| 116 |
void ChargeHistosAction::Finalize() { |
void ChargeHistosAction::Finalize() { |
| 117 |
TFile outFile(_outFileName, "RECREATE"); |
TFile outFile(_outFileName, _mode); |
| 118 |
outFile.cd(); |
outFile.cd(); |
| 119 |
|
|
| 120 |
#ifndef NO_TOFNUCLEI |
#ifndef NO_TOFNUCLEI |