CMS 3D CMS Logo

Public Member Functions | Static Public Member Functions | Private Attributes

HLTBool Class Reference

#include <HLTBool.h>

Inheritance diagram for HLTBool:
edm::EDFilter edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper

List of all members.

Public Member Functions

virtual bool filter (edm::Event &, const edm::EventSetup &)
 HLTBool (const edm::ParameterSet &)
 ~HLTBool ()

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &descriptions)

Private Attributes

bool result_
 Boolean result.

Detailed Description

This class is an HLTFilter (-> EDFilter) returning always the same configurable Boolean value (good for tests)

Date:
2012/01/22 22:15:43
Revision:
1.4
Author:
Martin Grunewald

See header file for documentation

Date:
2012/01/22 22:15:43
Revision:
1.6
Author:
Martin Grunewald

Definition at line 29 of file HLTBool.h.


Constructor & Destructor Documentation

HLTBool::HLTBool ( const edm::ParameterSet iConfig) [explicit]

Definition at line 21 of file HLTBool.cc.

References LogDebug, and result_.

                                               :
  result_(iConfig.getParameter<bool> ("result"))
{
  LogDebug("HLTBool") << " configured result is: " << result_;
}
HLTBool::~HLTBool ( )

Definition at line 27 of file HLTBool.cc.

{
}

Member Function Documentation

void HLTBool::fillDescriptions ( edm::ConfigurationDescriptions descriptions) [static]

Reimplemented from edm::EDFilter.

Definition at line 32 of file HLTBool.cc.

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

                                                                    {
  edm::ParameterSetDescription desc;
  desc.add<bool>("result", false);
  descriptions.add("hltBool", desc);
}
bool HLTBool::filter ( edm::Event iEvent,
const edm::EventSetup iSetup 
) [virtual]

Implements edm::EDFilter.

Definition at line 44 of file HLTBool.cc.

References result_.

{
   return result_;
}

Member Data Documentation

bool HLTBool::result_ [private]

Boolean result.

Definition at line 41 of file HLTBool.h.

Referenced by filter(), and HLTBool().