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 Attributes
evf::EvFFEDSelector Class Reference

#include <EvFFEDSelector.h>

Inheritance diagram for evf::EvFFEDSelector:
edm::global::EDProducer<> edm::global::EDProducerBase edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper

Public Member Functions

 EvFFEDSelector (edm::ParameterSet const &)
 
void produce (edm::StreamID, edm::Event &, edm::EventSetup const &) const overridefinal
 
 ~EvFFEDSelector ()
 
- Public Member Functions inherited from edm::global::EDProducer<>
 EDProducer ()=default
 
- Public Member Functions inherited from edm::global::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
 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
 
bool registeredToConsume (ProductHolderIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

Private Attributes

std::vector< unsigned int > fedlist_
 
edm::EDGetTokenT
< FEDRawDataCollection
token_
 

Additional Inherited Members

- Public Types inherited from edm::global::EDProducerBase
typedef EDProducerBase ModuleType
 
- Public Types inherited from edm::ProducerBase
typedef
ProductRegistryHelper::TypeLabelList 
TypeLabelList
 
- Static Public Member Functions inherited from edm::global::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 15 of file EvFFEDSelector.h.

Constructor & Destructor Documentation

evf::EvFFEDSelector::EvFFEDSelector ( edm::ParameterSet const &  config)
explicit

Definition at line 7 of file EvFFEDSelector.cc.

7  :
8  token_( consumes<FEDRawDataCollection>( config.getParameter<edm::InputTag>("inputTag")) ),
9  fedlist_( config.getParameter<std::vector<unsigned int> >("fedList") )
10  {
11  produces<FEDRawDataCollection>();
12  }
std::vector< unsigned int > fedlist_
edm::EDGetTokenT< FEDRawDataCollection > token_
evf::EvFFEDSelector::~EvFFEDSelector ( )
inline

Definition at line 19 of file EvFFEDSelector.h.

19 { }

Member Function Documentation

void evf::EvFFEDSelector::produce ( edm::StreamID  sid,
edm::Event event,
edm::EventSetup const &  setup 
) const
finaloverridevirtual

Implements edm::global::EDProducerBase.

Definition at line 15 of file EvFFEDSelector.cc.

References fedlist_, i, lumiPlot::rawdata, and token_.

Referenced by JSONExport.JsonExport::export(), HTMLExport.HTMLExport::export(), and HTMLExport.HTMLExportStatic::export().

16  {
18  event.getByToken(token_, rawdata);
19 
20  std::unique_ptr<FEDRawDataCollection> fedcoll( new FEDRawDataCollection() );
21 
22  for (unsigned int i : fedlist_)
23  if (rawdata->FEDData(i).size() > 0)
24  fedcoll->FEDData(i) = rawdata->FEDData(i);
25 
26  event.put(std::move(fedcoll));
27  }
int i
Definition: DBlmapReader.cc:9
std::vector< unsigned int > fedlist_
edm::EDGetTokenT< FEDRawDataCollection > token_
dictionary rawdata
Definition: lumiPlot.py:393

Member Data Documentation

std::vector<unsigned int> evf::EvFFEDSelector::fedlist_
private

Definition at line 25 of file EvFFEDSelector.h.

Referenced by produce().

edm::EDGetTokenT<FEDRawDataCollection> evf::EvFFEDSelector::token_
private

Definition at line 24 of file EvFFEDSelector.h.

Referenced by produce().