Classes | Typedefs | Enumerations | Functions
anab Namespace Reference

Classes

struct  BackTrackerHitMatchingData
 
struct  BackTrackerMatchingData
 
class  Calorimetry
 
class  CosmicTag
 
class  FeatureVector
 
class  FlashMatch
 
class  FVectorReader
 
class  FVectorWrapperBase
 Helper functions for MVAReader/Writer and FVecReader/Writer wrappers. More...
 
class  FVectorWriter
 
class  MVADescription
 
struct  MVAPIDResult
 
class  MVAReader
 
class  MVAWrapperBase
 Helper functions for MVAReader and MVAWriter wrappers. More...
 
class  MVAWriter
 
class  ParticleID
 
struct  sParticleIDAlgScores
 
class  T0
 

Typedefs

typedef size_t FVector_ID
 Index to the MVA output / FeatureVector collection, used when result vectors are added or set. More...
 
typedef size_t MVAOutput_ID
 
using Point_t = recob::tracking::Point_t
 
typedef enum anab::cosmic_tag_id CosmicTagID_t
 
template<size_t N>
using FVecDescription = MVADescription< N >
 

Enumerations

enum  cosmic_tag_id {
  kUnknown =-1, kNotTagged =0, kGeometry_YY =1, kGeometry_YZ,
  kGeometry_ZZ, kGeometry_XX, kGeometry_XY, kGeometry_XZ,
  kGeometry_Y =21, kGeometry_Z, kGeometry_X, kOutsideDrift_Partial =100,
  kOutsideDrift_Complete, kFlash_BeamIncompatible =200, kFlash_Match =300, kNotIsolated =500
}
 
enum  kVariableType {
  kGOF, kLikelihood, kLogL, kScore,
  kPIDA, kdEdxtruncmean, kdQdxtruncmean, kTrackLength,
  kEdeposited, kEbyRange, kNotSet
}
 
enum  kTrackDir { kForward, kBackward, kNoDirection }
 

Functions

std::ostream & operator<< (std::ostream &o, Calorimetry const &a)
 
std::ostream & operator<< (std::ostream &o, CosmicTag const &a)
 
std::ostream & operator<< (std::ostream &o, FlashMatch const &a)
 
bool operator< (const MVAPIDResult &a, const MVAPIDResult &b)
 
std::ostream & operator<< (std::ostream &o, ParticleID const &a)
 
std::ostream & operator<< (std::ostream &o, T0 const &a)
 

Detailed Description

Title: PIDA Algorithim Class Author: Wes Ketchum (wketc.nosp@m.hum@.nosp@m.lanl..nosp@m.gov), based on ideas/code from Bruce Baller

Description: Algorithm that calculates the PIDA from a calorimetry object Input: anab::Calorimetry Output: PIDA information

Title: Track Calorimetry Algorithim Class Author: Wes Ketchum (wketc.nosp@m.hum@.nosp@m.lanl..nosp@m.gov), based on code the Calorimetry_module

Description: Algorithm that produces a calorimetry object given a track Input: recob::Track, Assn<recob::Spacepoint,recob::Track>, Assn<recob::Hit,recob::Track> Output: anab::Calorimetry, (and Assn<anab::Calorimetry,recob::Track>)

Typedef Documentation

template<size_t N>
using anab::FVecDescription = typedef MVADescription<N>

Definition at line 167 of file MVAOutput.h.

typedef size_t anab::FVector_ID

Index to the MVA output / FeatureVector collection, used when result vectors are added or set.

Definition at line 21 of file MVAWriter.h.

typedef size_t anab::MVAOutput_ID

Definition at line 22 of file MVAWriter.h.

Definition at line 20 of file Calorimetry.h.

Enumeration Type Documentation

Enumerator
kUnknown 
kNotTagged 
kGeometry_YY 
kGeometry_YZ 
kGeometry_ZZ 
kGeometry_XX 
kGeometry_XY 
kGeometry_XZ 
kGeometry_Y 
kGeometry_Z 
kGeometry_X 
kOutsideDrift_Partial 
kOutsideDrift_Complete 
kFlash_BeamIncompatible 
kFlash_Match 
kNotIsolated 

Definition at line 17 of file CosmicTag.h.

Enumerator
kForward 
kBackward 
kNoDirection 

Definition at line 20 of file ParticleID_VariableTypeEnums.h.

