RecoDrawingOptions_service.cc
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 /// \file RecoDrawingOptions_service.cc
3 ///
4 /// \author brebel@fnal.gov
5 
6 // Framework includes
8 
9 /// LArSoft includes
11 
12 
13 namespace evd {
14 
15 //......................................................................
17  : evdb::Reconfigurable{pset}
18 {
19  this->reconfigure(pset);
20 }
21 
22 //......................................................................
24 {
25  fDrawHits = pset.get< int >("DrawHits" );
26  fDrawClusters = pset.get< int >("DrawClusters" );
27  fDrawSlices = pset.get< int >("DrawSlices", 0);
28  fDrawSliceSpacePoints = pset.get< int >("DrawSliceSpacePoints", 0);
29  fDrawPFParticles = pset.get< int >("DrawPFParticles" );
30  fDrawEdges = pset.get< int >("DrawEdges" );
31  fDrawSpacePoints = pset.get< int >("DrawSpacePoints" );
32  fDrawProngs = pset.get< int >("DrawProngs" );
33  fDrawTracks = pset.get< int >("DrawTracks" );
34  fDrawTrackTrajectoryPoints = pset.get< int >("DrawTrackTrajectoryPoints");
35  fDrawTrackSegments = pset.get< int >("DrawTrackSegments" );
36  fDrawTrackSpacePoints = pset.get< int >("DrawTrackSpacePoints" );
37  fDrawShowers = pset.get< int >("DrawShowers" );
38  fDrawVertices = pset.get< int >("DrawVertices" );
39  fDrawOpHits = pset.get< int >("DrawOpHits" );
40  fDrawOpFlashes = pset.get< int >("DrawOpFlashes" );
41  fDrawSeeds = pset.get< int >("DrawSeeds" );
42  fDrawEvents = pset.get< int >("DrawEvents" );
43  fDraw2DEndPoints = pset.get< int >("Draw2DEndPoints" );
44  fDraw2DSlopeEndPoints = pset.get< int >("Draw2DSlopeEndPoints" );
45  fSelectedHitColor = pset.get< int >("SelectedHitColor" );
46  fUseHitSelector = pset.get< bool >("UseHitSelector" );
47  fSkeletonOnly = pset.get< bool >("DrawSkeleton3DHitsOnly" );
48  fBestPCAAxisOnly = pset.get< bool >("DrawBestPCAAxisOnly" );
49  fDrawTrackVertexAssns = pset.get< bool >("DrawTrackVertexAssns" );
50  fDraw3DSpacePoints = pset.get< bool >("Draw3DSpacePoints" );
51  fDraw3DSpacePointHeatMap = pset.get< bool >("Draw3DSpacePointHeatMap" );
52  fDraw3DEdges = pset.get< bool >("Draw3DEdges" );
53  fDraw3DPCAAxes = pset.get< bool >("Draw3DPCAAxes" );
54  fDrawAllWireIDs = pset.get< bool >("DrawAllWireIDs" );
55  fHitLabels = pset.get< std::vector<art::InputTag> >("HitModuleLabels" );
56  if(pset.has_key("SliceModuleLabels")) fSliceLabels = pset.get< std::vector<art::InputTag> >("SliceModuleLabels");
57  fSpacePointLabels = pset.get< std::vector<art::InputTag> >("SpacePointModuleLabels" );
58  fProngLabels = pset.get< std::vector<art::InputTag> >("ProngModuleLabels" );
59  fEndPoint2DLabels = pset.get< std::vector<art::InputTag> >("EndPoint2DModuleLabels" );
60  fClusterLabels = pset.get< std::vector<art::InputTag> >("ClusterModuleLabels" );
61  fPFParticleLabels = pset.get< std::vector<art::InputTag> >("PFParticleModuleLabels" );
62  fEdgeLabels = pset.get< std::vector<art::InputTag> >("EdgeModuleLabels" );
63  fExtremePointLabels = pset.get< std::vector<art::InputTag> >("ExtremeModuleLabels" );
64  fTrackLabels = pset.get< std::vector<art::InputTag> >("TrackModuleLabels" );
65  fShowerLabels = pset.get< std::vector<art::InputTag> >("ShowerModuleLabels" );
66  fVertexLabels = pset.get< std::vector<art::InputTag> >("VertexModuleLabels" );
67  fOpHitLabels = pset.get< std::vector<art::InputTag> >("OpHitModuleLabels" );
68  fOpFlashLabels = pset.get< std::vector<art::InputTag> >("OpFlashModuleLabels" );
69  fSeedLabels = pset.get< std::vector<art::InputTag> >("SeedModuleLabels" );
70  fTrkVtxTrackLabels = pset.get< std::vector<art::InputTag> >("TrkVtxTrackLabels" );
71  fTrkVtxCosmicLabels = pset.get< std::vector<art::InputTag> >("TrkVtxCosmicLabels" );
72  fTrkVtxFilterLabels = pset.get< std::vector<art::InputTag> >("TrkVtxFilterLabels" );
73 
74  fEventLabels = pset.get< std::vector<art::InputTag> >("EventModuleLabels" );
75  fWireLabels = pset.get< std::vector<art::InputTag> >("WireModuleLabels" );
76  fColorProngsByLabel = pset.get< int >("ColorProngsByLabel" );
77  fColorSpacePointsByChisq = pset.get< int >("ColorSpacePointsByChisq" );
78  fCaloPSet = pset.get< fhicl::ParameterSet >("CalorimetryAlgorithm" );
79  // fSeedPSet = pset.get< fhicl::ParameterSet >("SeedAlgorithm");
80 
81  fCosmicTagLabels = pset.get< std::vector<art::InputTag> >("CosmicTagLabels", std::vector<art::InputTag>() );
82  fDrawCosmicTags = pset.get< int >("DrawCosmicTags" );
83  fFlashMinPE = pset.get< double >("FlashMinPE", 0.0 );
84  fFlashTMin = pset.get< double >("FlashTMin", -1e9 );
85  fFlashTMax = pset.get< double >("FlashTMax", 1e9 );
86 
87  fHitDrawerParams = pset.get< fhicl::ParameterSet >("HitDrawer" );
88  fWireDrawerParams = pset.get< fhicl::ParameterSet >("WireDrawer" );
89 
90  fSpacePointDrawerParams = pset.get< fhicl::ParameterSet >("SpacePointDrawer" );
91  fAllSpacePointDrawerParams = pset.get< fhicl::ParameterSet >("AllSpacePointDrawer" );
92 
93  f3DDrawerParams = pset.get< fhicl::ParameterSet >("Reco3DDrawers" );
94  }
95 
97 } // namespace evd
98 ////////////////////////////////////////////////////////////////////////
fhicl::ParameterSet fSpacePointDrawerParams
FHICL parameters for SpacePoint drawing.
int fColorProngsByLabel
< parameterset for seed algorithm
std::vector< art::InputTag > fEndPoint2DLabels
module labels that produced end point 2d objects
void reconfigure(fhicl::ParameterSet const &pset)
RecoDrawingOptions(fhicl::ParameterSet const &pset)
std::vector< art::InputTag > fTrkVtxCosmicLabels
module labels that tagged track as CR (Track/Vertex module)
std::vector< art::InputTag > fOpFlashLabels
module labels that produced events
std::vector< art::InputTag > fTrackLabels
module labels that produced tracks
std::vector< art::InputTag > fTrkVtxTrackLabels
module labels that produced tracks (Track/Vertex module)
int fColorSpacePointsByChisq
Generate space point colors by chisquare?
double fFlashTMin
Minimal time for a flash to be displayed.
std::vector< art::InputTag > fExtremePointLabels
module labels that produced Extreme Points
std::vector< art::InputTag > fCosmicTagLabels
module labels that produced cosmic tags
double fFlashTMax
Maximum time for a flash to be displayed.
std::vector< art::InputTag > fWireLabels
module labels that produced wires
LArSoft includes.
Definition: InfoTransfer.h:33
std::vector< art::InputTag > fPFParticleLabels
module labels that produced PFParticles
std::vector< art::InputTag > fVertexLabels
module labels that produced vertices
T get(std::string const &key) const
Definition: ParameterSet.h:271
std::vector< art::InputTag > fEdgeLabels
module labels that produced Edge objects
fhicl::ParameterSet fWireDrawerParams
FHICL parameters for the wire drawing.
fhicl::ParameterSet fAllSpacePointDrawerParams
FHICL parameters for SpacePoint drawing.
std::vector< art::InputTag > fSliceLabels
module labels that produced slices
fhicl::ParameterSet f3DDrawerParams
FHICL paramegers for the 3D drawers.
bool has_key(std::string const &key) const
double fFlashMinPE
Minimal PE for a flash to be displayed.
std::vector< art::InputTag > fSeedLabels
module labels that produced events
std::vector< art::InputTag > fSpacePointLabels
module labels that produced space points
#define DEFINE_ART_SERVICE(svc)
fhicl::ParameterSet fCaloPSet
std::vector< art::InputTag > fHitLabels
module labels that produced hits
fhicl::ParameterSet fHitDrawerParams
FHICL parameters for the hit drawing.
std::vector< art::InputTag > fShowerLabels
module labels that produced showers
std::vector< art::InputTag > fTrkVtxFilterLabels
module labels that filtered event (Track/Vertex module)
std::vector< art::InputTag > fClusterLabels
module labels that produced clusters
std::vector< art::InputTag > fOpHitLabels
module labels that produced events
std::vector< art::InputTag > fEventLabels
module labels that produced events
std::vector< art::InputTag > fProngLabels
module labels that produced prongs