22 #include "canvas/Persistency/Common/FindManyP.h" 29 #include "art_root_io/TFileService.h" 121 ftree= tfs->make<TTree>(
"HoughTree",
"HoughTree");
139 ftree->Branch(
"hitidZ",fm_hitidZ,
"hitidZ[numberHits]/I");
164 for (
size_t ii = 0; ii < hlfListHandle->size(); ++ii){
169 for (
size_t ii = 0; ii < dbscanListHandle->size(); ++ii){
180 unsigned int firstwire=0;
181 unsigned int lastwire=0;
187 for(
auto view : geo->
Views()){
192 for(
size_t j = 0; j < dbclusters.
size(); ++j) {
193 if(dbclusters[j]->
View() == view){
194 std::vector< art::Ptr<recob::Hit> > _dbhits = fmh.at(j);
196 if(_dbhits.size() > 0)
fm_plane = _dbhits.at(0)->WireID().Plane;
200 for(
size_t j = 0; j < clusters.
size(); ++j) {
201 if(clusters[j]->
View() == view){
203 std::vector< art::Ptr<recob::Hit> > _hits = fmhhl.
at(j);
207 fm_plane = _hits.at(0)->WireID().Plane;
208 firstwire = _hits[0]->WireID().Wire;
209 lastwire = _hits[_hits.size()-1]->WireID().Wire;
213 for(
unsigned int i = 0; i < _hits.size(); ++i){
216 fm_wireZ[i] = _hits[i]->WireID().Wire;
217 fm_mipZ[i] = (double)_hits[i]->Integral();
219 fm_widthZ[i] = (double) (2. * _hits[i]->RMS());
220 fm_upadcZ[i] = (double)_hits[i]->Integral();
std::string fHitsModuleLabel
std::string fDigitModuleLabel
AdcChannelData::View View
std::set< geo::View_t > const & Views() const
Returns a list of possible views in the detector.
float fm_clusterintercept
std::string fHoughModuleLabel
Cluster finding and building.
EDAnalyzer(fhicl::ParameterSet const &pset)
constexpr TimeValue_t value() const
art framework interface to geometry description
bool getByLabel(std::string const &label, std::string const &instance, Handle< PROD > &result) const
#define DEFINE_ART_MODULE(klass)
void push_back(Ptr< U > const &p)
void analyze(const art::Event &)
reference at(size_type n)
HoughLineFinderAna(fhicl::ParameterSet const &pset)
Declaration of signal hit object.
std::string fDBScanModuleLabel
#define MF_LOG_VERBATIM(category)
unsigned long int fm_run_timestamp
EventNumber_t event() const
auto const & get(AssnsNode< L, R, D > const &r)
LArSoft geometry interface.