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