LArSoft  v08_20_00
Liquid Argon Software toolkit - http://larsoft.org/
recob Namespace Reference

Reconstruction base classes. More...

Namespaces

 details
 
 dumper
 
 tracking
 

Classes

class  ChargedSpacePointCollectionCreator
 Creates a collection of space points with associated charge. More...
 
class  Cluster
 Set of hits with a 2D structure. More...
 
class  DumpChargedSpacePoints
 Prints the content of all the space points and charge on screen. More...
 
class  DumpClusters
 Prints the content of all the clusters on screen. More...
 
class  DumpPCAxes
 Prints the content of all the PCA axis object on screen. More...
 
class  DumpPFParticles
 Prints the content of all the ParticleFlow particles on screen. More...
 
class  DumpSeeds
 Prints the content of all the seeds on screen. More...
 
class  DumpSpacePoints
 Prints the content of all the space points on screen. More...
 
class  DumpTracks
 Prints the content of all the tracks on screen. More...
 
class  DumpVertices
 Prints the content of all the vertices on screen. More...
 
class  Edge
 Edge is an object containing the results of a Principal Components Analysis of a group of space points. More...
 
class  EndPoint2D
 
class  Event
 
class  Hit
 2D representation of charge deposited in the TDC/wire plane More...
 
class  HitAndAssociationsWriterBase
 Base class handling a collection of hits and its associations. More...
 
class  HitAndAssociationsWriterManager
 A helper to centralise creation of a hit collection data product. More...
 
class  HitCollectionAssociator
 A class handling a collection of hits and its associations. More...
 
class  HitCollectionCreator
 A class handling a collection of hits and its associations. More...
 
class  HitCreator
 Class managing the creation of a new recob::Hit object. More...
 
class  HitRefinerAssociator
 A class handling a collection of hits and its associations. More...
 
class  MCSFitResult
 Class storing the result of the Maximum Likelihood fit of Multiple Coulomb Scattering angles between segments within a Track or Trajectory. More...
 
class  OpFlash
 
struct  OpFlashSortByTime
 
class  OpHit
 
class  PCAxis
 
class  PFParticle
 Hierarchical representation of particle flow. More...
 
class  PointCharge
 Charge reconstructed in the active volume. More...
 
class  Seed
 
class  Shower
 
class  Slice
 
class  SpacePoint
 
class  Track
 Track from a non-cascading particle.A recob::Track consists of a recob::TrackTrajectory, plus additional members relevant for a "fitted" track: More...
 
class  TrackFitHitInfo
 Object storing per-hit information from a track fit. More...
 
class  TrackHitMeta
 Data related to recob::Hit associated with recob::Track.The purpose is to collect several variables that do not work well alone inside track class and are related to 2D hits along the 3D trajectory. So in the first place it is the hit index along the trajectory. There is also dx associated to hit to help dE/dx calculations. More...
 
class  TrackTrajectory
 A trajectory in space reconstructed from hits. More...
 
class  Trajectory
 A trajectory in space reconstructed from hits. More...
 
class  TrajectoryPointFlags
 Set of flags pertaining a point of the track. More...
 
struct  TrajectoryPointFlagTraits
 Namespace for the trajectory point flags. More...
 
class  Vertex
 Definition of vertex object for LArSoft. More...
 
class  VertexAssnMeta
 Class storing the meta-data for track-vertex association: status, propagation distance, impact parameter, impact parameter error, chi2. More...
 
class  Wire
 Class holding the regions of interest of signal from a channel. More...
 
class  WireCreator
 Class managing the creation of a new recob::Wire object. More...
 

Typedefs

template<typename ModuleType = art::EDProducer>
using HitCollectionCreatorManager = HitAndAssociationsWriterManager< HitCollectionCreator, ModuleType >
 A manager for recob::HitCollectionCreator writer class. More...
 
using SVector5 = tracking::SVector5
 
using SMatrixSym55 = tracking::SMatrixSym55
 

Functions

std::ostream & operator<< (std::ostream &o, Cluster const &c)
 
bool operator< (Cluster const &a, Cluster const &b)
 
std::ostream & operator<< (std::ostream &o, const Edge &a)
 Streaming operator: prints the edge a into the specified stream. More...
 
bool operator< (const Edge &a, const Edge &b)
 Comparison operator: strict ordering of edge by ID. More...
 
bool operator< (const Edge &e, Edge::ID_t id)
 Comparison operator: strict ordering of edge by ID. More...
 
