CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ESTransientHandle Class Reference

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

Detailed Description

Description: Provides transient access to data in an EventSetup Record

Usage: This handle is used to setup a memory optimization. Data obtained via this handle are allowed to be discarded before the end of the actual IOV for the data. In this way the system can claim back some memory

Only use this form of the EventSetup handle IF AND ONLY IF

1) you do not plan on holding onto a pointer to the EventSetup data to which the handle refers (since the pointer may become invalid after returning from your function) 2) you only access this EventSetup data once per IOV change of the Record [i.e. you do NOT read it every Event] (failure to do this will cause the EventSetup data to be created each access which can drastically slow the system)

If you are unsure whether to use this handle or not then it is best not to and just use the regular ESHandle.