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
CSCDigiToRawModule Class Reference

#include <CSCDigiToRawModule.h>

Inheritance diagram for CSCDigiToRawModule:
edm::EDProducer edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper

Public Member Functions

 CSCDigiToRawModule (const edm::ParameterSet &pset)
 Constructor. More...
 
virtual void produce (edm::Event &, const edm::EventSetup &)
 
virtual ~CSCDigiToRawModule ()
 Destructor. More...
 
- Public Member Functions inherited from edm::EDProducer
 EDProducer ()
 
virtual ~EDProducer ()
 
- 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 ()
 
ProductHolderIndex indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndex > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndex > &) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

Private Attributes

CSCDigiToRawpacker
 
edm::InputTag theALCTDigiTag
 
edm::InputTag theCLCTDigiTag
 
edm::InputTag theComparatorDigiTag
 
edm::InputTag theCorrelatedLCTDigiTag
 
edm::InputTag thePreTriggerTag
 
edm::InputTag theStripDigiTag
 
edm::InputTag theWireDigiTag
 

Additional Inherited Members

- Public Types inherited from edm::EDProducer
typedef EDProducer ModuleType
 
typedef WorkerT< EDProducerWorkerType
 
- Public Types inherited from edm::ProducerBase
typedef
ProductRegistryHelper::TypeLabelList 
TypeLabelList
 
- Static Public Member Functions inherited from edm::EDProducer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 
- Protected Member Functions inherited from edm::EDProducer
CurrentProcessingContext const * currentContext () const
 
- 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

Date:
2010/07/19 19:54:13
Revision:
1.9
Author
A. Tumanov - Rice

Definition at line 16 of file CSCDigiToRawModule.h.

Constructor & Destructor Documentation

CSCDigiToRawModule::CSCDigiToRawModule ( const edm::ParameterSet pset)

Constructor.

Definition at line 29 of file CSCDigiToRawModule.cc.

29  :
30  packer(new CSCDigiToRaw(pset)),
31  theStripDigiTag(pset.getParameter<edm::InputTag>("stripDigiTag")),
32  theWireDigiTag(pset.getParameter<edm::InputTag>("wireDigiTag")),
33  theComparatorDigiTag(pset.getParameter<edm::InputTag>("comparatorDigiTag")),
34  theALCTDigiTag(pset.getParameter<edm::InputTag>("alctDigiTag")),
35  theCLCTDigiTag(pset.getParameter<edm::InputTag>("clctDigiTag")),
36  thePreTriggerTag(pset.getParameter<edm::InputTag>("preTriggerTag")),
37  theCorrelatedLCTDigiTag(pset.getParameter<edm::InputTag>("correlatedLCTDigiTag"))
38 {
39  //theStrip = pset.getUntrackedParameter<string>("DigiCreator", "cscunpacker");
40  produces<FEDRawDataCollection>("CSCRawData");
41 }
T getParameter(std::string const &) const
CSCDigiToRaw * packer
edm::InputTag thePreTriggerTag
edm::InputTag theComparatorDigiTag
edm::InputTag theWireDigiTag
edm::InputTag theALCTDigiTag
edm::InputTag theCLCTDigiTag
edm::InputTag theCorrelatedLCTDigiTag
edm::InputTag theStripDigiTag
CSCDigiToRawModule::~CSCDigiToRawModule ( )
virtual

Destructor.

Definition at line 44 of file CSCDigiToRawModule.cc.

References packer.

44  {
45  delete packer;
46 }
CSCDigiToRaw * packer

Member Function Documentation

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

reverse mapping for packer

Implements edm::EDProducer.

Definition at line 49 of file CSCDigiToRawModule.cc.

References CSCDigiToRaw::createFedBuffers(), edm::EventSetup::get(), edm::Event::getByLabel(), packer, edm::ESHandle< class >::product(), edm::Event::put(), theALCTDigiTag, theCLCTDigiTag, theComparatorDigiTag, theCorrelatedLCTDigiTag, thePreTriggerTag, theStripDigiTag, and theWireDigiTag.

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

