#include <HcalTestHistoManager.h>
Public Member Functions | |
void | fillTree (HcalTestHistoClass *histos) |
HcalTestHistoManager (const std::string &) | |
virtual | ~HcalTestHistoManager () |
Private Attributes | |
edm::Service< TFileService > | fs |
HcalTestHistoClass * | h |
int | kount |
TTree * | tree |
Definition at line 22 of file HcalTestHistoManager.h.
HcalTestHistoManager::HcalTestHistoManager | ( | const std::string & | file | ) |
Definition at line 13 of file HcalTestHistoManager.cc.
References fs, h, edm::Service< T >::isAvailable(), and tree.
: tree(0), h(0), kount(0) { if (fs.isAvailable()) { h = new HcalTestHistoClass(); tree = fs->make<TTree>("HcalTest", "HcalTest"); tree->SetAutoSave(10000); tree->Branch("HcalTestHisto", "HcalTestHistoClass", &h); edm::LogInfo("HcalSim") << "HcalTestHistoManager:===>>> Book the Tree"; } else { edm::LogInfo("HcalSim") << "HcalTestHistoManager:===>>> No file provided"; } }
HcalTestHistoManager::~HcalTestHistoManager | ( | ) | [virtual] |
Definition at line 27 of file HcalTestHistoManager.cc.
{ edm::LogInfo("HcalSim") << "=============================================" << "========================================\n" << "=== HcalTestHistoManager: Start writing user " << "histograms after " << kount << " events "; if (h) delete h; }
void HcalTestHistoManager::fillTree | ( | HcalTestHistoClass * | histos | ) |
edm::Service<TFileService> HcalTestHistoManager::fs [private] |
Definition at line 33 of file HcalTestHistoManager.h.
Referenced by HcalTestHistoManager().
HcalTestHistoClass* HcalTestHistoManager::h [private] |
Definition at line 35 of file HcalTestHistoManager.h.
Referenced by fillTree(), HcalTestHistoManager(), and ~HcalTestHistoManager().
int HcalTestHistoManager::kount [private] |
Definition at line 36 of file HcalTestHistoManager.h.
Referenced by fillTree(), and ~HcalTestHistoManager().
TTree* HcalTestHistoManager::tree [private] |
Definition at line 34 of file HcalTestHistoManager.h.
Referenced by fillTree(), and HcalTestHistoManager().