ElectronNeutrinoSelection
 All Classes Functions Variables Groups
Classes | Typedefs | Functions | Variables
Lee

Classes

class  lee::ElectronEventSelectionAlg
 
class  lee::EnergyHelper
 
class  lee::GeometryHelper
 
class  lee::PandoraInterfaceHelper
 
class  lee::PandoraLEEAnalyzer
 

Typedefs

typedef std::map< art::Ptr
< recob::PFParticle >
, art::Ptr< simb::MCParticle > > 
lar_pandora::PFParticlesToMCParticles
 
typedef std::map< art::Ptr
< recob::PFParticle >
, unsigned int > 
lee::RecoParticleToNMatchedHits
 
typedef std::map< art::Ptr
< simb::MCParticle >
, RecoParticleToNMatchedHits > 
lee::ParticleMatchingMap
 
typedef std::set< art::Ptr
< recob::PFParticle > > 
lee::PFParticleSet
 
typedef std::set< art::Ptr
< simb::MCParticle > > 
lee::MCParticleSet
 

Functions

bool lee::ElectronEventSelectionAlg::eventSelected (const art::Event &evt)
 Main Event Selection Function. More...
 
void lee::ElectronEventSelectionAlg::reconfigure (fhicl::ParameterSet const &p)
 Configure all of the parameters of this class. More...
 
const std::map< size_t, int > lee::ElectronEventSelectionAlg::opticalfilter (const art::Event &evt, const std::vector< size_t > &pfplist, const art::ValidHandle< std::vector< recob::PFParticle >> pfparticle_handle)
 Checks if there is a flash within the 3.2-4.8 ms window and compatible with the center of charge. More...
 
const std::map< size_t, int > lee::ElectronEventSelectionAlg::flashBasedSelection (const art::Event &evt, const std::vector< size_t > &pfplist, const art::ValidHandle< std::vector< recob::PFParticle >> pfparticle_handle)
 Checks if there is a flash within the flash_window_start - flash_window_end window with enough PE. and compatible with the center of charge, the best one is selected using flashmatching. More...
 
const flashana::QCluster_t lee::ElectronEventSelectionAlg::collect3DHits (const art::Event &evt, const std::vector< size_t > &pfplist)
 Creates a photon cluster for a neutrino pfp hierarchy PFParticle. More...
 
TVector3 lee::ElectronEventSelectionAlg::spaceChargeTrueToReco (const TVector3 &xyz)
 Return the true coordinates corrected by the space-charge effect. More...
 
void lee::ElectronEventSelectionAlg::clear ()
 Reset internal variables.
 
const std::vector< size_t > & lee::ElectronEventSelectionAlg::get_primary_indexes () const
 Return a list of the selected pfparticle top level neutrino candidate indexes.
 
const size_t & lee::ElectronEventSelectionAlg::get_n_neutrino_candidates () const
 Return the number of neutrino candidates.
 
const std::map< size_t, bool > & lee::ElectronEventSelectionAlg::get_neutrino_candidate_passed () const
 Inform whether a particular candidate passed or failed the algorithm. More...
 
const std::map< size_t, int > & lee::ElectronEventSelectionAlg::get_op_flash_indexes () const
 Return the index of the flash matched with the pfparticle.
 
const std::map< size_t,
TVector3 > & 
lee::ElectronEventSelectionAlg::get_neutrino_vertex () const
 Return the pandora calculated vertex indexed by pfparticle id number.
 
const std::map< size_t, int > & lee::ElectronEventSelectionAlg::get_n_showers () const
 Return number of showers for this pfparticle.
 
const std::map< size_t, int > & lee::ElectronEventSelectionAlg::get_n_showers_as_tracks () const
 Return number of showers for this pfparticle, reconstructed as tracks;.
 
const std::map< size_t, int > & lee::ElectronEventSelectionAlg::get_n_tracks () const
 Return number of tracks for pfparticle index.
 
const std::map< size_t,
std::vector< size_t > > & 
lee::ElectronEventSelectionAlg::get_pfp_id_showers_from_primary () const
 Return the list of pfparticle indexes that are showers that are associated with primary pfparticle indexes.
 
const std::map< size_t,
std::vector< size_t > > & 
lee::ElectronEventSelectionAlg::get_pfp_id_tracks_from_primary () const
 Return the list of pfparticle indexes that are tracks that are associated with primary pfparticle indexes.
 
const std::map< size_t,
std::vector< size_t > > & 
lee::ElectronEventSelectionAlg::get_pfp_id_showers_as_tracks_from_primary () const
 Return the list of pfparticle indexes that are tracks that are associated with primary pfparticle indexes.
 
const std::vector< double > & lee::ElectronEventSelectionAlg::get_flash_PE () const
 Return the list of total PE of the flashes.
 
const std::vector< double > & lee::ElectronEventSelectionAlg::get_flash_time () const
 Return the list of times of the flashes.
 
const double & lee::ElectronEventSelectionAlg::get_flash_x () const
 Return the position in x of the flash.
 
const double & lee::ElectronEventSelectionAlg::get_TPC_x () const
 Return the position in x of the center of the collected charge.
 
const int & lee::ElectronEventSelectionAlg::get_selection_result () const
 Return the selection failure mode.
 
void lee::EnergyHelper::reconfigure (fhicl::ParameterSet const &pset)
 Configure all of the parameters of this class. More...
 
void lee::EnergyHelper::dQdx (const recob::Shower *shower_obj, std::vector< art::Ptr< recob::Cluster >> *clusters, art::FindManyP< recob::Hit > *hits_per_cluster, art::FindManyP< simb::MCParticle, anab::BackTrackerHitMatchingData > *mcps_per_hit, std::vector< double > &dqdx, std::vector< std::vector< double >> &dqdx_hits, std::vector< double > &pitches)
 Measure the dQdx of a shower. More...
 
double lee::EnergyHelper::PID (art::Ptr< anab::ParticleID > selected_pid, std::string AlgName, anab::kVariableType VariableType, anab::kTrackDir TrackDirection, int pdgCode)
 Return the value of a specific ParticleID algorithm for a single track. More...
 
void lee::EnergyHelper::dEdx_from_dQdx (std::vector< double > &dedx, std::vector< double > dqdx)
 Convert dQ/dx vector into dE/dx vector (in MeV) More...
 
void lee::EnergyHelper::PCA (std::vector< art::Ptr< recob::Cluster >> *clusters, art::FindManyP< recob::Hit > *hits_per_cluster, std::vector< std::vector< double >> &pca_planes)
 Principal Component Analysis of reconstructed clusters. More...
 
void lee::EnergyHelper::get_cali (std::vector< art::Ptr< recob::SpacePoint >> *spcpnts, art::FindManyP< recob::Hit > *hits_per_spcpnts, std::vector< double > &cali_corr)
 Calibration value for the energy of a reconstructed object. More...
 
