Classes | |
class | PandoraPFParticle |
struct | sss_score |
class | TruncMean |
struct | para_all |
struct | var_all |
class | SinglePhoton |
SinglePhoton class. More... | |
Typedefs | |
typedef art::ValidHandle < std::vector < recob::PFParticle > > | PFParticleHandle |
typedef std::vector< art::Ptr < recob::PFParticle > > | PFParticleVector |
typedef std::vector< art::Ptr < recob::Track > > | TrackVector |
typedef std::vector< art::Ptr < recob::Shower > > | ShowerVector |
typedef std::map< size_t, art::Ptr< recob::PFParticle > > | PFParticleIdMap |
Functions | |
std::vector< int > | Printer_header (std::vector< std::string > headings) |
void | Printer_content (std::vector< std::string > nums, std::vector< int > spacers) |
double | dist_line_point (std::vector< double > &X1, std::vector< double > &X2, std::vector< double > &point) |
double | impact_paramater_shr (double x, double y, double z, art::Ptr< recob::Shower > &shr) |
double | implied_invar_mass (double vx, double vy, double vz, art::Ptr< recob::Shower > &s1, double E1, art::Ptr< recob::Shower > &s2, double E2) |
double | invar_mass (art::Ptr< recob::Shower > &s1, double E1, art::Ptr< recob::Shower > &s2, double E2) |
double | getMedian (std::vector< double > thisvector) |
double | getAmalgamateddEdx (double angle_wrt_plane0, double angle_wrt_plane1, double angle_wrt_plane2, double median_plane0, double median_plane1, double median_plane2, int plane0_nhits, int plane1_nhits, int plane2_nhits) |
int | getAmalgamateddEdxNHits (double amalgamateddEdx, double median_plane0, double median_plane1, double median_plane2, int plane0_nhits, int plane1_nhits, int plane2_nhits) |
std::vector< std::vector < double > > | buildRectangle (std::vector< double > cluster_start, std::vector< double > cluster_axis, double width, double length) |
Calculates the four corners of a rectangle of given length and width around a cluster given the start point and axis direction. More... | |
template<typename T > | |
std::vector< size_t > | sort_indexes (const std::vector< T > &v) |
template<typename T > | |
std::vector< size_t > | sort_indexes_rev (const std::vector< T > &v) |
template<typename T > | |
bool | marks_compare_vec_nonsense (std::vector< T > &v1, std::vector< T > &v2) |
double | calcWire (double Y, double Z, int plane, int fTPC, int fCryostat, geo::GeometryCore const &geo) |
double | getCoswrtWires (TVector3 shower_dir, TVector3 wire_dir) |
double | degToRad (double deg) |
double | radToDeg (double rad) |
void | PPFP_FindAncestor (std::vector< PandoraPFParticle > &PPFPs) |
void | PPFP_FindSliceIDandHits (std::vector< PandoraPFParticle > &PPFPs, art::Ptr< recob::Slice > slice, const std::vector< art::Ptr< recob::PFParticle > > PFP_in_slice, const std::vector< art::Ptr< recob::Hit > > Hit_inslice) |
int | DefineNuSlice (std::vector< PandoraPFParticle > &PPFPs) |
PandoraPFParticle * | PPFP_GetPPFPFromShower (std::vector< PandoraPFParticle > &PPFPs, art::Ptr< recob::Shower > pShower) |
PandoraPFParticle * | PPFP_GetPPFPFromTrack (std::vector< PandoraPFParticle > &PPFPs, art::Ptr< recob::Track > pTrack) |
PandoraPFParticle * | PPFP_GetPPFPFromPFID (std::vector< PandoraPFParticle > &PPFPs, int id) |
void | AnalyzeGeant4 (const std::vector< art::Ptr< simb::MCParticle >> &mcParticleVector, var_all &vars) |
void | AnalyzeEventWeight (art::Event const &e, var_all &vars) |
void | AnalyzeRecoMCSlices (std::string signal_def, std::vector< PandoraPFParticle > all_PPFPs, std::map< int, art::Ptr< simb::MCParticle >> &MCParticleToTrackIDMap, std::map< art::Ptr< recob::Shower >, art::Ptr< simb::MCParticle > > &showerToMCParticleMap, std::map< art::Ptr< recob::Track >, art::Ptr< simb::MCParticle > > &trackToMCParticleMap, var_all &vars, para_all ¶s) |
void | AnalyzeMCTruths (std::vector< art::Ptr< simb::MCTruth >> &mcTruthVector, std::vector< art::Ptr< simb::MCParticle >> &mcParticleVector, var_all &vars, para_all ¶s) |
void | AnalyzeTracks (std::vector< PandoraPFParticle > all_PPFPs, const std::vector< art::Ptr< recob::Track >> &tracks, std::map< art::Ptr< recob::PFParticle >, std::vector< art::Ptr< recob::SpacePoint >>> &pfParticleToSpacePointsMap, std::map< int, art::Ptr< simb::MCParticle > > &MCParticleToTrackIdMap, std::map< int, double > &sliceIdToNuScoreMap, var_all &vars, para_all ¶s) |
void | AnalyzeTrackCalo (const std::vector< art::Ptr< recob::Track >> &tracks, std::vector< PandoraPFParticle > all_PPFPs, var_all &vars, para_all ¶s) |
void | CollectPID (std::vector< art::Ptr< recob::Track >> &tracks, std::vector< PandoraPFParticle > all_PPFPs, var_all &vars) |
void | AnalyzeFlashes (const std::vector< art::Ptr< recob::OpFlash >> &flashes, art::Handle< std::vector< sbn::crt::CRTHit >> crthit_h, double evt_timeGPS_nsec, std::map< art::Ptr< recob::OpFlash >, std::vector< art::Ptr< sbn::crt::CRTHit >>> crtvetoToFlashMap, var_all &vars, para_all ¶s) |
void | AnalyzeShowers (std::vector< PandoraPFParticle > all_PPFPs, const std::vector< art::Ptr< recob::Shower >> &showers, std::map< art::Ptr< recob::Cluster >, std::vector< art::Ptr< recob::Hit >> > &clusterToHitMap, double triggeroffset, detinfo::DetectorPropertiesData const &theDetector, var_all &vars, para_all ¶s) |
void | setTPCGeom (para_all ¶s) |
bool | isInTPCActive (std::vector< double > &vec, para_all ¶s) |
double | distToTPCActive (std::vector< double > &vec, para_all ¶s) |
double | distToCPA (std::vector< double > &vec, para_all ¶s) |
int | distToSCB (double &dist, std::vector< double > &vec, para_all ¶s) |
void | ClearMeta (var_all &vars) |
: reset/clear data members More... | |
void | CreateMetaBranches (var_all &vars) |
void | ClearIsolation (var_all &vars) |
void | CreateIsolationBranches (var_all &vars) |
void | ClearSecondShowers (var_all &vars) |
void | ClearSecondShowers3D (var_all &vars) |
void | ClearStubs (var_all &vars) |
void | CreateSecondShowerBranches (var_all &vars) |
void | CreateSecondShowerBranches3D (var_all &vars) |
void | CreateStubBranches (var_all &vars) |
void | ClearFlashes (var_all &vars) |
void | CreateFlashBranches (var_all &vars) |
void | ResizeFlashes (size_t size, var_all &vars) |
void | ClearTracks (var_all &vars) |
void | CreateTrackBranches (var_all &vars) |
void | ResizeTracks (size_t size, var_all &vars) |
void | ClearShowers (var_all &vars) |
void | CreateShowerBranches (var_all &vars) |
void | ResizeShowers (size_t size, var_all &vars) |
void | ClearMCTruths (var_all &vars) |
void | CreateMCTruthBranches (var_all &vars) |
void | ResizeMCTruths (size_t size, var_all &vars) |
void | ClearEventWeightBranches (var_all &vars) |
void | CreateEventWeightBranches (var_all &vars) |
void | ClearGeant4Branches (var_all &vars) |
: fill event weight related variables More... | |
void | CreateGeant4Branches (var_all &vars) |
void | ClearSlices (var_all &vars) |
void | CreateSliceBranches (var_all &vars) |
void | ResizeSlices (size_t size, var_all &vars) |
void | Save_EventMeta (art::Event &evt, var_all &vars) |
void | Save_PFParticleInfo (std::vector< PandoraPFParticle > PPFPs, var_all &vars, para_all ¶s) |
void | AnalyzeEventWeight (art::Event const &e) |
: fill event weight related variables More... | |
int | spacecharge_correction (const art::Ptr< simb::MCParticle > &mcparticle, std::vector< double > &corrected, std::vector< double > &input) |
int | spacecharge_correction (const art::Ptr< simb::MCParticle > &mcparticle, std::vector< double > &corrected) |
int | spacecharge_correction (const simb::MCParticle &mcparticle, std::vector< double > &corrected) |
void | CollectMCParticles (const art::Event &evt, const std::string &label, std::map< art::Ptr< simb::MCTruth >, std::vector< art::Ptr< simb::MCParticle >>> &truthToParticles, std::map< art::Ptr< simb::MCParticle >, art::Ptr< simb::MCTruth >> &particlesToTruth, std::map< int, art::Ptr< simb::MCParticle > > &MCParticleToTrackIdMap, var_all &vars) |
void | CollectSimChannels (const art::Event &evt, const std::string &label, std::vector< art::Ptr< sim::SimChannel > > &simChannelVector) |
void | BuildMCParticleHitMaps (const art::Event &evt, const std::string &label, const std::vector< art::Ptr< recob::Hit >> &hitVector, std::map< art::Ptr< simb::MCParticle >, std::vector< art::Ptr< recob::Hit > > > &particlesToHits, std::map< art::Ptr< recob::Hit >, art::Ptr< simb::MCParticle > > &hitsToParticles, const lar_pandora::LArPandoraHelper::DaughterMode daughterMode, std::map< int, art::Ptr< simb::MCParticle > > &MCParticleToTrackIdMap, var_all &vars) |
bool | Pi0PreselectionFilter (var_all &vars, para_all ¶s) |
bool | Pi0PreselectionFilter2g0p (var_all &vars, para_all ¶s) |
bool | IsEventInList (int run, int subrun, int event, var_all &vars) |
bool | isInsidev2 (std::vector< double > thishit_pos, std::vector< std::vector< double >> rectangle, para_all ¶s) |
double | CalcEShowerPlane (const std::vector< art::Ptr< recob::Hit >> &hits, int this_plane, para_all ¶s) |
double | GetQHit (art::Ptr< recob::Hit > thishitptr, int plane, para_all ¶s) |
double | QtoEConversion (double Q, para_all ¶s) |
std::vector< double > | CalcdEdxFromdQdx (std::vector< double > dqdx, para_all ¶s) |
std::vector< double > | CalcdQdxShower (const art::Ptr< recob::Shower > &shower, const std::vector< art::Ptr< recob::Cluster >> &clusters, std::map< art::Ptr< recob::Cluster >, std::vector< art::Ptr< recob::Hit >> > &clusterToHitMap, int plane, double triggeroffset, detinfo::DetectorPropertiesData const &theDetector, para_all ¶s) |
std::vector< double > | getPitch (TVector3 shower_dir, para_all ¶s) |
double | getMeanHitWidthPlane (std::vector< art::Ptr< recob::Hit >> hits, int this_plane) |
int | getNHitsPlane (std::vector< art::Ptr< recob::Hit >> hits, int this_plane) |
double | triangle_area (double a1, double a2, double b1, double b2, double c1, double c2) |
int | quick_delaunay_fit (int n, double *X, double *Y, int *num_triangles, double *area) |
int | delaunay_hit_wrapper (const std::vector< art::Ptr< recob::Hit >> &hits, std::vector< int > &num_hits, std::vector< int > &num_triangles, std::vector< double > &area, para_all ¶s) |
void | RecoMCTracks (std::vector< PandoraPFParticle > all_PPFPs, const std::vector< art::Ptr< recob::Track >> &tracks, std::map< art::Ptr< recob::Track >, art::Ptr< simb::MCParticle > > &trackToMCParticleMap, std::map< art::Ptr< simb::MCParticle >, art::Ptr< simb::MCTruth >> &MCParticleToMCTruthMap, std::vector< art::Ptr< simb::MCParticle >> &mcParticleVector, std::map< int, art::Ptr< simb::MCParticle > > &MCParticleToTrackIdMap, std::vector< double > &vfrac, var_all &vars) |
void | showerRecoMCmatching (std::vector< PandoraPFParticle > all_PPFPs, std::vector< art::Ptr< recob::Shower >> &showerVector, std::map< art::Ptr< recob::Shower >, art::Ptr< simb::MCParticle >> &showerToMCParticleMap, art::FindManyP< simb::MCParticle, anab::BackTrackerHitMatchingData > &mcparticles_per_hit, std::vector< art::Ptr< simb::MCParticle >> &mcParticleVector, std::map< int, art::Ptr< simb::MCParticle > > &MCParticleToTrackIdMap, var_all &vars) |
std::vector< double > | trackRecoMCmatching (std::vector< art::Ptr< recob::Track >> &objectVector, std::map< art::Ptr< recob::Track >, art::Ptr< simb::MCParticle >> &objectToMCParticleMap, std::map< art::Ptr< recob::Track >, art::Ptr< recob::PFParticle >> &objectToPFParticleMap, std::map< art::Ptr< recob::PFParticle >, std::vector< art::Ptr< recob::Hit >> > &pfParticleToHitsMap, art::FindManyP< simb::MCParticle, anab::BackTrackerHitMatchingData > &mcparticles_per_hit, std::vector< art::Ptr< simb::MCParticle >> &mcParticleVector, var_all &vars) |
int | photoNuclearTesting (std::vector< art::Ptr< simb::MCParticle >> &mcParticleVector) |
TGraph * | GetNearestNpts (int p, int cl, std::vector< art::Ptr< recob::Hit >> &hitz, double vertex_wire, double vertex_tick, int Npts) |
sss_score | ScoreCluster (int p, int cl, std::vector< art::Ptr< recob::Hit >> &hits, double vertex_wire, double vertex_tick, const art::Ptr< recob::Shower > &shower) |
int | CompareToShowers (int p, int cl, std::vector< art::Ptr< recob::Hit >> &hitz, double vertex_wire, double vertex_tick, const std::vector< art::Ptr< recob::Shower >> &showers, std::map< art::Ptr< recob::Shower >, art::Ptr< recob::PFParticle >> &showerToPFParticleMap, const std::map< art::Ptr< recob::PFParticle >, std::vector< art::Ptr< recob::Hit >> > &pfParticleToHitsMap, double eps) |
std::vector< double > | SecondShowerMatching (std::vector< art::Ptr< recob::Hit >> &hitz, art::FindManyP< simb::MCParticle, anab::BackTrackerHitMatchingData > &mcparticles_per_hit, std::vector< art::Ptr< simb::MCParticle >> &mcParticleVector, std::map< int, art::Ptr< simb::MCParticle >> &MCParticleToTrackIdMap, var_all &vars) |
void | SecondShowerSearch3D (std::vector< art::Ptr< recob::Shower >> &showers, std::map< art::Ptr< recob::Shower >, art::Ptr< recob::PFParticle >> &NormalShowerToPFParticleMap, std::vector< art::Ptr< recob::Track >> &tracks, std::map< art::Ptr< recob::Track >, art::Ptr< recob::PFParticle >> &NormalTrackToPFParticleMap, art::Event const &evt, var_all &vars, para_all ¶s) |
void | SimpleSecondShowerCluster (var_all &vars, para_all ¶s) |
std::pair< bool, std::vector < double > > | clusterCandidateOverlap (const std::vector< int > &candidate_indices, const std::vector< int > &cluster_planes, const std::vector< double > &cluster_max_ticks, const std::vector< double > &cluster_min_ticks) |
std::pair< int, std::pair < std::vector< std::vector < double > >, std::vector < double > > > | GroupClusterCandidate (int num_clusters, const std::vector< int > &cluster_planes, const std::vector< double > &cluster_max_ticks, const std::vector< double > &cluster_min_ticks) |
void | IsolationStudy (std::vector< PandoraPFParticle > all_PPFPs, const std::vector< art::Ptr< recob::Track >> &tracks, const std::vector< art::Ptr< recob::Shower >> &showers, detinfo::DetectorPropertiesData const &theDetector, var_all &vars, para_all ¶s) |
bool | map_max_fn (const std::pair< art::Ptr< recob::Hit >, double > p1, const std::pair< art::Ptr< recob::Hit >, double > p2) |
bool | map_min_fn (const std::pair< art::Ptr< recob::Hit >, double > p1, const std::pair< art::Ptr< recob::Hit >, double > p2) |
Variables | |
bool | g_is_verbose = true |
static const double | kINVALID_FLOAT = std::numeric_limits<double>::max() |
typedef art::ValidHandle< std::vector<recob::PFParticle> > single_photon::PFParticleHandle |
Definition at line 40 of file variables.h.
typedef std::map< size_t, art::Ptr<recob::PFParticle> > single_photon::PFParticleIdMap |
Definition at line 44 of file variables.h.
typedef std::vector< art::Ptr<recob::PFParticle> > single_photon::PFParticleVector |
Definition at line 41 of file variables.h.
typedef std::vector< art::Ptr<recob::Shower> > single_photon::ShowerVector |
Definition at line 43 of file variables.h.
typedef std::vector< art::Ptr<recob::Track> > single_photon::TrackVector |
Definition at line 42 of file variables.h.
void single_photon::AnalyzeEventWeight | ( | art::Event const & | e | ) |
: fill event weight related variables
void single_photon::AnalyzeEventWeight | ( | art::Event const & | e, |
var_all & | vars | ||
) |
Definition at line 60 of file analyze_MC.cxx.
void single_photon::AnalyzeFlashes | ( | const std::vector< art::Ptr< recob::OpFlash >> & | flashes, |
art::Handle< std::vector< sbn::crt::CRTHit >> | crthit_h, | ||
double | evt_timeGPS_nsec, | ||
std::map< art::Ptr< recob::OpFlash >, std::vector< art::Ptr< sbn::crt::CRTHit >>> | crtvetoToFlashMap, | ||
var_all & | vars, | ||
para_all & | paras | ||
) |
Definition at line 732 of file analyze_PandoraReco.cxx.
void single_photon::AnalyzeGeant4 | ( | const std::vector< art::Ptr< simb::MCParticle >> & | mcParticleVector, |
var_all & | vars | ||
) |
Definition at line 11 of file analyze_MC.cxx.
void single_photon::AnalyzeMCTruths | ( | std::vector< art::Ptr< simb::MCTruth >> & | mcTruthVector, |
std::vector< art::Ptr< simb::MCParticle >> & | mcParticleVector, | ||
var_all & | vars, | ||
para_all & | paras | ||
) |
Definition at line 378 of file analyze_MC.cxx.
void single_photon::AnalyzeRecoMCSlices | ( | std::string | signal_def, |
std::vector< PandoraPFParticle > | all_PPFPs, | ||
std::map< int, art::Ptr< simb::MCParticle >> & | MCParticleToTrackIDMap, | ||
std::map< art::Ptr< recob::Shower >, art::Ptr< simb::MCParticle > > & | showerToMCParticleMap, | ||
std::map< art::Ptr< recob::Track >, art::Ptr< simb::MCParticle > > & | trackToMCParticleMap, | ||
var_all & | vars, | ||
para_all & | paras | ||
) |
Definition at line 253 of file analyze_MC.cxx.
void single_photon::AnalyzeShowers | ( | std::vector< PandoraPFParticle > | all_PPFPs, |
const std::vector< art::Ptr< recob::Shower >> & | showers, | ||
std::map< art::Ptr< recob::Cluster >, std::vector< art::Ptr< recob::Hit >> > & | clusterToHitMap, | ||
double | triggeroffset, | ||
detinfo::DetectorPropertiesData const & | theDetector, | ||
var_all & | vars, | ||
para_all & | paras | ||
) |
Definition at line 841 of file analyze_PandoraReco.cxx.
void single_photon::AnalyzeTrackCalo | ( | const std::vector< art::Ptr< recob::Track >> & | tracks, |
std::vector< PandoraPFParticle > | all_PPFPs, | ||
var_all & | vars, | ||
para_all & | paras | ||
) |
Definition at line 216 of file analyze_PandoraReco.cxx.
void single_photon::AnalyzeTracks | ( | std::vector< PandoraPFParticle > | all_PPFPs, |
const std::vector< art::Ptr< recob::Track >> & | tracks, | ||
std::map< art::Ptr< recob::PFParticle >, std::vector< art::Ptr< recob::SpacePoint >>> & | pfParticleToSpacePointsMap, | ||
std::map< int, art::Ptr< simb::MCParticle > > & | MCParticleToTrackIdMap, | ||
std::map< int, double > & | sliceIdToNuScoreMap, | ||
var_all & | vars, | ||
para_all & | paras | ||
) |
Definition at line 24 of file analyze_PandoraReco.cxx.
void single_photon::BuildMCParticleHitMaps | ( | const art::Event & | evt, |
const std::string & | label, | ||
const std::vector< art::Ptr< recob::Hit >> & | hitVector, | ||
std::map< art::Ptr< simb::MCParticle >, std::vector< art::Ptr< recob::Hit > > > & | particlesToHits, | ||
std::map< art::Ptr< recob::Hit >, art::Ptr< simb::MCParticle > > & | hitsToParticles, | ||
const lar_pandora::LArPandoraHelper::DaughterMode | daughterMode, | ||
std::map< int, art::Ptr< simb::MCParticle > > & | MCParticleToTrackIdMap, | ||
var_all & | vars | ||
) |
Definition at line 160 of file Processors.cxx.
std::vector< std::vector< double > > single_photon::buildRectangle | ( | std::vector< double > | cluster_start, |
std::vector< double > | cluster_axis, | ||
double | width, | ||
double | length | ||
) |
Calculates the four corners of a rectangle of given length and width around a cluster given the start point and axis direction.
cluster_start | - the start position of a cluster in CM |
cluster_axis | - calculated from the cluster end minus the cluster start |
width | - typically ~1cm |
length | - typically a few cm |
Definition at line 164 of file helper_math.cxx.
std::vector< double > single_photon::CalcdEdxFromdQdx | ( | std::vector< double > | dqdx, |
para_all & | paras | ||
) |
Definition at line 342 of file Processors.cxx.
std::vector< double > single_photon::CalcdQdxShower | ( | const art::Ptr< recob::Shower > & | shower, |
const std::vector< art::Ptr< recob::Cluster >> & | clusters, | ||
std::map< art::Ptr< recob::Cluster >, std::vector< art::Ptr< recob::Hit >> > & | clusterToHitMap, | ||
int | plane, | ||
double | triggeroffset, | ||
detinfo::DetectorPropertiesData const & | theDetector, | ||
para_all & | paras | ||
) |
Definition at line 354 of file Processors.cxx.
double single_photon::CalcEShowerPlane | ( | const std::vector< art::Ptr< recob::Hit >> & | hits, |
int | this_plane, | ||
para_all & | paras | ||
) |
Definition at line 293 of file Processors.cxx.
|
inline |
Definition at line 54 of file helper_math.h.
void single_photon::ClearEventWeightBranches | ( | var_all & | vars | ) |
Definition at line 1783 of file init_branches.cxx.
void single_photon::ClearFlashes | ( | var_all & | vars | ) |
Definition at line 412 of file init_branches.cxx.
void single_photon::ClearGeant4Branches | ( | var_all & | vars | ) |
void single_photon::ClearIsolation | ( | var_all & | vars | ) |
Definition at line 101 of file init_branches.cxx.
void single_photon::ClearMCTruths | ( | var_all & | vars | ) |
Definition at line 1548 of file init_branches.cxx.
void single_photon::ClearMeta | ( | var_all & | vars | ) |
void single_photon::ClearSecondShowers | ( | var_all & | vars | ) |
Definition at line 146 of file init_branches.cxx.
void single_photon::ClearSecondShowers3D | ( | var_all & | vars | ) |
Definition at line 186 of file init_branches.cxx.
void single_photon::ClearShowers | ( | var_all & | vars | ) |
Definition at line 991 of file init_branches.cxx.
void single_photon::ClearSlices | ( | var_all & | vars | ) |
Definition at line 2050 of file init_branches.cxx.
void single_photon::ClearStubs | ( | var_all & | vars | ) |
Definition at line 207 of file init_branches.cxx.
void single_photon::ClearTracks | ( | var_all & | vars | ) |
Definition at line 502 of file init_branches.cxx.
std::pair< bool, std::vector< double > > single_photon::clusterCandidateOverlap | ( | const std::vector< int > & | candidate_indices, |
const std::vector< int > & | cluster_planes, | ||
const std::vector< double > & | cluster_max_ticks, | ||
const std::vector< double > & | cluster_min_ticks | ||
) |
Definition at line 998 of file second_shower_search.cxx.
void single_photon::CollectMCParticles | ( | const art::Event & | evt, |
const std::string & | label, | ||
std::map< art::Ptr< simb::MCTruth >, std::vector< art::Ptr< simb::MCParticle >>> & | truthToParticles, | ||
std::map< art::Ptr< simb::MCParticle >, art::Ptr< simb::MCTruth >> & | particlesToTruth, | ||
std::map< int, art::Ptr< simb::MCParticle > > & | MCParticleToTrackIdMap, | ||
var_all & | vars | ||
) |
Definition at line 96 of file Processors.cxx.
void single_photon::CollectPID | ( | std::vector< art::Ptr< recob::Track >> & | tracks, |
std::vector< PandoraPFParticle > | all_PPFPs, | ||
var_all & | vars | ||
) |
Definition at line 613 of file analyze_PandoraReco.cxx.
void single_photon::CollectSimChannels | ( | const art::Event & | evt, |
const std::string & | label, | ||
std::vector< art::Ptr< sim::SimChannel > > & | simChannelVector | ||
) |
Definition at line 134 of file Processors.cxx.
int single_photon::CompareToShowers | ( | int | p, |
int | cl, | ||
std::vector< art::Ptr< recob::Hit >> & | hitz, | ||
double | vertex_wire, | ||
double | vertex_tick, | ||
const std::vector< art::Ptr< recob::Shower >> & | showers, | ||
std::map< art::Ptr< recob::Shower >, art::Ptr< recob::PFParticle >> & | showerToPFParticleMap, | ||
const std::map< art::Ptr< recob::PFParticle >, std::vector< art::Ptr< recob::Hit >> > & | pfParticleToHitsMap, | ||
double | eps | ||
) |
Definition at line 205 of file second_shower_search.cxx.
void single_photon::CreateEventWeightBranches | ( | var_all & | vars | ) |
Definition at line 1889 of file init_branches.cxx.
void single_photon::CreateFlashBranches | ( | var_all & | vars | ) |
Definition at line 444 of file init_branches.cxx.
void single_photon::CreateGeant4Branches | ( | var_all & | vars | ) |
Definition at line 2025 of file init_branches.cxx.
void single_photon::CreateIsolationBranches | ( | var_all & | vars | ) |
Definition at line 122 of file init_branches.cxx.
void single_photon::CreateMCTruthBranches | ( | var_all & | vars | ) |
Definition at line 1653 of file init_branches.cxx.
void single_photon::CreateMetaBranches | ( | var_all & | vars | ) |
Definition at line 44 of file init_branches.cxx.
void single_photon::CreateSecondShowerBranches | ( | var_all & | vars | ) |
Definition at line 253 of file init_branches.cxx.
void single_photon::CreateSecondShowerBranches3D | ( | var_all & | vars | ) |
Definition at line 338 of file init_branches.cxx.
void single_photon::CreateShowerBranches | ( | var_all & | vars | ) |
Definition at line 1178 of file init_branches.cxx.
void single_photon::CreateSliceBranches | ( | var_all & | vars | ) |
Definition at line 2108 of file init_branches.cxx.
void single_photon::CreateStubBranches | ( | var_all & | vars | ) |
Definition at line 360 of file init_branches.cxx.
void single_photon::CreateTrackBranches | ( | var_all & | vars | ) |
Definition at line 660 of file init_branches.cxx.
int single_photon::DefineNuSlice | ( | std::vector< PandoraPFParticle > & | PPFPs | ) |
Definition at line 117 of file helper_PandoraPFParticles.cxx.
|
inline |
Definition at line 64 of file helper_math.h.
int single_photon::delaunay_hit_wrapper | ( | const std::vector< art::Ptr< recob::Hit >> & | hits, |
std::vector< int > & | num_hits, | ||
std::vector< int > & | num_triangles, | ||
std::vector< double > & | area, | ||
para_all & | paras | ||
) |
Definition at line 520 of file Processors.cxx.
double single_photon::dist_line_point | ( | std::vector< double > & | X1, |
std::vector< double > & | X2, | ||
std::vector< double > & | point | ||
) |
Definition at line 8 of file helper_math.cxx.
double single_photon::distToCPA | ( | std::vector< double > & | vec, |
para_all & | paras | ||
) |
Definition at line 72 of file fiducial_volume.cxx.
int single_photon::distToSCB | ( | double & | dist, |
std::vector< double > & | vec, | ||
para_all & | paras | ||
) |
Definition at line 86 of file fiducial_volume.cxx.
double single_photon::distToTPCActive | ( | std::vector< double > & | vec, |
para_all & | paras | ||
) |
Definition at line 61 of file fiducial_volume.cxx.
double single_photon::getAmalgamateddEdx | ( | double | angle_wrt_plane0, |
double | angle_wrt_plane1, | ||
double | angle_wrt_plane2, | ||
double | median_plane0, | ||
double | median_plane1, | ||
double | median_plane2, | ||
int | plane0_nhits, | ||
int | plane1_nhits, | ||
int | plane2_nhits | ||
) |
Definition at line 102 of file helper_math.cxx.
int single_photon::getAmalgamateddEdxNHits | ( | double | amalgamateddEdx, |
double | median_plane0, | ||
double | median_plane1, | ||
double | median_plane2, | ||
int | plane0_nhits, | ||
int | plane1_nhits, | ||
int | plane2_nhits | ||
) |
Definition at line 135 of file helper_math.cxx.
|
inline |
Definition at line 61 of file helper_math.h.
double single_photon::getMeanHitWidthPlane | ( | std::vector< art::Ptr< recob::Hit >> | hits, |
int | this_plane | ||
) |
Definition at line 454 of file Processors.cxx.
double single_photon::getMedian | ( | std::vector< double > | thisvector | ) |
Definition at line 88 of file helper_math.cxx.
TGraph * single_photon::GetNearestNpts | ( | int | p, |
int | cl, | ||
std::vector< art::Ptr< recob::Hit >> & | hitz, | ||
double | vertex_wire, | ||
double | vertex_tick, | ||
int | Npts | ||
) |
Definition at line 21 of file second_shower_search.cxx.
int single_photon::getNHitsPlane | ( | std::vector< art::Ptr< recob::Hit >> | hits, |
int | this_plane | ||
) |
Definition at line 472 of file Processors.cxx.
std::vector< double > single_photon::getPitch | ( | TVector3 | shower_dir, |
para_all & | paras | ||
) |
Definition at line 424 of file Processors.cxx.
double single_photon::GetQHit | ( | art::Ptr< recob::Hit > | thishitptr, |
int | plane, | ||
para_all & | paras | ||
) |
Definition at line 317 of file Processors.cxx.
std::pair< int, std::pair< std::vector< std::vector< double > >, std::vector< double > > > single_photon::GroupClusterCandidate | ( | int | num_clusters, |
const std::vector< int > & | cluster_planes, | ||
const std::vector< double > & | cluster_max_ticks, | ||
const std::vector< double > & | cluster_min_ticks | ||
) |
Definition at line 1048 of file second_shower_search.cxx.
double single_photon::impact_paramater_shr | ( | double | x, |
double | y, | ||
double | z, | ||
art::Ptr< recob::Shower > & | shr | ||
) |
Definition at line 39 of file helper_math.cxx.
double single_photon::implied_invar_mass | ( | double | vx, |
double | vy, | ||
double | vz, | ||
art::Ptr< recob::Shower > & | s1, | ||
double | E1, | ||
art::Ptr< recob::Shower > & | s2, | ||
double | E2 | ||
) |
Definition at line 50 of file helper_math.cxx.
double single_photon::invar_mass | ( | art::Ptr< recob::Shower > & | s1, |
double | E1, | ||
art::Ptr< recob::Shower > & | s2, | ||
double | E2 | ||
) |
Definition at line 74 of file helper_math.cxx.
bool single_photon::IsEventInList | ( | int | run, |
int | subrun, | ||
int | event, | ||
var_all & | vars | ||
) |
Definition at line 219 of file Processors.cxx.
bool single_photon::isInsidev2 | ( | std::vector< double > | thishit_pos, |
std::vector< std::vector< double >> | rectangle, | ||
para_all & | paras | ||
) |
Definition at line 234 of file Processors.cxx.
bool single_photon::isInTPCActive | ( | std::vector< double > & | vec, |
para_all & | paras | ||
) |
Definition at line 46 of file fiducial_volume.cxx.
void single_photon::IsolationStudy | ( | std::vector< PandoraPFParticle > | all_PPFPs, |
const std::vector< art::Ptr< recob::Track >> & | tracks, | ||
const std::vector< art::Ptr< recob::Shower >> & | showers, | ||
detinfo::DetectorPropertiesData const & | theDetector, | ||
var_all & | vars, | ||
para_all & | paras | ||
) |
Definition at line 1100 of file second_shower_search.cxx.
bool single_photon::map_max_fn | ( | const std::pair< art::Ptr< recob::Hit >, double > | p1, |
const std::pair< art::Ptr< recob::Hit >, double > | p2 | ||
) |
Definition at line 92 of file second_shower_search.h.
bool single_photon::map_min_fn | ( | const std::pair< art::Ptr< recob::Hit >, double > | p1, |
const std::pair< art::Ptr< recob::Hit >, double > | p2 | ||
) |
Definition at line 97 of file second_shower_search.h.
bool single_photon::marks_compare_vec_nonsense | ( | std::vector< T > & | v1, |
std::vector< T > & | v2 | ||
) |
Definition at line 46 of file helper_math.h.
int single_photon::photoNuclearTesting | ( | std::vector< art::Ptr< simb::MCParticle >> & | mcParticleVector | ) |
Definition at line 644 of file reco_truth_matching.cxx.
bool single_photon::Pi0PreselectionFilter | ( | var_all & | vars, |
para_all & | paras | ||
) |
Definition at line 185 of file Processors.cxx.
bool single_photon::Pi0PreselectionFilter2g0p | ( | var_all & | vars, |
para_all & | paras | ||
) |
Definition at line 203 of file Processors.cxx.
void single_photon::PPFP_FindAncestor | ( | std::vector< PandoraPFParticle > & | PPFPs | ) |
Definition at line 65 of file helper_PandoraPFParticles.cxx.
void single_photon::PPFP_FindSliceIDandHits | ( | std::vector< PandoraPFParticle > & | PPFPs, |
art::Ptr< recob::Slice > | slice, | ||
const std::vector< art::Ptr< recob::PFParticle > > | PFP_in_slice, | ||
const std::vector< art::Ptr< recob::Hit > > | Hit_inslice | ||
) |
Definition at line 99 of file helper_PandoraPFParticles.cxx.
PandoraPFParticle * single_photon::PPFP_GetPPFPFromPFID | ( | std::vector< PandoraPFParticle > & | PPFPs, |
int | id | ||
) |
Definition at line 180 of file helper_PandoraPFParticles.cxx.
PandoraPFParticle * single_photon::PPFP_GetPPFPFromShower | ( | std::vector< PandoraPFParticle > & | PPFPs, |
art::Ptr< recob::Shower > | pShower | ||
) |
Definition at line 150 of file helper_PandoraPFParticles.cxx.
PandoraPFParticle * single_photon::PPFP_GetPPFPFromTrack | ( | std::vector< PandoraPFParticle > & | PPFPs, |
art::Ptr< recob::Track > | pTrack | ||
) |
Definition at line 166 of file helper_PandoraPFParticles.cxx.
void single_photon::Printer_content | ( | std::vector< std::string > | nums, |
std::vector< int > | spacers | ||
) |
Definition at line 14 of file helper_gadget.cxx.
std::vector< int > single_photon::Printer_header | ( | std::vector< std::string > | headings | ) |
Definition at line 3 of file helper_gadget.cxx.
double single_photon::QtoEConversion | ( | double | Q, |
para_all & | paras | ||
) |
Definition at line 334 of file Processors.cxx.
int single_photon::quick_delaunay_fit | ( | int | n, |
double * | X, | ||
double * | Y, | ||
int * | num_triangles, | ||
double * | area | ||
) |
Definition at line 495 of file Processors.cxx.
|
inline |
Definition at line 65 of file helper_math.h.
void single_photon::RecoMCTracks | ( | std::vector< PandoraPFParticle > | all_PPFPs, |
const std::vector< art::Ptr< recob::Track >> & | tracks, | ||
std::map< art::Ptr< recob::Track >, art::Ptr< simb::MCParticle > > & | trackToMCParticleMap, | ||
std::map< art::Ptr< simb::MCParticle >, art::Ptr< simb::MCTruth >> & | MCParticleToMCTruthMap, | ||
std::vector< art::Ptr< simb::MCParticle >> & | mcParticleVector, | ||
std::map< int, art::Ptr< simb::MCParticle > > & | MCParticleToTrackIdMap, | ||
std::vector< double > & | vfrac, | ||
var_all & | vars | ||
) |
Definition at line 9 of file reco_truth_matching.cxx.
void single_photon::ResizeFlashes | ( | size_t | size, |
var_all & | vars | ||
) |
Definition at line 478 of file init_branches.cxx.
void single_photon::ResizeMCTruths | ( | size_t | size, |
var_all & | vars | ||
) |
Definition at line 1761 of file init_branches.cxx.
void single_photon::ResizeShowers | ( | size_t | size, |
var_all & | vars | ||
) |
Definition at line 1365 of file init_branches.cxx.
void single_photon::ResizeSlices | ( | size_t | size, |
var_all & | vars | ||
) |
Definition at line 2155 of file init_branches.cxx.
void single_photon::ResizeTracks | ( | size_t | size, |
var_all & | vars | ||
) |
Definition at line 828 of file init_branches.cxx.
void single_photon::Save_EventMeta | ( | art::Event & | evt, |
var_all & | vars | ||
) |
Definition at line 2162 of file init_branches.cxx.
void single_photon::Save_PFParticleInfo | ( | std::vector< PandoraPFParticle > | PPFPs, |
var_all & | vars, | ||
para_all & | paras | ||
) |
Definition at line 2173 of file init_branches.cxx.
sss_score single_photon::ScoreCluster | ( | int | p, |
int | cl, | ||
std::vector< art::Ptr< recob::Hit >> & | hits, | ||
double | vertex_wire, | ||
double | vertex_tick, | ||
const art::Ptr< recob::Shower > & | shower | ||
) |
Definition at line 54 of file second_shower_search.cxx.
std::vector< double > single_photon::SecondShowerMatching | ( | std::vector< art::Ptr< recob::Hit >> & | hitz, |
art::FindManyP< simb::MCParticle, anab::BackTrackerHitMatchingData > & | mcparticles_per_hit, | ||
std::vector< art::Ptr< simb::MCParticle >> & | mcParticleVector, | ||
std::map< int, art::Ptr< simb::MCParticle >> & | MCParticleToTrackIdMap, | ||
var_all & | vars | ||
) |
Definition at line 251 of file second_shower_search.cxx.
void single_photon::SecondShowerSearch3D | ( | std::vector< art::Ptr< recob::Shower >> & | showers, |
std::map< art::Ptr< recob::Shower >, art::Ptr< recob::PFParticle >> & | NormalShowerToPFParticleMap, | ||
std::vector< art::Ptr< recob::Track >> & | tracks, | ||
std::map< art::Ptr< recob::Track >, art::Ptr< recob::PFParticle >> & | NormalTrackToPFParticleMap, | ||
art::Event const & | evt, | ||
var_all & | vars, | ||
para_all & | paras | ||
) |
Definition at line 522 of file second_shower_search.cxx.
void single_photon::setTPCGeom | ( | para_all & | paras | ) |
Definition at line 9 of file fiducial_volume.cxx.
void single_photon::showerRecoMCmatching | ( | std::vector< PandoraPFParticle > | all_PPFPs, |
std::vector< art::Ptr< recob::Shower >> & | showerVector, | ||
std::map< art::Ptr< recob::Shower >, art::Ptr< simb::MCParticle >> & | showerToMCParticleMap, | ||
art::FindManyP< simb::MCParticle, anab::BackTrackerHitMatchingData > & | mcparticles_per_hit, | ||
std::vector< art::Ptr< simb::MCParticle >> & | mcParticleVector, | ||
std::map< int, art::Ptr< simb::MCParticle > > & | MCParticleToTrackIdMap, | ||
var_all & | vars | ||
) |
Loop over hits associated with the reco PFP to find MCParticles which contribute energy to the reco shower
Definition at line 94 of file reco_truth_matching.cxx.
void single_photon::SimpleSecondShowerCluster | ( | var_all & | vars, |
para_all & | paras | ||
) |
Definition at line 669 of file second_shower_search.cxx.
std::vector<size_t> single_photon::sort_indexes | ( | const std::vector< T > & | v | ) |
Definition at line 20 of file helper_math.h.
std::vector<size_t> single_photon::sort_indexes_rev | ( | const std::vector< T > & | v | ) |
Definition at line 33 of file helper_math.h.
int single_photon::spacecharge_correction | ( | const art::Ptr< simb::MCParticle > & | mcparticle, |
std::vector< double > & | corrected, | ||
std::vector< double > & | input | ||
) |
Definition at line 25 of file Processors.cxx.
int single_photon::spacecharge_correction | ( | const art::Ptr< simb::MCParticle > & | mcparticle, |
std::vector< double > & | corrected | ||
) |
Definition at line 52 of file Processors.cxx.
int single_photon::spacecharge_correction | ( | const simb::MCParticle & | mcparticle, |
std::vector< double > & | corrected | ||
) |
Definition at line 79 of file Processors.cxx.
std::vector< double > single_photon::trackRecoMCmatching | ( | std::vector< art::Ptr< recob::Track >> & | objectVector, |
std::map< art::Ptr< recob::Track >, art::Ptr< simb::MCParticle >> & | objectToMCParticleMap, | ||
std::map< art::Ptr< recob::Track >, art::Ptr< recob::PFParticle >> & | objectToPFParticleMap, | ||
std::map< art::Ptr< recob::PFParticle >, std::vector< art::Ptr< recob::Hit >> > & | pfParticleToHitsMap, | ||
art::FindManyP< simb::MCParticle, anab::BackTrackerHitMatchingData > & | mcparticles_per_hit, | ||
std::vector< art::Ptr< simb::MCParticle >> & | mcParticleVector, | ||
var_all & | vars | ||
) |
Definition at line 518 of file reco_truth_matching.cxx.
double single_photon::triangle_area | ( | double | a1, |
double | a2, | ||
double | b1, | ||
double | b2, | ||
double | c1, | ||
double | c2 | ||
) |
Definition at line 488 of file Processors.cxx.
bool single_photon::g_is_verbose = true |
Definition at line 13 of file init_branches.h.
|
static |
Definition at line 38 of file sbncode/sbncode/SinglePhotonAnalysis/Libraries/TruncMean.h.