CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Functions
EcalTrigPrimESProducer.cc File Reference
#include "EcalTrigPrimESProducer.h"
#include <TMath.h>
#include <fstream>
#include <iostream>
#include <sstream>
#include "FWCore/MessageLogger/interface/MessageLogger.h"

Go to the source code of this file.

Classes

struct  GzInputStream
 

Functions

template<typename T >
GzInputStreamoperator>> (GzInputStream &gis, T &var)
 

Function Documentation

template<typename T >
GzInputStream& operator>> ( GzInputStream gis,
T var 
)

Definition at line 46 of file EcalTrigPrimESProducer.cc.

References GzInputStream::iss, and GzInputStream::readLine().

46  {
47  while ((bool)gis && !(gis.iss >> var)) {
48  gis.readLine();
49  }
50  return gis;
51 }
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)
std::istringstream iss