void lee::EnergyHelper::energy_from_hits (std::vector< art::Ptr< recob::Cluster >> *clusters, art::FindManyP< recob::Hit > *hits_per_cluster, art::FindManyP< simb::MCParticle, anab::BackTrackerHitMatchingData > *mcps_per_hit, std::vector< int > &nHits, std::vector< double > &pfenergy)
 Measure calorimetric energy for a reconstructed object. More...
 
void lee::EnergyHelper::cluster_residuals (std::vector< art::Ptr< recob::Cluster >> *clusters, art::FindManyP< recob::Hit > *hits_per_cluster, double &mean_v, double &std_v)
 Measure the spatial residuals of the hits in a reconstructed cluster along its direction. More...
 
void lee::EnergyHelper::track_dQdx (std::vector< art::Ptr< anab::Calorimetry >> *calos, std::vector< double > &dqdx, std::vector< double > &dedx)
 Measure the dQ/dx and dE/dx of a track using the anab::Calorimetry information. More...
 
void lee::EnergyHelper::dQdx_cali (const recob::Shower *shower_obj, std::vector< double > &dqdx_cali)
 Calibration value for the dQ/dx of a reconstructed shower. More...
 
bool lee::EnergyHelper::is_hit_data (art::FindManyP< simb::MCParticle, anab::BackTrackerHitMatchingData > *mcps_per_hit, size_t hit_key)
 
bool lee::GeometryHelper::isInside (std::vector< double > P, std::vector< std::vector< double > > V)
 Determine if a point is within a rectangle (in 2D) More...
 
bool lee::GeometryHelper::isFiducial (const std::vector< double > &x) const
 Determine if the specified point is in the fiducial volume. More...
 
bool lee::GeometryHelper::isFiducial (const TVector3 &x) const
 Determine if the specified point is in the fiducial volume. More...
 
bool lee::GeometryHelper::isFiducial (const double x[3]) const
 Determine if the specified point is in the fiducial volume Not recommended, no array size checking is done. More...
 
bool lee::GeometryHelper::isActive (const std::vector< double > &x) const
 Determine if the specified point is in the active volume. More...
 
bool lee::GeometryHelper::isActive (const double x[3]) const
 Determine if the specified point is in the active volume Not recommended, no array size checking is done. More...
 
double lee::GeometryHelper::distance (const std::vector< double > &a, const std::vector< double > &b) const
 Compute the 3D distance between two points. More...
 
double lee::GeometryHelper::distance (const TVector3 &a, const TVector3 &b) const
 Compute the 3D distance between two points. More...
 
double lee::GeometryHelper::getPitch (const TVector3 &direction, const int &pl) const
 Returns the 3D effective pitch give a direction and a plane. More...
 
void lee::GeometryHelper::setFiducialVolumeCuts (float m_fidvolXstart, float m_fidvolXend, float m_fidvolYstart, float m_fidvolYend, float m_fidvolZstart, float m_fidvolZend)
 Sets the fiducial volume cuts. More...
 
TVector3 lee::GeometryHelper::getAveragePosition (std::vector< art::Ptr< recob::SpacePoint >> &spcpnts)
 Return the average position of a set of space points. More...
 
void lee::GeometryHelper::buildRectangle (double length, double width, std::vector< double > &start, std::vector< double > &axis, std::vector< std::vector< double >> &points)
 Builds a rectangle. More...
 
void lee::PandoraInterfaceHelper::reconfigure (fhicl::ParameterSet const &pset)
 
void lee::PandoraInterfaceHelper::traversePFParticleTree (const art::ValidHandle< std::vector< recob::PFParticle >> pfparticles, size_t top_index, std::vector< size_t > &unordered_daugthers, std::string _pfp_producer)
 Travers the tree of the daughters of a PFParticle. More...
 
std::vector< double > lee::PandoraInterfaceHelper::calculateChargeCenter (size_t ipf, const art::ValidHandle< std::vector< recob::PFParticle >> pfparticles, const art::Event &evt, std::string _pfp_producer)
 Measures the three-dimensional center of the deposited charge for a PFParticle. More...
 
void lee::PandoraInterfaceHelper::get_daughter_tracks (std::vector< size_t > pf_ids, const art::Event &evt, std::vector< art::Ptr< recob::Track >> &tracks, std::string _pfp_producer)
 
void lee::PandoraInterfaceHelper::get_daughter_showers (std::vector< size_t > pf_ids, const art::Event &evt, std::vector< art::Ptr< recob::Shower >> &showers, std::string _pfp_producer)
 
void lee::PandoraInterfaceHelper::GetRecoToTrueMatches (lar_pandora::PFParticlesToMCParticles &matchedParticles)
 Configure function parameters. More...
 
void lee::PandoraInterfaceHelper::Configure (art::Event const &e, std::string _pfp_producer, std::string _spacepoint_producer, std::string _hitfinder_producer, std::string _geant_producer, std::string _hit_mcp_producer)
 
art::Ptr< simb::MCTruth > lee::PandoraInterfaceHelper::TrackIDToMCTruth (art::Event const &e, std::string _geant_producer, int geant_track_id)
 
void lee::PandoraInterfaceHelper::CollectMCParticles (const art::Event &evt, const std::string &label, lar_pandora::MCParticleVector &particleVector)
 Collect a vector of MCParticle objects from the ART event record. More...
 
void lee::PandoraInterfaceHelper::CollectMCParticles (const art::Event &evt, const std::string &label, lar_pandora::MCTruthToMCParticles &truthToParticles, lar_pandora::MCParticlesToMCTruth &particlesToTruth)
 Collect truth information from the ART event record. More...
 
 lee::PandoraLEEAnalyzer::PandoraLEEAnalyzer (fhicl::ParameterSet const &pset)
 
 lee::PandoraLEEAnalyzer::PandoraLEEAnalyzer (PandoraLEEAnalyzer const &)=delete
 
 lee::PandoraLEEAnalyzer::PandoraLEEAnalyzer (PandoraLEEAnalyzer &&)=delete
 
PandoraLEEAnalyzerlee::PandoraLEEAnalyzer::operator= (PandoraLEEAnalyzer const &)=delete
 
PandoraLEEAnalyzerlee::PandoraLEEAnalyzer::operator= (PandoraLEEAnalyzer &&)=delete
 
void lee::PandoraLEEAnalyzer::analyze (art::Event const &e) override
 Main analyzer method, runs for every event in the file. More...
 
void lee::PandoraLEEAnalyzer::endSubRun (const art::SubRun &sr)
 Method called at the end of each subrun, it stores the number of POT. More...
 
