CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 26 of file ClhepEvaluator.cc.

References submitPVResolutionJobs::count, and hgcalPerformanceValidation::val.

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
list var
if using global norm cols_to_minmax = [&#39;t_delta&#39;, &#39;t_hmaxNearP&#39;,&#39;t_emaxNearP&#39;, &#39;t_hAnnular&#39;, &#39;t_eAnnular&#39;,&#39;t_pt&#39;,&#39;t_nVtx&#39;,&#39;t_ieta&#39;,&#39;t_eHcal10&#39;, &#39;t_eHcal30&#39;,&#39;t_rhoh&#39;,&#39;t_eHcal&#39;] df[cols_to_minmax] = df[cols_to_minmax].apply(lambda x: (x - x.min()) / (x.max() - x.min()) if (x.max() - x.min() &gt; 0) else 1.0/200.0)
vars
Definition: DeepTauId.cc:164