CMS 3D CMS Logo

Public Member Functions

HcalTestHistoManager Class Reference

#include <HcalTestHistoManager.h>

List of all members.

Public Member Functions

void fillTree (HcalTestHistoClass *histos)
 HcalTestHistoManager (const std::string &)
virtual ~HcalTestHistoManager ()

Detailed Description

Definition at line 19 of file HcalTestHistoManager.h.


Constructor & Destructor Documentation

HcalTestHistoManager::HcalTestHistoManager ( const std::string &  file)

Definition at line 27 of file HcalTestHistoManager.cc.

  {  
    //  pool::URIParser p("file:HcalTestHistoCatalog.cat");
    //p.parse();
 
    //lcat.setWriteCatalog(p.contactstring());
 
    //lcat.connect();
    //  lcat.start();

  // Define the policy for the implicit file handling
  //pool::DatabaseConnectionPolicy policy;
  //policy.setWriteModeForNonExisting(pool::DatabaseConnectionPolicy::CREATE);
  //policy.setWriteModeForExisting(pool::DatabaseConnectionPolicy::OVERWRITE);
  //svc->session().setDefaultConnectionPolicy(policy);
  
  edm::LogInfo("HcalSim") << "HcalTestHistoManager:===>>>  Book user"
                          << " Histograms and Root tree";
}
HcalTestHistoManager::~HcalTestHistoManager ( ) [virtual]

Definition at line 51 of file HcalTestHistoManager.cc.

                                            {

  edm::LogInfo("HcalSim") << "============================================="
                          << "==============\n"
                          << "=== HcalTestHistoManager: Start writing user "
                          << "histograms ===";

  //svc->transaction().commit();
  //svc->session().disconnectAll();
  //edm::LogInfo("HcalSim") << "=== HcalTestHistoManager: cache size at end " 
  //                      << svc->cacheSvc().cacheSize();
  //lcat.commit();
 
  edm::LogInfo("HcalSim") << "=== HcalTestHistoManager: End   writing user "
                          << "histograms ===\n"
                          << "============================================="
                          << "==============";
}

Member Function Documentation

void HcalTestHistoManager::fillTree ( HcalTestHistoClass histos)

Definition at line 70 of file HcalTestHistoManager.cc.

References combine::histos, and LogDebug.

                                                                {

  //svc->transaction().start(pool::ITransaction::UPDATE);
  LogDebug("HcalSim") << "HcalTestHistoManager: tree pointer = " << histos;
  //LogDebug("HcalSim") << "HcalTestHistoManager: cache size before assign " 
  //                  << svc->cacheSvc().cacheSize();

  //h = histos;
  //h.markWrite(placeH);
  //svc->transaction().commitAndHold();
}