7 #include "boost/scoped_ptr.hpp"
64 throw cms::Exception (
"Record not found") <<
"Record \"DQMReferenceHistogramRootFileRcd"
65 <<
"\" does not exist!" << std::endl;
70 boost::scoped_ptr<std::vector<unsigned char> > tb( (*rootgeo).getUncompressedBlob() );
76 std::string
outfile(
"dqmreference.root") ;
77 ofstream
output(outfile.c_str()) ;
78 output.write((
const char *)&(*tb)[0], tb->size());
82 dqm->
open(outfile,
false,
"",
"Reference");
83 remove(outfile.c_str());
virtual void analyze(const edm::Event &event, const edm::EventSetup &setup)
#define DEFINE_FWK_MODULE(type)
std::vector< MonitorElement * > getAllContents(const std::string &path) const
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
DQMReferenceHistogramRootFileEventSetupAnalyzer(const edm::ParameterSet &pset)
heterocontainer::HCTypeTag TypeTag
const TypeTag & type() const
bool open(const std::string &filename, bool overwrite=false, const std::string &path="", const std::string &prepend="", OpenRunDirs stripdirs=KeepRunDirs, bool fileMustExist=true)
virtual ~DQMReferenceHistogramRootFileEventSetupAnalyzer()
virtual void beginRun(edm::Run const &, edm::EventSetup const &)
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")
static HCTypeTag findType(char const *iTypeName)
find a type based on the types name, if not found will return default HCTypeTag