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

◆ dd_exchange_value()

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 26 of file ClhepEvaluator.cc.

References submitPVResolutionJobs::count, heppy_batch::val, and trigObjTnPSource_cfi::var.

Referenced by ClhepEvaluator::set().

29  {
30  std::vector<std::string>::iterator it(vars.begin()), ed(vars.end());
32  for (; it != ed; ++it) {
33  if (*it == var) {
34  // a potential memory leak below! But CLHEP::Evaluator should take care about it!!
35  vals[count] = val;
36  break;
37  }
38  ++count;
39  }
40 }
uint16_t size_type
vars
Definition: DeepTauId.cc:117