CMS 3D CMS Logo

Public Member Functions | Static Public Member Functions | Private Member Functions

fltrname Class Reference

Inheritance diagram for fltrname:
edm::EDFilter edm::ProducerBase edm::ProductRegistryHelper

List of all members.

Public Member Functions

 fltrname (const edm::ParameterSet &)
 ~fltrname ()

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &descriptions)

Private Member Functions

virtual void beginJob ()
virtual void endJob ()
virtual bool filter (edm::Event &, const edm::EventSetup &)

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.

{
   //now do what ever initialization is needed

}
fltrname::~fltrname ( )

Definition at line 75 of file edfilter.cc.

{
 
   // do anything here that needs to be done at desctruction time
   // (e.g. close files, deallocate resources etc.)

}

Member Function Documentation

void fltrname::beginJob ( void  ) [private, virtual]

Reimplemented from edm::EDFilter.

Definition at line 107 of file edfilter.cc.

{
}
void fltrname::endJob ( void  ) [private, virtual]

Reimplemented from edm::EDFilter.

Definition at line 113 of file edfilter.cc.

                 {
}
void fltrname::fillDescriptions ( edm::ConfigurationDescriptions descriptions) [static]

Reimplemented from edm::EDFilter.

Definition at line 154 of file edfilter.cc.

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

                                                                     {
  //The following says we do not know what parameters are allowed so do no validation
  // Please change this to state exactly what you do use, even if it is no parameters
  edm::ParameterSetDescription desc;
  desc.setUnknown();
  descriptions.addDefault(desc);
}
bool fltrname::filter ( edm::Event iEvent,
const edm::EventSetup iSetup 
) [private, virtual]

Implements edm::EDFilter.

Definition at line 90 of file edfilter.cc.

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

{
   using namespace edm;
#ifdef THIS_IS_AN_EVENT_EXAMPLE
   Handle<ExampleData> pIn;
   iEvent.getByLabel("example",pIn);
#endif

#ifdef THIS_IS_AN_EVENTSETUP_EXAMPLE
   ESHandle<SetupData> pSetup;
   iSetup.get<SetupRecord>().get(pSetup);
#endif
   return true;
}