CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CentralityTablePyWrapper.cc
Go to the documentation of this file.
1 
5 
6 #include <string>
7 #include <sstream>
8 #include <iostream>
9 
10 
11 namespace cond {
12 
13  template<>
16 
17  CentralityTable const & table = object();
18 
19  std::stringstream ss;
20 
21  ss<<"Bin \t";
22  ss<<"Lower Boundary\t";
23  ss<<"Npart \t";
24  ss<<"sigma \t";
25  ss<<"Ncoll \t";
26  ss<<"sigma \t";
27  ss<<"B \t";
28  ss<<"sigma \t"<<std::endl;
29  ss<<"__________________________________________________"<<std::endl;
30 
31  for(unsigned int j=0; j<table.m_table.size(); j++){
32 
33  const CentralityTable::CBin& thisBin = table.m_table[j];
34  ss<<j<<" \t";
35  ss<<thisBin.bin_edge <<"\t";
36  ss<<thisBin.n_part.mean<<" \t";
37  ss<<thisBin.n_part.var<<" \t";
38  ss<<thisBin.n_coll.mean<<" \t";
39  ss<<thisBin.n_coll.var<<" \t";
40  ss<<thisBin.b.mean<<" \t";
41  ss<<thisBin.b.var<<" \t"<<std::endl;
42  ss<<"__________________________________________________"<<std::endl;
43 
44  }
45 
46  return ss.str();
47  }
48 
49 }
50 
52 
std::vector< CBin > m_table
#define PYTHON_WRAPPER(_class, _name)
std::string summary() const
int j
Definition: DBlmapReader.cc:9
#define table(NAME)
Definition: DbCore.h:49
list object
Definition: dbtoconf.py:77