bool operator< (Edge::ID_t id, const Edge &e)
 Comparison operator: strict ordering of edge by ID. More...
 
std::ostream & operator<< (std::ostream &o, const EndPoint2D &ep)
 
std::ostream & operator<< (std::ostream &o, const Event &a)
 
bool operator< (const Event &a, const Event &b)
 
std::ostream & operator<< (std::ostream &o, Hit const &hit)
 
bool operator< (const Hit &a, const Hit &b)
 
bool operator< (const OpFlash &a, const OpFlash &b)
 
bool operator< (const OpHit &a, const OpHit &b)
 
std::ostream & operator<< (std::ostream &o, const PCAxis &a)
 
bool operator< (const PCAxis &a, const PCAxis &b)
 
std::ostream & operator<< (std::ostream &o, const PFParticle &c)
 
bool operator< (const PFParticle &a, const PFParticle &b)
 
std::ostream & operator<< (std::ostream &out, recob::PointCharge const &charge)
 Dumps the content of a recob::PointCharge object into an output stream. More...
 
void CrossProd (double x1, double x2, double x3, double y1, double y2, double y3, double &out1, double &out2, double &out3)
 
std::ostream & operator<< (std::ostream &o, Seed const &a)
 
bool operator< (const Seed &a, const Seed &b)
 
std::ostream & operator<< (std::ostream &o, Shower const &a)
 
bool operator< (const Shower &a, const Shower &b)
 
std::ostream & operator<< (std::ostream &o, const SpacePoint &a)
 
bool operator< (const SpacePoint &a, const SpacePoint &b)
 
bool operator< (SpacePoint const &s, SpacePoint::ID_t id)
 Comparison of a space point with an ID, for sorting and lookup. More...
 
bool operator< (SpacePoint::ID_t id, SpacePoint const &s)
 Comparison of a space point with an ID, for sorting and lookup. More...
 
std::ostream & operator<< (std::ostream &stream, Track const &a)
 
bool operator< (const Track &a, const Track &b)
 
std::ostream & operator<< (std::ostream &o, const TrackHitMeta &a)
 
bool operator< (const TrackHitMeta &a, const TrackHitMeta &b)
 
std::ostream & operator<< (std::ostream &&out, TrackTrajectory const &traj)
 Prints trajectory content into a stream. More...
 
std::ostream & operator<< (std::ostream &out, Trajectory const &traj)
 Prints trajectory content into a stream. More...
 
std::ostream & operator<< (std::ostream &out, recob::TrajectoryPointFlags const &flags)
 Dumps flags into a stream with default verbosity. More...
 
std::ostream & operator<< (std::ostream &o, const Vertex &a)
 
bool operator< (const Vertex &a, const Vertex &b)
 

Detailed Description

Reconstruction base classes.

Typedef Documentation

template<typename ModuleType = art::EDProducer>
using recob::HitCollectionCreatorManager = typedef HitAndAssociationsWriterManager<HitCollectionCreator, ModuleType>

A manager for recob::HitCollectionCreator writer class.

Definition at line 1087 of file HitCreator.h.

Definition at line 10 of file TrackFitHitInfo.h.

Definition at line 9 of file TrackFitHitInfo.h.

Function Documentation

void recob::CrossProd ( double  x1,
double  x2,
double  x3,
double  y1,
double  y2,
double  y3,
double &  out1,
double &  out2,
double &  out3 
)

Definition at line 333 of file Seed.cxx.

References y1, and y2.

Referenced by recob::Seed::GetDistanceFrom().

336  {
337  out1 = (x2*y3-x3*y2);
338  out2 = (x3*y1-x1*y3);
339  out3 = (x1*y2-x2*y1);
340  }
Float_t y1[n_points_granero]
Definition: compare.C:5
Float_t x1[n_points_granero]
Definition: compare.C:5
Float_t y2[n_points_geant4]
Definition: compare.C:26
Float_t x2[n_points_geant4]
Definition: compare.C:26
bool recob::operator< ( const Track a,
const Track b 
)

Definition at line 41 of file Track.cxx.

References recob::Track::ID().

42  {
43  if(a.ID() != b. ID())
44  return a.ID() < b.ID();
45 
46  return false; //They are equal
47  }
bool recob::operator< ( const PFParticle a,
const PFParticle b 
)

Definition at line 49 of file PFParticle.cxx.

