17 #include "nuevdb/EventDisplayBase/NavState.h"
20 #include "art/Framework/Principal/Event.h"
21 #include "art/Framework/Principal/Handle.h"
22 #include "art/Framework/Services/Registry/ActivityRegistry.h"
23 #include "art/Framework/Services/Registry/ServiceHandle.h"
24 #include "canvas/Persistency/Common/Ptr.h"
25 #include "messagefacility/MessageLogger/MessageLogger.h"
29 void WriteMsg(
const char* fcn)
31 mf::LogWarning(
"InfoTransfer") <<
"InfoTransfer::" << fcn <<
" \n";
39 art::ActivityRegistry& reg)
40 : evdb::Reconfigurable{pset}
48 art::ServiceHandle<geo::Geometry const> geo;
49 unsigned int nplanes = geo->Nplanes();
51 fSelectedHitlist.resize(nplanes);
52 fStartHit.resize(nplanes);
53 fRefStartHit.resize(nplanes);
54 fEndHit.resize(nplanes);
55 fRefEndHit.resize(nplanes);
56 starthitout.resize(nplanes);
57 endhitout.resize(nplanes);
58 refstarthitout.resize(nplanes);
59 refendhitout.resize(nplanes);
60 for(
unsigned int i=0;i<nplanes;i++){
61 starthitout[i].resize(2);
62 endhitout[i].resize(2);
63 refstarthitout[i].resize(2);
64 refendhitout[i].resize(2);
77 art::ServiceHandle<geo::Geometry const> geo;
78 unsigned int nplanes = geo->Nplanes();
82 for (
unsigned int i=0;i<nplanes;i++){
94 art::ServiceHandle<geo::Geometry const> geo;
95 unsigned int nplanes = geo->Nplanes();
96 unsigned int which_call=evdb::NavState::Which();
101 for(
unsigned int j=0; j<nplanes;j++){
118 art::Handle< std::vector<recob::Hit> > hHandle;
120 fEvt=evt.id().event();
125 if(hHandle.failedToGet()){
134 for(
unsigned int i=0;i<nplanes;i++){
146 for(
unsigned int i=0;i<nplanes;i++ )
161 for(
size_t p = 0;
p < hHandle->size(); ++
p){
162 art::Ptr<recob::Hit>
hit(hHandle,
p);
168 for(
unsigned int j=0; j<nplanes; j++){
169 sprintf(buf,
" ++++rebuilding with %lu selected hits in plane %u \n",
fSelectedHitlist[j].
size(),j);
174 for(
unsigned int ip=0;ip<nplanes;ip++) {
219 art::ServiceHandle<geo::Geometry const> geo;
231 catch(cet::exception
const&
e) {
232 mf::LogWarning(
"GraphCluster") <<
"caught exception \n"
253 catch(cet::exception
const&
e) {
254 mf::LogWarning(
"GraphCluster") <<
"caught exception \n"
void FillStartEndHitCoords(unsigned int plane)
InfoTransfer(fhicl::ParameterSet const &pset, art::ActivityRegistry ®)
Declaration of signal hit object.
std::vector< std::vector< double > > endhitout
std::size_t size(FixedBins< T, C > const &) noexcept
std::vector< recob::Hit * > fStartHit
The Starthit.
std::vector< recob::Hit * > fRefStartHit
The Refined Starthit.
std::vector< std::vector< double > > refstarthitout
IDparameter< geo::WireID > WireID
Member type of validated geo::WireID parameter.
std::vector< recob::Hit * > fRefEndHit
The Refined Starthit.
std::vector< recob::Hit * > fEndHit
The Starthit.
std::vector< std::vector< art::Ptr< recob::Hit > > > fRefinedHitlist
the refined hitlist after rebuild (one for each plane)
std::string fHitModuleLabel
label for geant4 module
std::vector< std::vector< double > > starthitout
Definition of data types for geometry description.
std::vector< art::Ptr< recob::Hit > > fFullHitlist
the full Hit list from the Hitfinder.
void Rebuild(const art::Event &evt, art::ScheduleContext)
std::vector< std::vector< art::Ptr< recob::Hit > > > fSelectedHitlist
the list selected by the GUI (one for each plane)
void SetSeedList(std::vector< util::PxLine > seedlines)
std::vector< std::vector< double > > refendhitout
std::vector< util::PxLine > const & GetSeedList() const
2D representation of charge deposited in the TDC/wire plane
void reconfigure(fhicl::ParameterSet const &pset)
art framework interface to geometry description
std::vector< util::PxLine > fSeedList