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
HcalLaserReco Class Reference
Inheritance diagram for HcalLaserReco:
edm::EDProducer edm::ProducerBase edm::ProductRegistryHelper

Public Member Functions

 HcalLaserReco (const edm::ParameterSet &ps)
 
virtual void produce (edm::Event &e, const edm::EventSetup &c)
 
virtual ~HcalLaserReco ()
 
- Public Member Functions inherited from edm::EDProducer
 EDProducer ()
 
virtual ~EDProducer ()
 
- Public Member Functions inherited from edm::ProducerBase
 ProducerBase ()
 
void registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &)
 
boost::function< void(const
BranchDescription &)> 
registrationCallback () const
 used by the fwk to register list of products More...
 
virtual ~ProducerBase ()
 

Private Attributes

int qdctdcFed_
 
HcalLaserUnpacker unpacker_
 

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
template<class TProducer , class TMethod >
void callWhenNewProductsRegistered (TProducer *iProd, TMethod iMethod)
 

Detailed Description

Definition at line 13 of file HcalLaserReco.cc.

Constructor & Destructor Documentation

HcalLaserReco::HcalLaserReco ( const edm::ParameterSet ps)
explicit

Definition at line 23 of file HcalLaserReco.cc.

23  :
24  qdctdcFed_(conf.getUntrackedParameter<int>("QADCTDCFED",8))
25 {
26 
27  produces<HcalLaserDigi>();
28 }
tuple conf
Definition: dbtoconf.py:185
HcalLaserReco::~HcalLaserReco ( )
virtual

Definition at line 31 of file HcalLaserReco.cc.

31 { }

Member Function Documentation

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

Implements edm::EDProducer.

Definition at line 34 of file HcalLaserReco.cc.

References edm::Event::getByType(), edm::Event::put(), qdctdcFed_, HcalLaserUnpacker::unpack(), and unpacker_.

35 {
36  // Step A: Get Inputs
38  // edm::ProcessNameSelector s("PROD"); // HACK!
39  e.getByType(rawraw);
40 
41  // Step B: Create empty output
42  std::auto_ptr<HcalLaserDigi>
43  digi(new HcalLaserDigi);
44 
45  if (qdctdcFed_ >=0) {
46  // Step C: unpack all requested FEDs
47  const FEDRawData& fed = rawraw->FEDData(qdctdcFed_);
48  unpacker_.unpack(fed,*digi);
49  }
50 
51  // Step D: Put outputs into event
52  e.put(digi);
53 }
HcalLaserUnpacker unpacker_
bool getByType(Handle< PROD > &result) const
Definition: Event.h:398
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
Definition: Event.h:85
void unpack(const FEDRawData &raw, HcalLaserDigi &digi) const

Member Data Documentation

int HcalLaserReco::qdctdcFed_
private

Definition at line 19 of file HcalLaserReco.cc.

Referenced by produce().

HcalLaserUnpacker HcalLaserReco::unpacker_
private

Definition at line 20 of file HcalLaserReco.cc.

Referenced by produce().