62 throw cms::Exception (
"Record not found") <<
"Record \"DQMReferenceHistogramRootFileRcd" 63 <<
"\" does not exist!" << std::endl;
68 std::unique_ptr<std::vector<unsigned char> > tb( (*rootgeo).getUncompressedBlob() );
75 std::ofstream
output(outfile.c_str()) ;
76 output.write((
const char *)&(*tb)[0], tb->size());
80 dqm->
open(outfile,
false,
"",
"Reference");
81 remove(outfile.c_str());
void analyze(const edm::Event &event, const edm::EventSetup &setup) override
~DQMReferenceHistogramRootFileEventSetupAnalyzer() override
void beginRun(edm::Run const &, edm::EventSetup const &) override
def setup(process, global_tag, zero_tesla=False)
static HCTypeTag findType(char const *iTypeName)
find a type based on the types name, if not found will return default HCTypeTag
#define DEFINE_FWK_MODULE(type)
bool open(std::string const &filename, bool overwrite=false, std::string const &path="", std::string const &prepend="", OpenRunDirs stripdirs=KeepRunDirs, bool fileMustExist=true)
DQMReferenceHistogramRootFileEventSetupAnalyzer(const edm::ParameterSet &pset)
heterocontainer::HCTypeTag TypeTag
const TypeTag & type() const
std::vector< MonitorElement * > getAllContents(std::string const &path, uint32_t runNumber=0, uint32_t lumi=0) const