4 #include "Compression.h"
5 #include "FWCore/Framework/interface/Frameworkfwd.h"
6 #include "FWCore/Framework/interface/Event.h"
7 #include "FWCore/Framework/interface/MakerMacros.h"
8 #include "FWCore/ParameterSet/interface/ParameterSet.h"
9 #include "FWCore/ServiceRegistry/interface/Service.h"
10 #include "CommonTools/UtilAlgos/interface/TFileService.h"
13 std::map<std::size_t, std::string> ICHashTreeProducer::unhash_map_;
20 unhash_map_[id] = str;
24 void ICHashTreeProducer::produce(edm::Event& ,
25 const edm::EventSetup& ) {}
27 void ICHashTreeProducer::beginJob() {}
29 void ICHashTreeProducer::endJob() {
30 edm::Service<TFileService> fs;
31 TTree *tree = fs->make<TTree>(
"HashTree",
"HashTree");
32 fs->file().SetCompressionSettings(ROOT::CompressionSettings(ROOT::kLZMA, 5));
35 tree->Branch(
"id", &
id);
36 tree->Branch(
"string", &str);
37 for (
auto const& vals : unhash_map_) {
DEFINE_FWK_MODULE(ICHashTreeProducer)
ICHashTreeProducer(const edm::ParameterSet &)
static void Add(std::size_t const &id, std::string const &str)