34 : fLArPandoraShowerAlg(pset.
get<
fhicl::ParameterSet>(
"LArPandoraShowerAlg"))
35 , fRunEventDisplay(pset.
get<bool>(
"EnableEventDisplay")){};
49 std::string evd_display_name_append =
"")
52 int calculation_status = CalculateElement(pfparticle, Event, ShowerEleHolder);
53 if (calculation_status != 0)
return calculation_status;
54 if (fRunEventDisplay) {
55 IShowerTool::GetLArPandoraShowerAlg().DebugEVD(
56 pfparticle, Event, ShowerEleHolder, evd_display_name_append);
58 return calculation_status;
70 UniquePtrs = &uniqueproducerPtrs;
84 return fLArPandoraShowerAlg;
108 bool check_element = ShowerEleHolder.
CheckElement(Name);
109 if (!check_element) {
110 throw cet::exception(
"IShowerTool") <<
"tried to get a element that does not exist. Failed " 111 "at making the art ptr for Element: " 112 << Name << std::endl;
119 <<
"tried to get a ptr that does not exist. Failed at making the art ptr for Element" 125 if (iter != -1) { index = iter; }
131 return UniquePtrs->
GetArtPtr<T>(Name, index);
140 if (collectorPtr ==
nullptr) {
141 mf::LogWarning(
"IShowerTool") <<
"The art::ProducesCollector ptr has not been set";
145 collectorPtr->
produces<T>(InstanceName);
151 template <
class T,
class A,
class B>
Reconstruction base classes.
int GetShowerNumber() const
void PrintPtr(const std::string &Name) const
bool CheckUniqueProduerPtr(const std::string &Name) const
void produces(std::string const &instanceName={}, Persistable const persistable=Persistable::Yes)
void AddSingle(A &a, B &b, const std::string &Name)
bool CheckElement(const std::string &Name) const
decltype(auto) get(T &&obj)
ADL-aware version of std::to_string.
MaybeLogger_< ELseverityLevel::ELsev_warning, false > LogWarning
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
cet::coded_exception< error, detail::translate > exception