6#ifndef EVENTDISPLAY_EVENTDISPLAY_H_
7#define EVENTDISPLAY_EVENTDISPLAY_H_
14#include "Framework/EventFile.h"
15#include "TBranchElement.h"
16#include "TEveBrowser.h"
17#include "TEveElement.h"
18#include "TEveEventManager.h"
19#include "TEveManager.h"
20#include "TEveViewer.h"
25#include "TGTextEntry.h"
30namespace eventdisplay {
39 Display(TEveManager* manager,
bool verbose);
51 delete textBoxClustersCollName_;
52 delete textBoxSimThresh_;
53 delete textBoxEcalRecHitsCollName_;
54 delete textBoxHcalRecHitsCollName_;
55 delete textBoxTrackerHitsCollName_;
56 delete textBoxEcalScorePlaneBranch_;
72 bool SetFile(
const TString file);
121 std::string
getText(TGTextEntry* box)
const {
return box->GetText(); }
126 template <
typename EventObjectType>
127 void draw(
const std::string& name) {
132 std::cout <<
"[ Display ] : Loaded '" << name
133 <<
"' into memory as a EVE object." << std::endl;
136 std::cerr <<
"[ Display ] : Unable to draw an event object." << std::endl;
137 std::cerr <<
"[" << e.
name() <<
"] : " << e.
message() <<
"\n"
138 <<
" at " << e.
module() <<
":" << e.
line() <<
" in "
169 TGTextEntry* textBoxClustersCollName_;
170 TGTextEntry* textBoxSimThresh_;
171 TGTextEntry* textBoxEcalRecHitsCollName_;
172 TGTextEntry* textBoxHcalRecHitsCollName_;
173 TGTextEntry* textBoxTrackerHitsCollName_;
174 TGTextEntry* textBoxEcalScorePlaneBranch_;
Header file for EveDetectorGeometry Class.
Class implementing an event buffer system for storing event data.
TEveManager * manager_
event display manager
std::unique_ptr< framework::EventFile > the_file_
Handle to input file we will be reading.
std::string clustersCollName_
name of ecal clusters collection in event tree
std::string ecalSimParticlesCollName_
name of ecal sim particles collection in
std::string ecalRecHitsCollName_
name of ecalRecHits collection in event tree
virtual ~Display()
Destructor Deletes hanging pointers from constructor and closes the TFile.
Objects objects_
drawing methods for event objects
framework::Event the_event_
Event bus for reading from input file.
bool SetFile(const TString file)
Opens input file and attempts to obtain the necessary information from it.
void ColorClusters()
Colors cluster objects and redraws.
bool SetSimThresh()
Sets threshold energy from a SimParticle to be drawn from text box.
void NextEvent()
Goes forward one event unless the current event number equals the maximum event number.
std::string trackerHitsCollName_
name of recoil hitss collection in event tree
void draw(const std::string &name)
Templated draw method.
std::string getText(TGTextEntry *box) const
Get the text from the input text box.
void GetECALRecHitsCollInput()
Gets ecalRecHits collection name from text box.
void GetHCALRecHitsCollInput()
Gets hcalRecHits collection name from text box.
EveDetectorGeometry * theDetector_
drawing methods for the detector geometry
void GetEcalSimParticlesCollInput()
Gets ECAL Sim Particles Branch name from text box.
void GetTrackerHitsCollInput()
Gets trackerHits collection name from text box.
std::string hcalRecHitsCollName_
name of hcalRecHits collection in event tree
void GetClustersCollInput()
Gets clusters collection name from text box.
Class that constructs the detector components for the event display.
Drawing methods for event objects.
void draw(T o)
Not implemented.
Implements an event buffer system for storing event data.
const T & getObject(const std::string &collectionName, const std::string &passName="") const
Get an general object from the event bus.
Standard base exception class with some useful output information.
const std::string & function() const
Get the function name where the exception occurred.
int line() const
Get the source line number where the exception occurred.
const std::string & message() const
Get the message of the exception.
const std::string & name() const
Get the name of the exception.
const std::string & module() const
Get the source filename where the exception occurred.