LArSoft  v06_85_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 deconvoluted signals 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 1086 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 335 of file Seed.cxx.

References y1, and y2.

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

338  {
339  out1 = (x2*y3-x3*y2);
340  out2 = (x3*y1-x1*y3);
341  out3 = (x1*y2-x2*y1);
342  }
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 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 54 of file OpHit.cxx.

References recob::OpHit::PE().

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

Definition at line 56 of file SpacePoint.cxx.

References recob::SpacePoint::ID().

57  {
58  if(a.ID() != b. ID())
59  return a.ID()<b.ID();
60 
61  return false; //They are equal
62 
63  }
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 56 of file SpacePoint.h.

References recob::SpacePoint::ID().

56 { 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 58 of file SpacePoint.h.

References recob::SpacePoint::ID().

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

Definition at line 62 of file Vertex.cxx.

References recob::Vertex::XYZ().

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

Definition at line 67 of file Shower.cxx.

References recob::Shower::ID().

68  {
69  if(a.ID() != b. ID())
70  return a.ID() < b.ID();
71 
72  return false; //They are equal
73  }
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 Track a,
const Track b 
)

Definition at line 122 of file Track.cxx.

References recob::Track::ID().

123  {
124  if(a.ID() != b. ID())
125  return a.ID() < b.ID();
126 
127  return false; //They are equal
128  }
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 361 of file Seed.cxx.

References recob::Seed::fSeedPoint.

362  {
363  if (a.fSeedPoint[2] != b.fSeedPoint[2])
364  { return a.fSeedPoint[2] < b.fSeedPoint[2]; }
365  else if (a.fSeedPoint[1] != b.fSeedPoint[1])
366  { return a.fSeedPoint[1] < b.fSeedPoint[1]; }
367 
368  return a.fSeedPoint[0] < b.fSeedPoint[0];
369 
370  }
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:112
std::ostream& recob::operator<< ( std::ostream &  o,
const SpacePoint a 
)

Definition at line 40 of file SpacePoint.cxx.

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

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

Definition at line 47 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().

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

Definition at line 49 of file Vertex.cxx.

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

50  {
51  o << std::setprecision(5);
52  o << "Vertex ID " << a.id_ << std::setw(5)
53  << " (x,y,z) = (" << a.pos_.X() << "," << a.pos_.Y() << ","
54  << a.pos_.Z() << ")";
55 
56  return o;
57  }
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:112
std::ostream& recob::operator<< ( std::ostream &  o,
Shower const &  a 
)

Definition at line 55 of file Shower.cxx.

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

56  {
57  o << std::setiosflags(std::ios::fixed) << std::setprecision(3);
58  o << " Shower ID " << std::setw(4) << std::right << a.ID();
59  o << " Energy " << std::setw(4) << std::right << a.Energy()[a.best_plane()];
60  o << " dEdx " << std::setw(4) << std::right << a.dEdx()[a.best_plane()];
61  return o;
62  }
constexpr auto const & right(const_AssnsIter< L, R, D, Dir > const &a, const_AssnsIter< L, R, D, Dir > const &b)
Definition: AssnsIter.h:112
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:112
Detector simulation of raw signals on wires.
std::ostream& recob::operator<< ( std::ostream &  stream,
Track const &  a 
)

— END Deprecated methods ------------------------------------------—

Definition at line 95 of file Track.cxx.

References evd::details::end(), recob::Track::EndDirection(), recob::Track::fdQdx, recob::Track::ID(), recob::Track::NumberCovariance(), recob::Track::NumberTrajectoryPoints(), recob::Track::Phi(), art::right(), recob::Track::Theta(), and recob::Track::VertexDirection().

96  {
97  //double dcoss[3];
98  //double dcose[3];
99  //a.Direction(dcoss,dcose);
100  TVector3 const& start = a.VertexDirection();
101  TVector3 const& end = a.EndDirection();
102  stream << std::setiosflags(std::ios::fixed) << std::setprecision(3)
103  << "\n Track ID " << std::setw(4) << std::right << a.ID()
104  << " Theta = " << std::setw(6) << std::right << a.Theta()
105  << " Phi = " << std::setw(6) << std::right << a.Phi()
106  << "\n StartCosines : ( " << start.X() << " ; " << start.Y() << " ; " << start.Z()
107  << ") EndCosines : ( " << end.X() << " ; " << end.Y() << " ; " << end.Z()
108  << ")"
109  << "\n #Position and Direction = "
110  << std::setw(5) << std::right << a.NumberTrajectoryPoints()
111  << " #Covariance = " << std::setw(6) << std::right << a.NumberCovariance()
112  << " #dQdx = " << std::setw(6) << std::right;
113  for(size_t i = 0; i < a.fdQdx.size(); ++i)
114  stream << " " << a.fdQdx.at(i).size();
115 
116  stream << std::endl;
117 
118  return stream;
119  }
constexpr auto const & right(const_AssnsIter< L, R, D, Dir > const &a, const_AssnsIter< L, R, D, Dir > const &b)
Definition: AssnsIter.h:112
std::vector< evd::details::RawDigitInfo_t >::const_iterator end(RawDigitCacheDataClass const &cache)
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:112
std::ostream& recob::operator<< ( std::ostream &  o,
Seed const &  a 
)

Definition at line 345 of file Seed.cxx.

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

346  {
347  o << "Printing seed contents : "
348  << a.fSeedPoint[0] << " "
349  << a.fSeedPoint[1] << " "
350  << a.fSeedPoint[2] << ", "
351  << a.fSeedDirection[0] << " "
352  << a.fSeedDirection[1] << " "
353  << a.fSeedDirection[2];
354 
355  return o;
356  }
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 121 of file TrackTrajectory.cxx.

122  { traj.Dump(out); return out; }
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 207 of file Trajectory.cxx.

208  { 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; }