LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
evd::SimulationDrawingOptions Class Reference

#include "SimulationDrawingOptions.h"

Inheritance diagram for evd::SimulationDrawingOptions:
evdb::Reconfigurable

Public Member Functions

 SimulationDrawingOptions (fhicl::ParameterSet const &pset)
 
void reconfigure (fhicl::ParameterSet const &pset)
 
void do_reconfigure (fhicl::ParameterSet const &pset)
 

Public Attributes

bool fShowMCTruthText
 
unsigned short fShowMCTruthVectors
 
bool fShowMCTruthTrajectories
 
bool fShowSimChannelInfo
 
bool fShowSimEnergyInfo
 
bool fShowSimPhotonInfo
 Display SimPhoton info in 3D display. More...
 
bool fShowMCTruthColors
 
bool fShowMCTruthFullSize
 
bool fShowScintillationLight = false
 Whether to draw low energy light (default: no). More...
 
double fMinEnergyDeposition
 
art::InputTag fG4ModuleLabel
 module label producing sim::SimChannel objects More...
 
art::InputTag fSimChannelLabel
 SimChannels may be independent of MC stuff. More...
 
art::InputTag fSimEnergyLabel
 Also for SimEnergyDeposits. More...
 
art::InputTag fSimPhotonLabel
 and for SimPhotons More...
 
fhicl::ParameterSet f3DDrawerParams
 FHICL paramegers for the 3D drawers. More...
 

Detailed Description

Definition at line 21 of file SimulationDrawingOptions.h.

Constructor & Destructor Documentation

evd::SimulationDrawingOptions::SimulationDrawingOptions ( fhicl::ParameterSet const &  pset)
explicit

Definition at line 12 of file SimulationDrawingOptions.cc.

References reconfigure().

13  : evdb::Reconfigurable{pset}
14  {
15  this->reconfigure(pset);
16  }
void reconfigure(fhicl::ParameterSet const &pset)

Member Function Documentation

void evdb::Reconfigurable::do_reconfigure ( fhicl::ParameterSet const &  pset)
inlineinherited

Definition at line 16 of file Reconfigurable.h.

References evdb::Reconfigurable::reconfigure(), and evdb::Reconfigurable::~Reconfigurable().

16 { reconfigure(pset); }
virtual void reconfigure(fhicl::ParameterSet const &)=0
void evd::SimulationDrawingOptions::reconfigure ( fhicl::ParameterSet const &  pset)
virtual

Implements evdb::Reconfigurable.

Definition at line 19 of file SimulationDrawingOptions.cc.

References f3DDrawerParams, fG4ModuleLabel, fMinEnergyDeposition, fShowMCTruthColors, fShowMCTruthFullSize, fShowMCTruthText, fShowMCTruthTrajectories, fShowMCTruthVectors, fShowScintillationLight, fShowSimChannelInfo, fShowSimEnergyInfo, fShowSimPhotonInfo, fSimChannelLabel, fSimEnergyLabel, fSimPhotonLabel, and fhicl::ParameterSet::get().

Referenced by SimulationDrawingOptions().

20  {
21  fShowMCTruthText = pset.get<bool>("ShowMCTruthText", true);
22  try {
23  fShowMCTruthVectors = pset.get<unsigned short>("ShowMCTruthVectors", 0);
24  } // try
25  catch (...) {
26  std::cout
27  << "ShowMCTruthVectors changed to unsigned short. Please update your fcl configuration\n";
28  fShowMCTruthVectors = pset.get<bool>("ShowMCTruthVectors", 0);
29  } // catch
30  fShowMCTruthTrajectories = pset.get<bool>("ShowMCTruthTrajectories", true);
31  fShowSimChannelInfo = pset.get<bool>("ShowSimChannelInfo", true);
32  fShowSimEnergyInfo = pset.get<bool>("ShowSimEnergyInfo", true);
33  fShowSimPhotonInfo = pset.get<bool>("ShowSimPhotonInfo", true);
34  fShowMCTruthColors = pset.get<bool>("ShowMCTruthColors", true);
35  fShowMCTruthFullSize = pset.get<bool>("ShowMCTruthFullSize", true);
36  fShowScintillationLight = pset.get<bool>("ShowScintillationLight", false);
37  fMinEnergyDeposition = pset.get<double>("MinimumEnergyDeposition");
38  fG4ModuleLabel = pset.get<art::InputTag>("G4ModuleLabel");
39  fSimChannelLabel = pset.get<art::InputTag>("SimChannelLabel");
40  fSimEnergyLabel = pset.get<art::InputTag>("SimEnergyLabel");
41  fSimPhotonLabel = pset.get<art::InputTag>("SimPhotonLabel");
42 
43  f3DDrawerParams = pset.get<fhicl::ParameterSet>("Draw3DTools");
44  }
art::InputTag fG4ModuleLabel
module label producing sim::SimChannel objects
fhicl::ParameterSet f3DDrawerParams
FHICL paramegers for the 3D drawers.
bool fShowSimPhotonInfo
Display SimPhoton info in 3D display.
art::InputTag fSimPhotonLabel
and for SimPhotons
T get(std::string const &key) const
Definition: ParameterSet.h:314
bool fShowScintillationLight
Whether to draw low energy light (default: no).
art::InputTag fSimChannelLabel
SimChannels may be independent of MC stuff.
art::InputTag fSimEnergyLabel
Also for SimEnergyDeposits.

Member Data Documentation

fhicl::ParameterSet evd::SimulationDrawingOptions::f3DDrawerParams

FHICL paramegers for the 3D drawers.

Definition at line 42 of file SimulationDrawingOptions.h.

Referenced by evd::Display3DPad::Display3DPad(), and reconfigure().

double evd::SimulationDrawingOptions::fMinEnergyDeposition
bool evd::SimulationDrawingOptions::fShowMCTruthColors
bool evd::SimulationDrawingOptions::fShowMCTruthFullSize
bool evd::SimulationDrawingOptions::fShowMCTruthTrajectories
unsigned short evd::SimulationDrawingOptions::fShowMCTruthVectors
bool evd::SimulationDrawingOptions::fShowScintillationLight = false

Whether to draw low energy light (default: no).

Definition at line 35 of file SimulationDrawingOptions.h.

Referenced by reconfigure().

bool evd::SimulationDrawingOptions::fShowSimChannelInfo

Definition at line 30 of file SimulationDrawingOptions.h.

Referenced by evdb_tool::DrawLArVoxel3D::Draw(), and reconfigure().

bool evd::SimulationDrawingOptions::fShowSimEnergyInfo
bool evd::SimulationDrawingOptions::fShowSimPhotonInfo

Display SimPhoton info in 3D display.

Definition at line 32 of file SimulationDrawingOptions.h.

Referenced by evdb_tool::DrawSimPhoton3D::Draw(), and reconfigure().

art::InputTag evd::SimulationDrawingOptions::fSimChannelLabel

SimChannels may be independent of MC stuff.

Definition at line 38 of file SimulationDrawingOptions.h.

Referenced by evdb_tool::DrawLArVoxel3D::Draw(), evd::SimulationDrawer::MCTruthOrtho(), and reconfigure().

art::InputTag evd::SimulationDrawingOptions::fSimEnergyLabel
art::InputTag evd::SimulationDrawingOptions::fSimPhotonLabel

and for SimPhotons

Definition at line 40 of file SimulationDrawingOptions.h.

Referenced by evdb_tool::DrawSimPhoton3D::Draw(), and reconfigure().


The documentation for this class was generated from the following files: