All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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
13 
14 namespace ShowerRecoTools {
15 
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
44  ShowerSkeletonTool::CalculateElement(const art::Ptr<recob::PFParticle>& pfparticle,
45  art::Event& Event,
46  reco::shower::ShowerElementHolder& ShowerEleHolder)
47  {
48  return 0;
49  }
50 
51  int
52  ShowerSkeletonTool::AddAssociations(const art::Ptr<recob::PFParticle>& pfpPtr,
53  art::Event& Event,
54  reco::shower::ShowerElementHolder& ShowerEleHolder)
55  {
56  return 0;
57  }
58 }
59 
60 DEFINE_ART_CLASS_TOOL(ShowerRecoTools::ShowerSkeletonTool)
int AddAssociations(const art::Ptr< recob::PFParticle > &pfpPtr, art::Event &Event, reco::shower::ShowerElementHolder &ShowerEleHolder) override
int CalculateElement(const art::Ptr< recob::PFParticle > &pfparticle, art::Event &Event, reco::shower::ShowerElementHolder &ShowerEleHolder) override
ShowerSkeletonTool(const fhicl::ParameterSet &pset)