All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SimulationDrawingOptions.cc
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 /// \file SimulationDrawingOptions_service.cc
3 ///
4 /// \author brebel@fnal.gov
5 
6 /// LArSoft includes
8 
9 namespace evd {
10 
11  //......................................................................
12  SimulationDrawingOptions::SimulationDrawingOptions(fhicl::ParameterSet const& pset)
13  : evdb::Reconfigurable{pset}
14  {
15  this->reconfigure(pset);
16  }
17 
18  //......................................................................
19  void SimulationDrawingOptions::reconfigure(fhicl::ParameterSet const& pset)
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<<"ShowMCTruthVectors changed to unsigned short. Please update your fcl configuration\n";
27  fShowMCTruthVectors = pset.get< bool >("ShowMCTruthVectors",0);
28  } // catch
29  fShowMCTruthTrajectories = pset.get< bool > ("ShowMCTruthTrajectories", true);
30  fShowSimChannelInfo = pset.get< bool > ("ShowSimChannelInfo", true);
31  fShowSimEnergyInfo = pset.get< bool > ("ShowSimEnergyInfo", true);
32  fShowSimPhotonInfo = pset.get< bool > ("ShowSimPhotonInfo", true);
33  fShowMCTruthColors = pset.get< bool > ("ShowMCTruthColors", true);
34  fShowMCTruthFullSize = pset.get< bool > ("ShowMCTruthFullSize", true);
35  fShowScintillationLight = pset.get< bool > ("ShowScintillationLight", false);
36  fMinEnergyDeposition = pset.get< double > ("MinimumEnergyDeposition" );
37  fG4ModuleLabel = pset.get< art::InputTag > ("G4ModuleLabel" );
38  fSimChannelLabel = pset.get< art::InputTag > ("SimChannelLabel" );
39  fSimEnergyLabel = pset.get< art::InputTag > ("SimEnergyLabel" );
40  fSimPhotonLabel = pset.get< art::InputTag > ("SimPhotonLabel" );
41 
42  f3DDrawerParams = pset.get< fhicl::ParameterSet >("Draw3DTools" );
43  }
44 
45 }
art::InputTag fG4ModuleLabel
module label producing sim::SimChannel objects
for pfile in ack l reconfigure(.*) override"` do echo "checking $
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
void reconfigure(fhicl::ParameterSet const &pset)
bool fShowScintillationLight
Whether to draw low energy light (default: no).
art::InputTag fSimChannelLabel
SimChannels may be independent of MC stuff.
BEGIN_PROLOG could also be cout
art::InputTag fSimEnergyLabel
Also for SimEnergyDeposits.