Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
lareventdisplay
lareventdisplay
EventDisplay
3DDrawers
PFParticle3DDrawer_tool.cc
Go to the documentation of this file.
1
////////////////////////////////////////////////////////////////////////
2
/// \file PFParticle3DDrawer_tool.cc
3
/// \author T. Usher
4
////////////////////////////////////////////////////////////////////////
5
6
#include "
lardataalg/DetectorInfo/DetectorProperties.h
"
7
#include "
lareventdisplay/EventDisplay/3DDrawers/I3DDrawer.h
"
8
9
#include "
art/Framework/Principal/fwd.h
"
10
#include "
art/Utilities/ToolMacros.h
"
11
12
namespace
evdb_tool
{
13
14
class
PFParticle3DDrawer
:
public
I3DDrawer
{
15
public
:
16
explicit
PFParticle3DDrawer
(
const
fhicl::ParameterSet
&);
17
18
~PFParticle3DDrawer
();
19
20
void
Draw
(
const
art::Event
&, evdb::View3D*)
const override
;
21
22
private
:
23
};
24
25
//----------------------------------------------------------------------
26
// Constructor.
27
PFParticle3DDrawer::PFParticle3DDrawer
(
const
fhicl::ParameterSet
& pset)
28
{
29
// fNumPoints = pset.get< int>("NumPoints", 1000);
30
// fFloatBaseline = pset.get<bool>("FloatBaseline", false);
31
// For now only draw cryostat=0.
32
33
return
;
34
}
35
36
PFParticle3DDrawer::~PFParticle3DDrawer
() {}
37
38
void
39
PFParticle3DDrawer::Draw
(
const
art::Event
&
evt
, evdb::View3D* view)
const
40
{
41
/*
42
art::ServiceHandle<evd::SimulationDrawingOptions const> drawOpt;
43
44
// If the option is turned off, there's nothing to do
45
if (!drawOpt->fShowMCTruthTrajectories) return;
46
47
// geo::GeometryCore const* geom = lar::providerFrom<geo::Geometry>();
48
art::ServiceHandle<geo::Geometry const> geom;
49
50
// Recover a handle to the collection of MCParticles
51
art::Handle< std::vector<simb::MCParticle>> mcParticleHandle;
52
53
evt.getByLabel(drawOpt->fG4ModuleLabel, mcParticleHandle);
54
55
// Define a couple of colors for neutrals and if we gray it out...
56
int neutralColor(12);
57
int grayedColor(15);
58
int neutrinoColor(38);
59
*/
60
return
;
61
}
62
63
DEFINE_ART_CLASS_TOOL
(
PFParticle3DDrawer
)
64
}
DEFINE_ART_CLASS_TOOL
#define DEFINE_ART_CLASS_TOOL(tool)
Definition:
ToolMacros.h:42
DetectorProperties.h
evdb_tool::I3DDrawer
Definition:
I3DDrawer.h:21
evdb_tool
Definition:
Edge3DDrawer_tool.cc:14
evdb_tool::PFParticle3DDrawer::~PFParticle3DDrawer
~PFParticle3DDrawer()
Definition:
PFParticle3DDrawer_tool.cc:36
ToolMacros.h
I3DDrawer.h
evdb_tool::PFParticle3DDrawer::PFParticle3DDrawer
PFParticle3DDrawer(const fhicl::ParameterSet &)
Definition:
PFParticle3DDrawer_tool.cc:27
fwd.h
art::Event
Definition:
Event.h:22
tca::evt
TCEvent evt
Definition:
DataStructs.cxx:7
evdb_tool::PFParticle3DDrawer::Draw
void Draw(const art::Event &, evdb::View3D *) const override
Definition:
PFParticle3DDrawer_tool.cc:39
evdb_tool::PFParticle3DDrawer
Definition:
PFParticle3DDrawer_tool.cc:14
fhicl::ParameterSet
Definition:
ParameterSet.h:36
Generated by
1.8.11