16 #include "art_root_io/TFileService.h" 17 #include "canvas/Persistency/Common/FindManyP.h" 73 fEventTree = tfs->make<TTree>(
"EventTree",
"event by event info");
77 fClusterTree = tfs->make<TTree>(
"ClusterTree",
"cluster by cluster info");
98 for (
size_t i = 0; i < cluHandle->size(); ++i)
100 fNHits = cluHandle->at(i).NHits();
105 <<
"NHits() = " <<
fNHits <<
", assn size = " << hitsFromClusters.at(i).size()
106 <<
" SummedADC() = " << cluHandle->at(i).SummedADC() <<
", sum hits adc = " <<
fAdcSum;
116 for (
auto const &
h : hits)
118 sum +=
h->SummedADC();
MaybeLogger_< ELseverityLevel::ELsev_info, true > LogVerbatim
EDAnalyzer(fhicl::ParameterSet const &pset)
ClusterCounter3(fhicl::ParameterSet const &p)
#define DEFINE_ART_MODULE(klass)
void analyze(art::Event const &e) override
T get(std::string const &key) const
ValidHandle< PROD > getValidHandle(InputTag const &tag) const
ClusterCounter3 & operator=(ClusterCounter3 const &)=delete
Declaration of signal hit object.
EventNumber_t event() const
float sumAdc(const std::vector< art::Ptr< recob::Hit > > &hits) const
art::InputTag fClusterModuleLabel