CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
RawDataSelector Class Reference
Inheritance diagram for RawDataSelector:
edm::stream::EDProducer<>

Public Member Functions

 RawDataSelector (const edm::ParameterSet &)
 
 ~RawDataSelector () override
 
- Public Member Functions inherited from edm::stream::EDProducer<>
 EDProducer ()=default
 
 EDProducer (const EDProducer &)=delete
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginProcessBlocks () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndProcessBlocks () const final
 
bool hasAbilityToProduceInEndRuns () const final
 
const EDProduceroperator= (const EDProducer &)=delete
 

Private Member Functions

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

Private Attributes

edm::InputTag dataLabel
 
std::pair< int, int > fedRange
 
RawDataFEDSelectorselector
 

Additional Inherited Members

- Public Types inherited from edm::stream::EDProducer<>
using CacheTypes = CacheContexts< T... >
 
using GlobalCache = typename CacheTypes::GlobalCache
 
using HasAbility = AbilityChecker< T... >
 
using InputProcessBlockCache = typename CacheTypes::InputProcessBlockCache
 
using LuminosityBlockCache = typename CacheTypes::LuminosityBlockCache
 
using LuminosityBlockContext = LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCache >
 
using LuminosityBlockSummaryCache = typename CacheTypes::LuminosityBlockSummaryCache
 
using RunCache = typename CacheTypes::RunCache
 
using RunContext = RunContextT< RunCache, GlobalCache >
 
using RunSummaryCache = typename CacheTypes::RunSummaryCache
 

Detailed Description

Definition at line 20 of file RawDataSelector.cc.

Constructor & Destructor Documentation

◆ RawDataSelector()

RawDataSelector::RawDataSelector ( const edm::ParameterSet pset)
explicit

Definition at line 35 of file RawDataSelector.cc.

References fedRange, muonDTDigis_cfi::pset, and selector.

36  : dataLabel(pset.getUntrackedParameter<edm::InputTag>("InputLabel", edm::InputTag("source"))) {
37  fedRange = std::pair<int, int>(pset.getParameter<int>("lowerBound"), pset.getParameter<int>("upperBound"));
38 
40 
41  produces<FEDRawDataCollection>();
42 }
std::pair< int, int > fedRange
RawDataFEDSelector * selector
edm::InputTag dataLabel

◆ ~RawDataSelector()

RawDataSelector::~RawDataSelector ( )
override

Definition at line 44 of file RawDataSelector.cc.

References selector.

44 { delete selector; }
RawDataFEDSelector * selector

Member Function Documentation

◆ produce()

void RawDataSelector::produce ( edm::Event iEvent,
const edm::EventSetup iSetup 
)
overrideprivate

Definition at line 46 of file RawDataSelector.cc.

References dataLabel, fedRange, iEvent, eostools::move(), l1tstage2_dqm_sourceclient-live_cfg::rawData, RawDataFEDSelector::select(), and selector.

46  {
47  using namespace edm;
48  using namespace std;
49 
51  iEvent.getByLabel(dataLabel, rawData);
52 
53  /* here eventually perform some operation to get the list of FED's
54  to be written in the new collection.
55  In this case we simply take the range from the ParameterSet */
56 
57  // the filtered raw data collections
58  std::unique_ptr<FEDRawDataCollection> selectedRawData = selector->select(rawData, fedRange);
59 
60  iEvent.put(std::move(selectedRawData));
61 }
std::unique_ptr< FEDRawDataCollection > select(const edm::Handle< FEDRawDataCollection > &rawData)
std::pair< int, int > fedRange
int iEvent
Definition: GenABIO.cc:224
RawDataFEDSelector * selector
edm::InputTag dataLabel
HLT enums.
def move(src, dest)
Definition: eostools.py:511

Member Data Documentation

◆ dataLabel

edm::InputTag RawDataSelector::dataLabel
private

Definition at line 31 of file RawDataSelector.cc.

Referenced by produce().

◆ fedRange

std::pair<int, int> RawDataSelector::fedRange
private

Definition at line 32 of file RawDataSelector.cc.

Referenced by produce(), and RawDataSelector().

◆ selector

RawDataFEDSelector* RawDataSelector::selector
private