16 #include "art/Framework/Principal/Event.h"
17 #include "art/Framework/Services/Registry/ServiceHandle.h"
18 #include "canvas/Persistency/Common/Ptr.h"
19 #include "canvas/Persistency/Common/PtrVector.h"
20 #include "messagefacility/MessageLogger/MessageLogger.h"
26 art::ServiceHandle<geo::Geometry const> geo;
57 GetHitList(plane,ptrhitlist);
58 GetStartEndHits(plane,startendpoints);
67 std::vector < double > starthit;
68 std::vector < double > endhit;
69 art::ServiceHandle<evd::InfoTransfer const> intr;
70 starthit=intr->GetStartHitCoords(plane);
71 endhit=intr->GetEndHitCoords(plane);
73 startendpoints.
w0=starthit[0];
74 startendpoints.
t0=starthit[1];
75 startendpoints.
w1=endhit[0];
76 startendpoints.
t1=endhit[1];
77 startendpoints.
plane=plane;
178 art::ServiceHandle<evd::InfoTransfer const> intr;
180 std::vector< art::Ptr <recob::Hit> > ptlist=intr->GetHitList(plane);
185 if(ptlist.size()==0) {
186 mf::LogVerbatim(
"GraphClusterAlg") << (
"hit list of zero size, please select some hits");
190 for(art::PtrVector<recob::Hit>::const_iterator hitIter = ptlist.begin(); hitIter != ptlist.end(); hitIter++){
193 ptrhitlist.push_back((*hitIter));
204 art::ServiceHandle<evd::InfoTransfer const> intr;
208 std::vector < util::PxLine > plines = intr->GetSeedList();
210 std::cout <<
" Received Seed List of Size: " << plines.size() << std::endl;
217 art::ServiceHandle<evd::InfoTransfer const> intr;
218 TestFlag=intr->GetTestFlag();
220 fEvent=intr->GetEvtNumber();
221 fRun=intr->GetRunNumber();
222 fSubRun=intr->GetSubRunNumber();
229 if(fEvent!=(
int)evt.id().event() || fRun!=(int)evt.id().run() || fSubRun!=(int)evt.id().subRun() ) {
230 mf::LogVerbatim(
"GraphClusterAlg") << (
" old event ");
double t1
defined to be the ending t-position (of line or seed depending)
GraphClusterAlg(fhicl::ParameterSet const &pset)
std::vector< util::PxLine > GetSeedLines()
double w0
defined to be the vertex w-position
double w1
defined to be the ending w-position (of line or seed depending)
int CheckValidity(art::Event &evt)
void GetHitListAndEndPoints(unsigned int plane, art::PtrVector< recob::Hit > &ptrhitlist, util::PxLine &startendpoints)
void GetStartEndHits(unsigned int plane, util::PxLine &startendpoints)
void GetHitList(unsigned int plane, art::PtrVector< recob::Hit > &ptrhitlist)
void reconfigure(fhicl::ParameterSet const &pset)
double t0
defined to be the vertex t-position
art framework interface to geometry description
BEGIN_PROLOG could also be cout