SimulationDrawingOptions_service.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 
10 
11 namespace evd {
12 
13  //......................................................................
15  : evdb::Reconfigurable{pset}
16  {
17  this->reconfigure(pset);
18  }
19 
20  //......................................................................
22  {
23  fShowMCTruthText = pset.get< bool > ("ShowMCTruthText", true);
24  try {
25  fShowMCTruthVectors = pset.get< unsigned short >("ShowMCTruthVectors", 0);
26  } // try
27  catch (...) {
28  std::cout<<"ShowMCTruthVectors changed to unsigned short. Please update your fcl configuration\n";
29  fShowMCTruthVectors = pset.get< bool >("ShowMCTruthVectors",0);
30  } // catch
31  fShowMCTruthTrajectories = pset.get< bool > ("ShowMCTruthTrajectories", true);
32  fShowSimChannelInfo = pset.get< bool > ("ShowSimChannelInfo", true);
33  fShowSimEnergyInfo = pset.get< bool > ("ShowSimEnergyInfo", true);
34  fShowSimPhotonInfo = pset.get< bool > ("ShowSimPhotonInfo", true);
35  fShowMCTruthColors = pset.get< bool > ("ShowMCTruthColors", true);
36  fShowMCTruthFullSize = pset.get< bool > ("ShowMCTruthFullSize", true);
37  fShowScintillationLight = pset.get< bool > ("ShowScintillationLight", false);
38  fMinEnergyDeposition = pset.get< double > ("MinimumEnergyDeposition" );
39  fG4ModuleLabel = pset.get< art::InputTag > ("G4ModuleLabel" );
40  fSimChannelLabel = pset.get< art::InputTag > ("SimChannelLabel" );
41  fSimEnergyLabel = pset.get< art::InputTag > ("SimEnergyLabel" );
42  fSimPhotonLabel = pset.get< art::InputTag > ("SimPhotonLabel" );
43 
44  f3DDrawerParams = pset.get< fhicl::ParameterSet >("Draw3DTools" );
45  }
46 
47 }
48 
art::InputTag fG4ModuleLabel
module label producing sim::SimChannel objects
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.
Definition: InfoTransfer.h:33
void reconfigure(fhicl::ParameterSet const &pset)
T get(std::string const &key) const
Definition: ParameterSet.h:271
bool fShowScintillationLight
Whether to draw low energy light (default: no).
#define DEFINE_ART_SERVICE(svc)
art::InputTag fSimChannelLabel
SimChannels may be independent of MC stuff.
art::InputTag fSimEnergyLabel
Also for SimEnergyDeposits.