CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
EvtPlaneFilter Class Reference
Inheritance diagram for EvtPlaneFilter:
edm::stream::EDFilter<> edm::stream::EDFilterBase edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper

Public Member Functions

 EvtPlaneFilter (const edm::ParameterSet &)
 
 ~EvtPlaneFilter ()
 
- Public Member Functions inherited from edm::stream::EDFilter<>
 EDFilter ()=default
 
- Public Member Functions inherited from edm::stream::EDFilterBase
 EDFilterBase ()
 
ModuleDescription const & moduleDescription () const
 
virtual ~EDFilterBase ()
 
- Public Member Functions inherited from edm::ProducerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 ProducerBase ()
 
void registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &)
 
std::function< void(BranchDescription
const &)> 
registrationCallback () const
 used by the fwk to register list of products More...
 
virtual ~ProducerBase ()
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
 EDConsumerBase ()
 
ProductHolderIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
std::vector
< ProductHolderIndexAndSkipBit >
const & 
itemsToGetFromEvent () const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesDependentUpon (const std::string &iProcessName, std::vector< const char * > &oModuleLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
bool registeredToConsume (ProductHolderIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

Private Member Functions

virtual bool filter (edm::Event &, const edm::EventSetup &) override
 

Private Attributes

const int epidx_
 
const int eplvl_
 
edm::EDGetTokenT
< reco::EvtPlaneCollection
tag_
 
const double vnhigh_
 
const double vnlow_
 

Additional Inherited Members

- Public Types inherited from edm::stream::EDFilter<>
typedef CacheContexts< T...> CacheTypes
 
typedef CacheTypes::GlobalCache GlobalCache
 
typedef AbilityChecker< T...> HasAbility
 
typedef
CacheTypes::LuminosityBlockCache 
LuminosityBlockCache
 
typedef
LuminosityBlockContextT
< LuminosityBlockCache,
RunCache, GlobalCache
LuminosityBlockContext
 
typedef
CacheTypes::LuminosityBlockSummaryCache 
LuminosityBlockSummaryCache
 
typedef CacheTypes::RunCache RunCache
 
typedef RunContextT< RunCache,
GlobalCache
RunContext
 
typedef CacheTypes::RunSummaryCache RunSummaryCache
 
- Public Types inherited from edm::stream::EDFilterBase
typedef EDFilterAdaptorBase ModuleType
 
- Public Types inherited from edm::ProducerBase
typedef
ProductRegistryHelper::TypeLabelList 
TypeLabelList
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from edm::stream::EDFilterBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 

Detailed Description

Definition at line 20 of file EvtPlaneFilter.cc.

Constructor & Destructor Documentation

EvtPlaneFilter::EvtPlaneFilter ( const edm::ParameterSet ps)
explicit

Definition at line 34 of file EvtPlaneFilter.cc.

References edm::ParameterSet::getParameter(), and tag_.

34  :
35  vnlow_(ps.getParameter<double>("Vnlow")),
36  vnhigh_(ps.getParameter<double>("Vnhigh")),
37  epidx_(ps.getParameter<int>("EPidx")),
38  eplvl_(ps.getParameter<int>("EPlvl"))
39 {
40  tag_ = consumes<reco::EvtPlaneCollection>( ps.getParameter<edm::InputTag>("EPlabel") );
41  return;
42 }
T getParameter(std::string const &) const
const int epidx_
const int eplvl_
edm::EDGetTokenT< reco::EvtPlaneCollection > tag_
const double vnlow_
const double vnhigh_
EvtPlaneFilter::~EvtPlaneFilter ( )

Definition at line 44 of file EvtPlaneFilter.cc.

45 {
46  return;
47 }

Member Function Documentation

bool EvtPlaneFilter::filter ( edm::Event evt,
const edm::EventSetup es 
)
overrideprivatevirtual

Implements edm::stream::EDFilterBase.

Definition at line 49 of file EvtPlaneFilter.cc.

References epidx_, eplvl_, edm::Event::getByToken(), tag_, and vnhigh_.

50 {
52  evt.getByToken(tag_, ep_);
53  double qn = (*ep_)[epidx_].vn(eplvl_);
54  if ( qn < vnlow_ || qn > vnhigh_ ) return false;
55  return true;
56 }
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:464
const int epidx_
const int eplvl_
edm::EDGetTokenT< reco::EvtPlaneCollection > tag_
const double vnhigh_

Member Data Documentation

const int EvtPlaneFilter::epidx_
private

Definition at line 29 of file EvtPlaneFilter.cc.

Referenced by filter().

const int EvtPlaneFilter::eplvl_
private

Definition at line 30 of file EvtPlaneFilter.cc.

Referenced by filter().

edm::EDGetTokenT<reco::EvtPlaneCollection> EvtPlaneFilter::tag_
private

Definition at line 31 of file EvtPlaneFilter.cc.

Referenced by EvtPlaneFilter(), and filter().

const double EvtPlaneFilter::vnhigh_
private

Definition at line 28 of file EvtPlaneFilter.cc.

Referenced by filter().

const double EvtPlaneFilter::vnlow_
private

Definition at line 27 of file EvtPlaneFilter.cc.