void lee::PandoraLEEAnalyzer::reconfigure (fhicl::ParameterSet const &pset) override
 Assigns the values of the FHICL file. More...
 
void lee::PandoraLEEAnalyzer::clear ()
 Clears filled variables.
 
size_t lee::PandoraLEEAnalyzer::choose_candidate (std::vector< size_t > &candidates, const art::Event &evt)
 Return the longest reconstructed track. More...
 
art::Ptr< recob::Track > lee::PandoraLEEAnalyzer::get_longest_track (std::vector< art::Ptr< recob::Track >> &tracks)
 Return the longest reconstructed track. More...
 
art::Ptr< recob::Shower > lee::PandoraLEEAnalyzer::get_most_energetic_shower (std::vector< art::Ptr< recob::Shower >> &showers)
 
void lee::PandoraLEEAnalyzer::categorizePFParticles (art::Event const &evt, std::vector< int > &neutrino_pdg, std::vector< std::string > &neutrino_process, std::vector< double > &neutrino_energy, std::vector< art::Ptr< recob::PFParticle >> &neutrino_pf, std::vector< int > &cosmic_pdg, std::vector< std::string > &cosmic_process, std::vector< double > &cosmic_energy, std::vector< art::Ptr< recob::PFParticle >> &cosmic_pf)
 Determines if a PFParticle is matched with a MCParticle coming from a neutrino interaction or a cosmic ray. More...
 
void lee::PandoraLEEAnalyzer::fillTrackFields (size_t pf_id, recob::PFParticle const *pfparticle, art::FindManyP< recob::Cluster > *clusters_per_pfpart, art::FindManyP< recob::SpacePoint > *spcpnts_per_pfpart, art::FindOneP< recob::Track > *track_per_pfpart, art::FindManyP< anab::Calorimetry > *calos_per_track, art::FindManyP< simb::MCParticle, anab::BackTrackerHitMatchingData > *mcps_per_hit, art::FindManyP< recob::Hit > *hits_per_spcpnts, art::FindManyP< anab::ParticleID > *pid_per_track, art::FindManyP< recob::Hit > *hits_per_cluster)
 

Variables

size_t lee::ElectronEventSelectionAlg::_n_neutrino_candidates
 
std::vector< size_t > lee::ElectronEventSelectionAlg::_primary_indexes
 
std::map< size_t, bool > lee::ElectronEventSelectionAlg::_neutrino_candidate_passed
 
std::map< size_t, int > lee::ElectronEventSelectionAlg::_op_flash_indexes
 
std::map< size_t, TVector3 > lee::ElectronEventSelectionAlg::_neutrino_vertex
 
std::map< size_t, int > lee::ElectronEventSelectionAlg::_n_showers
 
std::map< size_t, std::vector
< size_t > > 
lee::ElectronEventSelectionAlg::_pfp_id_showers_from_primary
 
std::map< size_t, int > lee::ElectronEventSelectionAlg::_n_tracks
 
std::map< size_t, std::vector
< size_t > > 
lee::ElectronEventSelectionAlg::_pfp_id_tracks_from_primary
 
std::map< size_t, int > lee::ElectronEventSelectionAlg::_n_showers_as_tracks
 
std::map< size_t, std::vector
< size_t > > 
lee::ElectronEventSelectionAlg::_pfp_id_showers_as_tracks_from_primary
 
std::vector< double > lee::ElectronEventSelectionAlg::_flash_PE
 
std::vector< double > lee::ElectronEventSelectionAlg::_flash_time
 
double lee::ElectronEventSelectionAlg::_TPC_x
 
double lee::ElectronEventSelectionAlg::_flash_x
 
int lee::ElectronEventSelectionAlg::_selection_result
 
int lee::ElectronEventSelectionAlg::kPassed = 0
 
int lee::ElectronEventSelectionAlg::kNoNeutrino = 1
 
int lee::ElectronEventSelectionAlg::kNoShowers = 2
 
int lee::ElectronEventSelectionAlg::kNoTracks = 3
 
int lee::ElectronEventSelectionAlg::kNoValidFlash = 4
 
int lee::ElectronEventSelectionAlg::kNoDataProducts = 5
 
int lee::ElectronEventSelectionAlg::m_nTracks
 
bool lee::ElectronEventSelectionAlg::m_printDebug
 
double lee::ElectronEventSelectionAlg::m_fidvolXstart
 
double lee::ElectronEventSelectionAlg::m_fidvolXend
 
double lee::ElectronEventSelectionAlg::m_fidvolYstart
 
double lee::ElectronEventSelectionAlg::m_fidvolYend
 
double lee::ElectronEventSelectionAlg::m_fidvolZstart
 
double lee::ElectronEventSelectionAlg::m_fidvolZend
 
double lee::ElectronEventSelectionAlg::m_fractionsigmaflashwidth
 
double lee::ElectronEventSelectionAlg::m_absoluteflashdist
 
double lee::ElectronEventSelectionAlg::m_startbeamtime
 
double lee::ElectronEventSelectionAlg::m_endbeamtime
 
double lee::ElectronEventSelectionAlg::m_PE_threshold
 
double lee::ElectronEventSelectionAlg::m_cut_zwidth
 
double lee::ElectronEventSelectionAlg::m_cut_sigzwidth
 
double lee::ElectronEventSelectionAlg::m_cut_ywidth
 
double lee::ElectronEventSelectionAlg::m_cut_sigywidth
 
double lee::ElectronEventSelectionAlg::m_charge_light_ratio
 
bool lee::ElectronEventSelectionAlg::m_flashmatching
 
bool lee::ElectronEventSelectionAlg::m_FM_all
 
double lee::ElectronEventSelectionAlg::m_isCosmicInTime
 
bool lee::ElectronEventSelectionAlg::m_showersAsTracks
 
bool lee::ElectronEventSelectionAlg::_do_opdet_swap
 If true swaps reconstructed OpDets according to _opdet_swap_map.
 
std::vector< int > lee::ElectronEventSelectionAlg::_opdet_swap_map
 The OpDet swap map for reco flashes.
 
std::string lee::ElectronEventSelectionAlg::m_pfp_producer
 
std::string lee::ElectronEventSelectionAlg::fOpticalFlashFinderLabel
 
GeometryHelper lee::ElectronEventSelectionAlg::geoHelper
 
PandoraInterfaceHelper lee::ElectronEventSelectionAlg::pandoraHelper
 
flashana::FlashMatchManager lee::ElectronEventSelectionAlg::m_mgr
 
art::ServiceHandle< geo::Geometry > lee::ElectronEventSelectionAlg::m_geo
 
std::vector< double > lee::EnergyHelper::_data_gain = {236.41, 228.83, 242.72}
 
std::vector< double > lee::EnergyHelper::_mc_gain = {193.05, 196.85, 196.85}
 
