ATLAS Offline Software
Namespaces | Functions
PyStore.cxx File Reference
#include "PerfMonEvent/PyStore.h"
#include <iostream>
Include dependency graph for PyStore.cxx:

Go to the source code of this file.

Namespaces

 Py
 

Functions

std::string Py::repr (PyObject *o)
 
void instantiates ()
 

Function Documentation

◆ instantiates()

void instantiates ( )

Definition at line 212 of file PyStore.cxx.

213 {
214  Py::Store s( 10 );
215  s.book<bool>( "f", "b" );
216  s.fill<bool>( "f", "b", true );
217 
218  s.book<double>( "f", "d" );
219  s.fill<double>( "f", "d", 1.2 );
220 
221  s.book<float>( "f", "f" );
222  s.fill<float>( "f", "f", 1.2 );
223 
224  s.book<int>( "f", "i" );
225  s.fill<int>( "f", "i", 1 );
226 
227  s.book<short int>( "f", "h" );
228  s.fill<short int>( "f", "h", 1 );
229 
230  s.book<unsigned int>( "f", "I" );
231  s.fill<unsigned int>( "f", "I", 10 );
232 
233  s.book<long int>( "f", "l" );
234  s.fill<long int>( "f", "l", 100 );
235 
236  s.book<unsigned long int>( "f", "k" );
237  s.fill<unsigned long int>( "f", "k", 1000 );
238 
239  {
240  std::vector<double> data(10);
241  s.book<std::vector<double> >( "f", "vd" );
242  s.fill<std::vector<double> >( "f", "vd", data );
243  }
244 
245  {
246  std::list<double> data(10);
247  s.book<std::list<double> >( "f", "ld" );
248  s.fill<std::list<double> >( "f", "ld", data );
249  }
250 
251  {
252  std::pair<double,float> data; data.first = 10.; data.second = 20.;
253  s.book<std::pair<double,float> >( "f", "p" );
254  s.fill<std::pair<double,float> >( "f", "p", data );
255  }
256 
257 
258 }
data
char data[hepevt_bytes_allocation_ATLAS]
Definition: HepEvt.cxx:11
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
Py::Store
Definition: PyStore.h:37