10 #define INFOTRANSFER_H 20 #include "nuevdb/EventDisplayBase/Reconfigurable.h" 33 class InfoTransfer :
public evdb::Reconfigurable
61 { fSelectedHitlist[
p].clear(); fSelectedHitlist[
p]=hits_to_save; }
63 std::vector < art::Ptr < recob::Hit> >
const&
GetHitList(
unsigned int plane)
const 64 {
return fRefinedHitlist[plane]; }
67 {
return fSelectedHitlist[plane]; }
71 if (fSelectedHitlist.size()==0) {
return; std::cout<<
"no size"<<
std::endl;}
72 fSelectedHitlist[plane].clear();
73 for(
unsigned int i=0; i<fRefStartHit.size(); i++){
81 { fStartHit[
p]=starthit; }
84 {
return fRefStartHit[plane];}
87 { fEndHit[
p]=endhit; }
90 {
return fRefEndHit[plane]; }
93 {
return refstarthitout[plane]; }
96 {
return refendhitout[plane]; }
100 starthitout[plane].clear();
101 starthitout[plane].resize(2);
102 starthitout[plane]=starthitin;
107 endhitout[plane].clear();
108 endhitout[plane].resize(2);
109 endhitout[plane]=endhitin;
112 void SetSeedList(std::vector < util::PxLine > seedlines);
115 std::vector < util::PxLine >
const& GetSeedList()
const;
119 void FillStartEndHitCoords(
unsigned int plane);
125 std::vector < std::vector< art::Ptr < recob::Hit > > > fSelectedHitlist;
126 std::vector < std::vector< art::Ptr < recob::Hit > > > fRefinedHitlist;
127 std::vector< art::Ptr < recob::Hit > > fFullHitlist;
130 std::vector < recob::Hit * > fStartHit;
131 std::vector < recob::Hit * > fRefStartHit;
133 std::vector < recob::Hit * > fEndHit;
134 std::vector < recob::Hit * > fRefEndHit;
136 std::vector < util::PxLine > fSeedList;
138 std::vector < std::vector <double > > starthitout;
139 std::vector < std::vector <double > > endhitout;
141 std::vector < std::vector <double > > refstarthitout;
142 std::vector < std::vector <double > > refendhitout;
void SetTestFlag(int value)
Namespace for general, non-LArSoft-specific utilities.
recob::Hit * GetStartHit(unsigned int plane) const
void SetStartHit(unsigned int p, recob::Hit *starthit)
void SetEndHit(unsigned int p, recob::Hit *endhit)
void ClearSelectedHitList(int plane)
recob::Hit * GetEndHit(unsigned int plane) const
void SetStartHitCoords(unsigned int plane, std::vector< double > starthitin)
std::vector< double > const & GetEndHitCoords(unsigned int plane) const
void SetRunNumber(int value)
void SetSubRunNumber(int value)
virtual void reconfigure(fhicl::ParameterSet const &pset)
#define DECLARE_ART_SERVICE(svc, scope)
std::vector< art::Ptr< recob::Hit > > const & GetHitList(unsigned int plane) const
void SetHitList(unsigned int p, std::vector< art::Ptr< recob::Hit > > hits_to_save)
int GetSubRunNumber() const
void SetEvtNumber(int value)
Declaration of signal hit object.
std::vector< art::Ptr< recob::Hit > > const & GetSelectedHitList(unsigned int plane) const
void SetEndHitCoords(unsigned int plane, std::vector< double > endhitin)
2D representation of charge deposited in the TDC/wire plane
std::vector< double > const & GetStartHitCoords(unsigned int plane) const
QTextStream & endl(QTextStream &s)