LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
ShowerSkeletonTool_tool.cc
Go to the documentation of this file.
1
//############################################################################
2
//### Name: ShowerSkeletonTool ###
3
//### Author: You ###
4
//### Date: 13.05.19 ###
5
//### Description: Generic form of the shower tools ###
6
//############################################################################
7
8
//Framework Includes
9
#include "
art/Utilities/ToolMacros.h
"
10
11
//LArSoft Includes
12
#include "
larpandora/LArPandoraEventBuilding/LArPandoraShower/Tools/IShowerTool.h
"
13
14
namespace
ShowerRecoTools
{
15
16
class
ShowerSkeletonTool
:
public
IShowerTool
{
17
18
public
:
19
ShowerSkeletonTool
(
const
fhicl::ParameterSet
& pset);
20
21
//Generic Direction Finder
22
int
CalculateElement
(
const
art::Ptr<recob::PFParticle>
& pfparticle,
23
art::Event
& Event,
24
reco::shower::ShowerElementHolder
& ShowerEleHolder)
override
;
25
26
private
:
27
//Function to add the assoctions
28
int
AddAssociations
(
const
art::Ptr<recob::PFParticle>
& pfpPtr,
29
art::Event
& Event,
30
reco::shower::ShowerElementHolder
& ShowerEleHolder)
override
;
31
32
// Stuff you will probably need that inherits from the module
33
art::InputTag
fPFParticleLabel
;
34
int
fVerbose
;
35
};
36
37
ShowerSkeletonTool::ShowerSkeletonTool
(
const
fhicl::ParameterSet
& pset)
38
:
IShowerTool
(pset.
get
<
fhicl
::ParameterSet>(
"BaseTools"
))
39
,
fPFParticleLabel
(pset.
get
<
art
::InputTag>(
"PFParticleLabel"
))
40
,
fVerbose
(pset.
get
<int>(
"Verbose"
))
41
{}
42
43
int
ShowerSkeletonTool::CalculateElement
(
const
art::Ptr<recob::PFParticle>
& pfparticle,
44
art::Event
& Event,
45
reco::shower::ShowerElementHolder
& ShowerEleHolder)
46
{
47
return
0;
48
}
49
50
int
ShowerSkeletonTool::AddAssociations
(
const
art::Ptr<recob::PFParticle>
& pfpPtr,
51
art::Event
& Event,
52
reco::shower::ShowerElementHolder
& ShowerEleHolder)
53
{
54
return
0;
55
}
56
}
57
58
DEFINE_ART_CLASS_TOOL
(
ShowerRecoTools::ShowerSkeletonTool
)
DEFINE_ART_CLASS_TOOL
#define DEFINE_ART_CLASS_TOOL(tool)
Definition:
ToolMacros.h:42
ShowerRecoTools::ShowerSkeletonTool::fVerbose
int fVerbose
Definition:
ShowerSkeletonTool_tool.cc:34
IShowerTool.h
ShowerRecoTools::ShowerSkeletonTool::AddAssociations
int AddAssociations(const art::Ptr< recob::PFParticle > &pfpPtr, art::Event &Event, reco::shower::ShowerElementHolder &ShowerEleHolder) override
Definition:
ShowerSkeletonTool_tool.cc:50
ShowerRecoTools::ShowerSkeletonTool
Definition:
ShowerSkeletonTool_tool.cc:16
ShowerRecoTools::ShowerSkeletonTool::CalculateElement
int CalculateElement(const art::Ptr< recob::PFParticle > &pfparticle, art::Event &Event, reco::shower::ShowerElementHolder &ShowerEleHolder) override
Definition:
ShowerSkeletonTool_tool.cc:43
ToolMacros.h
fhicl
parameter set interface
Definition:
BeamFlashTrackMatchTaggerAlg.h:17
art::InputTag
Definition:
InputTag.h:12
ShowerRecoTools
Definition:
ShowerDirectionCheater_tool.cc:22
art::Event
Definition:
Event.h:26
util::get
decltype(auto) get(T &&obj)
ADL-aware version of std::to_string.
Definition:
StdUtils.h:120
ShowerRecoTools::ShowerSkeletonTool::ShowerSkeletonTool
ShowerSkeletonTool(const fhicl::ParameterSet &pset)
Definition:
ShowerSkeletonTool_tool.cc:37
reco::shower::ShowerElementHolder
Definition:
ShowerElementHolder.hh:214
art
Definition:
MVAAlg.h:12
ShowerRecoTools::ShowerSkeletonTool::fPFParticleLabel
art::InputTag fPFParticleLabel
Definition:
ShowerSkeletonTool_tool.cc:33
ShowerRecoTools::IShowerTool
Definition:
IShowerTool.h:30
art::Ptr< recob::PFParticle >
fhicl::ParameterSet
Definition:
ParameterSet.h:36
larpandora
v09_22_05
source
larpandora
LArPandoraEventBuilding
LArPandoraShower
Tools
ShowerSkeletonTool_tool.cc
Generated on Thu May 2 2024 20:59:40 for LArSoft by
1.8.11