17 namespace recob {
class PFParticle; }
20 #include "art/Framework/Core/ProducesCollector.h"
21 namespace art {
class Event; }
22 #include "canvas/Persistency/Common/Ptr.h"
23 #include "fhiclcpp/ParameterSet.h"
25 namespace ShowerRecoTools {
38 reco::
shower::ShowerElementHolder& ShowerEleHolder) = 0;
45 reco::
shower::ShowerElementHolder& ShowerEleHolder,
46 std::
string evd_display_name_append = "")
49 int calculation_status =
CalculateElement(pfparticle, Event, ShowerEleHolder);
50 if (calculation_status != 0)
return calculation_status;
53 pfparticle, Event, ShowerEleHolder, evd_display_name_append);
55 return calculation_status;
65 SetPtr(art::ProducesCollector* collector)
115 bool check_element = ShowerEleHolder.
CheckElement(Name);
116 if (!check_element) {
117 throw cet::exception(
"IShowerTool") <<
"tried to get a element that does not exist. Failed "
118 "at making the art ptr for Element: "
119 << Name << std::endl;
125 throw cet::exception(
"IShowerTool")
126 <<
"tried to get a ptr that does not exist. Failed at making the art ptr for Element"
132 if (iter != -1) { index = iter; }
149 mf::LogWarning(
"IShowerTool") <<
"The art::ProducesCollector ptr has not been set";
159 template <
class T,
class A,
class B>
double std(const std::vector< short > &wf, const double ped_mean, size_t start, size_t nsample)
void DebugEVD(art::Ptr< recob::PFParticle > const &pfparticle, art::Event const &Event, const reco::shower::ShowerElementHolder &ShowerEleHolder, std::string const &evd_disp_name_append="") const
int GetShowerNumber() const
void PrintPtr(const std::string &Name) const
bool CheckUniqueProduerPtr(const std::string &Name) const
process_name standard_reco_uboone reco
void AddSingle(A &a, B &b, const std::string &Name)
bool CheckElement(const std::string &Name) const
BEGIN_PROLOG vertical distance to the surface Name
art::Ptr< T > GetArtPtr(const std::string &Name, const int &iter) const
int SetShowerUniqueProduerPtr(type< T >, const std::string &Name, const std::string &Instance="")
int GetVectorPtrSize(const std::string &Name) const