test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DQMSummaryEventSetupAnalyzer.cc
Go to the documentation of this file.
10 #include <iostream>
11 
12 namespace edmtest {
14  public:
15  explicit DQMSummaryEventSetupAnalyzer(const edm::ParameterSet & pset);
16  explicit DQMSummaryEventSetupAnalyzer(int i);
18  virtual void analyze(const edm::Event& event, const edm::EventSetup& setup) override;
19  };
20 
22  std::cout << "DQMSummaryEventSetupAnalyzer" << std::endl;
23  }
24 
26  std::cout << "DQMSummaryEventSetupAnalyzer" << i << std::endl;
27  }
28 
30  std::cout << "~DQMSummaryEventSetupAnalyzer" << std::endl;
31  }
32 
34  std::cout << "### DQMSummaryEventSetupAnalyzer::analyze" << std::endl;
35  std::cout << "--- RUN NUMBER: " << event.id().run() << std::endl;
36  std::cout << "--- EVENT NUMBER: " << event.id().event() << std::endl;
39  throw cms::Exception ("Record not found") << "Record \"DQMSummaryRcd"
40  << "\" does not exist!" << std::endl;
41  }
43  std::cout << "got EShandle" << std::endl;
44  setup.get<DQMSummaryRcd>().get(sum);
45  std::cout <<"got the Event Setup" << std::endl;
46  const DQMSummary* summary = sum.product();
47  std::cout <<"got DQMSummary* "<< std::endl;
48  std::cout<< "print result" << std::endl;
49  summary->printAllValues();
50  }
51 
53 }
int i
Definition: DBlmapReader.cc:9
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:17
DQMSummaryEventSetupAnalyzer(const edm::ParameterSet &pset)
virtual void analyze(const edm::Event &event, const edm::EventSetup &setup) override
void printAllValues() const
Definition: DQMSummary.h:39
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
const T & get() const
Definition: EventSetup.h:56
T const * product() const
Definition: ESHandle.h:86
heterocontainer::HCTypeTag TypeTag
tuple cout
Definition: gather_cfg.py:121
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
Definition: HCTypeTag.cc:125