LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
SimulationDrawingOptions.cc
Go to the documentation of this file.
1 
8 
9 namespace evd {
10 
11  //......................................................................
13  : evdb::Reconfigurable{pset}
14  {
15  this->reconfigure(pset);
16  }
17 
18  //......................................................................
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  }
45 
46 }
art::InputTag fG4ModuleLabel
module label producing sim::SimChannel objects
Manage all things related to colors for the event display.
fhicl::ParameterSet f3DDrawerParams
FHICL paramegers for the 3D drawers.
SimulationDrawingOptions(fhicl::ParameterSet const &pset)
bool fShowSimPhotonInfo
Display SimPhoton info in 3D display.
art::InputTag fSimPhotonLabel
and for SimPhotons
LArSoft includes.
void reconfigure(fhicl::ParameterSet const &pset)
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.