CMS 3D CMS Logo

DTKeyedConfigPopConAnalyzer.cc
Go to the documentation of this file.
9 #include <memory>
10 
11 //typedef popcon::PopConAnalyzer<DTKeyedConfigHandler> DTKeyedConfigPopConAnalyzer;
12 class DTKeyedConfigPopConAnalyzer: public popcon::PopConAnalyzer<DTKeyedConfigHandler> {
13  public:
16  copyData( pset.getParameter<edm::ParameterSet>("Source").
17  getUntrackedParameter<bool> ( "copyData", true ) )
18  {}
20  void analyze(const edm::Event& e, const edm::EventSetup& s) override{
21 
22  if ( !copyData ) return;
23 
25  std::cout<<"got eshandle"<<std::endl;
26  s.get<DTKeyedConfigListRcd>().get(klh);
27  std::cout<<"got context"<<std::endl;
28  cond::persistency::KeyList const & kl= *klh.product();
30  for ( size_t i = 0; i < list->size(); i++ ) {
31  std::shared_ptr<DTKeyedConfig> kelem = list->get<DTKeyedConfig>( i );
32  if ( kelem.get() )
33  std::cout << kelem->getId() << std::endl;
34  }
36 
37  }
38  private:
39  bool copyData;
40 };
41 
42 
44 
size_t size() const
Definition: KeyList.h:56
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:17
void analyze(const edm::Event &e, const edm::EventSetup &s) override
static void setList(cond::persistency::KeyList *list)
DTKeyedConfigPopConAnalyzer(const edm::ParameterSet &pset)
std::shared_ptr< T > get(size_t n) const
Definition: KeyList.h:40
HLT enums.
T get() const
Definition: EventSetup.h:62
PopConAnalyzer(const edm::ParameterSet &pset)
T const * product() const
Definition: ESHandle.h:86
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 list("!*","!HLTx*"if it matches 2 triggers or more) will accept the event if all the matching triggers are FAIL.It will reject the event if any of the triggers are PASS or EXCEPTION(this matches the behavior of"!*"before the partial wildcard feature was incorporated).Triggers which are in the READY state are completely ignored.(READY should never be returned since the trigger paths have been run