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 Types | Private Member Functions | Private Attributes
MaskedMeasurementTrackerEventProducer Class Referencefinal
Inheritance diagram for MaskedMeasurementTrackerEventProducer:
edm::stream::EDProducer<> edm::stream::EDProducerBase edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper

Public Member Functions

 MaskedMeasurementTrackerEventProducer (const edm::ParameterSet &iConfig)
 
 ~MaskedMeasurementTrackerEventProducer ()
 
- Public Member Functions inherited from edm::stream::EDProducer<>
 EDProducer ()=default
 
- Public Member Functions inherited from edm::stream::EDProducerBase
 EDProducerBase ()
 
ModuleDescription const & moduleDescription () const
 
virtual ~EDProducerBase ()
 
- Public Member Functions inherited from edm::ProducerBase
 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 Types

typedef edm::ContainerMask
< edmNew::DetSetVector
< SiPixelCluster > > 
PixelMask
 
typedef edm::ContainerMask
< edmNew::DetSetVector
< SiStripCluster > > 
StripMask
 

Private Member Functions

void produce (edm::Event &, const edm::EventSetup &) override
 

Private Attributes

edm::EDGetTokenT< PixelMaskmaskPixels_
 
edm::EDGetTokenT< StripMaskmaskStrips_
 
edm::EDGetTokenT
< MeasurementTrackerEvent
src_
 

Additional Inherited Members

- Public Types inherited from edm::stream::EDProducer<>
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::EDProducerBase
typedef EDProducerAdaptorBase ModuleType
 
- Public Types inherited from edm::ProducerBase
typedef
ProductRegistryHelper::TypeLabelList 
TypeLabelList
 
- Static Public Member Functions inherited from edm::stream::EDProducerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 
- Protected Member Functions inherited from edm::ProducerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
- 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 8 of file MaskedMeasurementTrackerEventProducer.cc.

Member Typedef Documentation

Definition at line 16 of file MaskedMeasurementTrackerEventProducer.cc.

Definition at line 15 of file MaskedMeasurementTrackerEventProducer.cc.

Constructor & Destructor Documentation

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

Definition at line 25 of file MaskedMeasurementTrackerEventProducer.cc.

References HLT_25ns14e33_v1_cff::clustersToSkip, edm::ParameterSet::getParameter(), maskPixels_, and maskStrips_.

25  :
26  src_(consumes<MeasurementTrackerEvent>(iConfig.getParameter<edm::InputTag>("src")))
27 {
28  edm::InputTag clustersToSkip = iConfig.getParameter<edm::InputTag>("clustersToSkip");
29  maskStrips_ = consumes<StripMask>(clustersToSkip);
30  maskPixels_ = consumes<PixelMask>(clustersToSkip);
31 
32  produces<MeasurementTrackerEvent>();
33 }
T getParameter(std::string const &) const
edm::EDGetTokenT< MeasurementTrackerEvent > src_
MaskedMeasurementTrackerEventProducer::~MaskedMeasurementTrackerEventProducer ( )
inline

Definition at line 11 of file MaskedMeasurementTrackerEventProducer.cc.

11 {}

Member Function Documentation

void MaskedMeasurementTrackerEventProducer::produce ( edm::Event iEvent,
const edm::EventSetup iSetup 
)
overrideprivatevirtual

Implements edm::stream::EDProducerBase.

Definition at line 36 of file MaskedMeasurementTrackerEventProducer.cc.

References edm::Event::getByToken(), maskPixels_, maskStrips_, IterativeTracking_cff::MeasurementTrackerEvent, dbtoconf::out, edm::Event::put(), and src_.

37 {
39  iEvent.getByToken(src_, mte);
40 
41  // prepare output
42  std::auto_ptr<MeasurementTrackerEvent> out;
43 
44  edm::Handle<PixelMask> maskPixels;
45  iEvent.getByToken(maskPixels_, maskPixels);
46 
47  edm::Handle<StripMask> maskStrips;
48  iEvent.getByToken(maskStrips_, maskStrips);
49  out.reset(new MeasurementTrackerEvent(*mte, *maskStrips, *maskPixels));
50 
51  // put into event
52  iEvent.put(out);
53 }
edm::EDGetTokenT< MeasurementTrackerEvent > src_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:449
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
Definition: Event.h:113
tuple out
Definition: dbtoconf.py:99

Member Data Documentation

edm::EDGetTokenT<PixelMask> MaskedMeasurementTrackerEventProducer::maskPixels_
private
edm::EDGetTokenT<StripMask> MaskedMeasurementTrackerEventProducer::maskStrips_
private
edm::EDGetTokenT<MeasurementTrackerEvent> MaskedMeasurementTrackerEventProducer::src_
private

Definition at line 18 of file MaskedMeasurementTrackerEventProducer.cc.

Referenced by produce().