std::vector< double > lee::EnergyHelper::_gain
 
const
lariov::TPCEnergyCalibProvider & 
lee::EnergyHelper::_energy_calib_provider = art::ServiceHandle<lariov::TPCEnergyCalibService>()->GetProvider()
 
const detinfo::DetectorProperties * lee::EnergyHelper::_detprop = lar::providerFrom<detinfo::DetectorPropertiesService>()
 
double lee::EnergyHelper::_drift = _detprop->DriftVelocity() * 1e-3
 
double lee::EnergyHelper::_readout_window = 4.8
 
double lee::EnergyHelper::_from_tick_to_ns = _readout_window / _detprop->ReadOutWindowSize() * 1e6
 
double lee::EnergyHelper::_wire_spacing = 0.3
 
double lee::EnergyHelper::_work_function = 23 / 1e6
 
double lee::EnergyHelper::_betap
 
double lee::EnergyHelper::_alpha
 
double lee::EnergyHelper::_recombination_factor
 
double lee::EnergyHelper::_dQdx_rectangle_length
 
double lee::EnergyHelper::_dQdx_rectangle_width
 
bool lee::EnergyHelper::m_isOverlaidSample
 
GeometryHelper lee::EnergyHelper::geo_helper
 
float lee::GeometryHelper::m_fidvolXstart
 
float lee::GeometryHelper::m_fidvolXend
 
float lee::GeometryHelper::m_fidvolYstart
 
float lee::GeometryHelper::m_fidvolYend
 
float lee::GeometryHelper::m_fidvolZstart
 
float lee::GeometryHelper::m_fidvolZend
 
lar_pandora::HitsToMCParticles lee::PandoraInterfaceHelper::_hit_to_mcps_map
 A map from recon hits to MCParticles.
 
lar_pandora::PFParticlesToHits lee::PandoraInterfaceHelper::_pfp_to_hits_map
 A map from PFParticles to recon hits.
 
bool lee::PandoraInterfaceHelper::_configured = false
 
bool lee::PandoraInterfaceHelper::m_isOverlaidSample = false
 
bool lee::PandoraInterfaceHelper::_debug = false
 
bool lee::PandoraInterfaceHelper::_verbose = false
 
std::string lee::PandoraLEEAnalyzer::m_hitfinderLabel
 
std::string lee::PandoraLEEAnalyzer::_geantModuleLabel = "largeant"
 
std::string lee::PandoraLEEAnalyzer::m_pfp_producer
 
std::string lee::PandoraLEEAnalyzer::m_pid_producer
 
std::string lee::PandoraLEEAnalyzer::m_calorimetry_producer
 
std::string lee::PandoraLEEAnalyzer::m_spacepointLabel
 
std::string lee::PandoraLEEAnalyzer::_mctruthLabel = "generator"
 
std::string lee::PandoraLEEAnalyzer::m_hitmatching_producer
 
lee::ElectronEventSelectionAlg lee::PandoraLEEAnalyzer::fElectronEventSelectionAlg
 
EnergyHelper lee::PandoraLEEAnalyzer::energyHelper
 
GeometryHelper lee::PandoraLEEAnalyzer::geoHelper
 
PandoraInterfaceHelper lee::PandoraLEEAnalyzer::pandoraHelper
 
uboone::EWTreeUtil lee::PandoraLEEAnalyzer::ewutil
 
trkf::TrackMomentumCalculator lee::PandoraLEEAnalyzer::_trkmom
 
float lee::PandoraLEEAnalyzer::_lee_bins [12] = {200, 300, 375, 475, 550, 675, 800, 950, 1100, 1300, 1500, 3000}
 
float lee::PandoraLEEAnalyzer::_lee_scaling [13] = {0, 3.88549, 3.05421, 1.59615, 0.383725, 0, 0, 0, 0, 0, 0, 0, 0}
 
TH1F * lee::PandoraLEEAnalyzer::_h_lee_scaling = new TH1F("h_lee_scaling", "", 11, _lee_bins)
 
TFile * lee::PandoraLEEAnalyzer::myTFile
 
TTree * lee::PandoraLEEAnalyzer::myTTree
 
TTree * lee::PandoraLEEAnalyzer::mySBNTTree
 
TTree * lee::PandoraLEEAnalyzer::myPOTTTree
 
double lee::PandoraLEEAnalyzer::_reco_nu_energy
 
bool lee::PandoraLEEAnalyzer::m_showersAsTracks
 
bool lee::PandoraLEEAnalyzer::m_isLEE
 
int lee::PandoraLEEAnalyzer::_interaction_type
 
double lee::PandoraLEEAnalyzer::m_fidvolXstart
 
double lee::PandoraLEEAnalyzer::m_fidvolXend
 
double lee::PandoraLEEAnalyzer::m_fidvolYstart
 
double lee::PandoraLEEAnalyzer::m_fidvolYend
 
double lee::PandoraLEEAnalyzer::m_fidvolZstart
 
double lee::PandoraLEEAnalyzer::m_fidvolZend
 
bool lee::PandoraLEEAnalyzer::m_useParticleID
 
bool lee::PandoraLEEAnalyzer::m_isData
 
bool lee::PandoraLEEAnalyzer::m_isCosmicInTime
 
bool lee::PandoraLEEAnalyzer::m_printDebug
 
bool lee::PandoraLEEAnalyzer::m_isOverlaidSample
 
bool lee::PandoraLEEAnalyzer::m_save_flux_info
 
const int lee::PandoraLEEAnalyzer::k_cosmic = 1
 
const int lee::PandoraLEEAnalyzer::k_nu_e = 2
 
const int lee::PandoraLEEAnalyzer::k_nu_mu = 3
 
const int lee::PandoraLEEAnalyzer::k_nc = 4
 
const int lee::PandoraLEEAnalyzer::k_dirt = 5
 
const int lee::PandoraLEEAnalyzer::k_data = 6
 
const int lee::PandoraLEEAnalyzer::k_other = 0
 
const int lee::PandoraLEEAnalyzer::k_mixed = 7
 
const int lee::PandoraLEEAnalyzer::k_nu_e_other = 8
 
std::vector< double > lee::PandoraLEEAnalyzer::_energy
 
int lee::PandoraLEEAnalyzer::_true_nu_is_fiducial
 
double lee::PandoraLEEAnalyzer::_nu_energy
 
int lee::PandoraLEEAnalyzer::_n_tracks
 
int lee::PandoraLEEAnalyzer::_n_showers
 
int lee::PandoraLEEAnalyzer::_n_showers_as_tracks
 
double lee::PandoraLEEAnalyzer::_vx
 
double lee::PandoraLEEAnalyzer::_vy
 
double lee::PandoraLEEAnalyzer::_vz
 
