CMS 3D CMS Logo

Public Member Functions

VariableComputerTest Class Reference

#include <CachingVariable.h>

Inheritance diagram for VariableComputerTest:
VariableComputer

List of all members.

Public Member Functions

void compute (const edm::Event &iEvent) const
 VariableComputerTest (CachingVariable::CachingVariableFactoryArg arg)
 ~VariableComputerTest ()

Detailed Description

Definition at line 149 of file CachingVariable.h.


Constructor & Destructor Documentation

VariableComputerTest::VariableComputerTest ( CachingVariable::CachingVariableFactoryArg  arg)

Definition at line 93 of file CachingVariable.cc.

References VariableComputer::declare().

                                                                                       : VariableComputer(arg){
  declare("toto");
  declare("tutu");
  declare("much");
}
VariableComputerTest::~VariableComputerTest ( ) [inline]

Definition at line 152 of file CachingVariable.h.

{};

Member Function Documentation

void VariableComputerTest::compute ( const edm::Event iEvent) const [virtual]

Implements VariableComputer.

Definition at line 99 of file CachingVariable.cc.

References VariableComputer::assign(), and VariableComputer::doesNotCompute().

                                                               {
  //does some mumbo jumbo with the event.
  // computes a bunch of doubles
  double toto = 3;
  double tutu = 4;
  
  //set the  variables  value (which do as if they had been cached)
  assign("toto",toto);
  assign("tutu",tutu);
  doesNotCompute("much");
}