SimulationDrawingOptions_service.cc
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 /// \file SimulationDrawingOption_plugin.cc
3 ///
4 /// \version $Id: RecoDrawingOptions_plugin.cc,v 1.1 2010/11/11 18:11:22 p-novaart Exp $
5 /// \author brebel@fnal.gov
6 
7 // Framework includes
8 
9 /// GArSoft includes
11 
12 #include <iostream>
13 
14 namespace gar {
15 namespace evd {
16 
17  //......................................................................
19  art::ActivityRegistry& /* reg */)
20  : evdb::Reconfigurable{pset}
21  {
22  this->reconfigure(pset);
23  }
24 
25  //......................................................................
27  {
28  }
29 
30  //......................................................................
32  {
33  fShowMCTruthText = pset.get< bool >("ShowMCTruthText", true);
34  fShowMCTruthVectors = pset.get< bool >("ShowMCTruthVectors", true);
35  fShowMCTruthTrajectories = pset.get< bool >("ShowMCTruthTrajectories", true);
36  fShowMCTruthColors = pset.get< bool >("ShowMCTruthColors", true);
37  fShowMCTruthFullSize = pset.get< bool >("ShowMCTruthFullSize", true);
38  fMinEnergyDeposition = pset.get< double >("MinimumEnergyDeposition" );
39  fG4ModuleLabel = pset.get< std::string >("G4ModuleLabel" );
40 
41  fNeutronEnergyCut = pset.get<double >("NeutronEnergyCut", 0.02);
42  fPhotonEnergyCut = pset.get<double >("PhotonEnergyCut", 0.02);
43  fOtherNeutralEnergyCut = pset.get<double >("OtherNeutralEnergyCut", 0.02);
44  fShowNeutrals = pset.get<bool >("ShowNeutrals", false);
45  }
46 
47 }
48 
49 namespace evd {
50 
52 
53 } // namespace evd
54 }
55 ////////////////////////////////////////////////////////////////////////
std::string string
Definition: nybbler.cc:12
std::string fG4ModuleLabel
module label producing sim::SimChannel objects
LArSoft includes.
Definition: InfoTransfer.h:33
T get(std::string const &key) const
Definition: ParameterSet.h:271
SimulationDrawingOptions(fhicl::ParameterSet const &pset, art::ActivityRegistry &reg)
General GArSoft Utilities.
#define DEFINE_ART_SERVICE(svc)
void reconfigure(fhicl::ParameterSet const &pset)