#include "TGeoManager.h"
#include "TGLViewer.h"
#include "TPad.h"
#include "TApplication.h"
#include <iostream>
#include <stdlib.h>
Go to the source code of this file.
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 32 of file showGeometry.cpp.
36 std::cout <<
"./showGeometry <file> <vislevel: 1 to 7> <checkOverlaps: 0 or 1>" <<
std::endl;
40 bool checkOverlaps =
false;
42 std::cout <<
"Geometry file " << file <<
std::endl;
43 int vislevel = std::atoi(
argv[2]);
44 if(vislevel < 1 || vislevel > 7){
45 std::cout <<
"Set Visibility level to default" <<
std::endl;
48 std::cout <<
"VisLevel set to " << vislevel <<
std::endl;
50 if( (checkOverlaps_str !=
"0" && checkOverlaps_str !=
"1") || checkOverlaps_str ==
"0" )
51 std::cout <<
"Check for Overlaps set to false" <<
std::endl;
53 std::cout <<
"Check for Overlaps set to true" <<
std::endl;
57 TApplication theApp(
"theApp", &argc,
argv) ;
QTextStream & endl(QTextStream &s)
void showGeometry(std::string file, int vislevel, bool checkOverlaps)
Definition at line 9 of file showGeometry.cpp.
11 TGeoManager *
geo =
new TGeoManager();
12 geo->Import(
file.c_str());
16 geo->CheckOverlaps(1
e-5,
"d100000000");
21 geo->SetVisLevel(vislevel);
23 geo->GetTopVolume()->Draw(
"ogl");
25 TGLViewer * v = (TGLViewer *)gPad->GetViewer3D();
26 v->SetStyle(TGLRnrCtx::kOutline);
27 v->SetSmoothPoints(kTRUE);
LArSoft geometry interface.