CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SiStripCommissioningSeedFilter.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: SiStripCommissioningSeedFilter
4 // Class: SiStripCommissioningSeedFilter
5 //
13 //
14 // Original Author: Christophe DELAERE
15 // Created: Fri Jan 18 12:17:46 CET 2008
16 //
17 //
18 
19 
20 // system include files
21 #include <memory>
22 #include <algorithm>
23 
24 // user include files
26 
27 
28 //
29 // constructors and destructor
30 //
32 {
33  //now do what ever initialization is needed
34  // inputModuleLabel_ = iConfig.getParameter<edm::InputTag>( "InputModuleLabel" ) ;
35  seedcollToken_ = consumes<TrajectorySeedCollection>(iConfig.getParameter<edm::InputTag>( "InputModuleLabel" ) );
36 }
37 
38 //
39 // member functions
40 //
41 
42 // ------------ method called on each new Event ------------
43 bool
45 {
46  using namespace edm;
47 
49  iEvent.getByToken(seedcollToken_,seedcoll);
50  bool result = (*seedcoll).size()>0;
51  return result;
52 }
53 
T getParameter(std::string const &) const
SiStripCommissioningSeedFilter(const edm::ParameterSet &)
edm::EDGetTokenT< TrajectorySeedCollection > seedcollToken_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:464
int iEvent
Definition: GenABIO.cc:230
tuple result
Definition: query.py:137
virtual bool filter(edm::Event &, const edm::EventSetup &) override