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

"Is this assembly legal?", as a routine run rather than a bespoke investigation. More...

#include "CADSupport/O2OverlapCheck.h"
#include "CADSupport/O2BVHSurfaceSolid.h"
#include "DetectorsBase/O2Tessellated.h"
#include "TGeoBBox.h"
#include "TGeoManager.h"
#include "TGeoMatrix.h"
#include "TGeoNode.h"
#include "TGeoTube.h"
#include "TGeoVolume.h"
#include "TFile.h"
#include <nlohmann/json.hpp>
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <fstream>
#include <iostream>
#include <string>
#include <vector>

Go to the source code of this file.

Functions

int main (int argc, char **argv)
 

Detailed Description

"Is this assembly legal?", as a routine run rather than a bespoke investigation.

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

Built as o2-bench-cadsupport-overlap.

Takes any TGeo geometry file and answers, pair by pair and by name, whether the placed solids compose into a world TGeo and Geant4 will accept – separating the pairs that share a face (legal, and the normal state of an assembly) from the pairs that interpenetrate (illegal, and silently wrong transport). --inject translates one node first, which is the positive control: a check that cannot fail has not passed.

Definition in file runOverlapCensus.cxx.

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 441 of file runOverlapCensus.cxx.