00001 #ifndef __CentralityPopCon_h__ 00002 #define __CentralityPopCon_h__ 00003 00004 #include "CondCore/PopCon/interface/PopConSourceHandler.h" 00005 //#include "DataFormats/HeavyIonEvent/interface/Centrality.h" 00006 #include "CondFormats/HIObjects/interface/CentralityTable.h" 00007 #include "FWCore/ParameterSet/interface/ParameterSet.h" 00008 #include <string> 00009 00010 class CentralityTableHandler : public popcon::PopConSourceHandler<CentralityTable> 00011 { 00012 public: 00013 CentralityTableHandler(edm::ParameterSet const & pset): 00014 // popcon::PopConSourceHandler<CentralityTable>(pset), 00015 inputTFileName_(pset.getParameter<std::string>("inputFile")), 00016 centralityTag_(pset.getParameter<std::string>("rootTag")) 00017 {;} 00018 ~CentralityTableHandler(){;} 00019 void getNewObjects(); 00020 std::string id() const{return "CentralityTableHandler";} 00021 00022 private: 00023 std::string inputTFileName_; 00024 std::string centralityTag_; 00025 int runnum_; 00026 }; 00027 00028 #endif 00029 00030 00031 00032 00033 00034 00035 00036