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)
 
- 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 14 of file HcalLaserReco.cc.

Constructor & Destructor Documentation

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

Definition at line 24 of file HcalLaserReco.cc.

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

Definition at line 32 of file HcalLaserReco.cc.

32 { }

Member Function Documentation

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

Implements edm::EDProducer.

Definition at line 35 of file HcalLaserReco.cc.

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

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

Member Data Documentation

int HcalLaserReco::qdctdcFed_
private

Definition at line 20 of file HcalLaserReco.cc.

Referenced by produce().

HcalLaserUnpacker HcalLaserReco::unpacker_
private

Definition at line 21 of file HcalLaserReco.cc.

Referenced by produce().