double lee::PandoraLEEAnalyzer::_interaction_length
 
double lee::PandoraLEEAnalyzer::_true_vx
 
double lee::PandoraLEEAnalyzer::_true_vy
 
double lee::PandoraLEEAnalyzer::_true_vz
 
double lee::PandoraLEEAnalyzer::_true_vx_sce
 
double lee::PandoraLEEAnalyzer::_true_vy_sce
 
double lee::PandoraLEEAnalyzer::_true_vz_sce
 
std::vector< std::vector
< double > > 
lee::PandoraLEEAnalyzer::_genie_weights
 
std::vector< std::string > lee::PandoraLEEAnalyzer::_genie_names
 
std::vector< std::vector
< double > > 
lee::PandoraLEEAnalyzer::_flux_weights
 
std::vector< std::string > lee::PandoraLEEAnalyzer::_flux_names
 
std::vector< double > lee::PandoraLEEAnalyzer::_true_shower_x_sce
 
std::vector< double > lee::PandoraLEEAnalyzer::_true_shower_y_sce
 
std::vector< double > lee::PandoraLEEAnalyzer::_true_shower_z_sce
 
std::vector< int > lee::PandoraLEEAnalyzer::_true_shower_pdg
 
std::vector< double > lee::PandoraLEEAnalyzer::_true_shower_depE
 
int lee::PandoraLEEAnalyzer::_nu_matched_tracks
 
int lee::PandoraLEEAnalyzer::_nu_matched_showers
 
int lee::PandoraLEEAnalyzer::_nu_pdg
 
int lee::PandoraLEEAnalyzer::_ccnc
 
int lee::PandoraLEEAnalyzer::_category
 
int lee::PandoraLEEAnalyzer::_run
 
int lee::PandoraLEEAnalyzer::_subrun
 
int lee::PandoraLEEAnalyzer::_event
 
int lee::PandoraLEEAnalyzer::_n_candidates
 
int lee::PandoraLEEAnalyzer::_n_true_nu
 
int lee::PandoraLEEAnalyzer::_run_sr
 
int lee::PandoraLEEAnalyzer::_subrun_sr
 
int lee::PandoraLEEAnalyzer::_n_matched
 
double lee::PandoraLEEAnalyzer::_pot
 
int lee::PandoraLEEAnalyzer::_event_passed
 
int lee::PandoraLEEAnalyzer::_numu_passed
 
int lee::PandoraLEEAnalyzer::_numu_cuts
 
double lee::PandoraLEEAnalyzer::_distance
 
double lee::PandoraLEEAnalyzer::_cosmic_fraction
 
std::vector< int > lee::PandoraLEEAnalyzer::_flash_passed
 
std::vector< int > lee::PandoraLEEAnalyzer::_track_passed
 
std::vector< int > lee::PandoraLEEAnalyzer::_shower_passed
 
std::vector< int > lee::PandoraLEEAnalyzer::_primary_indexes
 
std::vector< int > lee::PandoraLEEAnalyzer::_number_tracks
 
std::vector< int > lee::PandoraLEEAnalyzer::_number_showers
 
std::vector< int > lee::PandoraLEEAnalyzer::_matched_showers
 
std::vector< int > lee::PandoraLEEAnalyzer::_matched_tracks
 
std::vector< std::string > lee::PandoraLEEAnalyzer::_matched_tracks_process
 
std::vector< double > lee::PandoraLEEAnalyzer::_matched_tracks_energy
 
std::vector< std::string > lee::PandoraLEEAnalyzer::_matched_showers_process
 
std::vector< double > lee::PandoraLEEAnalyzer::_matched_showers_energy
 
std::map< std::string,
std::vector< double > > 
lee::PandoraLEEAnalyzer::_weights
 
int lee::PandoraLEEAnalyzer::_n_primaries
 
int lee::PandoraLEEAnalyzer::_chosen_candidate
 
float lee::PandoraLEEAnalyzer::_leeweight
 
double lee::PandoraLEEAnalyzer::_bnbweight
 
std::vector< std::vector
< double > > 
lee::PandoraLEEAnalyzer::_shower_dQdx_hits
 
std::vector< std::vector
< double > > 
lee::PandoraLEEAnalyzer::_shower_dEdx_hits
 
std::vector< std::vector
< double > > 
lee::PandoraLEEAnalyzer::_shower_dQdx
 
std::vector< std::vector
< double > > 
lee::PandoraLEEAnalyzer::_shower_dEdx
 
std::vector< std::vector
< double > > 
lee::PandoraLEEAnalyzer::_shower_dQdx_cali
 
std::vector< std::vector
< double > > 
lee::PandoraLEEAnalyzer::_shower_dEdx_cali
 
std::vector< std::vector
< double > > 
lee::PandoraLEEAnalyzer::_shower_pitches
 
std::vector< std::vector< int > > lee::PandoraLEEAnalyzer::_shower_dQdx_hits_in_the_box
 
std::vector< std::vector
< double > > 
lee::PandoraLEEAnalyzer::_track_dQdx_hits
 
std::vector< std::vector
< double > > 
lee::PandoraLEEAnalyzer::_track_dEdx_hits
 
std::vector< std::vector
< double > > 
lee::PandoraLEEAnalyzer::_track_dQdx
 
std::vector< std::vector
< double > > 
lee::PandoraLEEAnalyzer::_track_dQdx_cali
 
std::vector< std::vector
< double > > 
lee::PandoraLEEAnalyzer::_track_dEdx
 
std::vector< double > lee::PandoraLEEAnalyzer::_track_energy_length
 
std::vector< size_t > lee::PandoraLEEAnalyzer::_nu_track_ids
 
std::vector< size_t > lee::PandoraLEEAnalyzer::_nu_shower_as_track_ids
 
std::vector< size_t > lee::PandoraLEEAnalyzer::_nu_shower_ids
 
std::vector< std::vector
< size_t > > 
lee::PandoraLEEAnalyzer::_nu_track_daughters
 
std::vector< std::vector
< size_t > > 
lee::PandoraLEEAnalyzer::_nu_shower_daughters
 
std::vector< double > lee::PandoraLEEAnalyzer::_shower_open_angle
 
std::vector< double > lee::PandoraLEEAnalyzer::_shower_length
 
std::vector< double > lee::PandoraLEEAnalyzer::_shower_dir_x
 
std::vector< double > lee::PandoraLEEAnalyzer::_shower_dir_y
 
std::vector< double > lee::PandoraLEEAnalyzer::_shower_dir_z
 
std::vector< double > lee::PandoraLEEAnalyzer::_shower_start_x
 
std::vector< double > lee::PandoraLEEAnalyzer::_shower_start_y
 
std::vector< double > lee::PandoraLEEAnalyzer::_shower_start_z
 
