38 const fhicl::ParameterSet& pset)
39 :
IShowerTool(pset.get<fhicl::ParameterSet>(
"BaseTools"))
40 , fVerbose(pset.get<int>(
"Verbose"))
41 , fAngleCut(pset.get<float>(
"AngleCut"))
42 , fFirstDirectionInputLabel(pset.get<std::string>(
"FirstDirectionInputLabel"))
43 , fSecondDirectionInputLabel(pset.get<std::string>(
"SecondDirectionInputLabel"))
44 , fShowerDirectionOutputLabel(pset.get<std::string>(
"ShowerDirectionOutputLabel"))
48 const art::Ptr<recob::PFParticle>& pfparticle,
56 mf::LogError(
"ShowerDirectionTopologyDecision")
57 <<
"fFirstDirectionInputLabel is is not set. Stopping.";
62 mf::LogError(
"ShowerDirectionTopologyDecision")
63 <<
"fSecondDirectionInputLabel is is not set. Stopping.";
68 geo::Vector_t FirstShowerDirection;
69 geo::Vector_t FirstShowerDirectionError;
73 geo::Vector_t SecondShowerDirection;
74 geo::Vector_t SecondShowerDirectionError;
79 if (ROOT::Math::VectorUtil::Angle(FirstShowerDirection, SecondShowerDirection) <
fAngleCut) {