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
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)
 
 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 (std::string const &iProcessName, std::string const &iModuleLabel, bool iPrint, std::vector< char const * > &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 Attributes

edm::EDGetToken m_dtdigi
 
edm::EDGetToken m_dtthetadigi
 
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().

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

Definition at line 30 of file L1TTwinMuxProducer.cc.

30 {}

Member Function Documentation

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

Implements edm::one::EDProducerBase.

Definition at line 52 of file L1TTwinMuxProducer.cc.

References edm::Event::getByToken(), edm::HandleBase::isValid(), and edm::Event::put().

52  {
53 
56  e.getByToken(m_dtdigi, phiDigis);
57  e.getByToken(m_dtthetadigi, thetaDigis);
58 
59  if (! phiDigis.isValid()){
60  //cout << "ERROR: TwinMux input DT phi digis not valid.\n";
61  }
62  if (! thetaDigis.isValid()){
63  //cout << "ERROR: TwinMux input DT theta digis not valid.\n";
64  }
65 
67  e.getByToken(m_rpcsource, rpcDigis);
68 
69 
70  std::auto_ptr<L1MuDTChambPhContainer> l1ttmp = m_l1tma->produce(phiDigis, thetaDigis, rpcDigis,c);
71  //cout << "DEBUG: L1T Twin Mux Producer, output size: " << l1ttmp->getContainer()->size() << "\n";
72  e.put(l1ttmp);
73 }
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:462
std::auto_ptr< L1MuDTChambPhContainer > produce(edm::Handle< L1MuDTChambPhContainer > phiDigis, edm::Handle< L1MuDTChambThContainer > thetaDigis, edm::Handle< RPCDigiCollection > rpcDigis, const edm::EventSetup &c)
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
Definition: Event.h:121
edm::EDGetToken m_dtthetadigi
bool isValid() const
Definition: HandleBase.h:75
edm::EDGetToken m_dtdigi
edm::EDGetToken m_rpcsource
L1TTwinMuxAlgortithm * m_l1tma

Member Data Documentation

edm::EDGetToken L1TTwinMuxProducer::m_dtdigi
private

Definition at line 34 of file L1TTwinMuxProducer.cc.

edm::EDGetToken L1TTwinMuxProducer::m_dtthetadigi
private

Definition at line 34 of file L1TTwinMuxProducer.cc.

L1TTwinMuxAlgortithm* L1TTwinMuxProducer::m_l1tma
private

Definition at line 33 of file L1TTwinMuxProducer.cc.

edm::EDGetToken L1TTwinMuxProducer::m_rpcsource
private

Definition at line 34 of file L1TTwinMuxProducer.cc.