CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
PhysicsTools::MVAComputer::EvalContext Struct Reference

#include <MVAComputer.h>

Public Member Functions

int * conf () const
 
void eval (const VarProcessor *proc, int *outConf, double *output, int *loop, VarProcessor::LoopCtx &ctx, unsigned int offset, unsigned int out) const
 
 EvalContext (double *values, int *conf, unsigned int n)
 
unsigned int n () const
 
double output (unsigned int output) const
 
double * values () const
 

Public Attributes

int * conf_
 
unsigned int n_
 
double * values_
 

Detailed Description

Definition at line 131 of file MVAComputer.h.

Constructor & Destructor Documentation

◆ EvalContext()

PhysicsTools::MVAComputer::EvalContext::EvalContext ( double *  values,
int *  conf,
unsigned int  n 
)
inline

Definition at line 132 of file MVAComputer.h.

132 : values_(values), conf_(conf), n_(n) {}

Member Function Documentation

◆ conf()

int* PhysicsTools::MVAComputer::EvalContext::conf ( ) const
inline

Definition at line 147 of file MVAComputer.h.

147 { return conf_; }

◆ eval()

void PhysicsTools::MVAComputer::EvalContext::eval ( const VarProcessor proc,
int *  outConf,
double *  output,
int *  loop,
VarProcessor::LoopCtx ctx,
unsigned int  offset,
unsigned int  out 
) const
inline

◆ n()

unsigned int PhysicsTools::MVAComputer::EvalContext::n ( ) const
inline

Definition at line 148 of file MVAComputer.h.

148 { return n_; }

◆ output()

double PhysicsTools::MVAComputer::EvalContext::output ( unsigned int  output) const
inline

Definition at line 144 of file MVAComputer.h.

144 { return values_[conf_[output]]; }

References output().

Referenced by output().

◆ values()

double* PhysicsTools::MVAComputer::EvalContext::values ( ) const
inline

Definition at line 146 of file MVAComputer.h.

146 { return values_; }

Member Data Documentation

◆ conf_

int* PhysicsTools::MVAComputer::EvalContext::conf_

Definition at line 151 of file MVAComputer.h.

◆ n_

unsigned int PhysicsTools::MVAComputer::EvalContext::n_

Definition at line 152 of file MVAComputer.h.

◆ values_

double* PhysicsTools::MVAComputer::EvalContext::values_

Definition at line 150 of file MVAComputer.h.

PhysicsTools::MVAComputer::EvalContext::values_
double * values_
Definition: MVAComputer.h:150
PhysicsTools::MVAComputer::EvalContext::conf
int * conf() const
Definition: MVAComputer.h:147
PhysicsTools::MVAComputer::EvalContext::values
double * values() const
Definition: MVAComputer.h:146
PhysicsTools::MVAComputer::EvalContext::n_
unsigned int n_
Definition: MVAComputer.h:152
PhysicsTools::MVAComputer::EvalContext::output
double output(unsigned int output) const
Definition: MVAComputer.h:144
PhysicsTools::MVAComputer::EvalContext::n
unsigned int n() const
Definition: MVAComputer.h:148
ValidateTausOnZEEFastSim_cff.proc
proc
Definition: ValidateTausOnZEEFastSim_cff.py:6
heppy_loop.loop
loop
Definition: heppy_loop.py:28
PhysicsTools::MVAComputer::EvalContext::conf_
int * conf_
Definition: MVAComputer.h:151
hltrates_dqm_sourceclient-live_cfg.offset
offset
Definition: hltrates_dqm_sourceclient-live_cfg.py:82