10 #include "art/Utilities/ToolMacros.h"
15 namespace ShowerRecoTools {
36 const fhicl::ParameterSet& pset)
38 , fVerbose(pset.
get<int>(
"Verbose"))
39 , fAngleCut(pset.
get<float>(
"AngleCut"))
40 , fFirstDirectionInputLabel(pset.
get<
std::string>(
"FirstDirectionInputLabel"))
41 , fSecondDirectionInputLabel(pset.
get<
std::string>(
"SecondDirectionInputLabel"))
42 , fShowerDirectionOutputLabel(pset.
get<
std::string>(
"ShowerDirectionOutputLabel"))
47 const art::Ptr<recob::PFParticle>& pfparticle,
55 mf::LogError(
"ShowerDirectionTopologyDecision")
56 <<
"fFirstDirectionInputLabel is is not set. Stopping.";
61 mf::LogError(
"ShowerDirectionTopologyDecision")
62 <<
"fSecondDirectionInputLabel is is not set. Stopping.";
67 TVector3 FirstShowerDirection;
68 TVector3 FirstShowerDirectionError;
72 TVector3 SecondShowerDirection;
73 TVector3 SecondShowerDirectionError;
78 if (FirstShowerDirection.Angle(SecondShowerDirection) <
fAngleCut) {
double std(const std::vector< short > &wf, const double ped_mean, size_t start, size_t nsample)
void SetElement(T &dataproduct, const std::string &Name, bool checktag=false)
bool CheckElement(const std::string &Name) const
int GetElementAndError(const std::string &Name, T &Element, T2 &ElementErr) const