References recob::PFParticle::Self().

50  {
51  return a.Self() < b.Self();
52  }
bool recob::operator< ( const OpFlash a,
const OpFlash b 
)

Definition at line 50 of file OpFlash.cxx.

References recob::OpFlash::Time().

51  {
52  return a.Time() < b.Time();
53  }
bool recob::operator< ( const OpHit a,
const OpHit b 
)

Definition at line 53 of file OpHit.cxx.

References recob::OpHit::PE().

54  {
55  return a.PE() < b.PE();
56  }
bool recob::operator< ( const SpacePoint a,
const SpacePoint b 
)

Definition at line 55 of file SpacePoint.cxx.

References recob::SpacePoint::ID().

56  {
57  if(a.ID() != b. ID())
58  return a.ID()<b.ID();
59 
60  return false; //They are equal
61 
62  }
bool recob::operator< ( SpacePoint const &  s,
SpacePoint::ID_t  id 
)
inline

Comparison of a space point with an ID, for sorting and lookup.

Definition at line 57 of file SpacePoint.h.

References recob::SpacePoint::ID().

57 { return s.ID() < id; }
Float_t s
Definition: plot.C:23
bool recob::operator< ( SpacePoint::ID_t  id,
SpacePoint const &  s 
)
inline

Comparison of a space point with an ID, for sorting and lookup.

Definition at line 59 of file SpacePoint.h.

References recob::SpacePoint::ID().

59 { return id < s.ID(); }
Float_t s
Definition: plot.C:23
bool recob::operator< ( const Vertex a,
const Vertex b 
)

Definition at line 61 of file Vertex.cxx.

References recob::Vertex::XYZ().

62  {
63  double xyza[3] = {0.};
64  double xyzb[3] = {0.};
65  a.XYZ(xyza);
66  b.XYZ(xyzb);
67 
68  return xyza[2] < xyzb[2];
69 
70  }
bool recob::operator< ( const Shower a,
const Shower b 
)

Definition at line 66 of file Shower.cxx.

References recob::Shower::ID().

67  {
68  if(a.ID() != b. ID())
69  return a.ID() < b.ID();
70 
71  return false; //They are equal
72  }
bool recob::operator< ( const PCAxis a,
const PCAxis b 
)

Definition at line 73 of file PCAxis.cxx.

References recob::PCAxis::getID().

74 {
75  if(a.getID() != b. getID())
76  return a.getID() < b.getID();
77 
78  return false; //They are equal
79 }
bool recob::operator< ( const TrackHitMeta a,
const TrackHitMeta b 
)
inline

Definition at line 81 of file TrackHitMeta.h.

References recob::TrackHitMeta::Index().

82  { return a.Index() < b.Index(); }
bool recob::operator< ( const Event a,
const Event b 
)

Definition at line 82 of file Event.cxx.

References recob::Event::Energy().

83  {
84 
85  return a.Energy() < b.Energy();
86 
87  }
bool recob::operator< ( const Hit a,
const Hit b 
)

Definition at line 114 of file Hit.cxx.

References recob::Hit::Channel(), recob::Hit::StartTick(), and recob::Hit::View().

115  {
116  if (a.Channel() != b.Channel())
117  return a.Channel() < b.Channel();
118  if (a.View() != b.View())
119  return a.View() < b.View();
120  if (a.StartTick() != b.StartTick())
121  return a.StartTick() < b.StartTick();
122 
123  return false; //They are equal
124  } // operator< (Hit, Hit)
bool recob::operator< ( const Edge a,
const Edge b 
)
inline

Comparison operator: strict ordering of edge by ID.

Definition at line 144 of file Edge.h.

References recob::Edge::ID().

145  { return a.ID() < b.ID(); }
bool recob::operator< ( const Edge e,
Edge::ID_t  id 
)
inline

Comparison operator: strict ordering of edge by ID.

Definition at line 147 of file Edge.h.

References recob::Edge::ID().

148  { return e.ID() < id; }
Float_t e
Definition: plot.C:34
bool recob::operator< ( Edge::ID_t  id,
const Edge e 
)
inline

Comparison operator: strict ordering of edge by ID.

Definition at line 150 of file Edge.h.

References recob::Edge::ID().

151  { return id < e.ID(); }
Float_t e
Definition: plot.C:34
bool recob::operator< ( Cluster const &  a,
Cluster const &  b 
)

Definition at line 196 of file Cluster.cxx.

