24 double totalCharge = 0, totalEnergy = 0;
27 if (
int((*hit)->WireID().Plane)!=plane)
continue;
double ShowerEnergy(std::vector< art::Ptr< recob::Hit > > const &hits, int plane)
Finds the total energy deposited by the shower in this view.
detinfo::DetectorProperties const * detprop
T::provider_type const * providerFrom()
Returns a constant pointer to the provider of specified service.
virtual double SamplingRate() const =0
Returns the period of the TPC readout electronics clock.
ShowerEnergyAlg(fhicl::ParameterSet const &pset)
auto vector(Vector const &v)
Returns a manipulator which will print the specified array.
T get(std::string const &key) const
General LArSoft Utilities.
Detector simulation of raw signals on wires.
data_t::const_iterator const_iterator
LArSoft-specific namespace.
virtual double ElectronLifetime() const =0
Returns the attenuation constant for ionization electrons.