LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
evd::SimulationDrawingOptions Class Reference

#include "SimulationDrawingOptions.h"

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

Public Member Functions

 SimulationDrawingOptions (fhicl::ParameterSet const &pset, art::ActivityRegistry &reg)
 
 ~SimulationDrawingOptions ()
 
void reconfigure (fhicl::ParameterSet const &pset)
 
void do_reconfigure (fhicl::ParameterSet const &pset)
 

Public Attributes

bool fShowMCTruthText
 
unsigned short fShowMCTruthVectors
 
bool fShowMCTruthTrajectories
 
bool fShowMCTruthColors
 
bool fShowMCTruthFullSize
 
bool fShowScintillationLight = false
 Whether to draw low energy light (default: no). More...
 
double fMinEnergyDeposition
 
std::string fG4ModuleLabel
 module label producing sim::SimChannel objects More...
 

Detailed Description

Definition at line 20 of file SimulationDrawingOptions.h.

Constructor & Destructor Documentation

evd::SimulationDrawingOptions::SimulationDrawingOptions ( fhicl::ParameterSet const &  pset,
art::ActivityRegistry reg 
)
explicit

Definition at line 16 of file SimulationDrawingOptions_service.cc.

References reconfigure().

18  : evdb::Reconfigurable{pset}
19  {
20  this->reconfigure(pset);
21  }
void reconfigure(fhicl::ParameterSet const &pset)
evd::SimulationDrawingOptions::~SimulationDrawingOptions ( )

Definition at line 24 of file SimulationDrawingOptions_service.cc.

25  {
26  }

Member Function Documentation

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

Definition at line 17 of file Reconfigurable.h.

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

Implements evdb::Reconfigurable.

Definition at line 29 of file SimulationDrawingOptions_service.cc.

References DEFINE_ART_SERVICE, fG4ModuleLabel, fMinEnergyDeposition, fShowMCTruthColors, fShowMCTruthFullSize, fShowMCTruthText, fShowMCTruthTrajectories, fShowMCTruthVectors, fShowScintillationLight, and fhicl::ParameterSet::get().

Referenced by SimulationDrawingOptions().

30  {
31  fShowMCTruthText = pset.get< bool >("ShowMCTruthText", true);
32  try {
33  fShowMCTruthVectors = pset.get< unsigned short >("ShowMCTruthVectors", 0);
34  } // try
35  catch (...) {
36  std::cout<<"ShowMCTruthVectors changed to unsigned short. Please update your fcl configuration\n";
37  fShowMCTruthVectors = pset.get< bool >("ShowMCTruthVectors",0);
38  } // catch
39  fShowMCTruthTrajectories = pset.get< bool >("ShowMCTruthTrajectories", true);
40  fShowMCTruthColors = pset.get< bool >("ShowMCTruthColors", true);
41  fShowMCTruthFullSize = pset.get< bool >("ShowMCTruthFullSize", true);
42  fShowScintillationLight = pset.get< bool >("ShowScintillationLight", false);
43  fMinEnergyDeposition = pset.get< double >("MinimumEnergyDeposition" );
44  fG4ModuleLabel = pset.get< std::string >("G4ModuleLabel" );
45  }
std::string fG4ModuleLabel
module label producing sim::SimChannel objects
bool fShowScintillationLight
Whether to draw low energy light (default: no).

Member Data Documentation

std::string evd::SimulationDrawingOptions::fG4ModuleLabel
double evd::SimulationDrawingOptions::fMinEnergyDeposition
bool evd::SimulationDrawingOptions::fShowMCTruthColors

Definition at line 31 of file SimulationDrawingOptions.h.

Referenced by evd::SimulationDrawer::MCTruth3D(), and reconfigure().

bool evd::SimulationDrawingOptions::fShowMCTruthFullSize

Definition at line 32 of file SimulationDrawingOptions.h.

Referenced by evd::SimulationDrawer::MCTruth3D(), and reconfigure().

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 33 of file SimulationDrawingOptions.h.

Referenced by evd::SimulationDrawer::MCTruth3D(), and reconfigure().


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