CMS 3D CMS Logo

Classes | Namespaces | Functions | Variables

/data/refman/pasoursint/CMSSW_4_4_5_patch3/src/Validation/RecoJets/interface/CompHist.h File Reference

#include <memory>
#include <string>
#include <vector>
#include <sstream>
#include <fstream>
#include <iostream>
#include "Validation/RecoJets/interface/ConfigFile.h"
#include "Validation/RecoJets/interface/RootSystem.h"
#include "Validation/RecoJets/interface/RootHistograms.h"

Go to the source code of this file.

Classes

class  CompHist

Namespaces

namespace  HistStyle

Functions

template<class T >
void readVector (std::string s, std::vector< T > &vec)

Variables

static const int HistStyle::Filled = 2
static const int HistStyle::Line = 0
static const int HistStyle::Marker = 1

Function Documentation

template<class T >
void readVector ( std::string  s,
std::vector< T > &  vec 
)

Definition at line 23 of file CompHist.h.

Referenced by FitHist::configBlockFit(), CompHist::configBlockHist(), CompHist::configBlockIO(), CalibClosureTest::configBlockSpecific(), and ManipHist::configBlockSum().

{
  std::stringstream stream( s );
  T buffer;
  while (!stream.eof()) {
    stream >> buffer;
    if(!stream.str().empty()){
      vec.push_back( buffer );
    }
  }
}