Public Member Functions | Private Attributes | Friends | List of all members
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 43 of file ParticleID.h.

Constructor & Destructor Documentation

anab::ParticleID::ParticleID ( )

Definition at line 16 of file ParticleID.cxx.

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

Definition at line 21 of file ParticleID.cxx.

23  {
25  fPlaneID = planeID;
26  }
const std::vector< anab::sParticleIDAlgScores > & ParticleIDAlgScores() const
Definition: ParticleID.h:65
std::vector< sParticleIDAlgScores > fParticleIDAlgScores
Vector of structs to hold outputs from generic PID algorithms.
Definition: ParticleID.h:46
geo::PlaneID fPlaneID
Plane id.
Definition: ParticleID.h:47

Member Function Documentation

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

Definition at line 65 of file ParticleID.h.

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

Definition at line 67 of file ParticleID.h.

67 {return fPlaneID;}
geo::PlaneID fPlaneID
Plane id.
Definition: ParticleID.h:47

Friends And Related Function Documentation

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

Definition at line 31 of file ParticleID.cxx.

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

Member Data Documentation

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

Vector of structs to hold outputs from generic PID algorithms.

Definition at line 46 of file ParticleID.h.

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

Plane id.

Definition at line 47 of file ParticleID.h.


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