LArSoft
v09_90_00
Liquid Argon Software toolkit - https://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 29 of file SimulationDrawer.h.
evd::SimulationDrawer::SimulationDrawer | ( | ) |
Definition at line 55 of file SimulationDrawer.cxx.
References geo::GeometryCore::Iterate(), maxx, maxy, maxz, minx, miny, and minz.
evd::SimulationDrawer::~SimulationDrawer | ( | ) |
Definition at line 94 of file SimulationDrawer.cxx.
|
private |
Definition at line 913 of file SimulationDrawer.cxx.
References e, art::ProductRetriever::getMany(), and art::Event::isRealData().
Referenced by MCTruth3D(), MCTruthLongText(), MCTruthShortText(), and MCTruthVectors2D().
|
private |
Definition at line 884 of file SimulationDrawer.cxx.
References e, evd::SimulationDrawingOptions::fG4ModuleLabel, art::ProductRetriever::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 327 of file SimulationDrawer.cxx.
References evdb::View3D::AddPolyLine3D(), evdb::View3D::AddPolyMarker3D(), sim::LArVoxelList::begin(), evd::Style::ColorFromPDG(), simb::MCParticle::E(), simb::MCTrajectory::empty(), sim::LArVoxelList::end(), sim::LArVoxelData::Energy(), evd::SimulationDrawingOptions::fG4ModuleLabel, evd::SimulationDrawingOptions::fMinEnergyDeposition, evd::SimulationDrawingOptions::fShowMCTruthColors, evd::SimulationDrawingOptions::fShowMCTruthFullSize, evd::SimulationDrawingOptions::fShowMCTruthTrajectories, sim::SimListUtils::GetLArVoxelList(), GetMCTruth(), GetParticle(), art::Event::isRealData(), art::InputTag::label(), simb::MCParticle::Mother(), sim::LArVoxelData::NumberParticles(), simb::MCParticle::PdgCode(), geo::GeometryCore::PositionToTPCID(), simb::MCParticle::Px(), simb::MCParticle::Py(), simb::MCParticle::Pz(), simb::MCTrajectory::size(), sim::LArVoxelList::size(), simb::MCParticle::StatusCode(), simb::MCParticle::T(), simb::MCParticle::TrackId(), sim::LArVoxelData::TrackID(), simb::MCParticle::Trajectory(), detinfo::trigger_offset(), 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().
void evd::SimulationDrawer::MCTruthLongText | ( | const art::Event & | evt, |
evdb::View2D * | view | ||
) |
Definition at line 159 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 596 of file SimulationDrawer.cxx.
References evdb::View2D::AddPolyLine(), evdb::View2D::AddPolyMarker(), sim::LArVoxelList::begin(), evd::Style::ColorFromPDG(), geo::CryostatID::Cryostat, simb::MCParticle::E(), simb::MCTrajectory::empty(), art::InputTag::encode(), sim::LArVoxelList::end(), sim::LArVoxelData::Energy(), geo::GeometryCore::FindTPCAtPosition(), evd::SimulationDrawingOptions::fMinEnergyDeposition, evd::SimulationDrawingOptions::fShowMCTruthTrajectories, evd::SimulationDrawingOptions::fSimChannelLabel, 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(), minz, sim::LArVoxelData::NumberParticles(), simb::MCParticle::PdgCode(), geo::GeometryCore::PositionToCryostatID(), simb::MCTrajectory::size(), sim::LArVoxelList::size(), simb::MCParticle::T(), geo::TPCID::TPC, simb::MCParticle::TrackId(), sim::LArVoxelData::TrackID(), simb::MCParticle::Trajectory(), detinfo::trigger_offset(), 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 98 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 187 of file SimulationDrawer.cxx.
References evdb::View2D::AddLine(), sim::ParticleList::begin(), 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(), r, simb::MCParticle::StatusCode(), t1, t2, simb::MCParticle::TrackId(), cheat::ParticleInventoryService::TrackIdToMCTruth_P(), simb::MCParticle::Vx(), simb::MCParticle::Vy(), simb::MCParticle::Vz(), and geo::GeometryCore::WireCoordinate().
Referenced by evd::TWireProjPad::Draw().
|
private |
Definition at line 59 of file SimulationDrawer.h.
Referenced by HiLite().
double evd::SimulationDrawer::maxx |
Definition at line 48 of file SimulationDrawer.h.
Referenced by MCTruthOrtho(), and SimulationDrawer().
double evd::SimulationDrawer::maxy |
Definition at line 50 of file SimulationDrawer.h.
Referenced by MCTruthOrtho(), and SimulationDrawer().
double evd::SimulationDrawer::maxz |
Definition at line 52 of file SimulationDrawer.h.
Referenced by MCTruthOrtho(), and SimulationDrawer().
double evd::SimulationDrawer::minx |
Definition at line 47 of file SimulationDrawer.h.
Referenced by MCTruthOrtho(), and SimulationDrawer().
double evd::SimulationDrawer::miny |
Definition at line 49 of file SimulationDrawer.h.
Referenced by SimulationDrawer().
double evd::SimulationDrawer::minz |
Definition at line 51 of file SimulationDrawer.h.
Referenced by MCTruthOrtho(), and SimulationDrawer().