LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
anab::ParticleID Class Reference

#include "ParticleID.h"

Public Member Functions

 ParticleID ()
 
 ParticleID (const std::vector< anab::sParticleIDAlgScores > &ParticleIDAlgScores, const geo::PlaneID &planeID)
 
const std::vector< anab::sParticleIDAlgScores > & ParticleIDAlgScores () const
 
const geo::PlaneIDPlaneID () const
 

Private Attributes

std::vector< sParticleIDAlgScoresfParticleIDAlgScores
 Vector of structs to hold outputs from generic PID algorithms. More...
 
geo::PlaneID fPlaneID
 Plane id. More...
 

Friends

std::ostream & operator<< (std::ostream &o, ParticleID const &a)
 

Detailed Description

Definition at line 49 of file ParticleID.h.

Constructor & Destructor Documentation

anab::ParticleID::ParticleID ( )

Definition at line 16 of file ParticleID.cxx.

16 {}
anab::ParticleID::ParticleID ( const std::vector< anab::sParticleIDAlgScores > &  ParticleIDAlgScores,
const geo::PlaneID planeID 
)

Definition at line 19 of file ParticleID.cxx.

References fParticleIDAlgScores, fPlaneID, and ParticleIDAlgScores().

21  {
23  fPlaneID = planeID;
24  }
const std::vector< anab::sParticleIDAlgScores > & ParticleIDAlgScores() const
Definition: ParticleID.h:69
std::vector< sParticleIDAlgScores > fParticleIDAlgScores
Vector of structs to hold outputs from generic PID algorithms.
Definition: ParticleID.h:52
geo::PlaneID fPlaneID
Plane id.
Definition: ParticleID.h:53

Member Function Documentation

const std::vector< anab::sParticleIDAlgScores > & anab::ParticleID::ParticleIDAlgScores ( ) const
inline

Definition at line 69 of file ParticleID.h.

Referenced by ParticleID().

70 {
71  return fParticleIDAlgScores;
72 }
std::vector< sParticleIDAlgScores > fParticleIDAlgScores
Vector of structs to hold outputs from generic PID algorithms.
Definition: ParticleID.h:52
const geo::PlaneID & anab::ParticleID::PlaneID ( ) const
inline

Definition at line 74 of file ParticleID.h.

75 {
76  return fPlaneID;
77 }
geo::PlaneID fPlaneID
Plane id.
Definition: ParticleID.h:53

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  o,
ParticleID const &  a 
)
friend

Definition at line 29 of file ParticleID.cxx.

30  {
31  for (size_t i = 0; i < a.fParticleIDAlgScores.size(); i++) {
32  o << "\n ParticleIDAlg " << a.fParticleIDAlgScores.at(i).fAlgName
33  << "\n -- Variable type: " << a.fParticleIDAlgScores.at(i).fVariableType
34  << "\n -- Track direction: " << a.fParticleIDAlgScores.at(i).fTrackDir
35  << "\n -- Assuming PDG: " << a.fParticleIDAlgScores.at(i).fAssumedPdg
36  << "\n -- Number of degrees of freedom: " << a.fParticleIDAlgScores.at(i).fNdf
37  << "\n -- Value: " << a.fParticleIDAlgScores.at(i).fValue
38  << "\n -- Using planeMask: " << a.fParticleIDAlgScores.at(i).fPlaneMask;
39  }
40  o << "\n -- Plane id: " << a.fPlaneID;
41  o << std::endl;
42 
43  return o;
44  }

Member Data Documentation

std::vector<sParticleIDAlgScores> anab::ParticleID::fParticleIDAlgScores
private

Vector of structs to hold outputs from generic PID algorithms.

Definition at line 52 of file ParticleID.h.

Referenced by anab::operator<<(), and ParticleID().

geo::PlaneID anab::ParticleID::fPlaneID
private

Plane id.

Definition at line 53 of file ParticleID.h.

Referenced by anab::operator<<(), and ParticleID().


The documentation for this class was generated from the following files: