PXL
Python PXL manual

Introduction

To use PyPXL in python you will need the following import statements:

from pxl.hep import *
from pxl.base import *
from pxl.io import *

The entire PXL functionality is available in PyPXL.
You can for example create a pxl::Particle in an pxl::EventView using:

eventview1 = EventView()
particle1 = eventview1.createParticle()

In some cases the syntax of PyPXL varies from PXL as indicated in the PyPXL Syntax.

PyPXL Syntax

PXL –> PyPXL

= –> set
++ –> increase
<< –> insert

–> extract


in –> _in
clone –> copy

any.print() –> print any

vector<AnyType> –> AnyTypeVector

dynamic_cast<pxl::AnySerializable *>(pxl::Serializable *) –> toAnySerializable(Serializable)

pxl::Object::, pxl::BasicContainer::, pxl::Event::, pxl::InformationChunk::
setUserRecord<std::string> –> setUserRecord
findUserRecord<std::string> –> findUserRecord
checkUserRecord –> checkUserRecord
checkUserRecord<std::string> –> not implemented

pxl::BasicContainer::, pxl::Event::, pxl::ObjectManager::, pxl::EventView::
create<pxl::Particle> –> createParticle (for Particle, EventView, ...)
createIndexed<pxl::Particle> –> createIndexedParticle (for Particle, EventView, ...)
findObject<pxl::Particle> –> findObject
findCopyOf<pxl::Particle> –> not implemented

pxl::BasicContainer::, pxl::Event::, pxl::ObjectManager::, pxl::EventView::, pxl::Relations::
getObjectsOfType<pxl::Particle>(std::vector<pxl::Particle*>) –> list getObjectsOfType(Particle)/getParticles (for Particle, EventView, ...)

pxl::SoftRelations::
getSoftRelativesOfType<pxl::Particle>(std::vector<pxl::Particle*>, ...) –> list getSoftRelativesOfType(Particle, ...) (for Particle, EventView, ...)

pxl::Variant::
init<std::string> –> initString (for std::string, bool, char, double, float, int, long, short, uchar, uint, ushort, prt)
get<std::string> –> getString (for std::string, bool, char, double, float, int, long, short, uchar, uint, ushort, prt)
set<std::string> –> setString (for std::string, bool, char, double, float, int, long, short, uchar, uint, ushort, prt)