std::vector< double > lee::PandoraLEEAnalyzer::_shower_theta
 
std::vector< double > lee::PandoraLEEAnalyzer::_shower_phi
 
std::vector< std::vector
< double > > 
lee::PandoraLEEAnalyzer::_shower_energy
 
std::vector< std::vector
< double > > 
lee::PandoraLEEAnalyzer::_shower_energy_cali
 
std::vector< std::vector
< double > > 
lee::PandoraLEEAnalyzer::_track_energy_cali
 
std::vector< double > lee::PandoraLEEAnalyzer::_track_dir_x
 
std::vector< double > lee::PandoraLEEAnalyzer::_track_dir_y
 
std::vector< double > lee::PandoraLEEAnalyzer::_track_dir_z
 
std::vector< int > lee::PandoraLEEAnalyzer::_track_is_fiducial
 
std::vector< int > lee::PandoraLEEAnalyzer::_shower_is_fiducial
 
std::vector< double > lee::PandoraLEEAnalyzer::_track_res_mean
 
std::vector< double > lee::PandoraLEEAnalyzer::_track_res_std
 
std::vector< double > lee::PandoraLEEAnalyzer::_shower_res_mean
 
std::vector< double > lee::PandoraLEEAnalyzer::_shower_res_std
 
std::vector< double > lee::PandoraLEEAnalyzer::_track_start_x
 
std::vector< double > lee::PandoraLEEAnalyzer::_track_start_y
 
std::vector< double > lee::PandoraLEEAnalyzer::_track_start_z
 
std::vector< double > lee::PandoraLEEAnalyzer::_track_end_x
 
std::vector< double > lee::PandoraLEEAnalyzer::_track_end_y
 
std::vector< double > lee::PandoraLEEAnalyzer::_track_end_z
 
std::vector< double > lee::PandoraLEEAnalyzer::_track_theta
 
std::vector< double > lee::PandoraLEEAnalyzer::_track_phi
 
std::vector< double > lee::PandoraLEEAnalyzer::_track_length
 
std::vector< double > lee::PandoraLEEAnalyzer::_track_id
 
std::vector< double > lee::PandoraLEEAnalyzer::_track_bragg_p
 
std::vector< double > lee::PandoraLEEAnalyzer::_track_bragg_mu
 
std::vector< double > lee::PandoraLEEAnalyzer::_track_bragg_mip
 
std::vector< double > lee::PandoraLEEAnalyzer::_track_pidchi
 
std::vector< double > lee::PandoraLEEAnalyzer::_track_pidchipr
 
std::vector< double > lee::PandoraLEEAnalyzer::_track_pidchika
 
std::vector< double > lee::PandoraLEEAnalyzer::_track_pidchipi
 
std::vector< double > lee::PandoraLEEAnalyzer::_track_pidchimu
 
std::vector< double > lee::PandoraLEEAnalyzer::_track_pida
 
std::vector< double > lee::PandoraLEEAnalyzer::_track_energy_dedx
 
std::vector< std::vector
< double > > 
lee::PandoraLEEAnalyzer::_track_energy_hits
 
std::vector< int > lee::PandoraLEEAnalyzer::_nu_daughters_pdg
 
std::vector< double > lee::PandoraLEEAnalyzer::_nu_daughters_E
 
std::vector< double > lee::PandoraLEEAnalyzer::_nu_daughters_px
 
std::vector< double > lee::PandoraLEEAnalyzer::_nu_daughters_py
 
std::vector< double > lee::PandoraLEEAnalyzer::_nu_daughters_pz
 
std::vector< double > lee::PandoraLEEAnalyzer::_nu_daughters_vx
 
std::vector< double > lee::PandoraLEEAnalyzer::_nu_daughters_vy
 
std::vector< double > lee::PandoraLEEAnalyzer::_nu_daughters_vz
 
std::vector< double > lee::PandoraLEEAnalyzer::_nu_daughters_endx
 
std::vector< double > lee::PandoraLEEAnalyzer::_nu_daughters_endy
 
std::vector< double > lee::PandoraLEEAnalyzer::_nu_daughters_endz
 
std::vector< double > lee::PandoraLEEAnalyzer::_flash_PE
 
std::vector< double > lee::PandoraLEEAnalyzer::_flash_time
 
double lee::PandoraLEEAnalyzer::_TPC_x
 
double lee::PandoraLEEAnalyzer::_flash_x
 
std::vector< std::vector
< double > > 
lee::PandoraLEEAnalyzer::_shower_pca
 
std::vector< std::vector
< double > > 
lee::PandoraLEEAnalyzer::_track_pca
 
std::vector< std::vector< int > > lee::PandoraLEEAnalyzer::_shower_nhits
 
std::vector< std::vector< int > > lee::PandoraLEEAnalyzer::_track_nhits
 

Detailed Description

Function Documentation

void PandoraLEEAnalyzer::analyze ( art::Event const &  e)
override

Main analyzer method, runs for every event in the file.

Parameters
[in]evtcurrent art::Event
void GeometryHelper::buildRectangle ( double  length,
double  width,
std::vector< double > &  start,
std::vector< double > &  axis,
std::vector< std::vector< double >> &  points 
)

Builds a rectangle.

Parameters
[in]lengthThe length
[in]widthThe width
startThe start
axisThe axis
pointsThe points
std::vector< double > PandoraInterfaceHelper::calculateChargeCenter ( size_t  ipf,
const art::ValidHandle< std::vector< recob::PFParticle >>  pfparticles,
const art::Event &  evt,
std::string  _pfp_producer 
)

Measures the three-dimensional center of the deposited charge for a PFParticle.

Parameters
ipfIndex of the PFParticle
pfparticlesPFParticles handle
evtart Event
Returns
vector with: lowest x_sps, center in y, z, and total deposited charge on the collection plane.
void PandoraLEEAnalyzer::categorizePFParticles ( art::Event const &  evt,
std::vector< int > &  neutrino_pdg,
std::vector< std::string > &  neutrino_process,
std::vector< double > &  neutrino_energy,
std::vector< art::Ptr< recob::PFParticle >> &  neutrino_pf,
std::vector< int > &  cosmic_pdg,
std::vector< std::string > &  cosmic_process,
std::vector< double > &  cosmic_energy,
std::vector< art::Ptr< recob::PFParticle >> &  cosmic_pf 
)

Determines if a PFParticle is matched with a MCParticle coming from a neutrino interaction or a cosmic ray.

