20 #include <sys/types.h> 30 #include "TDatabasePDG.h" 152 ftree= tfs->
make<TTree>(
"HoughTree",
"HoughTree");
170 ftree->Branch(
"hitidZ",fm_hitidZ,
"hitidZ[numberHits]/I");
195 for (
size_t ii = 0; ii < hlfListHandle->size(); ++ii){
200 for (
size_t ii = 0; ii < dbscanListHandle->size(); ++ii){
211 unsigned int firstwire=0;
212 unsigned int lastwire=0;
218 for(
auto view : geo->
Views()){
223 for(
size_t j = 0; j < dbclusters.
size(); ++j) {
224 if(dbclusters[j]->View() == view){
225 std::vector< art::Ptr<recob::Hit> > _dbhits = fmh.at(j);
227 if(_dbhits.size() > 0)
fm_plane = _dbhits.at(0)->WireID().Plane;
231 for(
size_t j = 0; j < clusters.
size(); ++j) {
232 if(clusters[j]->View() == view){
234 std::vector< art::Ptr<recob::Hit> > _hits = fmhhl.at(j);
238 fm_plane = _hits.at(0)->WireID().Plane;
239 firstwire = _hits[0]->WireID().Wire;
240 lastwire = _hits[_hits.size()-1]->WireID().Wire;
244 for(
unsigned int i = 0; i < _hits.size(); ++i){
247 fm_wireZ[i] = _hits[i]->WireID().Wire;
248 fm_mipZ[i] = (double)_hits[i]->Integral();
250 fm_widthZ[i] = (double) (2. * _hits[i]->RMS());
251 fm_upadcZ[i] = (double)_hits[i]->Integral();
std::string fHitsModuleLabel
std::string fDigitModuleLabel
Encapsulate the construction of a single cyostat.
Declaration of signal hit object.
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.
constexpr TimeValue_t value() const
#define DEFINE_ART_MODULE(klass)
void push_back(Ptr< U > const &p)
void analyze(const art::Event &)
EDAnalyzer(Table< Config > const &config)
Declaration of cluster object.
HoughLineFinderAna(fhicl::ParameterSet const &pset)
T * make(ARGS...args) const
Utility object to perform functions of association.
std::string fDBScanModuleLabel
Encapsulate the construction of a single detector plane.
bool getByLabel(std::string const &label, std::string const &productInstanceName, Handle< PROD > &result) const
unsigned long int fm_run_timestamp
EventNumber_t event() const
#define LOG_VERBATIM(category)
Namespace collecting geometry-related classes utilities.
art framework interface to geometry description
Encapsulate the construction of a single detector plane.