LArSoft
v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
|
#include "SimulationDrawer.h"
Public Member Functions | |
SimulationDrawer () | |
~SimulationDrawer () | |
void | MCTruthShortText (const art::Event &evt, evdb::View2D *view) |
void | MCTruthLongText (const art::Event &evt, evdb::View2D *view) |
void | MCTruthVectors2D (const art::Event &evt, evdb::View2D *view, unsigned int plane) |
void | MCTruth3D (const art::Event &evt, evdb::View3D *view) |
void | MCTruthOrtho (const art::Event &evt, evd::OrthoProj_t proj, double msize, evdb::View2D *view) |
void | HiLite (int trkId, bool hlt=true) |
Public Attributes | |
double | minx |
double | maxx |
double | miny |
double | maxy |
double | minz |
double | maxz |
Private Member Functions | |
int | GetMCTruth (const art::Event &evt, std::vector< const simb::MCTruth * > &mctruth) |
int | GetParticle (const art::Event &evt, std::vector< const simb::MCParticle * > &plist) |
Private Attributes | |
std::map< int, bool > | fHighlite |
Definition at line 23 of file SimulationDrawer.h.
evd::SimulationDrawer::SimulationDrawer | ( | ) |
Definition at line 60 of file SimulationDrawer.cxx.
References geo::TPCGeo::ActiveHalfHeight(), geo::TPCGeo::ActiveHalfWidth(), geo::TPCGeo::ActiveLength(), geo::GeometryCore::Cryostat(), geo::TPCGeo::GetActiveVolumeCenter(), geo::TPCGeo::GetCenter(), geo::TPCGeo::HalfHeight(), geo::TPCGeo::HalfWidth(), geo::TPCGeo::Length(), maxx, maxy, maxz, minx, miny, minz, geo::GeometryCore::Ncryostats(), geo::CryostatGeo::NTPC(), and geo::CryostatGeo::TPC().
evd::SimulationDrawer::~SimulationDrawer | ( | ) |
Definition at line 102 of file SimulationDrawer.cxx.
|
private |
Definition at line 1023 of file SimulationDrawer.cxx.
References e, art::DataViewImpl::getManyByType(), and art::Event::isRealData().
Referenced by MCTruth3D(), MCTruthLongText(), MCTruthShortText(), and MCTruthVectors2D().
|
private |
Definition at line 993 of file SimulationDrawer.cxx.
References e, evd::SimulationDrawingOptions::fG4ModuleLabel, art::DataViewImpl::getView(), art::Event::isRealData(), and art::View< T >::vals().
Referenced by MCTruth3D(), and MCTruthOrtho().
void evd::SimulationDrawer::HiLite | ( | int | trkId, |
bool | hlt = true |
||
) |
void evd::SimulationDrawer::MCTruth3D | ( | const art::Event & | evt, |
evdb::View3D * | view | ||
) |
Definition at line 349 of file SimulationDrawer.cxx.
References evdb::View3D::AddPolyLine3D(), evdb::View3D::AddPolyMarker3D(), sim::LArVoxelList::begin(), evd::Style::ColorFromPDG(), detinfo::DetectorProperties::ConvertTicksToX(), geo::CryostatID::Cryostat, e, simb::MCTrajectory::empty(), sim::LArVoxelList::end(), sim::LArVoxelData::Energy(), evd::SimulationDrawingOptions::fG4ModuleLabel, geo::CryostatGeo::FindTPCAtPosition(), evd::SimulationDrawingOptions::fMinEnergyDeposition, evd::SimulationDrawingOptions::fShowMCTruthColors, evd::SimulationDrawingOptions::fShowMCTruthFullSize, evd::SimulationDrawingOptions::fShowMCTruthTrajectories, evd::SimulationDrawingOptions::fShowScintillationLight, sim::SimListUtils::GetLArVoxelList(), GetMCTruth(), GetParticle(), geo::CryostatGeo::ID(), art::Event::isRealData(), maxx, maxy, maxz, min, minx, simb::MCParticle::Mother(), sim::LArVoxelData::NumberParticles(), detinfo::DetectorProperties::NumberTimeSamples(), simb::MCParticle::PdgCode(), simb::MCParticle::Px(), simb::MCParticle::Py(), simb::MCParticle::Pz(), simb::MCTrajectory::size(), sim::LArVoxelList::size(), simb::MCParticle::StatusCode(), simb::MCParticle::T(), sim::LArVoxelData::TrackID(), sim::LArVoxelData::VoxelID(), simb::MCParticle::Vx(), simb::MCParticle::Vy(), simb::MCParticle::Vz(), simb::MCTrajectory::X(), sim::LArVoxelID::X(), simb::MCTrajectory::Y(), sim::LArVoxelID::Y(), simb::MCTrajectory::Z(), and sim::LArVoxelID::Z().
Referenced by evd::Display3DPad::Draw().
void evd::SimulationDrawer::MCTruthLongText | ( | const art::Event & | evt, |
evdb::View2D * | view | ||
) |
Definition at line 170 of file SimulationDrawer.cxx.
References simb::MCParticle::E(), evd::SimulationDrawingOptions::fShowMCTruthText, GetMCTruth(), art::Event::isRealData(), evd::Style::LatexName(), simb::MCParticle::Mass(), simb::MCParticle::Mother(), simb::MCParticle::P(), simb::MCParticle::PdgCode(), simb::MCParticle::Process(), art::right(), simb::MCParticle::StatusCode(), and simb::MCParticle::TrackId().
Referenced by evd::MCBriefPad::Draw().
void evd::SimulationDrawer::MCTruthOrtho | ( | const art::Event & | evt, |
evd::OrthoProj_t | proj, | ||
double | msize, | ||
evdb::View2D * | view | ||
) |
Definition at line 713 of file SimulationDrawer.cxx.
References evdb::View2D::AddPolyLine(), evdb::View2D::AddPolyMarker(), sim::LArVoxelList::begin(), evd::Style::ColorFromPDG(), simb::MCParticle::E(), simb::MCTrajectory::empty(), sim::LArVoxelList::end(), sim::LArVoxelData::Energy(), evd::SimulationDrawingOptions::fG4ModuleLabel, geo::GeometryCore::FindCryostatAtPosition(), geo::GeometryCore::FindTPCAtPosition(), evd::SimulationDrawingOptions::fMinEnergyDeposition, evd::SimulationDrawingOptions::fShowMCTruthTrajectories, geo::GeometryCore::GetElement(), sim::SimListUtils::GetLArVoxelList(), GetParticle(), art::Event::isRealData(), geo::CryostatID::isValid, evd::kXY, evd::kXZ, evd::kYZ, maxx, geo::BoxBoundedGeo::MaxX(), maxy, maxz, minx, geo::BoxBoundedGeo::MinX(), sim::LArVoxelData::NumberParticles(), simb::MCParticle::PdgCode(), simb::MCTrajectory::size(), sim::LArVoxelList::size(), simb::MCParticle::T(), geo::TPCID::TPC, simb::MCParticle::TrackId(), sim::LArVoxelData::TrackID(), simb::MCParticle::Trajectory(), sim::LArVoxelData::VoxelID(), simb::MCTrajectory::X(), sim::LArVoxelID::X(), simb::MCTrajectory::Y(), sim::LArVoxelID::Y(), simb::MCTrajectory::Z(), and sim::LArVoxelID::Z().
Referenced by evd::Ortho3DPad::Draw().
void evd::SimulationDrawer::MCTruthShortText | ( | const art::Event & | evt, |
evdb::View2D * | view | ||
) |
Definition at line 108 of file SimulationDrawer.cxx.
References evdb::View2D::AddLatex(), evd::Style::ColorFromPDG(), evd::SimulationDrawingOptions::fShowMCTruthText, GetMCTruth(), art::Event::isRealData(), simb::kCosmicRay, evd::Style::LatexName(), geo::origin(), simb::MCParticle::P(), simb::MCParticle::PdgCode(), and simb::MCParticle::StatusCode().
Referenced by evd::MCBriefPad::Draw().
void evd::SimulationDrawer::MCTruthVectors2D | ( | const art::Event & | evt, |
evdb::View2D * | view, | ||
unsigned int | plane | ||
) |
Definition at line 209 of file SimulationDrawer.cxx.
References evdb::View2D::AddLine(), sim::ParticleList::begin(), detinfo::DetectorProperties::ConvertXToTicks(), simb::MCParticle::E(), sim::ParticleList::empty(), spacecharge::SpaceCharge::EnableCorrSCE(), sim::ParticleList::end(), evd::RawDrawingOptions::fAxisOrientation, evd::RawDrawingOptions::fCryostat, evd::Style::FromPDG(), evd::RawDrawingOptions::fTPC, GetMCTruth(), spacecharge::SpaceCharge::GetPosOffsets(), ipart, art::Event::isRealData(), simb::kCosmicRay, simb::MCParticle::Mass(), simb::MCTruth::Origin(), simb::MCParticle::P(), cheat::ParticleInventoryService::ParticleList(), simb::MCParticle::PdgCode(), simb::MCParticle::Process(), simb::MCParticle::Px(), simb::MCParticle::Py(), simb::MCParticle::Pz(), simb::MCParticle::StatusCode(), t1, t2, simb::MCParticle::TrackId(), cheat::ParticleInventoryService::TrackIdToMCTruth_P(), simb::MCParticle::Vx(), simb::MCParticle::Vy(), and simb::MCParticle::Vz().
Referenced by evd::TWireProjPad::Draw().
|
private |
Definition at line 61 of file SimulationDrawer.h.
Referenced by HiLite().
double evd::SimulationDrawer::maxx |
Definition at line 47 of file SimulationDrawer.h.
Referenced by MCTruth3D(), MCTruthOrtho(), and SimulationDrawer().
double evd::SimulationDrawer::maxy |
Definition at line 49 of file SimulationDrawer.h.
Referenced by MCTruth3D(), MCTruthOrtho(), and SimulationDrawer().
double evd::SimulationDrawer::maxz |
Definition at line 51 of file SimulationDrawer.h.
Referenced by MCTruth3D(), MCTruthOrtho(), and SimulationDrawer().
double evd::SimulationDrawer::minx |
Definition at line 46 of file SimulationDrawer.h.
Referenced by MCTruth3D(), MCTruthOrtho(), and SimulationDrawer().
double evd::SimulationDrawer::miny |
Definition at line 48 of file SimulationDrawer.h.
Referenced by SimulationDrawer().
double evd::SimulationDrawer::minz |
Definition at line 50 of file SimulationDrawer.h.
Referenced by SimulationDrawer().