Parameters
[in]evtcurrent art Event
[out]neutrino_pdgvector of PDG codes for neutrino-matched PFParticles
[out]neutrino_processvector of interaction processes for neutrino-matched PFParticles
[out]neutrino_energyvector of true energy of neutrino-matched MCParticles
[out]neutrino_pfvector of neutrino-matched PFParticles
[out]cosmic_pdgvector of PDG codes for cosmic-matched PFParticles
[out]cosmic_processvector of interaction processes for cosmic-matched PFParticles
[out]cosmic_energyvector of true energy of cosmic-matched MCParticles
[out]cosmic_pfvector of cosmic-matched PFParticles
size_t PandoraLEEAnalyzer::choose_candidate ( std::vector< size_t > &  candidates,
const art::Event &  evt 
)

Return the longest reconstructed track.

Parameters
[in]candidatesvector of neutrino candidates indexes
[in]evtcurrent art::Event
Returns
index of the chosen neutrino candidate
void EnergyHelper::cluster_residuals ( std::vector< art::Ptr< recob::Cluster >> *  clusters,
art::FindManyP< recob::Hit > *  hits_per_cluster,
double &  mean_v,
double &  std_v 
)

Measure the spatial residuals of the hits in a reconstructed cluster along its direction.

Parameters
[in]clustersPointer to the vector of reconstructed clusters
[in]hits_per_clusterPointer to the hits-cluster association
[out]mean_vAddress of the mean value
[out]std_vAddress of the standard deviation value
const flashana::QCluster_t ElectronEventSelectionAlg::collect3DHits ( const art::Event &  evt,
const std::vector< size_t > &  pfplist 
)

Creates a photon cluster for a neutrino pfp hierarchy PFParticle.

Parameters
evtart Event
pfplistlist of pfp indices
Returns
flashana::QCluster_t object containing the photons
void PandoraInterfaceHelper::CollectMCParticles ( const art::Event &  evt,
const std::string &  label,
lar_pandora::MCParticleVector &  particleVector 
)

Collect a vector of MCParticle objects from the ART event record.

Parameters
evtthe ART event record
labelthe label for the truth information in the event
particleVectorthe output vector of MCParticle objects
void PandoraInterfaceHelper::CollectMCParticles ( const art::Event &  evt,
const std::string &  label,
lar_pandora::MCTruthToMCParticles &  truthToParticles,
lar_pandora::MCParticlesToMCTruth &  particlesToTruth 
)

Collect truth information from the ART event record.

Parameters
evtthe ART event record
labelthe label for the truth information in the event
truthToParticlesoutput map from MCTruth to MCParticle objects
particlesToTruthoutput map from MCParticle to MCTruth objects
void EnergyHelper::dEdx_from_dQdx ( std::vector< double > &  dedx,
std::vector< double >  dqdx 
)

Convert dQ/dx vector into dE/dx vector (in MeV)

Parameters
[out]dedxAddress of the dE/dx vector
[in]dqdxdQ/dx vector
double GeometryHelper::distance ( const std::vector< double > &  a,
const std::vector< double > &  b 
) const

Compute the 3D distance between two points.

Parameters
aFirst Point
bSecond Point
Returns
Returns SQRT( (a.x - b.x)^2 + (a.y - b.y)^2 + (a.z - b.z)^2 )
double GeometryHelper::distance ( const TVector3 &  a,
const TVector3 &  b 
) const

Compute the 3D distance between two points.

Parameters
aFirst Point
bSecond Point
Returns
Returns SQRT( (a.x - b.x)^2 + (a.y - b.y)^2 + (a.z - b.z)^2 )
void EnergyHelper::dQdx ( const recob::Shower *  shower_obj,
std::vector< art::Ptr< recob::Cluster >> *  clusters,
art::FindManyP< recob::Hit > *  hits_per_cluster,
art::FindManyP< simb::MCParticle, anab::BackTrackerHitMatchingData > *  mcps_per_hit,
std::vector< double > &  dqdx,
std::vector< std::vector< double >> &  dqdx_hits,
std::vector< double > &  pitches 
)

Measure the dQdx of a shower.

Parameters
[in]shower_objPointer to the shower object
[in]clustersPointer to the cluster associated tot the shower
[in]hits_per_clusterPointer to the hits-cluster association
[out]dqdxVector of the dQ/dx median values per plane
[out]dqdx_hitsVector of the dQ/dx hits values per plane
[out]pitchesVector of the pitches per plane
void EnergyHelper::dQdx_cali ( const recob::Shower *  shower_obj,
std::vector< double > &  dqdx_cali 
)

Calibration value for the dQ/dx of a reconstructed shower.

Parameters
[in]shower_objPointer to the reconstructed shower
[out]dqdx_caliAddress of the vector of with the dQ/dx calibration values
void PandoraLEEAnalyzer::endSubRun ( const art::SubRun &  sr)

Method called at the end of each subrun, it stores the number of POT.

Parameters
[in]srcurrent art::SubRun
void EnergyHelper::energy_from_hits ( std::vector< art::Ptr< recob::Cluster >> *  clusters,
art::FindManyP< recob::Hit > *  hits_per_cluster,
art::FindManyP< simb::MCParticle, anab::BackTrackerHitMatchingData > *  mcps_per_hit,
std::vector< int > &  nHits,
std::vector< double > &  pfenergy 
)

Measure calorimetric energy for a reconstructed object.

Parameters
[in]clustersPointer to the vector of reconstructed clusters
[in]hits_per_clusterPointer to the hits-cluster association
[out]nHitsAddress of the vector of the number of hits per plane
[out]pfenergyAddress of the vector of reconstructed energy per plane
bool ElectronEventSelectionAlg::eventSelected ( const art::Event &  evt)

Main Event Selection Function.

Decides whether or not this event is an electron neutrino candidate

Parameters
evtart::Event containing the information for this event.
Returns
True or False. True == event passed cuts, false == event failed cuts
const std::map< size_t, int > ElectronEventSelectionAlg::flashBasedSelection ( const art::Event &  evt,
const std::vector< size_t > &  pfplist,
const art::ValidHandle< std::vector< recob::PFParticle >>  pfparticle_handle 
)

Checks if there is a flash within the flash_window_start - flash_window_end window with enough PE. and compatible with the center of charge, the best one is selected using flashmatching.

Parameters
std::vector<size_t>pfplist : list of primary neutrino candidates that need to be tested
evtart Event
Returns
-1 if not passed, otherwise index of the flash is returned
void EnergyHelper::get_cali ( std::vector< art::Ptr< recob::SpacePoint >> *  spcpnts,
art::FindManyP< recob::Hit > *  hits_per_spcpnts,
std::vector< double > &  cali_corr 
)

Calibration value for the energy of a reconstructed object.

Parameters
[in]spcpntsPointer to the vector of reconstructed space-points
[in]hits_per_spcpntsPointer to the hits-spacepoints association
[out]cali_corrAddress of the two-dimensional vector storing calibration values
art::Ptr< recob::Track > PandoraLEEAnalyzer::get_longest_track ( std::vector< art::Ptr< recob::Track >> &  tracks)

