LDMX Software
|
Drawing methods for event objects. More...
#include <Objects.h>
Public Member Functions | |
Objects () | |
Constructor Defines new necessary objects. | |
~Objects () | |
Destructor Deletes objects that have been constructed. | |
void | Initialize () |
Defines new Eve Element Lists for the event objects. | |
template<typename T > | |
void | draw (T o) |
Not implemented. | |
void | draw (std::vector< ldmx::EcalHit > hits) |
Drawing EcalHit. | |
void | draw (std::vector< ldmx::HcalHit > hits) |
Drawing HcalHit. | |
void | draw (std::vector< ldmx::EcalCluster > clusters) |
Drawing EcalCluster. | |
void | draw (std::vector< ldmx::SimTrackerHit > hits) |
Drawing SimTrackerHit. | |
void | draw (std::vector< ldmx::SimCalorimeterHit > hits) |
Draws the hits in the input collection assuming that they are SimTrackerHits that hit the recoil tracker. | |
void | draw (std::map< int, ldmx::SimParticle > particles) |
Draws the sim particles. | |
void | SetSimThresh (double simThresh) |
Sets the energy threshold for a sim particle to be drawn. | |
void | ColorClusters () |
Colors ecal clusters according to colors_. | |
TEveElement * | getSimObjects () |
Get the objects from the sim level Eve Element Used to attach these Eve Elements to the Eve Manager. | |
TEveElement * | getRecObjects () |
Get the objects from the reconstruction level Eve Element Used to attach these Eve Elements to the Eve Manager. | |
Private Attributes | |
TEveElement * | sim_objects_ |
Eve Element containing all hits. | |
TEveElement * | rec_objects_ |
Eve Element containing reco objects that aren't hits. | |
double | simThresh_ = 0 |
threshold for sim particles to be drawn | |
std::vector< Color_t > | colors_ |
list of colors to use with ecal clusters | |
TRandom | r_ |
random number generator for colors if we go over the ones in | |
Drawing methods for event objects.
Both ECAL and HCAL hits are colored by their relative energy/pe deposits.
eventdisplay::Objects::Objects | ( | ) |
Constructor Defines new necessary objects.
Definition at line 5 of file Objects.cxx.
References Initialize().
|
inline |
Destructor Deletes objects that have been constructed.
Definition at line 47 of file Objects.h.
References rec_objects_, and sim_objects_.
void eventdisplay::Objects::ColorClusters | ( | ) |
Colors ecal clusters according to colors_.
Definition at line 32 of file Objects.cxx.
References colors_, r_, and rec_objects_.
Referenced by eventdisplay::Display::ColorClusters().
void eventdisplay::Objects::draw | ( | std::map< int, ldmx::SimParticle > | particles | ) |
Draws the sim particles.
Definition at line 376 of file Objects.cxx.
References sim_objects_, and simThresh_.
void eventdisplay::Objects::draw | ( | std::vector< ldmx::EcalCluster > | clusters | ) |
Drawing EcalCluster.
Definition at line 144 of file Objects.cxx.
References eventdisplay::EveShapeDrawer::drawHexPrism(), eventdisplay::DetectorGeometry::getInstance(), eventdisplay::EveShapeDrawer::getInstance(), and rec_objects_.
void eventdisplay::Objects::draw | ( | std::vector< ldmx::EcalHit > | hits | ) |
Drawing EcalHit.
Definition at line 66 of file Objects.cxx.
References eventdisplay::EveShapeDrawer::drawHexPrism(), eventdisplay::DetectorGeometry::getInstance(), eventdisplay::EveShapeDrawer::getInstance(), and rec_objects_.
void eventdisplay::Objects::draw | ( | std::vector< ldmx::HcalHit > | hits | ) |
Drawing HcalHit.
Definition at line 101 of file Objects.cxx.
References eventdisplay::EveShapeDrawer::drawRectPrism(), eventdisplay::DetectorGeometry::getBoundingBox(), eventdisplay::DetectorGeometry::getInstance(), eventdisplay::EveShapeDrawer::getInstance(), and rec_objects_.
void eventdisplay::Objects::draw | ( | std::vector< ldmx::SimCalorimeterHit > | hits | ) |
Draws the hits in the input collection assuming that they are SimTrackerHits that hit the recoil tracker.
Definition at line 291 of file Objects.cxx.
References eventdisplay::EveShapeDrawer::drawHexPrism(), eventdisplay::EveShapeDrawer::drawRectPrism(), eventdisplay::EveShapeDrawer::getInstance(), and sim_objects_.
void eventdisplay::Objects::draw | ( | std::vector< ldmx::SimTrackerHit > | hits | ) |
Drawing SimTrackerHit.
Definition at line 187 of file Objects.cxx.
References eventdisplay::EveShapeDrawer::drawRectPrism(), eventdisplay::DetectorGeometry::getInstance(), eventdisplay::EveShapeDrawer::getInstance(), sim_objects_, and simThresh_.
|
inline |
Not implemented.
Definition at line 61 of file Objects.h.
Referenced by eventdisplay::Display::draw().
|
inline |
Get the objects from the reconstruction level Eve Element Used to attach these Eve Elements to the Eve Manager.
Definition at line 118 of file Objects.h.
References rec_objects_.
Referenced by eventdisplay::Display::NextEvent().
|
inline |
Get the objects from the sim level Eve Element Used to attach these Eve Elements to the Eve Manager.
Definition at line 112 of file Objects.h.
References sim_objects_.
Referenced by eventdisplay::Display::NextEvent().
void eventdisplay::Objects::Initialize | ( | ) |
Defines new Eve Element Lists for the event objects.
Definition at line 7 of file Objects.cxx.
References rec_objects_, and sim_objects_.
Referenced by eventdisplay::Display::NextEvent(), and Objects().
void eventdisplay::Objects::SetSimThresh | ( | double | simThresh | ) |
Sets the energy threshold for a sim particle to be drawn.
simThresh | minimum energy to be included |
Definition at line 13 of file Objects.cxx.
References ldmx::SimTrackerHit::getMomentum(), sim_objects_, and simThresh_.
Referenced by eventdisplay::Display::SetSimThresh().
|
private |
list of colors to use with ecal clusters
Definition at line 130 of file Objects.h.
Referenced by ColorClusters().
|
private |
random number generator for colors if we go over the ones in
Definition at line 134 of file Objects.h.
Referenced by ColorClusters().
|
private |
Eve Element containing reco objects that aren't hits.
Definition at line 124 of file Objects.h.
Referenced by ColorClusters(), draw(), draw(), draw(), getRecObjects(), Initialize(), and ~Objects().
|
private |
Eve Element containing all hits.
Definition at line 122 of file Objects.h.
Referenced by draw(), draw(), draw(), getSimObjects(), Initialize(), SetSimThresh(), and ~Objects().
|
private |
threshold for sim particles to be drawn
Definition at line 127 of file Objects.h.
Referenced by draw(), draw(), and SetSimThresh().