Public Member Functions | Public Attributes | List of all members
protoana::PossibleParticleCands Struct Reference

#include <ProtoDUNEBeamlineUtils.h>

Public Member Functions

PossibleParticleCands operator&& (const PossibleParticleCands &b) const
 
PossibleParticleCands operator|| (const PossibleParticleCands &b) const
 
 operator std::string () const
 
std::vector< int > getPDGCodes () const
 

Public Attributes

bool electron = false
 
bool muon = false
 
bool pion = false
 
bool kaon = false
 
bool proton = false
 
bool deuteron = false
 

Detailed Description

Definition at line 38 of file ProtoDUNEBeamlineUtils.h.

Member Function Documentation

std::vector<int> protoana::PossibleParticleCands::getPDGCodes ( ) const
inline
protoana::PossibleParticleCands::operator std::string ( ) const
inline

Definition at line 53 of file ProtoDUNEBeamlineUtils.h.

53  { // overload cast to string
54  std::string result = "PossibleParticleCands: [ ";
55  if (electron) result += "e ";
56  if (muon) result += "mu ";
57  if (pion) result += "pi ";
58  if (kaon) result += "k ";
59  if (proton) result += "p ";
60  if (deuteron) result += "e ";
61  result += "]";
62  return result;
63  }
static QCString result
std::string string
Definition: nybbler.cc:12
PossibleParticleCands protoana::PossibleParticleCands::operator&& ( const PossibleParticleCands b) const
inline
PossibleParticleCands protoana::PossibleParticleCands::operator|| ( const PossibleParticleCands b) const
inline

Member Data Documentation

bool protoana::PossibleParticleCands::deuteron = false

Definition at line 45 of file ProtoDUNEBeamlineUtils.h.

bool protoana::PossibleParticleCands::electron = false

Definition at line 40 of file ProtoDUNEBeamlineUtils.h.

bool protoana::PossibleParticleCands::kaon = false

Definition at line 43 of file ProtoDUNEBeamlineUtils.h.

bool protoana::PossibleParticleCands::muon = false

Definition at line 41 of file ProtoDUNEBeamlineUtils.h.

bool protoana::PossibleParticleCands::pion = false

Definition at line 42 of file ProtoDUNEBeamlineUtils.h.

bool protoana::PossibleParticleCands::proton = false

Definition at line 44 of file ProtoDUNEBeamlineUtils.h.


The documentation for this struct was generated from the following file: