/[PAMELA software]/PamCut/CollectionActions/ChargeHistosAction/ChargeHistosAction.cpp
ViewVC logotype

Diff of /PamCut/CollectionActions/ChargeHistosAction/ChargeHistosAction.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by pam-fi, Fri May 29 10:08:44 2009 UTC revision 1.2 by pam-fi, Mon Jun 8 10:37:22 2009 UTC
# Line 9  Line 9 
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),
# Line 43  ChargeHistosAction::ChargeHistosAction(c Line 43  ChargeHistosAction::ChargeHistosAction(c
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    
# Line 114  void ChargeHistosAction::OnGood(PamLevel Line 114  void ChargeHistosAction::OnGood(PamLevel
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

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.23