32 : fLArPandoraShowerAlg(pset.
get<
fhicl::ParameterSet>(
"LArPandoraShowerAlg"))
33 , fRunEventDisplay(pset.
get<bool>(
"EnableEventDisplay")){};
47 std::string evd_display_name_append =
"")
50 int calculation_status = CalculateElement(pfparticle, Event, ShowerEleHolder);
51 if (calculation_status != 0)
return calculation_status;
52 if (fRunEventDisplay) {
53 IShowerTool::GetLArPandoraShowerAlg().DebugEVD(
54 pfparticle, Event, ShowerEleHolder, evd_display_name_append);
56 return calculation_status;
68 UniquePtrs = &uniqueproducerPtrs;
82 return fLArPandoraShowerAlg;
106 bool check_element = ShowerEleHolder.
CheckElement(Name);
107 if (!check_element) {
108 throw cet::exception(
"IShowerTool") <<
"tried to get a element that does not exist. Failed " 109 "at making the art ptr for Element: " 110 << Name << std::endl;
117 <<
"tried to get a ptr that does not exist. Failed at making the art ptr for Element" 123 if (iter != -1) { index = iter; }
129 return UniquePtrs->
GetArtPtr<T>(Name, index);
138 if (collectorPtr ==
nullptr) {
139 mf::LogWarning(
"IShowerTool") <<
"The art::ProducesCollector ptr has not been set";
143 collectorPtr->
produces<T>(InstanceName);
149 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