References recob::Cluster::EndTick(), recob::Cluster::hasPlane(), recob::Cluster::ID(), recob::Cluster::Plane(), recob::Cluster::StartTick(), and recob::Cluster::View().

196  {
197 
198  if (a.hasPlane() && b.hasPlane() && a.Plane() != b.Plane())
199  return a.Plane() < b.Plane();
200  if (a.View() != b.View())
201  return a.View() < b.View();
202  if (a.ID() != b. ID())
203  return a.ID() < b.ID();
204  if (a.StartTick() != b.StartTick())
205  return a.StartTick() < b.StartTick();
206  if (a.EndTick() != b.EndTick())
207  return a.EndTick() < b.EndTick();
208 
209  return false; // they are equal enough
210  } // operator < (Cluster, Cluster)
bool recob::operator< ( const Seed a,
const Seed b 
)

Definition at line 359 of file Seed.cxx.

References recob::Seed::fSeedPoint.

360  {
361  if (a.fSeedPoint[2] != b.fSeedPoint[2])
362  { return a.fSeedPoint[2] < b.fSeedPoint[2]; }
363  else if (a.fSeedPoint[1] != b.fSeedPoint[1])
364  { return a.fSeedPoint[1] < b.fSeedPoint[1]; }
365 
366  return a.fSeedPoint[0] < b.fSeedPoint[0];
367 
368  }
std::ostream& recob::operator<< ( std::ostream &  stream,
Track const &  a 
)

Definition at line 22 of file Track.cxx.

References ROOT::Math::end(), recob::Track::EndDirection(), recob::Track::ID(), recob::Track::NumberTrajectoryPoints(), recob::Track::Phi(), art::right(), recob::Track::Theta(), and recob::Track::VertexDirection().

23  {
24  auto const& start = a.VertexDirection();
25  auto const& end = a.EndDirection();
26  stream << std::setiosflags(std::ios::fixed) << std::setprecision(3)
27  << "\n Track ID " << std::setw(4) << std::right << a.ID()
28  << " Theta = " << std::setw(6) << std::right << a.Theta()
29  << " Phi = " << std::setw(6) << std::right << a.Phi()
30  << "\n StartCosines : ( " << start.X() << " ; " << start.Y() << " ; " << start.Z()
31  << ") EndCosines : ( " << end.X() << " ; " << end.Y() << " ; " << end.Z()
32  << ")"
33  << "\n #Position and Direction = "
34  << std::setw(5) << std::right << a.NumberTrajectoryPoints();
35  stream << std::endl;
36 
37  return stream;
38  }
constexpr auto const & right(const_AssnsIter< L, R, D, Dir > const &a, const_AssnsIter< L, R, D, Dir > const &b)
Definition: AssnsIter.h:104
decltype(auto) end(ROOT::Math::PositionVector2D< CoordSystem, Tag > const &v)
std::ostream& recob::operator<< ( std::ostream &  o,
const PFParticle c 
)

Definition at line 37 of file PFParticle.cxx.

References recob::PFParticle::IsPrimary(), recob::PFParticle::NumDaughters(), recob::PFParticle::PdgCode(), and art::right().

38  {
39  o << std::setiosflags(std::ios::fixed) << std::setprecision(2);
40  o << "PFParticle hypothesis PDG Code " << std::setw(8) << std::right << c.PdgCode()
41  << ", is primary = " << c.IsPrimary()
42  << ", # Daughters " << std::setw(5) << std::right << c.NumDaughters() << std::endl;
43 
44  return o;
45  }
constexpr auto const & right(const_AssnsIter< L, R, D, Dir > const &a, const_AssnsIter< L, R, D, Dir > const &b)
Definition: AssnsIter.h:104
std::ostream& recob::operator<< ( std::ostream &  o,
const SpacePoint a 
)

Definition at line 39 of file SpacePoint.cxx.

References recob::SpacePoint::ID(), art::right(), and recob::SpacePoint::XYZ().

40  {
41  o << std::setiosflags(std::ios::fixed) << std::setprecision(2);
42  o << " SpacePoint ID " << std::setw(5) << std::right << a.ID()
43  << " (X,Y,Z) = (" << std::setw(5) << std::right << a.XYZ()[0]
44  << " , " << std::setw(5) << std::right << a.XYZ()[1]
45  << " , " << std::setw(5) << std::right << a.XYZ()[2]
46  << ")" ;
47 
48  return o;
49  }
constexpr auto const & right(const_AssnsIter< L, R, D, Dir > const &a, const_AssnsIter< L, R, D, Dir > const &b)
Definition: AssnsIter.h:104
std::ostream& recob::operator<< ( std::ostream &  o,
const EndPoint2D ep 
)

