CMS 3D CMS Logo

Namespaces | Functions
EcalPyUtils.cc File Reference
#include "DataFormats/EcalDetId/interface/EBDetId.h"
#include "DataFormats/EcalDetId/interface/EEDetId.h"
#include "CondTools/Ecal/interface/EcalFloatCondObjectContainerXMLTranslator.h"
#include <boost/python.hpp>
#include <boost/python/suite/indexing/vector_indexing_suite.hpp>

Go to the source code of this file.

Namespaces

 ecalpyutils
 

Functions

std::string ecalpyutils::arraystoXML (const std::vector< float > &eb, const std::vector< float > &ee)
 
 BOOST_PYTHON_MODULE (pluginEcalPyUtils)
 
int ecalpyutils::hashedIndex (int ieta, int iphi)
 
int ecalpyutils::hashedIndexEE (int ix, int iy, int iz)
 
std::vector< int > ecalpyutils::hashedIndexToEtaPhi (int hashedindex)
 
std::vector< int > ecalpyutils::hashedIndexToXY (int hashedindex)
 
int ecalpyutils::ism (int ieta, int iphi)
 

Function Documentation

◆ BOOST_PYTHON_MODULE()

BOOST_PYTHON_MODULE ( pluginEcalPyUtils  )

Definition at line 62 of file EcalPyUtils.cc.

62  {
63  // looks like these are already defined somewhere
64 
65  // python access to stl integer vectors
66  // class_< std::vector<int> >("vectorInt")
67  // .def(vector_indexing_suite<std::vector<int> >())
68  // ;
69 
70  // class_< std::vector<float> >("vectorFloat")
71  // .def(vector_indexing_suite<std::vector<float> >())
72  // ;
73 
74  def("hashedIndexToEtaPhi", &ecalpyutils::hashedIndexToEtaPhi);
75  def("hashedIndexToXY", &ecalpyutils::hashedIndexToXY);
76  def("hashedIndex", &ecalpyutils::hashedIndex);
77  def("hashedIndexEE", &ecalpyutils::hashedIndexEE);
78  def("ism", &ecalpyutils::ism);
81  def("arraystoXML", &ecalpyutils::arraystoXML);
82 }

References ecalpyutils::arraystoXML(), EcalFloatCondObjectContainerXMLTranslator::barrelfromXML(), spu::def(), EcalFloatCondObjectContainerXMLTranslator::endcapfromXML(), ecalpyutils::hashedIndex(), ecalpyutils::hashedIndexEE(), ecalpyutils::hashedIndexToEtaPhi(), ecalpyutils::hashedIndexToXY(), and ecalpyutils::ism().

EcalFloatCondObjectContainerXMLTranslator::barrelfromXML
static std::vector< float > barrelfromXML(const std::string &filename)
Definition: EcalFloatCondObjectContainerXMLTranslator.cc:140
ecalpyutils::hashedIndexEE
int hashedIndexEE(int ix, int iy, int iz)
Definition: EcalPyUtils.cc:43
ecalpyutils::hashedIndexToXY
std::vector< int > hashedIndexToXY(int hashedindex)
Definition: EcalPyUtils.cc:27
EcalFloatCondObjectContainerXMLTranslator::endcapfromXML
static std::vector< float > endcapfromXML(const std::string &filename)
Definition: EcalFloatCondObjectContainerXMLTranslator.cc:148
ecalpyutils::arraystoXML
std::string arraystoXML(const std::vector< float > &eb, const std::vector< float > &ee)
Definition: EcalPyUtils.cc:56
ecalpyutils::ism
int ism(int ieta, int iphi)
Definition: EcalPyUtils.cc:51
spu::def
int def(FILE *, FILE *, int)
Definition: SherpackUtilities.cc:14
ecalpyutils::hashedIndexToEtaPhi
std::vector< int > hashedIndexToEtaPhi(int hashedindex)
Definition: EcalPyUtils.cc:18
ecalpyutils::hashedIndex
int hashedIndex(int ieta, int iphi)
Definition: EcalPyUtils.cc:38