CMS 3D CMS Logo

Public Member Functions | Private Attributes

ComputedVariable Class Reference

#include <CachingVariable.h>

Inheritance diagram for ComputedVariable:
CachingVariable

List of all members.

Public Member Functions

 ComputedVariable (CachingVariableFactoryArg arg)
 ComputedVariable (const std::string &M, std::string &N, edm::ParameterSet &P, const VariableComputer *c)
virtual evalType eval (const edm::Event &iEvent) const
virtual ~ComputedVariable ()

Private Attributes

const VariableComputermyComputer

Detailed Description

Definition at line 133 of file CachingVariable.h.


Constructor & Destructor Documentation

ComputedVariable::ComputedVariable ( CachingVariableFactoryArg  arg)

Definition at line 85 of file CachingVariable.cc.

References reco::get(), edm::ParameterSet::getParameter(), CachingVariable::CachingVariableFactoryArg::iConfig, myComputer, and AlCaHLTBitMon_QueryRunRegistry::string.

                                                                 : 
  CachingVariable("ComputedVariable",arg.n,arg.iConfig){
  // instanciate the computer
    std::string computerType = arg.iConfig.getParameter<std::string>("computer");
    myComputer = VariableComputerFactory::get()->create(computerType,arg);
    //there is a memory leak here, because the object we are in is not register anywhere. since it happens once per job, this is not a big deal.
}
ComputedVariable::ComputedVariable ( const std::string &  M,
std::string &  N,
edm::ParameterSet P,
const VariableComputer c 
) [inline]

Definition at line 136 of file CachingVariable.h.

virtual ComputedVariable::~ComputedVariable ( ) [inline, virtual]

Definition at line 138 of file CachingVariable.h.

{};

Member Function Documentation

virtual evalType ComputedVariable::eval ( const edm::Event iEvent) const [inline, virtual]

Member Data Documentation

Definition at line 146 of file CachingVariable.h.

Referenced by ComputedVariable(), and eval().