Definition at line 46 of file EndPoint2D.cxx.

References geo::CryostatID::Cryostat, recob::EndPoint2D::DriftTime(), recob::EndPoint2D::ID(), geo::PlaneID::Plane, art::right(), geo::TPCID::TPC, recob::EndPoint2D::View(), geo::WireID::Wire, and recob::EndPoint2D::WireID().

47  {
48  o << std::setiosflags(std::ios::fixed) << std::setprecision(2);
49  o << "EndPoint2D ID " << std::setw(5) << std::right << ep.ID()
50  << " WireID : \n"
51  << "\tCryostat = " << std::setw(7) << std::right << ep.WireID().Cryostat
52  << "\tTPC = " << std::setw(7) << std::right << ep.WireID().TPC
53  << "\tPlane = " << std::setw(7) << std::right << ep.WireID().Plane
54  << "\tWire Number = " << std::setw(7) << std::right << ep.WireID().Wire
55  << " View = " << std::setw(9) << std::right << ep.View()
56  << " Time = " << std::setw(9) << std::right << ep.DriftTime();
57 
58  return o;
59  }
constexpr auto const & right(const_AssnsIter< L, R, D, Dir > const &a, const_AssnsIter< L, R, D, Dir > const &b)
Definition: AssnsIter.h:104
std::ostream& recob::operator<< ( std::ostream &  o,
const Vertex a 
)

Definition at line 48 of file Vertex.cxx.

References recob::Vertex::id_, and recob::Vertex::pos_.

49  {
50  o << std::setprecision(5);
51  o << "Vertex ID " << a.id_ << std::setw(5)
52  << " (x,y,z) = (" << a.pos_.X() << "," << a.pos_.Y() << ","
53  << a.pos_.Z() << ")";
54 
55  return o;
56  }
std::ostream& recob::operator<< ( std::ostream &  o,
const PCAxis a 
)

Definition at line 50 of file PCAxis.cxx.

References recob::PCAxis::fAveHitDoca, recob::PCAxis::fAvePosition, recob::PCAxis::fEigenValues, recob::PCAxis::fEigenVectors, recob::PCAxis::fID, recob::PCAxis::fNumHitsUsed, recob::PCAxis::fSvdOK, and art::right().

51 {
52  if (a.fSvdOK)
53  {
54  o << std::setiosflags(std::ios::fixed) << std::setprecision(2);
55  o << " PCAxis ID " << a.fID << " run with " << a.fNumHitsUsed << " space points" << std::endl;
56  o << " - center position: " << std::setw(6) << a.fAvePosition[0] << ", " << a.fAvePosition[1] << ", " << a.fAvePosition[2] << std::endl;
57  o << " - eigen values: " << std::setw(8) << std::right << a.fEigenValues[0] << ", "
58  << a.fEigenValues[1] << ", " << a.fEigenValues[2] << std::endl;
59  o << " - average doca: " << a.fAveHitDoca << std::endl;
60  o << " - Principle axis: " << std::setw(7) << std::setprecision(4) << a.fEigenVectors[0][0] << ", " << a.fEigenVectors[0][1] << ", " << a.fEigenVectors[0][2] << std::endl;
61  o << " - second axis: " << std::setw(7) << std::setprecision(4) << a.fEigenVectors[1][0] << ", " << a.fEigenVectors[1][1] << ", " << a.fEigenVectors[1][2] << std::endl;
62  o << " - third axis: " << std::setw(7) << std::setprecision(4) << a.fEigenVectors[2][0] << ", " << a.fEigenVectors[2][1] << ", " << a.fEigenVectors[2][2] << std::endl;
63  }
64  else
65  o << " Principal Components Axis is not valid" << std::endl;
66 
67  return o;
68 }
constexpr auto const & right(const_AssnsIter< L, R, D, Dir > const &a, const_AssnsIter< L, R, D, Dir > const &b)
Definition: AssnsIter.h:104
std::ostream& recob::operator<< ( std::ostream &  o,
Shower const &  a 
)

Definition at line 54 of file Shower.cxx.

