CMS 3D CMS Logo

Functions
ClhepEvaluator.cc File Reference
#include <ext/alloc_traits.h>
#include <iostream>
#include <string>
#include <vector>
#include "CLHEP/Evaluator/Evaluator.h"
#include "DetectorDescription/Core/interface/ClhepEvaluator.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "FWCore/Utilities/interface/Exception.h"

Go to the source code of this file.

Functions

void dd_exchange_value (std::vector< std::string > &vars, std::vector< std::string > &vals, const std::string &var, const std::string &val)
 

Function Documentation

void dd_exchange_value ( std::vector< std::string > &  vars,
std::vector< std::string > &  vals,
const std::string &  var,
const std::string &  val 
)

Definition at line 32 of file ClhepEvaluator.cc.

References KineDebug3::count(), and heppy_batch::val.

Referenced by ClhepEvaluator::set().

36 {
37  std::vector<std::string>::iterator it(vars.begin()), ed(vars.end());
39  for (; it != ed; ++it) {
40  if ( *it == var) {
41  // a potential memory leak below! But CLHEP::Evaluator should take care about it!!
42  vals[count] = val;
43  break;
44  }
45  ++count;
46  }
47 }
uint16_t size_type
vars
Definition: DeepTauId.cc:77