Project
Loading...
Searching...
No Matches
O2SurfaceSolidIO.cxx File Reference

Readers of the surface, facet and flat-CSG sidecars, in sync with the writers in O2_CADtoTGeo.py and cadsupport/flat.py. More...

#include "CADSupport/O2SurfaceSolidIO.h"
#include "CADSupport/O2BVHSurfaceSolid.h"
#include "DetectorsBase/O2Tessellated.h"
#include "CADSupport/O2FlatCSG.h"
#include "BoundedSurface.h"
#include <TError.h>
#include <cmath>
#include <cstdint>
#include <cstring>
#include <fstream>
#include <vector>

Go to the source code of this file.

Namespaces

namespace  o2
 a couple of static helper functions to create timestamp values for CCDB queries or override obsolete objects
 
namespace  o2::cad
 

Functions

bool o2::cad::LoadSurfaceSolid (const std::string &file, O2BVHSurfaceSolid &solid)
 
bool o2::cad::LoadFacetSolid (const std::string &file, o2::base::O2Tessellated &solid)
 
bool o2::cad::LoadFlatCSG (const std::string &file, O2FlatCSG &solid)
 Load a flat-CSG sidecar (flatcsg_*.bin, version 1) into solid; call CloseShape() after. False on an I/O or format error.
 
bool o2::cad::WriteFlatCSG (const std::string &file, const O2FlatCSG &solid)
 

Detailed Description

Readers of the surface, facet and flat-CSG sidecars, in sync with the writers in O2_CADtoTGeo.py and cadsupport/flat.py.

Author
Sandro Wenzel sandr.nosp@m.o.we.nosp@m.nzel@.nosp@m.cern.nosp@m..ch
Since
2026-07

Definition in file O2SurfaceSolidIO.cxx.

Variable Documentation

◆ curveType

uint32_t curveType = 0

Definition at line 107 of file O2SurfaceSolidIO.cxx.

◆ edges

std::vector<SidecarEdge> edges

Definition at line 113 of file O2SurfaceSolidIO.cxx.

◆ moreThanOneOuter

const char* moreThanOneOuter

Definition at line 283 of file O2SurfaceSolidIO.cxx.

◆ noOuter

const char* noOuter

Definition at line 284 of file O2SurfaceSolidIO.cxx.

◆ params

const double* params = nullptr

Definition at line 108 of file O2SurfaceSolidIO.cxx.

◆ role

uint32_t role = 0

Definition at line 112 of file O2SurfaceSolidIO.cxx.

◆ surfaceType

uint32_t surfaceType = 0

Definition at line 196 of file O2SurfaceSolidIO.cxx.