150 art::Handle< std::vector<recob::Cluster> > hlfListHandle;
152 art::Handle< std::vector<recob::Hit> > hitListHandle;
154 art::Handle< std::vector<recob::Cluster> > dbscanListHandle;
160 art::PtrVector<recob::Cluster> clusters;
161 art::PtrVector<recob::Cluster> dbclusters;
164 for (
size_t ii = 0; ii < hlfListHandle->size(); ++ii){
165 art::Ptr<recob::Cluster>
cluster(hlfListHandle,ii);
169 for (
size_t ii = 0; ii < dbscanListHandle->size(); ++ii){
170 art::Ptr<recob::Cluster>
dbcluster(dbscanListHandle,ii);
174 MF_LOG_VERBATIM(
"HoughLineFinderAna") <<
"run : " <<
evt.id().
run();
176 MF_LOG_VERBATIM(
"HoughLineFinderAna") <<
"event : " <<
evt.id().
event();
180 unsigned int firstwire=0;
181 unsigned int lastwire=0;
185 art::ServiceHandle<geo::Geometry const> geo;
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
process_name can override from command line with o or output dbcluster
float fm_clusterintercept
std::string fHoughModuleLabel
std::string fDBScanModuleLabel
unsigned long int fm_run_timestamp