25 #include "art_root_io/TFileService.h" 114 ftree = tfs->make<TTree>(
"HoughTree",
"HoughTree");
132 ftree->Branch(
"hitidZ", fm_hitidZ,
"hitidZ[numberHits]/I");
156 for (
size_t ii = 0; ii < hlfListHandle->size(); ++ii) {
161 for (
size_t ii = 0; ii < dbscanListHandle->size(); ++ii) {
172 unsigned int firstwire = 0;
173 unsigned int lastwire = 0;
179 for (
auto view : geo->
Views()) {
184 for (
size_t j = 0; j < dbclusters.
size(); ++j) {
185 if (dbclusters[j]->View() == view) {
186 std::vector<art::Ptr<recob::Hit>> _dbhits = fmh.at(j);
188 if (_dbhits.size() > 0)
fm_plane = _dbhits.at(0)->WireID().Plane;
192 for (
size_t j = 0; j < clusters.
size(); ++j) {
193 if (clusters[j]->View() == view) {
195 std::vector<art::Ptr<recob::Hit>> _hits = fmhhl.at(j);
198 if (_hits.size() != 0) {
199 fm_plane = _hits.at(0)->WireID().Plane;
200 firstwire = _hits[0]->WireID().Wire;
201 lastwire = _hits[_hits.size() - 1]->WireID().Wire;
205 for (
unsigned int i = 0; i < _hits.size(); ++i) {
208 fm_wireZ[i] = _hits[i]->WireID().Wire;
209 fm_mipZ[i] = (double)_hits[i]->Integral();
211 fm_widthZ[i] = (double)(2. * _hits[i]->RMS());
212 fm_upadcZ[i] = (double)_hits[i]->Integral();
std::string fHitsModuleLabel
std::string fDigitModuleLabel
Declaration of signal hit object.
float fm_clusterintercept
std::string fHoughModuleLabel
Cluster finding and building.
EDAnalyzer(fhicl::ParameterSet const &pset)
constexpr TimeValue_t value() const
#define DEFINE_ART_MODULE(klass)
void push_back(Ptr< U > const &p)
void analyze(const art::Event &)
Declaration of cluster object.
HoughLineFinderAna(fhicl::ParameterSet const &pset)
decltype(auto) get(T &&obj)
ADL-aware version of std::to_string.
bool getByLabel(std::string const &label, std::string const &instance, Handle< PROD > &result) const
std::string fDBScanModuleLabel
#define MF_LOG_VERBATIM(category)
unsigned long int fm_run_timestamp
std::set< View_t > const & Views() const
Returns a list of possible views in the detector.
EventNumber_t event() const
Namespace collecting geometry-related classes utilities.
art framework interface to geometry description