CMS 3D CMS Logo

eventsetupdata_registration_macro Class Reference

Description: CPP macro used to register a data item to be placed within a EventSetup Record. More...

#include <FWCore/Framework/interface/eventsetupdata_registration_macro.h>


Detailed Description

Description: CPP macro used to register a data item to be placed within a EventSetup Record.

Usage: Special code is needed to 'register' a new class so that it can be placed within a EventSetup Record. The macro EVENTSETUP_DATA_REG is used to create that code.

Example: You have a new data class called 'DummyData'. Then to register that class with the system you place the lines

include "<where ever my class decleration lives>/interface/DummyData.h"

EVENTSETUP_DATA_REG(DummyData);

into the file <where ever="" my="" class="" decleration="" lives>="">/src/T_EventSetup_DummyData.cc

The actual name of the file that uses the 'EVENTSETUP_DATA_REG' macro is not important. The only important point the file that uses the 'EVENTSETUP_DATA_REG' macro must be in the same library as the data class it is registering.


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:20:30 2009 for CMSSW by  doxygen 1.5.4