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 | Private Attributes
FastTimerFilter Class Reference
Inheritance diagram for FastTimerFilter:
edm::EDFilter edm::ProducerBase edm::ProductRegistryHelper

Public Member Functions

 FastTimerFilter (edm::ParameterSet const &)
 
 ~FastTimerFilter ()
 
- 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)
 
static void prevalidate (ConfigurationDescriptions &)
 

Private Member Functions

bool filter (edm::Event &event, const edm::EventSetup &setup)
 

Private Attributes

double m_time_limit_allpaths
 
double m_time_limit_event
 
double m_time_limit_path
 

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

Definition at line 18 of file FastTimerFilter.cc.

Constructor & Destructor Documentation

FastTimerFilter::FastTimerFilter ( edm::ParameterSet const &  config)
explicit

Definition at line 33 of file FastTimerFilter.cc.

33  :
34  m_time_limit_event( config.getParameter<double>( "timeLimitPerEvent" )),
35  m_time_limit_path( config.getParameter<double>( "timeLimitPerPath" )),
36  m_time_limit_allpaths( config.getParameter<double>( "timeLimitPerAllPaths" ))
37 {
38 }
double m_time_limit_allpaths
FastTimerFilter::~FastTimerFilter ( )

Definition at line 40 of file FastTimerFilter.cc.

41 {
42 }

Member Function Documentation

void FastTimerFilter::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
static

Definition at line 62 of file FastTimerFilter.cc.

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

62  {
63  // The following says we do not know what parameters are allowed so do no validation
64  // Please change this to state exactly what you do use, even if it is no parameters
66  desc.add<double>("timeLimitPerEvent", 0.);
67  desc.add<double>("timeLimitPerPath", 0.);
68  desc.add<double>("timeLimitPerAllPaths", 120.);
69  descriptions.addDefault(desc);
70 }
void addDefault(ParameterSetDescription const &psetDescription)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
bool FastTimerFilter::filter ( edm::Event event,
const edm::EventSetup setup 
)
privatevirtual

Implements edm::EDFilter.

Definition at line 45 of file FastTimerFilter.cc.

References FastTimerService::currentEventTime(), FastTimerService::currentPathTime(), m_time_limit_allpaths, m_time_limit_event, m_time_limit_path, and FastTimerService::queryPathsTime().

46 {
47  if (not edm::Service<FastTimerService>().isAvailable())
48  return false;
49 
52  return true;
54  return true;
56  return true;
57 
58  return false;
59 }
double queryPathsTime() const
double m_time_limit_allpaths
double currentEventTime() const
double currentPathTime() const

Member Data Documentation

double FastTimerFilter::m_time_limit_allpaths
private

Definition at line 28 of file FastTimerFilter.cc.

Referenced by filter().

double FastTimerFilter::m_time_limit_event
private

Definition at line 26 of file FastTimerFilter.cc.

Referenced by filter().

double FastTimerFilter::m_time_limit_path
private

Definition at line 27 of file FastTimerFilter.cc.

Referenced by filter().