Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-03-17 11:24:08

0001 #ifndef SimG4CMS_HcalTestHistoManager_H
0002 #define SimG4CMS_HcalTestHistoManager_H
0003 ///////////////////////////////////////////////////////////////////////////////
0004 // File: HcalTestHistoManager.h
0005 // Histogram managing class for analysis in HcalTest
0006 ///////////////////////////////////////////////////////////////////////////////
0007 
0008 #include "FWCore/ServiceRegistry/interface/Service.h"
0009 #include "CommonTools/UtilAlgos/interface/TFileService.h"
0010 #include "SimDataFormats/CaloTest/interface/HcalTestHistoClass.h"
0011 
0012 // root objects
0013 #include "TROOT.h"
0014 #include "TSystem.h"
0015 #include "TFile.h"
0016 #include "TDirectory.h"
0017 #include "TTree.h"
0018 
0019 #include <memory>
0020 #include <string>
0021 
0022 class HcalTestHistoManager {
0023 public:
0024   HcalTestHistoManager(const std::string&);
0025   virtual ~HcalTestHistoManager();
0026 
0027   void fillTree(HcalTestHistoClass* histos);
0028 
0029 private:
0030   TTree* tree_;
0031   std::unique_ptr<HcalTestHistoClass> h_;
0032   int kount_;
0033 };
0034 
0035 #endif