#include "TEventDisplay.hxx"
#include "TEventChangeManager.hxx"
#include <TFile.h>
#include <TROOT.h>
#include <TSystem.h>
#include <TApplication.h>
#include <getopt.h>
#include <iostream>
#include <memory>
Go to the source code of this file.
|
void | usage () |
|
int | main (int argc, char **argv) |
|
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 29 of file eventDisplay.cxx.
32 std::vector<std::string> volumesToShow;
35 int c = getopt(argc,
argv,
"?hgs:S");
44 volumesToShow.push_back(optarg);
48 volumesToShow.clear();
60 if (argc - optind > 0) {
61 fileName =
argv[optind];
64 TFile* eventSource = NULL;
65 if (!fileName.empty()) {
66 eventSource =
new TFile(fileName.c_str());
73 TApplication theApp(
"EventDisplay", 0, 0);
74 theApp.ExitOnException(TApplication::kExit);
79 v != volumesToShow.end(); ++v) {
void SetShowGeometry(bool f)
Set the flag to show (or not show) the geometry.
void SetEventSource(TFile *source)
EDep::TEventChangeManager & EventChange()
Return a reference to the event change manager.
static TEventDisplay & Get(void)
void AddVolumeToShow(const std::string &name)
Add the name of a volume to be drawn.
A singleton class for an event display based on EVE.
void showGeometry(std::string file, int vislevel, bool checkOverlaps)
Definition at line 15 of file eventDisplay.cxx.
16 std::cout <<
"Usage: edep-disp [options] [input-file] " <<
std::endl;
17 std::cout <<
" The edep-sim event display: " <<
std::endl;
18 std::cout <<
" -g Toggle showing the geometry (on by default)." 20 std::cout <<
" -s<name> Show volumes containing <name> (limit this to " 22 <<
" a few, or it's horribly slow." 24 std::cout <<
" -S Clear the volumes that will be shown." 26 std::cout <<
" -h This message." <<
std::endl;
QTextStream & endl(QTextStream &s)