LDMX Software
|
Public Member Functions | |
Display (TEveManager *manager, bool verbose) | |
Constructor Builds window frame and and control panel. | |
virtual | ~Display () |
Destructor Deletes hanging pointers from constructor and closes the TFile. | |
bool | SetFile (const TString file) |
Opens input file and attempts to obtain the necessary information from it. | |
void | NextEvent () |
Goes forward one event unless the current event number equals the maximum event number. | |
void | GetECALRecHitsCollInput () |
Gets ecalRecHits collection name from text box. | |
void | GetClustersCollInput () |
Gets clusters collection name from text box. | |
void | GetTrackerHitsCollInput () |
Gets trackerHits collection name from text box. | |
void | GetHCALRecHitsCollInput () |
Gets hcalRecHits collection name from text box. | |
void | GetEcalSimParticlesCollInput () |
Gets ECAL Sim Particles Branch name from text box. | |
bool | SetSimThresh () |
Sets threshold energy from a SimParticle to be drawn from text box. | |
void | ColorClusters () |
Colors cluster objects and redraws. | |
Private Member Functions | |
std::string | getText (TGTextEntry *box) const |
Get the text from the input text box. | |
template<typename EventObjectType > | |
void | draw (const std::string &name) |
Templated draw method. | |
ClassDef (Display, 2) | |
Private Attributes | |
bool | verbose_ |
framework::Event | the_event_ {"display"} |
Event bus for reading from input file. | |
std::unique_ptr< framework::EventFile > | the_file_ |
Handle to input file we will be reading. | |
std::string | clustersCollName_ = "ecalClusters" |
name of ecal clusters collection in event tree | |
std::string | ecalRecHitsCollName_ = "EcalRecHits" |
name of ecalRecHits collection in event tree | |
std::string | hcalRecHitsCollName_ = "HcalRecHits" |
name of hcalRecHits collection in event tree | |
std::string | trackerHitsCollName_ = "RecoilSimHits" |
name of recoil hitss collection in event tree | |
std::string | ecalSimParticlesCollName_ = "EcalScoringPlaneHits" |
name of ecal sim particles collection in | |
EveDetectorGeometry * | theDetector_ {nullptr} |
drawing methods for the detector geometry | |
Objects | objects_ |
drawing methods for event objects | |
TGTextEntry * | textBoxClustersCollName_ |
TGTextEntry * | textBoxSimThresh_ |
TGTextEntry * | textBoxEcalRecHitsCollName_ |
TGTextEntry * | textBoxHcalRecHitsCollName_ |
TGTextEntry * | textBoxTrackerHitsCollName_ |
TGTextEntry * | textBoxEcalScorePlaneBranch_ |
TEveManager * | manager_ {nullptr} |
event display manager | |
eventdisplay::Display::Display | ( | TEveManager * | manager, |
bool | verbose | ||
) |
Constructor Builds window frame and and control panel.
Imports geometry from EveDetectorGeometry.
Definition at line 13 of file Display.cxx.
References eventdisplay::EveDetectorGeometry::getECAL(), eventdisplay::EveDetectorGeometry::getHCAL(), eventdisplay::EveDetectorGeometry::getRecoilTracker(), manager_, and theDetector_.
|
inlinevirtual |
Destructor Deletes hanging pointers from constructor and closes the TFile.
Definition at line 45 of file Display.h.
References manager_, the_file_, and theDetector_.
void eventdisplay::Display::ColorClusters | ( | ) |
Colors cluster objects and redraws.
Definition at line 279 of file Display.cxx.
References eventdisplay::Objects::ColorClusters(), manager_, and objects_.
|
inlineprivate |
Templated draw method.
Definition at line 127 of file Display.h.
References eventdisplay::Objects::draw(), framework::exception::Exception::function(), framework::Event::getObject(), framework::exception::Exception::line(), framework::exception::Exception::message(), framework::exception::Exception::module(), framework::exception::Exception::name(), objects_, and the_event_.
void eventdisplay::Display::GetClustersCollInput | ( | ) |
Gets clusters collection name from text box.
Definition at line 252 of file Display.cxx.
References clustersCollName_, and getText().
void eventdisplay::Display::GetECALRecHitsCollInput | ( | ) |
Gets ecalRecHits collection name from text box.
Definition at line 240 of file Display.cxx.
References ecalRecHitsCollName_, and getText().
void eventdisplay::Display::GetEcalSimParticlesCollInput | ( | ) |
Gets ECAL Sim Particles Branch name from text box.
Definition at line 256 of file Display.cxx.
References ecalSimParticlesCollName_, and getText().
void eventdisplay::Display::GetHCALRecHitsCollInput | ( | ) |
Gets hcalRecHits collection name from text box.
Definition at line 244 of file Display.cxx.
References getText(), and hcalRecHitsCollName_.
|
inlineprivate |
Get the text from the input text box.
Definition at line 121 of file Display.h.
Referenced by GetClustersCollInput(), GetECALRecHitsCollInput(), GetEcalSimParticlesCollInput(), GetHCALRecHitsCollInput(), and GetTrackerHitsCollInput().
void eventdisplay::Display::GetTrackerHitsCollInput | ( | ) |
Gets trackerHits collection name from text box.
Definition at line 248 of file Display.cxx.
References getText(), and trackerHitsCollName_.
void eventdisplay::Display::NextEvent | ( | ) |
Goes forward one event unless the current event number equals the maximum event number.
Definition at line 205 of file Display.cxx.
References ecalSimParticlesCollName_, eventdisplay::Objects::getRecObjects(), eventdisplay::Objects::getSimObjects(), eventdisplay::Objects::Initialize(), manager_, objects_, the_file_, and trackerHitsCollName_.
bool eventdisplay::Display::SetFile | ( | const TString | file | ) |
Opens input file and attempts to obtain the necessary information from it.
Attempts to import the event objects from the event tree using the 'Get...' methods below.
file | name of file with events |
Definition at line 182 of file Display.cxx.
References framework::config::Parameters::addParameter(), framework::exception::Exception::function(), framework::exception::Exception::line(), framework::exception::Exception::message(), framework::exception::Exception::module(), framework::exception::Exception::name(), framework::exception::Exception::stackTrace(), the_event_, and the_file_.
Referenced by main().
bool eventdisplay::Display::SetSimThresh | ( | ) |
Sets threshold energy from a SimParticle to be drawn from text box.
Re-draws the display.
Definition at line 260 of file Display.cxx.
References manager_, objects_, and eventdisplay::Objects::SetSimThresh().
|
private |
name of ecal clusters collection in event tree
Definition at line 153 of file Display.h.
Referenced by GetClustersCollInput().
|
private |
name of ecalRecHits collection in event tree
Definition at line 155 of file Display.h.
Referenced by GetECALRecHitsCollInput().
|
private |
name of ecal sim particles collection in
Definition at line 161 of file Display.h.
Referenced by GetEcalSimParticlesCollInput(), and NextEvent().
|
private |
name of hcalRecHits collection in event tree
Definition at line 157 of file Display.h.
Referenced by GetHCALRecHitsCollInput().
|
private |
event display manager
Definition at line 177 of file Display.h.
Referenced by ColorClusters(), Display(), NextEvent(), SetSimThresh(), and ~Display().
|
private |
drawing methods for event objects
Definition at line 167 of file Display.h.
Referenced by ColorClusters(), draw(), NextEvent(), and SetSimThresh().
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Handle to input file we will be reading.
Definition at line 150 of file Display.h.
Referenced by NextEvent(), SetFile(), and ~Display().
|
private |
drawing methods for the detector geometry
Definition at line 164 of file Display.h.
Referenced by Display(), and ~Display().
|
private |
name of recoil hitss collection in event tree
Definition at line 159 of file Display.h.
Referenced by GetTrackerHitsCollInput(), and NextEvent().