Classes | Enumerations | Functions | Variables
slid Namespace Reference

Build slid::LID objects to store electron ID, if asked for, otherwise, calculate LID info and make available. More...

Classes

class  DeconvolveAlg
 
class  DedxDistribution
 
class  EventLID
 
class  LID
 
class  LIDAlg
 
class  LIDBuilder
 
class  LIDTraining
 
class  NuEEnergyAlg
 
class  ParticleIDAlg
 
class  Recluster
 
class  ShowerLID
 
class  ShowerPID
 
class  SliceLID
 
class  SliceLIDBuilder
 
class  SPIDAlg
 
class  SPIDBuilder
 

Enumerations

enum  DedxParticleType {
  kELECTRON, kPHOTON, kMUON, kPI0,
  kPROTON, kNEUTRON, kPION, kELECTRONCCQE,
  kELECTRONCCRES, kELECTRONCCDIS, kELECTRONCCCOH, kDEDXPARTICLETYPESIZE
}
 An enum used to give allowed particle types a visible name in the code. Note that for electron, these types are broken down further by the process in which they reside. More...
 
enum  ValueType { kValueANN, kValueANNWithE, kValueANNEPi0, kValueANNECos }
 

Functions

bool CompareByE (const slid::ShowerLID &a, const slid::ShowerLID &b)
 
TFile * LoadHistFromFile (TString filePath)
 
bool CompareByEnergy (const slid::ShowerLID *a, const slid::ShowerLID *b)
 
bool CompareByE (art::Ptr< slid::ShowerLID > a, art::Ptr< slid::ShowerLID > b)
 
bool CompareByE (const slid::ShowerPID &a, const slid::ShowerPID &b)
 

Variables

static const int kNumXYRegion = 4
 Number of XY regions into which detector is divided for dE/dx histograms. More...
 
static const int kNumEnergyBin = 11
 Number of energy bins into which detector is divided for dE/dx histograms. More...
 
static const int kNumLongitudinalPlane = 200
 Number of longitudinal planes considered for dE/dx histograms. More...
 
static const int kNumTransversePlane = 20
 Number of "transverse" planes considered for dE/dx histograms ("planes" transverse to shower axis). More...
 
static const float kEnergyBins [] = {0.00, 0.25, 0.75, 1.25, 1.75, 2.25, 2.75, 3.25, 3.75, 4.25, 4.75, 5.25}
 bin boundaries of energy More...
 
int Ncount0 = 0
 
int Ncount1 = 0
 
int Ncount2 = 0
 
int Nfill = 0
 
int Nput = 0
 
const double xmass [7] = {0.000511, 0, 0.105658, 0.1349766, 0.938272, 0.939565379, 0.139570}
 

Detailed Description

Build slid::LID objects to store electron ID, if asked for, otherwise, calculate LID info and make available.

Build and write out the ShowerPID objects and make shower PID.

Make LL based NueCC ID with Tensorflow implementation of LSTM.

Build and write out the ShowerLID objects and make nue PID.

Todo:
Author
Alex Smith smith.nosp@m.@phy.nosp@m.sics..nosp@m.umn..nosp@m.edu

Jianming's oscillation weighting: Need to find standard code, which I stripped out of this class

Author
Alex Smith smith.nosp@m.@phy.nosp@m.sics..nosp@m.umn..nosp@m.edu
Andrew Vold voldx.nosp@m.034@.nosp@m.umn.e.nosp@m.du
Todo:
Author
Alex Smith smith.nosp@m.@phy.nosp@m.sics..nosp@m.umn..nosp@m.edu
Todo:
Jianming's oscillation weighting: Need to find standard

code, which I stripped out of this class

Author
Alex Smith smith.nosp@m.@phy.nosp@m.sics..nosp@m.umn..nosp@m.edu

Enumeration Type Documentation

An enum used to give allowed particle types a visible name in the code. Note that for electron, these types are broken down further by the process in which they reside.

Enumerator
kELECTRON 
kPHOTON 
kMUON 
kPI0 
kPROTON 
kNEUTRON 
kPION 
kELECTRONCCQE 
kELECTRONCCRES 
kELECTRONCCDIS 
kELECTRONCCCOH 
kDEDXPARTICLETYPESIZE 

