All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Namespaces | Functions
sbnana/sbnanalysis/ana/SBNOsc/Utilities.cxx File Reference
#include <iostream>
#include "TDatabasePDG.h"
#include "nusimdata/SimulationBase/MCTruth.h"
#include "nusimdata/SimulationBase/MCNeutrino.h"
#include "core/Event.hh"
#include "Utilities.h"
#include "ubcore/LLBasicTool/GeoAlgo/GeoAABox.h"
#include "ubcore/LLBasicTool/GeoAlgo/GeoAlgo.h"
#include "ubcore/LLBasicTool/GeoAlgo/GeoLineSegment.h"
#include <TMath.h>
#include <TRandom3.h>

Go to the source code of this file.

Namespaces

 ana
 Oscillation analysis framework, runs over CAF files outside of ART.
 
 ana::SBNOsc
 

Functions

void ana::SBNOsc::hello ()
 
event::Interaction ana::SBNOsc::TruthReco (const simb::MCTruth &mctruth)
 
double ana::SBNOsc::ECCQE (const TVector3 &l_momentum, double l_energy, double energy_distortion, double angle_distortion)
 
double ana::SBNOsc::NuMuOscillation (double numu_energy, double numu_dist, double osc_dm2, double osc_angle)
 
double ana::SBNOsc::containedLength (const TVector3 &v0, const TVector3 &v1, const std::vector< geoalgo::AABox > &boxes)
 
double ana::SBNOsc::visibleEnergyProposalMCParticles (TRandom &rand, const simb::MCTruth &mctruth, const std::vector< sim::MCTrack > mctrack_list, const VisibleEnergyCalculator &calculator)
 
double ana::SBNOsc::visibleEnergyProposal (TRandom &rand, const simb::MCTruth &mctruth, const std::vector< sim::MCTrack > &mctrack_list, const VisibleEnergyCalculator &calculator)
 
double ana::SBNOsc::visibleEnergy (TRandom &rand, const simb::MCTruth &mctruth, const std::vector< sim::MCTrack > &mctrack_list, const std::vector< sim::MCShower > &mcshower_list, const VisibleEnergyCalculator &calculator, bool include_showers)
 
double ana::SBNOsc::smearLeptonEnergy (TRandom &rand, const sim::MCTrack &mct, const VisibleEnergyCalculator &calculator)
 
static const TDatabasePDG * ana::SBNOsc::PDGTable (new TDatabasePDG)
 
double ana::SBNOsc::PDGMass (int pdg)
 
double ana::SBNOsc::PDGCharge (int pdg)
 
bool ana::SBNOsc::isFromNuVertex (const simb::MCTruth &mc, const simb::MCParticle &mcp, float distance)
 
bool ana::SBNOsc::isFromNuVertex (const simb::MCTruth &mc, const sim::MCShower &show, float distance)
 
bool ana::SBNOsc::isFromNuVertex (const simb::MCTruth &mc, const sim::MCTrack &track, float distance)
 
double ana::SBNOsc::closestDistance (const TVector3 &line0, const TVector3 &line1, const TVector3 &p)
 
double ana::SBNOsc::closestDistanceDim (const TVector3 &line0, const TVector3 &line1, const TVector3 &p, int dim)