CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_6_1_2_SLHC4_patch1/src/SimG4CMS/Calo/interface/HcalTestHistoManager.h

Go to the documentation of this file.
00001 #ifndef SimG4CMS_HcalTestHistoManager_H
00002 #define SimG4CMS_HcalTestHistoManager_H
00003 
00004 // File: HcalTestHistoManager.h
00005 // Histogram managing class for analysis in HcalTest
00007 
00008 #include "FWCore/ServiceRegistry/interface/Service.h"
00009 #include "CommonTools/UtilAlgos/interface/TFileService.h"
00010 #include "SimDataFormats/CaloTest/interface/HcalTestHistoClass.h"
00011 
00012 // root objects
00013 #include "TROOT.h"
00014 #include "TSystem.h"
00015 #include "TFile.h"
00016 #include "TDirectory.h"
00017 #include "TTree.h"
00018 
00019 #include <memory>
00020 #include <string>
00021 
00022 class HcalTestHistoManager {
00023 
00024 public: 
00025 
00026   HcalTestHistoManager(const std::string &);
00027   virtual ~HcalTestHistoManager();
00028 
00029   void fillTree(HcalTestHistoClass *  histos);
00030 
00031 private:
00032 
00033   edm::Service<TFileService> fs;
00034   TTree                     *tree;
00035   HcalTestHistoClass        *h;
00036   int                       kount;
00037  
00038 };
00039 
00040 #endif