Definition at line 37 of file DedxDistribution.h.

Enumerator
kValueANN 
kValueANNWithE 
kValueANNEPi0 
kValueANNECos 

Definition at line 31 of file LIDAlg.h.

Function Documentation

bool slid::CompareByE ( art::Ptr< slid::ShowerLID a,
art::Ptr< slid::ShowerLID b 
)

Definition at line 227 of file SliceLIDBuilder_module.cc.

References DEFINE_ART_MODULE(), and slid::ShowerLID::ShowerEnergy().

228  {
229  return a->ShowerEnergy() > b->ShowerEnergy();
230  }
float ShowerEnergy() const
Definition: ShowerLID.h:157
bool slid::CompareByE ( const slid::ShowerLID a,
const slid::ShowerLID b 
)

Definition at line 522 of file LIDBuilder_module.cc.

References DEFINE_ART_MODULE(), and slid::ShowerLID::ShowerEnergy().

Referenced by slid::SliceLIDBuilder::produce(), slid::LIDBuilder::produce(), and slid::SPIDBuilder::produce().

524  {
525  return a.ShowerEnergy() > b.ShowerEnergy();
526  }
float ShowerEnergy() const
Definition: ShowerLID.h:157
bool slid::CompareByE ( const slid::ShowerPID a,
const slid::ShowerPID b 
)

Definition at line 374 of file SPIDBuilder_module.cc.

References DEFINE_ART_MODULE(), and slid::ShowerLID::ShowerEnergy().

376  {
377  return a.ShowerEnergy() > b.ShowerEnergy();
378  }
float ShowerEnergy() const
Definition: ShowerLID.h:157
bool slid::CompareByEnergy ( const slid::ShowerLID a,
const slid::ShowerLID b 
)
TFile* slid::LoadHistFromFile ( TString  filePath)

Definition at line 60 of file ParticleIDAlg.cxx.

References om::cout, and allTimeWatchdog::endl.

61  {
62  std::cout << "LID Dedx File " << filePath << " is loaded." << std::endl;
63  return new TFile(filePath);
64  }
OStream cout
Definition: OStream.cxx:6

Variable Documentation

const float slid::kEnergyBins[] = {0.00, 0.25, 0.75, 1.25, 1.75, 2.25, 2.75, 3.25, 3.75, 4.25, 4.75, 5.25}
static

bin boundaries of energy

Definition at line 31 of file DedxDistribution.h.

Referenced by slid::ParticleIDAlg::CalculateEnergyBinIndex().

const int slid::kNumEnergyBin = 11
static
const int slid::kNumLongitudinalPlane = 200
static

Number of longitudinal planes considered for dE/dx histograms.

Definition at line 27 of file DedxDistribution.h.

Referenced by slid::ParticleIDAlg::CalcPlaneLongDedxProb(), slid::DedxDistribution::LoadDedxHistograms(), and slid::DedxDistribution::~DedxDistribution().

const int slid::kNumTransversePlane = 20
static
const int slid::kNumXYRegion = 4
static

Number of XY regions into which detector is divided for dE/dx histograms.

Definition at line 23 of file DedxDistribution.h.

Referenced by slid::ParticleIDAlg::CalcPlaneLongDedxProb(), slid::ParticleIDAlg::CalcPlaneTransDedxProb(), slid::DedxDistribution::LoadDedxHistograms(), and slid::DedxDistribution::~DedxDistribution().

int slid::Ncount0 = 0

Definition at line 101 of file LIDBuilder_module.cc.

int slid::Ncount1 = 0

Definition at line 101 of file LIDBuilder_module.cc.

int slid::Ncount2 = 0

Definition at line 101 of file LIDBuilder_module.cc.

int slid::Nfill = 0

Definition at line 102 of file LIDBuilder_module.cc.

int slid::Nput = 0

Definition at line 102 of file LIDBuilder_module.cc.

const double slid::xmass[7] = {0.000511, 0, 0.105658, 0.1349766, 0.938272, 0.939565379, 0.139570}

Definition at line 286 of file LIDTraining_module.cc.