CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Static Public Member Functions | Private Member Functions
fltrname Class Reference
Inheritance diagram for fltrname:
edm::EDFilter edm::ProducerBase edm::ProductRegistryHelper

Public Member Functions

 fltrname (const edm::ParameterSet &)
 
 ~fltrname ()
 
- Public Member Functions inherited from edm::EDFilter
 EDFilter ()
 
virtual ~EDFilter ()
 
- Public Member Functions inherited from edm::ProducerBase
 ProducerBase ()
 
void registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &)
 
boost::function< void(const
BranchDescription &)> 
registrationCallback () const
 used by the fwk to register list of products More...
 
virtual ~ProducerBase ()
 

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &descriptions)
 
- Static Public Member Functions inherited from edm::EDFilter
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 

Private Member Functions

virtual void beginJob ()
 
virtual bool beginLuminosityBlock (edm::LuminosityBlock &, edm::EventSetup const &)
 
virtual bool beginRun (edm::Run &, edm::EventSetup const &)
 
virtual void endJob ()
 
virtual bool endLuminosityBlock (edm::LuminosityBlock &, edm::EventSetup const &)
 
virtual bool endRun (edm::Run &, edm::EventSetup const &)
 
virtual bool filter (edm::Event &, const edm::EventSetup &)
 

Additional Inherited Members

- Public Types inherited from edm::EDFilter
typedef EDFilter ModuleType
 
typedef WorkerT< EDFilterWorkerType
 
- Public Types inherited from edm::ProducerBase
typedef
ProductRegistryHelper::TypeLabelList 
TypeLabelList
 
- Protected Member Functions inherited from edm::EDFilter
CurrentProcessingContext const * currentContext () const
 
- Protected Member Functions inherited from edm::ProducerBase
template<class TProducer , class TMethod >
void callWhenNewProductsRegistered (TProducer *iProd, TMethod iMethod)
 

Detailed Description

Description: [one line class summary]

Implementation: [Notes on implementation]

Definition at line 37 of file edfilter.cc.

Constructor & Destructor Documentation

fltrname::fltrname ( const edm::ParameterSet iConfig)
explicit

Definition at line 68 of file edfilter.cc.

69 {
70  //now do what ever initialization is needed
71 
72 }
fltrname::~fltrname ( )

Definition at line 75 of file edfilter.cc.

76 {
77 
78  // do anything here that needs to be done at desctruction time
79  // (e.g. close files, deallocate resources etc.)
80 
81 }

Member Function Documentation

void fltrname::beginJob ( void  )
privatevirtual

Reimplemented from edm::EDFilter.

Definition at line 107 of file edfilter.cc.

108 {
109 }
bool fltrname::beginLuminosityBlock ( edm::LuminosityBlock ,
edm::EventSetup const &   
)
privatevirtual

Reimplemented from edm::EDFilter.

Definition at line 132 of file edfilter.cc.

133 {
134  return true;
135 }
bool fltrname::beginRun ( edm::Run ,
edm::EventSetup const &   
)
privatevirtual

Reimplemented from edm::EDFilter.

Definition at line 118 of file edfilter.cc.

119 {
120  return true;
121 }
void fltrname::endJob ( void  )
privatevirtual

Reimplemented from edm::EDFilter.

Definition at line 113 of file edfilter.cc.

113  {
114 }
bool fltrname::endLuminosityBlock ( edm::LuminosityBlock ,
edm::EventSetup const &   
)
privatevirtual

Reimplemented from edm::EDFilter.

Definition at line 139 of file edfilter.cc.

140 {
141  return true;
142 }
bool fltrname::endRun ( edm::Run ,
edm::EventSetup const &   
)
privatevirtual

Reimplemented from edm::EDFilter.

Definition at line 125 of file edfilter.cc.

126 {
127  return true;
128 }
void fltrname::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
static

Definition at line 146 of file edfilter.cc.

References edm::ConfigurationDescriptions::addDefault(), and edm::ParameterSetDescription::setUnknown().

146  {
147  //The following says we do not know what parameters are allowed so do no validation
148  // Please change this to state exactly what you do use, even if it is no parameters
150  desc.setUnknown();
151  descriptions.addDefault(desc);
152 }
void addDefault(ParameterSetDescription const &psetDescription)
bool fltrname::filter ( edm::Event iEvent,
const edm::EventSetup iSetup 
)
privatevirtual

Implements edm::EDFilter.

Definition at line 90 of file edfilter.cc.

References edm::EventSetup::get(), and edm::Event::getByLabel().

91 {
92  using namespace edm;
93 #ifdef THIS_IS_AN_EVENT_EXAMPLE
95  iEvent.getByLabel("example",pIn);
96 #endif
97 
98 #ifdef THIS_IS_AN_EVENTSETUP_EXAMPLE
99  ESHandle<SetupData> pSetup;
100  iSetup.get<SetupRecord>().get(pSetup);
101 #endif
102  return true;
103 }
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
Definition: Event.h:355
const T & get() const
Definition: EventSetup.h:55