CMS 3D CMS Logo

VariableComputerTest Class Reference

#include <PhysicsTools/UtilAlgos/interface/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 99 of file CachingVariable.cc.

References VariableComputer::declare().

00099                                                                                        : VariableComputer(arg){
00100   declare("toto");
00101   declare("tutu");
00102   declare("much");
00103 }

VariableComputerTest::~VariableComputerTest (  )  [inline]

Definition at line 152 of file CachingVariable.h.

00152 {};


Member Function Documentation

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

Implements VariableComputer.

Definition at line 105 of file CachingVariable.cc.

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

00105                                                                {
00106   //does some mumbo jumbo with the event.
00107   // computes a bunch of doubles
00108   double toto = 3;
00109   double tutu = 4;
00110   
00111   //set the  variables  value (which do as if they had been cached)
00112   assign("toto",toto);
00113   assign("tutu",tutu);
00114   doesNotCompute("much");
00115 }


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:34:54 2009 for CMSSW by  doxygen 1.5.4