CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Static Public Member Functions | Private Attributes
HLTGetRaw Class Reference

#include <HLTGetRaw.h>

Inheritance diagram for HLTGetRaw:
edm::EDAnalyzer edm::EDConsumerBase

Public Member Functions

void analyze (const edm::Event &, const edm::EventSetup &)
 
 HLTGetRaw (const edm::ParameterSet &)
 
 ~HLTGetRaw ()
 
- Public Member Functions inherited from edm::EDAnalyzer
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzer ()
 
ModuleDescription const & moduleDescription () const
 
std::string workerType () const
 
virtual ~EDAnalyzer ()
 
- Public Member Functions inherited from edm::EDConsumerBase
 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 (const std::string &iProcessName, std::vector< const char * > &oModuleLabels) const
 
bool registeredToConsume (ProductHolderIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &descriptions)
 
- Static Public Member Functions inherited from edm::EDAnalyzer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &)
 

Private Attributes

edm::InputTag RawDataCollection_
 
edm::EDGetTokenT
< FEDRawDataCollection
RawDataToken_
 

Additional Inherited Members

- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
- 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

This class is an EDAnalyzer implementing a "get data into RAM" functionality for RAW, to simulate online FF running/timimg.

Author
various

See header file for documentation

Author
various

Definition at line 29 of file HLTGetRaw.h.

Constructor & Destructor Documentation

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

Definition at line 29 of file HLTGetRaw.cc.

References edm::ParameterSet::getParameter(), RawDataCollection_, and RawDataToken_.

30 {
31  RawDataCollection_ = ps.getParameter<edm::InputTag>("RawDataCollection");
32  RawDataToken_ = consumes<FEDRawDataCollection>(RawDataCollection_);
33 }
T getParameter(std::string const &) const
edm::InputTag RawDataCollection_
Definition: HLTGetRaw.h:38
edm::EDGetTokenT< FEDRawDataCollection > RawDataToken_
Definition: HLTGetRaw.h:39
HLTGetRaw::~HLTGetRaw ( )

Definition at line 35 of file HLTGetRaw.cc.

36 { }

Member Function Documentation

void HLTGetRaw::analyze ( const edm::Event iEvent,
const edm::EventSetup iSetup 
)
virtual

Implements edm::EDAnalyzer.

Definition at line 51 of file HLTGetRaw.cc.

References edm::Event::getByToken(), LogDebug, RawDataCollection_, and RawDataToken_.

52 {
53 // using namespace edm;
54 
55  edm::Handle<FEDRawDataCollection> RawDataHandle ;
56  iEvent.getByToken(RawDataToken_, RawDataHandle );
57 
58  LogDebug("DigiInfo") << "Loaded Raw Data Collection: " << RawDataCollection_ ;
59 
60 
61 }
#define LogDebug(id)
edm::InputTag RawDataCollection_
Definition: HLTGetRaw.h:38
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:434
edm::EDGetTokenT< FEDRawDataCollection > RawDataToken_
Definition: HLTGetRaw.h:39
void HLTGetRaw::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
static

Definition at line 39 of file HLTGetRaw.cc.

References edm::ConfigurationDescriptions::add(), and edm::ParameterSetDescription::add().

39  {
41  desc.add<edm::InputTag>("RawDataCollection",edm::InputTag("rawDataCollector"));
42  descriptions.add("hltgetRaw",desc);
43 }
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void add(std::string const &label, ParameterSetDescription const &psetDescription)

Member Data Documentation

edm::InputTag HLTGetRaw::RawDataCollection_
private

Definition at line 38 of file HLTGetRaw.h.

Referenced by analyze(), and HLTGetRaw().

edm::EDGetTokenT<FEDRawDataCollection> HLTGetRaw::RawDataToken_
private

Definition at line 39 of file HLTGetRaw.h.

Referenced by analyze(), and HLTGetRaw().