References recob::Shower::best_plane(), recob::Shower::dEdx(), recob::Shower::Energy(), recob::Shower::ID(), and art::right().

55  {
56  o << std::setiosflags(std::ios::fixed) << std::setprecision(3);
57  o << " Shower ID " << std::setw(4) << std::right << a.ID();
58  o << " Energy " << std::setw(4) << std::right << a.Energy()[a.best_plane()];
59  o << " dEdx " << std::setw(4) << std::right << a.dEdx()[a.best_plane()];
60  return o;
61  }
constexpr auto const & right(const_AssnsIter< L, R, D, Dir > const &a, const_AssnsIter< L, R, D, Dir > const &b)
Definition: AssnsIter.h:104
std::ostream & recob::operator<< ( std::ostream &  o,
const Edge a 
)

Streaming operator: prints the edge a into the specified stream.

Definition at line 59 of file Edge.cxx.

References recob::Edge::FirstPointID(), recob::Edge::ID(), recob::Edge::Length(), and recob::Edge::SecondPointID().

60 {
61  o << std::setiosflags(std::ios::fixed) << std::setprecision(2);
62  o << " Edge ID " << a.ID() << " has length " << std::setw(6) << a.Length() << " cm" << std::endl;
63  o << " - First Point ID: " << a.FirstPointID() << ", second point ID: " << a.SecondPointID() << std::endl;
64 
65  return o;
66 }
std::ostream& recob::operator<< ( std::ostream &  o,
const Event a 
)

Definition at line 68 of file Event.cxx.

References recob::Event::Energy(), recob::Event::fID, and recob::Event::SigmaEnergy().

69  {
70 
71  o << std::setprecision(5);
72  o << "Event " << a.fID << std::setw(5)
73  << " Energy = " << a.Energy() << " +/- " << a.SigmaEnergy() << std::endl;
74 
75  return o;
76  }
std::ostream& recob::operator<< ( std::ostream &  o,
const TrackHitMeta a 
)
inline

Definition at line 78 of file TrackHitMeta.h.

References recob::TrackHitMeta::Index().

79  { o << a.Index(); return o; }
std::ostream& recob::operator<< ( std::ostream &  o,
Hit const &  hit 
)

Definition at line 87 of file Hit.cxx.

References recob::Hit::Channel(), recob::Hit::DegreesOfFreedom(), recob::Hit::EndTick(), recob::Hit::GoodnessOfFit(), recob::Hit::Integral(), recob::Hit::LocalIndex(), recob::Hit::Multiplicity(), recob::Hit::PeakAmplitude(), recob::Hit::PeakTime(), art::right(), recob::Hit::RMS(), recob::Hit::SigmaIntegral(), recob::Hit::SigmaPeakAmplitude(), recob::Hit::SigmaPeakTime(), recob::Hit::SignalType(), recob::Hit::StartTick(), recob::Hit::SummedADC(), recob::Hit::View(), and recob::Hit::WireID().

87  {
88  o << std::setiosflags(std::ios::fixed) << std::setprecision(2);
89  o << " Channel " << std::setw(5) << std::right << hit.Channel()
90  << " View = " << std::setw(3) << std::right << hit.View()
91  << " Signal type = " << std::setw(3) << std::right << hit.SignalType()
92  << " Wire = " << std::setw(3) << std::right << hit.WireID()
93  << "\n\tStartTick = " << std::setw(7) << std::right << hit.StartTick()
94  << "\tEndTick = " << std::setw(7) << std::right << hit.EndTick()
95  << "\tPeakTime = " << std::setw(7) << std::right << hit.PeakTime()
96  << " +/- " << std::setw(7) << std::right << hit.SigmaPeakTime()
97  << "\tRMS = " << std::setw(7) << std::right << hit.RMS()
98  << "\n\tAmplitude = " << std::setw(7) << std::right << hit.PeakAmplitude()
99  << " +/- " << std::setw(7) << std::right << hit.SigmaPeakAmplitude()
100  << "\tIntegral = " << std::setw(7) << std::right << hit.Integral()
101  << " +/- " << std::setw(7) << std::right << hit.SigmaIntegral()
102  << "\tADCsum = " << std::setw(7) << std::right << hit.SummedADC()
103  << "\tMultiplicity = " << std::setw(5) << std::right << hit.LocalIndex() << " of " << hit.Multiplicity()
104  << "\tGoodnessOfFit = " << std::setw(7) << std::right << hit.GoodnessOfFit()
105  << " DoF = " << std::setw(7) << std::right << hit.DegreesOfFreedom()
106  << std::endl;
107  return o;
108  } // operator<< (std::ostream, Hit)
constexpr auto const & right(const_AssnsIter< L, R, D, Dir > const &a, const_AssnsIter< L, R, D, Dir > const &b)
Definition: AssnsIter.h:104
Detector simulation of raw signals on wires.
std::ostream& recob::operator<< ( std::ostream &  out,
recob::PointCharge const &  charge 
)
inline

