LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
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: 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 242 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.

Function Documentation

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

Definition at line 30 of file MVAPIDResult.h.

References anab::MVAPIDResult::nSpacePoints.

31  {
32  return a.nSpacePoints < b.nSpacePoints;
33  }
std::ostream& anab::operator<< ( std::ostream &  o,
FlashMatch const &  a 
)

Definition at line 25 of file FlashMatch.cxx.

References anab::FlashMatch::fChi2, anab::FlashMatch::fFlashID, and anab::FlashMatch::fSubjectID.

26  {
27  o << "Flash match with Chi2: " << a.fChi2 << "\n from flash: " << a.fFlashID
28  << "\n to object: " << a.fSubjectID << std::endl;
29 
30  return o;
31  }
std::ostream& anab::operator<< ( std::ostream &  o,
ParticleID const &  a 
)

Definition at line 29 of file ParticleID.cxx.

References anab::ParticleID::fParticleIDAlgScores, and anab::ParticleID::fPlaneID.

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  }
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 29 of file T0.cxx.

References anab::T0::fID, anab::T0::fTime, anab::T0::fTriggerBits, anab::T0::fTriggerConfidence, and anab::T0::fTriggerType.

30  {
31  o << "T0 with Time: " << a.fTime
32  << "\n from Trigger type: "
33  << a.fTriggerType
34  << "\n with bits: "
35  << a.fTriggerBits
36  << "\n with ID: " << a.fID
37  << "\n with confidence: " << a.fTriggerConfidence
38  << std::endl;
39 
40  return o;
41  }
std::ostream& anab::operator<< ( std::ostream &  o,
CosmicTag const &  a 
)

Definition at line 37 of file CosmicTag.cxx.

References anab::CosmicTag::endPt1, anab::CosmicTag::endPt2, anab::CosmicTag::fCosmicScore, anab::CosmicTag::fCosmicType, and for().

38  {
39  o //<< "Flash Time : " << a.flashTime // should go
40  << "\n Cosmic Score : " << a.fCosmicScore << "\n Cosmic Type : " << a.fCosmicType
41  << "\n End Point 1: " << std::endl;
42  for (size_t i = 0; i < a.endPt1.size(); i++)
43  o << a.endPt1[i] << ", ";
44  o << std::endl;
45  o << "\n End Point 2: " << std::endl;
46  for (size_t i = 0; i < a.endPt2.size(); i++)
47  o << a.endPt2[i] << ", ";
48  o << std::endl;
49 
50  return o;
51  }
for(Int_t i=0;i< nentries;i++)
Definition: comparison.C:30
std::ostream& anab::operator<< ( std::ostream &  o,
Calorimetry const &  a 
)

Definition at line 155 of file Calorimetry.cxx.

References geo::CryostatID::Cryostat, anab::Calorimetry::fdEdx, anab::Calorimetry::fdQdx, anab::Calorimetry::fKineticEnergy, anab::Calorimetry::fPlaneID, anab::Calorimetry::fRange, anab::Calorimetry::fResidualRange, anab::Calorimetry::fTrkPitch, anab::Calorimetry::fXYZ, n, geo::PlaneID::Plane, and geo::TPCID::TPC.

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