Classes | Functions
cheat Namespace Reference

code to link reconstructed objects back to the MC truth information More...

Classes

class  BackTracker
 
class  CheckBackTracking
 
class  ClusterCheater
 
class  MCCheater
 
struct  NeutrinoEffPur
 
struct  NeutrinoWithIndex
 
struct  ParticleEffPur
 
class  ProngCheater
 
class  RecoCheckAna
 
class  ShowerCheater
 
class  SimHit
 
class  SimTrack
 
class  TestTrackIds
 
class  TrackCheater
 
struct  TrackIDE
 
class  TrueEnergy
 

Functions

bool CompareByEnergy (const TrackIDE &a, const TrackIDE &b)
 Does a have less energy than b? More...
 
double EffMetric (const cheat::NeutrinoEffPur &ep)
 Function for NeutrinoEffPur's nu interaction to slice efficiency. More...
 
double PurMetric (const cheat::NeutrinoEffPur &ep)
 Function for NeutrinoEffPur's nu interaction to slice purity. More...
 
double EffPurMetric (const cheat::NeutrinoEffPur &ep)
 Function for NeutrinoEffPur's nu interaction to slice efficiency * purity. More...
 
double EnergyMetric (const cheat::NeutrinoEffPur &ep)
 Function for NeutrinoEffPur's nu interaction to slice energy. More...
 
static bool sortFLSHit (sim::FLSHit const &a, sim::FLSHit const &b)
 

Detailed Description

code to link reconstructed objects back to the MC truth information

TrueEnergy module A module to make sim::TrueEnergy's for each sim::Particle in the module. This will ultimately be removed when we have the sim::TrueEnergy's produced by G4Gen_module, for Prod4/5.

TrackCheater module.

ShowerCheater module.

ProngCheater module.

TODO.

CheckBackTracking module.

Author
brebe.nosp@m.l@fn.nosp@m.al.go.nosp@m.v
brebe.nosp@m.l@fn.nosp@m.al.go.nosp@m.v
Date
Jul. 15 2011
Author
karlw.nosp@m.arb@.nosp@m.iasta.nosp@m.te.e.nosp@m.du

Function Documentation

bool cheat::CompareByEnergy ( const TrackIDE a,
const TrackIDE b 
)

Does a have less energy than b?

Definition at line 40 of file BackTracker_service.cc.

References cheat::TrackIDE::energy.

Referenced by cheat::BackTracker::HitsToTrackIDE().

41  {
42  return a.energy < b.energy;
43  }
const double a
const hit & b
Definition: hits.cxx:21
double cheat::EffMetric ( const cheat::NeutrinoEffPur ep)

Function for NeutrinoEffPur's nu interaction to slice efficiency.

Definition at line 46 of file BackTracker_service.cc.

References cheat::NeutrinoEffPur::efficiency.

Referenced by tut::RecoValidationTutorial::analyze(), caf::CAFMaker::produce(), and cheat::BackTracker::SliceToOrderedNuIdsByEff().

47  {
48  return ep.efficiency;
49  }
double efficiency
Efficiency (based on FLS energy) of neutrino interaction relative to slice.
Definition: BackTracker.h:48
double cheat::EffPurMetric ( const cheat::NeutrinoEffPur ep)

Function for NeutrinoEffPur's nu interaction to slice efficiency * purity.

Definition at line 58 of file BackTracker_service.cc.

References cheat::NeutrinoEffPur::efficiency, and cheat::NeutrinoEffPur::purity.

Referenced by caf::CAFMaker::produce(), and cheat::BackTracker::SliceToOrderedNuIdsByEffPur().

59  {
60  return ep.efficiency*ep.purity;
61  }
double efficiency
Efficiency (based on FLS energy) of neutrino interaction relative to slice.
Definition: BackTracker.h:48
double purity
Purity (based on FLS energy) of neutrino interaction relative to slice.
Definition: BackTracker.h:49
double cheat::EnergyMetric ( const cheat::NeutrinoEffPur ep)

Function for NeutrinoEffPur's nu interaction to slice energy.

Definition at line 64 of file BackTracker_service.cc.

References cheat::NeutrinoEffPur::energySlice.

Referenced by bpf::BPFCVNAna::analyze(), caf::CAFMaker::produce(), skim::SkimmingUtils::SliceMCTruthAssociation(), and cheat::BackTracker::SliceToOrderedNuIdsByEnergy().

65  {
66  return ep.energySlice;
67  }
double energySlice
Sum of FLS hits from the neutrino contributing to hits included in the slice.
Definition: BackTracker.h:51
double cheat::PurMetric ( const cheat::NeutrinoEffPur ep)

Function for NeutrinoEffPur's nu interaction to slice purity.

Definition at line 52 of file BackTracker_service.cc.

References cheat::NeutrinoEffPur::purity.

Referenced by caf::CAFMaker::produce(), and cheat::BackTracker::SliceToOrderedNuIdsByPur().

53  {
54  return ep.purity;
55  }
double purity
Purity (based on FLS energy) of neutrino interaction relative to slice.
Definition: BackTracker.h:49
static bool cheat::sortFLSHit ( sim::FLSHit const &  a,
sim::FLSHit const &  b 
)
static

Definition at line 34 of file BackTracker_service.cc.

References sim::FLSHit::GetEdep().

Referenced by cheat::BackTracker::Rebuild().

35  {
36  return a.GetEdep() > b.GetEdep();
37  }
const double a
const hit & b
Definition: hits.cxx:21