20  {
21  kForward,
22  kBackward,
24  }; ///< Enum to define track direction assumed by a ParticleID algorithm. Forward means the direction in which the track is reconstructed; backward means the opposite direction to the reconstruction.
Enumerator
kGOF 
kLikelihood 
kLogL 
kScore 
kPIDA 
kdEdxtruncmean 
kdQdxtruncmean 
kTrackLength 
kEdeposited 
kEbyRange 
kNotSet 

Definition at line 6 of file ParticleID_VariableTypeEnums.h.

Function Documentation

bool anab::operator< ( const MVAPIDResult a,
const MVAPIDResult b 
)

Definition at line 31 of file MVAPIDResult.h.

32  {
33  return a.nSpacePoints<b.nSpacePoints;
34  }
const double a
static bool * b
Definition: config.cpp:1043
std::ostream& anab::operator<< ( std::ostream &  o,
ParticleID const &  a 
)

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)
std::ostream& anab::operator<< ( std::ostream &  o,
FlashMatch const &  a 
)

Definition at line 39 of file FlashMatch.cxx.

40  {
41  o << "Flash match with Chi2: " << a.fChi2
42  << "\n from flash: " << a.fFlashID
43  << "\n to object: " << a.fSubjectID
44  <<std::endl;
45 
46 
47  return o;
48  }
const double a
QTextStream & endl(QTextStream &s)
std::ostream& anab::operator<< ( std::ostream &  o,
T0 const &  a 
)

Time in ns

Type of trigger used. 0 - Muon Counters, 1 - Photon Detectors, 2 - Monte Carlo Truth

An identifier for the Muon track / Flash / MCParticle used in matching.

Current size of T0 data product.

Confidence with which this T0 is known.

Definition at line 42 of file T0.cxx.

43  {
44  o << "T0 with Time: " << a.fTime /// Time in ns
45  << "\n from Trigger type: " << a.fTriggerType /// Type of trigger used. 0 - Muon Counters, 1 - Photon Detectors, 2 - Monte Carlo Truth
46  << "\n with bits: " << a.fTriggerBits /// An identifier for the Muon track / Flash / MCParticle used in matching.
47  << "\n with ID: " << a.fID /// Current size of T0 data product.
48  << "\n with confidence: " << a.fTriggerConfidence /// Confidence with which this T0 is known.
49  <<std::endl;
50 
51  return o;
52  }
const double a
QTextStream & endl(QTextStream &s)
std::ostream& anab::operator<< ( std::ostream &  o,
CosmicTag const &  a 
)

Definition at line 52 of file CosmicTag.cxx.

53  {
54  o //<< "Flash Time : " << a.flashTime // should go
55  << "\n Cosmic Score : " << a.fCosmicScore
56  << "\n Cosmic Type : " << a.fCosmicType
57  << "\n End Point 1: " <<std::endl;
58  for(size_t i=0;i<a.endPt1.size(); i++)
59  o << a.endPt1[i] << ", ";
60  o << std::endl;
61  o << "\n End Point 2: " <<std::endl;
62  for(size_t i=0;i<a.endPt2.size(); i++)
63  o << a.endPt2[i] << ", ";
64  o << std::endl;
65 
66 
67  return o;
68  }
const double a
QTextStream & endl(QTextStream &s)
std::ostream& anab::operator<< ( std::ostream &  o,
Calorimetry const &  a 
)

Definition at line 152 of file Calorimetry.cxx.

153  {
154  o << "Kinetic Energy: " << a.fKineticEnergy
155  << "\n Range: " << a.fRange << std::endl;
156 
157  for(size_t n = 0; n < a.fdEdx.size(); ++n)
158  o << "dE/dx=" << a.fdEdx[n]
159  << " Residual range=" << a.fResidualRange[n]
160  << " dQ/dx=" << a.fdQdx[n]
161  << " (x,y,z)=(" << a.fXYZ[n].X() << "," << a.fXYZ[n].Y() << "," << a.fXYZ[n].Z() << ")"
162  << " pitch=" << a.fTrkPitch[n]
163  << " planeID=(" << a.fPlaneID.Cryostat << "," << a.fPlaneID.TPC << "," << a.fPlaneID.Plane << ")"
164  << std::endl;
165 
166  return o;
167  }
std::void_t< T > n
const double a
QTextStream & endl(QTextStream &s)