#include <PhysicsTools/UtilAlgos/interface/CachingVariable.h>
Public Member Functions | |
void | compute (const edm::Event &iEvent) const |
VariableComputerTest (CachingVariable::CachingVariableFactoryArg arg) | |
~VariableComputerTest () |
Definition at line 149 of file CachingVariable.h.
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] |
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 }