CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
L1TTwinMuxProducer Class Reference
Inheritance diagram for L1TTwinMuxProducer:
edm::one::EDProducer< edm::one::SharedResources > edm::one::EDProducerBase edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper

Public Member Functions

 L1TTwinMuxProducer (const edm::ParameterSet &pset)
 
void produce (edm::Event &e, const edm::EventSetup &c)
 
 ~L1TTwinMuxProducer ()
 
- Public Member Functions inherited from edm::one::EDProducer< edm::one::SharedResources >
 EDProducer ()=default
 
- Public Member Functions inherited from edm::one::EDProducerBase
 EDProducerBase ()
 
ModuleDescription const & moduleDescription () const
 
virtual ~EDProducerBase ()
 
- Public Member Functions inherited from edm::ProducerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
std::vector< edm::ProductResolverIndex > const & indiciesForPutProducts (BranchType iBranchType) const
 
 ProducerBase ()
 
void registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &)
 
std::function< void(BranchDescription const &)> registrationCallback () const
 used by the fwk to register list of products More...
 
void resolvePutIndicies (BranchType iBranchType, std::unordered_multimap< std::string, edm::ProductResolverIndex > const &iIndicies, std::string const &moduleLabel)
 
virtual ~ProducerBase () noexcept(false)
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
 EDConsumerBase ()
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
 EDConsumerBase (EDConsumerBase &&)=default
 
ProductResolverIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
std::vector< ProductResolverIndexAndSkipBit > const & itemsToGetFrom (BranchType iType) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
virtual ~EDConsumerBase () noexcept(false)
 

Private Attributes

edm::EDGetToken m_dtdigi
 
edm::EDGetToken m_dtthetadigi
 
std::unique_ptr< L1TTwinMuxAlgortithmm_l1tma
 
edm::EDGetToken m_rpcsource
 

Additional Inherited Members

- Public Types inherited from edm::one::EDProducerBase
typedef EDProducerBase 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::one::EDProducerBase
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 27 of file L1TTwinMuxProducer.cc.

Constructor & Destructor Documentation

L1TTwinMuxProducer::L1TTwinMuxProducer ( const edm::ParameterSet pset)

Definition at line 41 of file L1TTwinMuxProducer.cc.

References edm::ParameterSet::getParameter(), m_dtdigi, m_dtthetadigi, and m_rpcsource.

42 
43 m_dtdigi = consumes<L1MuDTChambPhContainer>(pset.getParameter<edm::InputTag>("DTDigi_Source"));
44 m_dtthetadigi = consumes<L1MuDTChambThContainer>(pset.getParameter<edm::InputTag>("DTThetaDigi_Source"));
45 m_rpcsource = consumes<RPCDigiCollection>(pset.getParameter<edm::InputTag>("RPC_Source"));
46 
47 produces<L1MuDTChambPhContainer>();
48 
49 }
T getParameter(std::string const &) const
std::unique_ptr< L1TTwinMuxAlgortithm > m_l1tma
edm::EDGetToken m_dtthetadigi
edm::EDGetToken m_dtdigi
edm::EDGetToken m_rpcsource
L1TTwinMuxProducer::~L1TTwinMuxProducer ( )
inline

Definition at line 30 of file L1TTwinMuxProducer.cc.

References EnergyCorrector::c, and MillePedeFileConverter_cfg::e.

30 {}

Member Function Documentation

void L1TTwinMuxProducer::produce ( edm::Event e,
const edm::EventSetup c 
)

Definition at line 51 of file L1TTwinMuxProducer.cc.

References DEFINE_FWK_MODULE, edm::Event::getByToken(), edm::HandleBase::isValid(), m_dtdigi, m_dtthetadigi, m_l1tma, m_rpcsource, eostools::move(), and edm::Event::put().

51  {
52 
55  e.getByToken(m_dtdigi, phiDigis);
56  e.getByToken(m_dtthetadigi, thetaDigis);
57 
58  if (! phiDigis.isValid()){
59  //cout << "ERROR: TwinMux input DT phi digis not valid.\n";
60  }
61  if (! thetaDigis.isValid()){
62  //cout << "ERROR: TwinMux input DT theta digis not valid.\n";
63  }
64 
66  e.getByToken(m_rpcsource, rpcDigis);
67 
68 
69  std::unique_ptr<L1MuDTChambPhContainer> l1ttmp = m_l1tma->produce(phiDigis, thetaDigis, rpcDigis,c);
70  //cout << "DEBUG: L1T Twin Mux Producer, output size: " << l1ttmp->getContainer()->size() << "\n";
71  e.put(std::move(l1ttmp));
72 }
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
Definition: Event.h:122
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:460
std::unique_ptr< L1TTwinMuxAlgortithm > m_l1tma
edm::EDGetToken m_dtthetadigi
bool isValid() const
Definition: HandleBase.h:74
edm::EDGetToken m_dtdigi
def move(src, dest)
Definition: eostools.py:510
edm::EDGetToken m_rpcsource

Member Data Documentation

edm::EDGetToken L1TTwinMuxProducer::m_dtdigi
private

Definition at line 34 of file L1TTwinMuxProducer.cc.

Referenced by L1TTwinMuxProducer(), and produce().

edm::EDGetToken L1TTwinMuxProducer::m_dtthetadigi
private

Definition at line 34 of file L1TTwinMuxProducer.cc.

Referenced by L1TTwinMuxProducer(), and produce().

std::unique_ptr<L1TTwinMuxAlgortithm> L1TTwinMuxProducer::m_l1tma
private

Definition at line 33 of file L1TTwinMuxProducer.cc.

Referenced by produce().

edm::EDGetToken L1TTwinMuxProducer::m_rpcsource
private

Definition at line 34 of file L1TTwinMuxProducer.cc.

Referenced by L1TTwinMuxProducer(), and produce().