@@ -318,36 +318,6 @@ namespace edmtest {
318318 edm::InputTag moduleLabel_;
319319 };
320320
321- // --------------------------------------------------------------------
322- //
323- class SCSimpleAnalyzer : public edm ::global::EDAnalyzer<> {
324- public:
325- SCSimpleAnalyzer (edm::ParameterSet const &) {}
326-
327- void analyze (edm::StreamID, edm::Event const & e, edm::EventSetup const &) const final ;
328- };
329-
330- void SCSimpleAnalyzer::analyze (edm::StreamID, edm::Event const & e, edm::EventSetup const &) const {
331- // Get the product back out; it should be sorted.
332- edm::Handle<SCSimpleProduct> h;
333- e.getByLabel (" scs" , h);
334- assert (h.isValid ());
335-
336- // Check the sorting. DO NOT DO THIS IN NORMAL CODE; we are
337- // copying all the values out of the SortedCollection so we can
338- // manipulate them via an interface different from
339- // SortedCollection, just so that we can make sure the collection
340- // is sorted.
341- std::vector<Simple> after (h->begin (), h->end ());
342- typedef std::vector<Simple>::size_type size_type;
343-
344- // Verify that the vector *is* sorted.
345-
346- for (size_type i = 1 , end = after.size (); i < end; ++i) {
347- assert (after[i - 1 ].id () < after[i].id ());
348- }
349- }
350-
351321 // --------------------------------------------------------------------
352322 //
353323 // Consumes View<Simple>
@@ -383,82 +353,15 @@ namespace edmtest {
383353 bool const checkSize_;
384354 };
385355
386- // --------------------------------------------------------------------
387- //
388- class DSVAnalyzer : public edm ::global::EDAnalyzer<> {
389- public:
390- DSVAnalyzer (edm::ParameterSet const &) {}
391-
392- void analyze (edm::StreamID, edm::Event const & e, edm::EventSetup const &) const final ;
393-
394- private:
395- void do_sorted_stuff (edm::Event const & e) const ;
396- void do_unsorted_stuff (edm::Event const & e) const ;
397- };
398-
399- void DSVAnalyzer::analyze (edm::StreamID, edm::Event const & e, edm::EventSetup const &) const {
400- do_sorted_stuff (e);
401- do_unsorted_stuff (e);
402- }
403-
404- void DSVAnalyzer::do_sorted_stuff (edm::Event const & e) const {
405- typedef DSVSimpleProduct product_type;
406- typedef product_type::value_type detset;
407- typedef detset::value_type value_type;
408- // Get the product back out; it should be sorted.
409- edm::Handle<product_type> h;
410- e.getByLabel (" dsv1" , h);
411- assert (h.isValid ());
412-
413- // Check the sorting. DO NOT DO THIS IN NORMAL CODE; we are
414- // copying all the values out of the DetSetVector's first DetSet so we can
415- // manipulate them via an interface different from
416- // DetSet, just so that we can make sure the collection
417- // is sorted.
418- std::vector<value_type> const & after = (h->end () - 1 )->data ;
419- typedef std::vector<value_type>::size_type size_type;
420-
421- // Verify that the vector *is* sorted.
422-
423- for (size_type i = 1 , end = after.size (); i < end; ++i) {
424- assert (after[i - 1 ].data < after[i].data );
425- }
426- }
427-
428- void DSVAnalyzer::do_unsorted_stuff (edm::Event const & e) const {
429- typedef DSVWeirdProduct product_type;
430- typedef product_type::value_type detset;
431- typedef detset::value_type value_type;
432- // Get the product back out; it should be unsorted.
433- edm::Handle<product_type> h;
434- e.getByLabel (" dsv1" , h);
435- assert (h.isValid ());
436-
437- // Check the sorting. DO NOT DO THIS IN NORMAL CODE; we are
438- // copying all the values out of the DetSetVector's first DetSet so we can
439- // manipulate them via an interface different from
440- // DetSet, just so that we can make sure the collection
441- // is not sorted.
442- std::vector<value_type> const & after = (h->end () - 1 )->data ;
443- typedef std::vector<value_type>::size_type size_type;
444-
445- // Verify that the vector is reverse-sorted.
446-
447- for (size_type i = 1 , end = after.size (); i < end; ++i) {
448- assert (after[i - 1 ].data > after[i].data );
449- }
450- }
451356} // namespace edmtest
452357
453358using edmtest::BuiltinIntTestAnalyzer;
454359using edmtest::ConsumingOneSharedResourceAnalyzer;
455360using edmtest::ConsumingStreamAnalyzer;
456- using edmtest::DSVAnalyzer;
457361using edmtest::IntConsumingAnalyzer;
458362using edmtest::IntTestAnalyzer;
459363using edmtest::MultipleIntsAnalyzer;
460364using edmtest::NonAnalyzer;
461- using edmtest::SCSimpleAnalyzer;
462365using edmtest::SimpleViewAnalyzer;
463366DEFINE_FWK_MODULE (NonAnalyzer);
464367DEFINE_FWK_MODULE (IntTestAnalyzer);
@@ -468,7 +371,5 @@ DEFINE_FWK_MODULE(IntConsumingAnalyzer);
468371DEFINE_FWK_MODULE (edmtest::IntFromRunConsumingAnalyzer);
469372DEFINE_FWK_MODULE (ConsumingStreamAnalyzer);
470373DEFINE_FWK_MODULE (ConsumingOneSharedResourceAnalyzer);
471- DEFINE_FWK_MODULE (SCSimpleAnalyzer);
472374DEFINE_FWK_MODULE (SimpleViewAnalyzer);
473- DEFINE_FWK_MODULE (DSVAnalyzer);
474375DEFINE_FWK_MODULE (BuiltinIntTestAnalyzer);
0 commit comments