Return the longest reconstructed track.

Parameters
[in]tracksvector of reconstructed tracks
Returns
longest reconstructed track object
const std::map<size_t, bool>& lee::ElectronEventSelectionAlg::get_neutrino_candidate_passed ( ) const
inline

Inform whether a particular candidate passed or failed the algorithm.

Returns
Vector of bool, one-to-one with get_primary_indexes
TVector3 GeometryHelper::getAveragePosition ( std::vector< art::Ptr< recob::SpacePoint >> &  spcpnts)

Return the average position of a set of space points.

Parameters
spcpntsThe spcpnts
Returns
3D Vector
double GeometryHelper::getPitch ( const TVector3 &  direction,
const int &  pl 
) const

Returns the 3D effective pitch give a direction and a plane.

Parameters
[in]directionThe direction
[in]plPlane of interest (0, 1, 2)
Returns
The pitch.
void PandoraInterfaceHelper::GetRecoToTrueMatches ( lar_pandora::PFParticlesToMCParticles &  matchedParticles)

Configure function parameters.

Configure function parameters (call this function first)

Parameters
ethe art::Event
_pfp_producerthe PFParticle producer label
_spacepoint_producerthe SpacePoint producer label
_hitfinder_producerthe Hit producer label
_geant_producerThe Geant4 producer label Returns matching between true and reconstructed particles
matchedParticlesthe output matches between reconstructed and true particles
bool GeometryHelper::isActive ( const std::vector< double > &  x) const

Determine if the specified point is in the active volume.

Parameters
xarray of 3D location
Returns
True or false
bool GeometryHelper::isActive ( const double  x[3]) const

Determine if the specified point is in the active volume Not recommended, no array size checking is done.

Parameters
xarray of 3D location
Returns
True or false
bool GeometryHelper::isFiducial ( const std::vector< double > &  x) const

Determine if the specified point is in the fiducial volume.

Parameters
xvector of length 3
Returns
True or false
bool GeometryHelper::isFiducial ( const TVector3 &  x) const

Determine if the specified point is in the fiducial volume.

Parameters
xTVector3 of 3D location
Returns
True or false
bool GeometryHelper::isFiducial ( const double  x[3]) const

Determine if the specified point is in the fiducial volume Not recommended, no array size checking is done.

Parameters
xarray of 3D location
Returns
True or false
bool GeometryHelper::isInside ( std::vector< double >  P,
std::vector< std::vector< double > >  V 
)

Determine if a point is within a rectangle (in 2D)

Parameters
Pvector containing the point's coordinates
Vvector of vectors containing rectangle's vertices
Returns
True if the points is inside, False otherwise
const std::map< size_t, int > ElectronEventSelectionAlg::opticalfilter ( const art::Event &  evt,
const std::vector< size_t > &  pfplist,
const art::ValidHandle< std::vector< recob::PFParticle >>  pfparticle_handle 
)

Checks if there is a flash within the 3.2-4.8 ms window and compatible with the center of charge.

Parameters
std::vector<size_t>pfplist : list of primary neutrino candidates that need to be tested
evtart Event
Returns
-1 if not passed, otherwise index of the flash
void EnergyHelper::PCA ( std::vector< art::Ptr< recob::Cluster >> *  clusters,
art::FindManyP< recob::Hit > *  hits_per_cluster,
std::vector< std::vector< double >> &  pca_planes 
)

Principal Component Analysis of reconstructed clusters.

Parameters
[in]clustersPointer to the vector of reconstructed clusters
[in]hits_pre_clusterPointer to the hits-cluster association
[out]pca_planesAddress of the two-dimensional vector storing the PCA eigenvalues per plane
double EnergyHelper::PID ( art::Ptr< anab::ParticleID >  selected_pid,
std::string  AlgName,
anab::kVariableType  VariableType,
anab::kTrackDir  TrackDirection,
int  pdgCode 
)

Return the value of a specific ParticleID algorithm for a single track.

Parameters
[in]pidsPointer to the vector of ParticleID objects
[in]trackIDTrackID value
[in]AlgNameName of the algorithm (e.g. Bragg peak, PIDA, etc.)
[in]VariableTypeType of variable (e.g. likelihood)
[in]TrackDirectionAssumed direction of the track (anab::kBackward or anab::kForward)
[in]pdgCodeAssumed PDG code of the track
Returns
Value of VariableType for the ParticleID AlgName algorithm, given its hypothetical PDG code
void EnergyHelper::reconfigure ( fhicl::ParameterSet const &  pset)

Configure all of the parameters of this class.

Parameters
pfcl parameter set
void ElectronEventSelectionAlg::reconfigure ( fhicl::ParameterSet const &  p)

Configure all of the parameters of this class.

Parameters
pfcl parameter set
void PandoraLEEAnalyzer::reconfigure ( fhicl::ParameterSet const &  pset)
override

Assigns the values of the FHICL file.

Parameters
[in]psetset of FHICL parameters
void GeometryHelper::setFiducialVolumeCuts ( float  m_fidvolXstart,
float  m_fidvolXend,
float  m_fidvolYstart,
float  m_fidvolYend,
float  m_fidvolZstart,
float  m_fidvolZend 
)

Sets the fiducial volume cuts.

Parameters
[in]m_fidvolXstartThe x start
[in]m_fidvolXendThe x end
[in]m_fidvolYstartThe y start
[in]m_fidvolYendThe y end
[in]m_fidvolZstartThe z start
[in]m_fidvolZendThe z end
TVector3 ElectronEventSelectionAlg::spaceChargeTrueToReco ( const TVector3 &  xyz)

Return the true coordinates corrected by the space-charge effect.

Parameters
xyzTVector3 of the true position
Returns
TVector3 of the space-charge corrected position
void EnergyHelper::track_dQdx ( std::vector< art::Ptr< anab::Calorimetry >> *  calos,
std::vector< double > &  dqdx,
std::vector< double > &  dedx 
)

Measure the dQ/dx and dE/dx of a track using the anab::Calorimetry information.

Parameters
[in]calosPointer to the vector of the calorimetry objects
[out]dqdxAddress of the vector of the dQ/dx values per plane
[out]dedxAddress of the vector of the dE/dx values per plane
void PandoraInterfaceHelper::traversePFParticleTree ( const art::ValidHandle< std::vector< recob::PFParticle >>  pfparticles,
size_t  top_index,
std::vector< size_t > &  unordered_daugthers,
std::string  _pfp_producer 
)

Travers the tree of the daughters of a PFParticle.

Parameters
pfparticlesPFParticles handle
top_indexIndex of the parent
unordered_daugthersVector of PFParticles daughters