30 #include "larevt/CalibrationDBI/Interface/ChannelStatusService.h" 31 #include "larevt/CalibrationDBI/Interface/ChannelStatusProvider.h" 39 #include "TGeoManager.h" 80 produces< std::vector<recob::Cluster> >();
81 produces< art::Assns<recob::Cluster, recob::Hit> >();
101 fhitwidth= tfs->
make<TH1F>(
" fhitwidth",
"width of hits in cm", 50000,0 ,5 );
112 std::unique_ptr<std::vector<recob::Cluster> > ccol(
new std::vector<recob::Cluster>);
126 std::vector< art::Ptr<recob::Hit> > allhits;
129 lariov::ChannelStatusProvider
const& channelStatus
132 lariov::ChannelStatusProvider::ChannelSet_t
const BadChannels
133 = channelStatus.BadChannels();
136 std::map<geo::PlaneID, std::vector< art::Ptr<recob::Hit> > > planeIDToHits;
137 for(
size_t i = 0; i < hitcol->size(); ++i)
141 for(
auto & itr : planeIDToHits){
144 allhits.resize(itr.second.size());
145 allhits.swap(itr.second);
150 for(
unsigned int j = 0; j <
fDBScan.
fps.size(); ++j){
152 if(allhits.size() !=
fDBScan.
fps.size())
break;
170 totalQ += clusterHits.
back()->Integral();
175 if (clusterHits.
size()>0){
179 unsigned int sw = wireID.
Wire;
180 unsigned int ew = clusterHits.
back()->WireID().Wire;
190 clusterHits.
front()->PeakTime(),
191 clusterHits.
front()->SigmaPeakTime(),
194 clusterHits.
back()->PeakTime(),
195 clusterHits.
back()->SigmaPeakTime(),
197 clusterHits.
front()->View(),
202 ccol->emplace_back(
cluster.move());
216 mf::LogVerbatim(
"Summary") << std::setfill(
'-') << std::setw(175) <<
"-" << std::setfill(
' ');
218 for(
unsigned int i = 0; i<ccol->size(); ++i)
mf::LogVerbatim(
"Summary") << ccol->at(i) ;
220 evt.
put(std::move(ccol));
221 evt.
put(std::move(assn));
MaybeLogger_< ELseverityLevel::ELsev_info, true > LogVerbatim
PlaneID const & planeID() const
Class managing the creation of a new recob::Cluster object.
void reconfigure(fhicl::ParameterSet const &p)
void InitScan(const std::vector< art::Ptr< recob::Hit > > &allhits, std::set< uint32_t > badChannels, const std::vector< geo::WireID > &wireids=std::vector< geo::WireID >())
Encapsulate the construction of a single cyostat.
Declaration of signal hit object.
WireID_t Wire
Index of the wire within its plane.
std::vector< std::vector< double > > fps
the collection of points we are working on
SigType_t SignalType(geo::PlaneID const &pid) const
Returns the type of signal on the channels of specified TPC plane.
Cluster finding and building.
static const SentryArgument_t Sentry
An instance of the sentry object.
DBScanAlg fDBScan
object that implements the DB scan algorithm
ProductID put(std::unique_ptr< PROD > &&product)
std::vector< unsigned int > fpointId_to_clusterId
mapping point_id -> clusterId
#define DEFINE_ART_MODULE(klass)
void push_back(Ptr< U > const &p)
Signal from induction planes.
enum geo::_plane_sigtype SigType_t
Enumerate the possible plane projections.
Helper functions to create a cluster.
Wrapper for ClusterParamsAlgBase objects to accept diverse input.
T get(std::string const &key) const
Wrapper for ClusterParamsAlgBase objects to accept arbitrary input.
bool CreateAssn(PRODUCER const &prod, art::Event &evt, std::vector< T > const &a, art::Ptr< U > const &b, art::Assns< U, T > &assn, std::string a_instance, size_t indx=UINT_MAX)
Creates a single one-to-one association.
Declaration of cluster object.
TH1F * fhitwidth_ind_test
TH1F * fhitwidth_coll_test
std::string fhitsModuleLabel
void produce(art::Event &evt)
T * make(ARGS...args) const
Utility object to perform functions of association.
Encapsulate the construction of a single detector plane.
std::vector< std::vector< unsigned int > > fclusters
collection of something
bool getByLabel(std::string const &label, std::string const &productInstanceName, Handle< PROD > &result) const
void ImportHits(Iter begin, Iter end)
Calls SetHits() with the hits in the sequence.
void reconfigure(fhicl::ParameterSet const &p)
DBcluster(fhicl::ParameterSet const &pset)
Interface to class computing cluster parameters.
art framework interface to geometry description
Encapsulate the construction of a single detector plane.
Signal from collection planes.