Dumps the content of a recob::PointCharge object into an output stream.

Definition at line 135 of file PointCharge.h.

References recob::PointCharge::charge().

136  { charge.dump(out); return out; }
std::ostream& recob::operator<< ( std::ostream &  o,
Cluster const &  c 
)

Definition at line 173 of file Cluster.cxx.

References geo::CryostatID::Cryostat, recob::Cluster::EndTick(), recob::Cluster::EndWire(), recob::Cluster::ID(), recob::Cluster::Integral(), recob::Cluster::NHits(), geo::PlaneID::Plane, recob::Cluster::Plane(), art::right(), recob::Cluster::StartTick(), recob::Cluster::StartWire(), recob::Cluster::SummedADC(), geo::TPCID::TPC, recob::Cluster::View(), and recob::Cluster::Width().

173  {
174  o << std::setiosflags(std::ios::fixed) << std::setprecision(2);
175  o << "Cluster ID " << std::setw(5) << std::right << c.ID()
176  << " : Cryo = " << std::setw(3) << std::right << c.Plane().Cryostat
177  << " TPC = " << std::setw(3) << std::right << c.Plane().TPC
178  << " Plane = " << std::setw(3) << std::right << c.Plane().Plane
179  << " View = " << std::setw(3) << std::right << c.View()
180  << " StartWire = " << std::setw(7) << std::right << c.StartWire()
181  << " EndWire = " << std::setw(7) << std::right << c.EndWire()
182  << " StartTime = " << std::setw(9) << std::right << c.StartTick()
183  << " EndTime = " << std::setw(9) << std::right << c.EndTick()
184  << " N hits = " << std::setw(5) << std::right << c.NHits()
185  << " Width = " << std::setw(5) << std::right << c.Width()
186  << " Charge(fit) = " << std::setw(10) << std::right << c.Integral()
187  << " Charge(ADC) = " << std::setw(10) << std::right << c.SummedADC()
188  ;
189  return o;
190  } // operator<< (ostream, Cluster)
constexpr auto const & right(const_AssnsIter< L, R, D, Dir > const &a, const_AssnsIter< L, R, D, Dir > const &b)
Definition: AssnsIter.h:104
std::ostream& recob::operator<< ( std::ostream &  o,
Seed const &  a 
)

Definition at line 343 of file Seed.cxx.

References recob::Seed::fSeedDirection, and recob::Seed::fSeedPoint.

344  {
345  o << "Printing seed contents : "
346  << a.fSeedPoint[0] << " "
347  << a.fSeedPoint[1] << " "
348  << a.fSeedPoint[2] << ", "
349  << a.fSeedDirection[0] << " "
350  << a.fSeedDirection[1] << " "
351  << a.fSeedDirection[2];
352 
353  return o;
354  }
std::ostream & recob::operator<< ( std::ostream &  out,
recob::Trajectory const &  traj 
)

Prints trajectory content into a stream.

Template Parameters
Streamtype of the output stream
Parameters
outstream to output the information into
trajtrajectory to be printed
Returns
a reference to stream

See recob::Trajectory::Dump() for details.

Definition at line 144 of file Trajectory.cxx.

145  { traj.Dump(out); return out; }
std::ostream & recob::operator<< ( std::ostream &&  out,
recob::TrackTrajectory const &  traj 
)

Prints trajectory content into a stream.

Template Parameters
Streamtype of the output stream
Parameters
outstream to output the information into
trajtrajectory to be printed
Returns
a reference to stream

See recob::Trajectory::Dump() for details.

Definition at line 108 of file TrackTrajectory.cxx.

109  { traj.Dump(out); return out; }
std::ostream & recob::operator<< ( std::ostream &  out,
recob::TrajectoryPointFlags const &  flags 
)

Dumps flags into a stream with default verbosity.

Definition at line 145 of file TrajectoryPointFlags.cxx.

146  { flags.dump(out); return out; }