49  {
52  c.get<CSCChamberMapRcd>().get(hcham);
53  const CSCChamberMap* theMapping = hcham.product();
54 
55 
56  auto_ptr<FEDRawDataCollection> fed_buffers(new FEDRawDataCollection);
57  // Take digis from the event
59  e.getByLabel(theStripDigiTag, stripDigis);
61  e.getByLabel(theWireDigiTag, wireDigis);
63  e.getByLabel(theComparatorDigiTag, comparatorDigis);
65  e.getByLabel(theALCTDigiTag, alctDigis);
67  e.getByLabel(theCLCTDigiTag, clctDigis);
69  e.getByLabel(thePreTriggerTag, preTriggers);
70  Handle<CSCCorrelatedLCTDigiCollection> correlatedLCTDigis;
71  e.getByLabel(theCorrelatedLCTDigiTag, correlatedLCTDigis);
72 
73 
74 
75  // Create the packed data
76  packer->createFedBuffers(*stripDigis, *wireDigis, *comparatorDigis,
77  *alctDigis, *clctDigis, *preTriggers, *correlatedLCTDigis,
78  *(fed_buffers.get()), theMapping, e);
79 
80  // put the raw data to the event
81  e.put(fed_buffers, "CSCRawData");
82 }
void createFedBuffers(const CSCStripDigiCollection &stripDigis, const CSCWireDigiCollection &wireDigis, const CSCComparatorDigiCollection &comparatorDigis, const CSCALCTDigiCollection &alctDigis, const CSCCLCTDigiCollection &clctDigis, const CSCCLCTPreTriggerCollection &preTriggers, const CSCCorrelatedLCTDigiCollection &correlatedLCTDigis, FEDRawDataCollection &fed_buffers, const CSCChamberMap *theMapping, edm::Event &e)
Take a vector of digis and fill the FEDRawDataCollection.
CSCDigiToRaw * packer
edm::InputTag thePreTriggerTag
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
Definition: Event.h:94
edm::InputTag theComparatorDigiTag
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
Definition: Event.h:361
edm::InputTag theWireDigiTag
const T & get() const
Definition: EventSetup.h:55
edm::InputTag theALCTDigiTag
T const * product() const
Definition: ESHandle.h:62
edm::InputTag theCLCTDigiTag
edm::InputTag theCorrelatedLCTDigiTag
edm::InputTag theStripDigiTag

Member Data Documentation

CSCDigiToRaw* CSCDigiToRawModule::packer
private

Definition at line 28 of file CSCDigiToRawModule.h.

Referenced by produce(), and ~CSCDigiToRawModule().

edm::InputTag CSCDigiToRawModule::theALCTDigiTag
private

Definition at line 32 of file CSCDigiToRawModule.h.

Referenced by produce().

edm::InputTag CSCDigiToRawModule::theCLCTDigiTag
private

Definition at line 33 of file CSCDigiToRawModule.h.

Referenced by produce().

edm::InputTag CSCDigiToRawModule::theComparatorDigiTag
private

Definition at line 31 of file CSCDigiToRawModule.h.

Referenced by produce().

edm::InputTag CSCDigiToRawModule::theCorrelatedLCTDigiTag
private

Definition at line 35 of file CSCDigiToRawModule.h.

Referenced by produce().

edm::InputTag CSCDigiToRawModule::thePreTriggerTag
private

Definition at line 34 of file CSCDigiToRawModule.h.

Referenced by produce().

edm::InputTag CSCDigiToRawModule::theStripDigiTag
private

Definition at line 29 of file CSCDigiToRawModule.h.

Referenced by produce().

edm::InputTag CSCDigiToRawModule::theWireDigiTag
private

Definition at line 30 of file CSCDigiToRawModule.h.

Referenced by produce().