LArSoft
v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
|
Classes | |
struct | ClusterStore |
struct of temporary clusters More... | |
struct | CRTreeVars |
struct | DebugStuff |
struct | DontClusterStruct |
struct | HistStuff |
struct | MatchStruct |
class | MCParticleListUtils |
struct | PFPStruct |
struct | ShowerPoint |
struct | ShowerStruct |
struct | ShowerStruct3D |
struct | ShowerTreeVars |
struct | SortEntry |
struct | TCHit |
struct | Tj2Pt |
struct | TjStuff |
class | TrajClusterAlg |
struct | Trajectory |
struct | TrajPoint |
struct | TrajPoint3 |
class | TruthMatcher |
struct | Vtx3Store |
struct of temporary 3D vertices More... | |
struct | VtxStore |
struct of temporary 2D vertices (end points) More... | |
Typedefs | |
using | Point3_t = std::array< double, 3 > |
using | Vector3_t = std::array< double, 3 > |
using | Point2_t = std::array< float, 2 > |
using | Vector2_t = std::array< double, 2 > |
typedef unsigned int | CTP_t |
Enumerations | |
enum | HitStatus_t { kAllHits, kUsedHits, kUnusedHits } |
Functions | |
geo::PlaneID | DecodeCTP (CTP_t CTP) |
CTP_t | EncodeCTP (unsigned int cryo, unsigned int tpc, unsigned int plane) |
CTP_t | EncodeCTP (const geo::PlaneID &planeID) |
CTP_t | EncodeCTP (const geo::WireID &wireID) |
bool | valDecreasings (SortEntry c1, SortEntry c2) |
bool | valIncreasings (SortEntry c1, SortEntry c2) |
void | UpdateMatchStructs (TjStuff &tjs, int oldTj, int newTj) |
void | UpdateTp3s (TjStuff &tjs, PFPStruct &pfp, int oldTj, int newTj) |
void | FillmAllTraj (TjStuff &tjs, const geo::TPCID &tpcid) |
bool | SetStart (TjStuff &tjs, PFPStruct &pfp, bool prt) |
void | FollowTp3s (TjStuff &tjs, PFPStruct &pfp, bool prt) |
bool | FitTp3s (TjStuff &tjs, const std::vector< TrajPoint3 > &tp3s, Point3_t &pos, Vector3_t &dir, float &rCorr) |
bool | FitTp3s (TjStuff &tjs, const std::vector< TrajPoint3 > &tp3s, unsigned short fromPt, unsigned short toPt, Point3_t &pos, Vector3_t &dir, float &rCorr) |
bool | FitTp3 (TjStuff &tjs, TrajPoint3 &tp3, const std::vector< Tj2Pt > &tj2pts) |
void | FindCompleteness (TjStuff &tjs, PFPStruct &pfp, bool doFit, bool fillTp3s, bool prt) |
void | FindMissedTjsInTp3s (TjStuff &tjs, PFPStruct &pfp, std::vector< int > &missTjs, std::vector< float > &missFrac) |
bool | SharesHighScoreVx (TjStuff &tjs, const PFPStruct &pfp, const Trajectory &tj) |
void | Fit3D (unsigned short mode, Point3_t point, Vector3_t dir, Point3_t &fitPos, Vector3_t &fitDir) |
unsigned short | WiresSkippedInCTP (TjStuff &tjs, std::vector< int > &tjids, CTP_t inCTP) |
float | LengthInCTP (TjStuff &tjs, std::vector< int > &tjids, CTP_t inCTP) |
bool | AddMissedTj (TjStuff &tjs, PFPStruct &pfp, unsigned short itj, bool looseCuts, bool prt) |
bool | MergePFPTjs (TjStuff &tjs, PFPStruct &pfp, bool prt) |
void | FindXMatches (TjStuff &tjs, unsigned short numPlanes, short maxScore, std::vector< MatchStruct > &matVec, bool prt) |
bool | MakeTp3 (TjStuff &tjs, const TrajPoint &itp, const TrajPoint &jtp, TrajPoint3 &tp3, bool findDirection) |
double | DeltaAngle (const Vector3_t v1, const Vector3_t v2) |
Vector3_t | PointDirection (const Point3_t p1, const Point3_t p2) |
double | PosSep (const Point3_t &pos1, const Point3_t &pos2) |
double | PosSep2 (const Point3_t &pos1, const Point3_t &pos2) |
bool | SetMag (Vector3_t &v1, double mag) |
void | FilldEdx (TjStuff &tjs, PFPStruct &pfp) |
void | FilldEdx (TjStuff &tjs, TrajPoint3 &tp3) |
float | PFPDOCA (const PFPStruct &pfp1, const PFPStruct &pfp2, unsigned short &close1, unsigned short &close2) |
bool | Split3DKink (TjStuff &tjs, PFPStruct &pfp, double sep, bool prt) |
std::vector< unsigned short > | FindKinks (const TjStuff &tjs, PFPStruct &pfp, double sep, bool prt) |
double | KinkAngle (const TjStuff &tjs, const std::vector< TrajPoint3 > &tp3s, unsigned short atPt, double sep) |
PFPStruct | CreatePFP (const TjStuff &tjs, const geo::TPCID &tpcid) |
void | FindPFParticles (TjStuff &tjs, const geo::TPCID &tpcid, bool prt) |
bool | DefinePFP (std::string inFcnLabel, TjStuff &tjs, PFPStruct &pfp, bool prt) |
bool | PFPVxTjOK (TjStuff &tjs, PFPStruct &pfp, bool prt) |
bool | AnalyzePFP (TjStuff &tjs, PFPStruct &pfp, bool prt) |
void | PFPVertexCheck (TjStuff &tjs) |
void | DefinePFPParents (TjStuff &tjs, const geo::TPCID &tpcid, bool prt) |
void | DefinePFPParentsTestBeam (TjStuff &tjs, const geo::TPCID &tpcid, bool prt) |
bool | StorePFP (TjStuff &tjs, PFPStruct &pfp) |
bool | InsideTPC (const TjStuff &tjs, Point3_t &pos, geo::TPCID &inTPCID) |
void | FindAlongTrans (Point3_t pos1, Vector3_t dir1, Point3_t pos2, Point2_t &alongTrans) |
bool | PointDirIntersect (Point3_t p1, Vector3_t p1Dir, Point3_t p2, Vector3_t p2Dir, Point3_t &intersect, float &doca) |
bool | LineLineIntersect (Point3_t p1, Point3_t p2, Point3_t p3, Point3_t p4, Point3_t &intersect, float &doca) |
void | ReversePFP (TjStuff &tjs, PFPStruct &pfp) |
float | ChgFracBetween (TjStuff &tjs, Point3_t pos1, Point3_t pos2, geo::TPCID tpcid) |
float | ChgFracNearEnd (TjStuff &tjs, PFPStruct &pfp, unsigned short end) |
unsigned short | FarEnd (const TjStuff &tjs, const PFPStruct &pfp, const Point3_t &pos) |
void | PrintTp3 (std::string someText, const TjStuff &tjs, const TrajPoint3 &tp3) |
void | PrintTp3s (std::string someText, const TjStuff &tjs, const PFPStruct &pfp, short printPts) |
float | AspectRatio (TjStuff &tjs, std::vector< int > &tjids, CTP_t inCTP) |
void | CleanTjs (TjStuff &tjs, PFPStruct &pfp, bool prt) |
double | DotProd (const Vector3_t &v1, const Vector3_t &v2) |
void | SaveCRInfo (TjStuff &tjs, PFPStruct &pfp, bool prt, bool fIsRealData) |
int | GetOrigin (TjStuff &tjs, PFPStruct &pfp) |
void | ClearCRInfo (TjStuff &tjs) |
void | ConfigureMVA (TjStuff &tjs, std::string fMVAShowerParentWeights) |
bool | FindShowerStart (TjStuff &tjs, ShowerStruct3D &ss3, bool prt) |
void | Finish3DShowers (TjStuff &tjs) |
bool | FindShowers3D (TjStuff &tjs, const geo::TPCID &tpcid) |
bool | Reconcile3D (std::string inFcnLabel, TjStuff &tjs, const geo::TPCID &tpcid, bool parentSearchDone, bool prt) |
bool | Reconcile3D (std::string inFcnLabel, TjStuff &tjs, ShowerStruct3D &ss3, bool prt) |
void | KillVerticesInShower (std::string inFcnLabel, TjStuff &tjs, ShowerStruct &ss, bool prt) |
bool | CompleteIncompleteShower (std::string inFcnLabel, TjStuff &tjs, ShowerStruct3D &ss3, bool prt) |
void | Match2DShowers (std::string inFcnLabel, TjStuff &tjs, const geo::TPCID &tpcid, bool prt) |
bool | UpdateShower (std::string inFcnLabel, TjStuff &tjs, ShowerStruct &ss, bool prt) |
bool | UpdateShower (std::string inFcnLabel, TjStuff &tjs, ShowerStruct3D &ss3, bool prt) |
float | Match3DFOM (std::string inFcnLabel, TjStuff &tjs, ShowerStruct3D &ss3, bool prt) |
float | Match3DFOM (std::string inFcnLabel, TjStuff &tjs, int icid, int jcid, int kcid, bool prt) |
float | Match3DFOM (std::string inFcnLabel, TjStuff &tjs, int icid, int jcid, bool prt) |
void | MergeTjList (std::vector< std::vector< int >> &tjList) |
bool | RemovePFP (std::string inFcnLabel, TjStuff &tjs, PFPStruct &pfp, ShowerStruct3D &ss3, bool doUpdate, bool prt) |
bool | AddPFP (std::string inFcnLabel, TjStuff &tjs, int pID, ShowerStruct3D &ss3, bool doUpdate, bool prt) |
bool | AddTj (std::string inFcnLabel, TjStuff &tjs, int tjID, ShowerStruct &ss, bool doUpdate, bool prt) |
bool | RemoveTj (std::string inFcnLabel, TjStuff &tjs, int TjID, ShowerStruct &ss, bool doUpdate, bool prt) |
bool | FindParent (std::string inFcnLabel, TjStuff &tjs, ShowerStruct3D &ss3, bool prt) |
bool | SetParent (std::string inFcnLabel, TjStuff &tjs, PFPStruct &pfp, ShowerStruct3D &ss3, bool prt) |
PFPStruct | CreateFakePFP (const TjStuff &tjs, const ShowerStruct3D &ss3) |
bool | IsShowerLike (const TjStuff &tjs, const std::vector< int > TjIDs) |
void | ShowerParams (double showerEnergy, double &shMaxAlong, double &along95) |
double | ShowerParamTransRMS (double showerEnergy, double along) |
double | InShowerProbLong (double showerEnergy, double along) |
double | InShowerProbTrans (double showerEnergy, double along, double trans) |
double | InShowerProbParam (double showerEnergy, double along, double trans) |
float | InShowerProb (const TjStuff &tjs, const ShowerStruct3D &ss3, const PFPStruct &pfp) |
float | InShowerProb (const TjStuff &tjs, const ShowerStruct &ss, const Trajectory &tj) |
float | ParentFOM (std::string inFcnLabel, TjStuff &tjs, PFPStruct &pfp, unsigned short pend, ShowerStruct3D &ss3, bool prt) |
float | ParentFOM (std::string inFcnLabel, TjStuff &tjs, Trajectory &tj, unsigned short &tjEnd, ShowerStruct &ss, float &tp1Sep, float &vx2Score, bool prt) |
bool | WrongSplitTj (std::string inFcnLabel, TjStuff &tjs, Trajectory &tj, unsigned short tjEnd, ShowerStruct &ss, bool prt) |
void | MergeNearby2DShowers (std::string inFcnLabel, TjStuff &tjs, const CTP_t &inCTP, bool prt) |
void | MergeOverlap (std::string inFcnLabel, TjStuff &tjs, const CTP_t &inCTP, bool prt) |
void | MergeShowerChain (std::string inFcnLabel, TjStuff &tjs, const CTP_t &inCTP, bool prt) |
void | MergeSubShowersTj (std::string inFcnLabel, TjStuff &tjs, const CTP_t &inCTP, bool prt) |
void | MergeSubShowers (std::string inFcnLabel, TjStuff &tjs, const CTP_t &inCTP, bool prt) |
int | MergeShowers (std::string inFcnLabel, TjStuff &tjs, std::vector< int > ssIDs, bool prt) |
bool | MergeShowersAndStore (std::string inFcnLabel, TjStuff &tjs, int icotID, int jcotID, bool prt) |
bool | MergeShowerTjsAndStore (TjStuff &tjs, unsigned short istj, unsigned short jstj, bool prt) |
bool | AnalyzeRotPos (std::string inFcnLabel, TjStuff &tjs, ShowerStruct &ss, bool prt) |
void | ReverseShower (std::string inFcnLabel, TjStuff &tjs, ShowerStruct &ss, bool prt) |
void | ReverseShower (std::string inFcnLabel, TjStuff &tjs, int cotID, bool prt) |
void | MakeShowerObsolete (std::string inFcnLabel, TjStuff &tjs, ShowerStruct3D &ss3, bool prt) |
void | MakeShowerObsolete (std::string inFcnLabel, TjStuff &tjs, ShowerStruct &ss, bool prt) |
bool | DontCluster (const TjStuff &tjs, const std::vector< int > &tjlist1, const std::vector< int > &tjlist2) |
void | DefineDontCluster (TjStuff &tjs, const geo::TPCID &tpcid, bool prt) |
void | FindCots (std::string inFcnLabel, TjStuff &tjs, const CTP_t &inCTP, std::vector< std::vector< int >> &tjLists, bool prt) |
void | TagShowerLike (std::string inFcnLabel, TjStuff &tjs, const CTP_t &inCTP) |
void | FindNearbyTjs (std::string inFcnLabel, TjStuff &tjs, ShowerStruct &ss, bool prt) |
void | AddCloseTjsToList (TjStuff &tjs, unsigned short itj, std::vector< int > list) |
void | DefineEnvelope (std::string inFcnLabel, TjStuff &tjs, ShowerStruct &ss, bool prt) |
bool | AddTjsInsideEnvelope (std::string inFcnLabel, TjStuff &tjs, ShowerStruct &ss, bool prt) |
bool | AddLooseHits (TjStuff &tjs, int cotID, bool prt) |
void | FindStartChg (std::string inFcnLabel, TjStuff &tjs, int cotID, bool prt) |
std::vector< float > | StartChgVec (TjStuff &tjs, int cotID, bool prt) |
void | DumpShowerPts (TjStuff &tjs, int cotID) |
bool | TransferTjHits (TjStuff &tjs, bool prt) |
int | GetCotID (TjStuff &tjs, int ShowerTjID) |
double | ShowerEnergy (const ShowerStruct3D &ss3) |
float | ShowerEnergy (const TjStuff &tjs, const std::vector< int > tjIDs) |
float | ChgToMeV (float chg) |
bool | StoreShower (std::string inFcnLabel, TjStuff &tjs, ShowerStruct3D &ss3) |
bool | StoreShower (std::string inFcnLabel, TjStuff &tjs, ShowerStruct &ss) |
ShowerStruct3D | CreateSS3 (TjStuff &tjs, const geo::TPCID &tpcid) |
ShowerStruct | CreateSS (TjStuff &tjs, CTP_t inCTP, const std::vector< int > &tjl) |
bool | ChkAssns (std::string inFcnLabel, TjStuff &tjs) |
void | PrintShowers (std::string fcnLabel, TjStuff &tjs) |
void | Print2DShowers (std::string someText, const TjStuff &tjs, CTP_t inCTP, bool printKilledShowers) |
void | PrintShower (std::string someText, const TjStuff &tjs, const ShowerStruct &ss, bool printHeader, bool printExtras) |
bool | RemovePFP (std::string inFcnLabel, TjStuff &tjs, int pID, ShowerStruct3D &ss3, bool doUpdate, bool prt) |
double | InShowerProb (double showerEnergy, double along, double trans) |
bool | AddLooseHits (std::string inFcnLabel, TjStuff &tjs, int cotID, bool prt) |
void | DumpShowerPts (std::string inFcnLabel, TjStuff &tjs, int cotID) |
void | AddCloseTjsToList (std::string inFcnLabel, TjStuff &tjs, unsigned short itj, std::vector< int > list) |
void | MergeTjList2 (std::string inFcnLabel, TjStuff &tjs, std::vector< std::vector< int >> &tjList, bool prt) |
void | SaveTjInfo (TjStuff &tjs, std::vector< std::vector< int >> &tjList, std::string stageName) |
void | SaveTjInfo (TjStuff &tjs, const ShowerStruct &ss, std::string stageName) |
void | SaveTjInfoStuff (TjStuff &tjs, Trajectory &tj, int stageNum, std::string stageName) |
void | SaveAllCots (TjStuff &tjs, const CTP_t &inCTP, std::string someText) |
void | SaveAllCots (TjStuff &tjs, std::string someText) |
int | GetStageNum (ShowerTreeVars &stv, std::string stageName) |
void | ClearShowerTree (ShowerTreeVars &stv) |
bool | valDecreasing (SortEntry c1, SortEntry c2) |
bool | valIncreasing (SortEntry c1, SortEntry c2) |
void | MakeJunkVertices (TjStuff &tjs, const CTP_t &inCTP) |
void | Find2DVertices (TjStuff &tjs, const CTP_t &inCTP) |
void | FindNeutralVertices (TjStuff &tjs, const geo::TPCID &tpcid) |
bool | MergeWithVertex (TjStuff &tjs, VtxStore &vx, unsigned short oVxID, bool prt) |
void | ChkVxTjs (TjStuff &tjs, const CTP_t &inCTP, bool prt) |
void | FindHammerVertices2 (TjStuff &tjs, const CTP_t &inCTP) |
void | FindHammerVertices (TjStuff &tjs, const CTP_t &inCTP) |
void | SplitTrajCrossingVertices (TjStuff &tjs, CTP_t inCTP) |
void | Find3DVertices (TjStuff &tjs, const geo::TPCID &tpcid) |
void | Match3DVtxTjs (TjStuff &tjs, const geo::TPCID &tpcid, bool prt) |
unsigned short | TPNearVertex (TjStuff &tjs, const TrajPoint &tp) |
bool | AttachPFPToVertex (TjStuff &tjs, PFPStruct &pfp, unsigned short end, unsigned short vx3ID, bool prt) |
bool | AttachAnyTrajToVertex (TjStuff &tjs, unsigned short ivx, bool prt) |
bool | AttachTrajToVertex (TjStuff &tjs, Trajectory &tj, VtxStore &vx, bool prt) |
float | TrajPointVertexPull (TjStuff &tjs, const TrajPoint &tp, const VtxStore &vx) |
float | VertexVertexPull (TjStuff &tjs, const Vtx3Store &vx1, const Vtx3Store &vx2) |
float | VertexVertexPull (TjStuff &tjs, const VtxStore &vx1, const VtxStore &vx2) |
bool | StoreVertex (TjStuff &tjs, VtxStore &vx) |
bool | FitVertex (TjStuff &tjs, VtxStore &vx, bool prt) |
bool | FitVertex (TjStuff &tjs, VtxStore &vx, std::vector< TrajPoint > vxTp, bool prt) |
bool | ChkVtxAssociations (TjStuff &tjs, const CTP_t &inCTP) |
void | ScoreVertices (TjStuff &tjs, const geo::TPCID &tpcid, bool prt) |
void | KillPoorVertices (TjStuff &tjs, const geo::TPCID &tpcid) |
void | SetHighScoreBits (TjStuff &tjs, Vtx3Store &vx3) |
void | SetVx3Score (TjStuff &tjs, Vtx3Store &vx3, bool prt) |
void | SetVx2Score (TjStuff &tjs, bool prt) |
void | SetVx2Score (TjStuff &tjs, VtxStore &vx2, bool prt) |
unsigned short | Vx3Topo (TjStuff &tjs, Vtx3Store &vx3) |
void | CompleteIncomplete3DVerticesInGaps (TjStuff &tjs, const geo::TPCID &tpcid) |
void | CompleteIncomplete3DVertices (TjStuff &tjs, const geo::TPCID &tpcid) |
bool | RefineVtxPosition (TjStuff &tjs, const Trajectory &tj, unsigned short &nearPt, short nPtsToChk, bool prt) |
void | VtxHitsSwap (TjStuff &tjs, const CTP_t inCTP) |
bool | MakeVertexObsolete (TjStuff &tjs, VtxStore &vx2, bool forceKill) |
bool | MakeVertexObsolete (TjStuff &tjs, Vtx3Store &vx3) |
std::vector< int > | GetVtxTjIDs (const TjStuff &tjs, const VtxStore &vx2) |
std::vector< int > | GetVtxTjIDs (const TjStuff &tjs, const Vtx3Store &vx3, float &score) |
std::vector< unsigned short > | GetPFPVertices (const TjStuff &tjs, const PFPStruct &pfp) |
void | PosInPlane (const TjStuff &tjs, const Vtx3Store &vx3, unsigned short plane, Point2_t &pos) |
unsigned short | IsCloseToVertex (TjStuff &tjs, VtxStore &inVx2) |
unsigned short | IsCloseToVertex (TjStuff &tjs, Vtx3Store &vx3) |
void | MakeJunkTjVertices (TjStuff &tjs, const CTP_t &inCTP) |
void | DefineTjParents (TjStuff &tjs, const geo::TPCID &tpcid, bool prt) |
float | MaxChargeAsymmetry (TjStuff &tjs, std::vector< int > &tjIDs) |
int | PDGCodeVote (TjStuff &tjs, std::vector< int > &tjIDs, bool prt) |
unsigned short | NumDeltaRays (const TjStuff &tjs, const Trajectory &tj) |
unsigned short | NumDeltaRays (const TjStuff &tjs, std::vector< int > &tjIDs) |
int | NeutrinoPrimaryTjID (const TjStuff &tjs, const Trajectory &tj) |
int | PrimaryID (const TjStuff &tjs, const Trajectory &tj) |
int | PrimaryID (const TjStuff &tjs, const PFPStruct &pfp) |
bool | MergeTjIntoPFP (TjStuff &tjs, int mtjid, PFPStruct &pfp, bool prt) |
bool | CompatibleMerge (TjStuff &tjs, std::vector< int > &tjIDs, bool prt) |
bool | CompatibleMerge (TjStuff &tjs, const Trajectory &tj1, const Trajectory &tj2, bool prt) |
float | OverlapFraction (TjStuff &tjs, const Trajectory &tj1, const Trajectory &tj2) |
unsigned short | AngleRange (TjStuff &tjs, TrajPoint const &tp) |
void | SetAngleCode (TjStuff &tjs, TrajPoint &tp) |
unsigned short | AngleRange (TjStuff &tjs, float angle) |
void | FitTraj (TjStuff &tjs, Trajectory &tj) |
void | FitTraj (TjStuff &tjs, Trajectory &tj, unsigned short originPt, unsigned short npts, short fitDir, TrajPoint &tpFit) |
float | TjDirFOM (const TjStuff &tjs, const Trajectory &tj, bool prt) |
void | WatchHit (std::string someText, TjStuff &tjs, const unsigned int &wHit, short &wInTraj, const unsigned short &tjID) |
void | Reverse3DMatchTjs (TjStuff &tjs, PFPStruct &pfp, bool prt) |
unsigned short | GetPFPIndex (const TjStuff &tjs, int tjID) |
unsigned short | MatchVecIndex (const TjStuff &tjs, int tjID) |
void | ReleaseHits (TjStuff &tjs, Trajectory &tj) |
void | UnsetUsedHits (TjStuff &tjs, TrajPoint &tp) |
bool | StoreTraj (TjStuff &tjs, Trajectory &tj) |
bool | InTrajOK (TjStuff &tjs, std::string someText) |
void | CheckTrajBeginChg (TjStuff &tjs, unsigned short itj, bool prt) |
void | TrimEndPts (std::string fcnLabel, TjStuff &tjs, Trajectory &tj, const std::vector< float > &fQualityCuts, bool prt) |
void | ChkChgAsymmetry (TjStuff &tjs, Trajectory &tj, bool prt) |
bool | SignalBetween (TjStuff &tjs, const TrajPoint &tp1, const TrajPoint &tp2, const float &MinWireSignalFraction, bool prt) |
bool | SignalBetween (TjStuff &tjs, TrajPoint tp, float toPos0, const float &MinWireSignalFraction, bool prt) |
float | ChgFracBetween (TjStuff &tjs, TrajPoint tp, float toPos0, bool prt) |
bool | TrajHitsOK (TjStuff &tjs, const std::vector< unsigned int > &iHitsInMultiplet, const std::vector< unsigned int > &jHitsInMultiplet) |
bool | TrajHitsOK (TjStuff &tjs, const unsigned int iht, const unsigned int jht) |
float | ExpectedHitsRMS (TjStuff &tjs, const TrajPoint &tp) |
bool | SignalAtTp (TjStuff &tjs, const TrajPoint &tp) |
float | TpSumHitChg (TjStuff &tjs, TrajPoint const &tp) |
unsigned short | NumPtsWithCharge (const TjStuff &tjs, const Trajectory &tj, bool includeDeadWires) |
unsigned short | NumPtsWithCharge (const TjStuff &tjs, const Trajectory &tj, bool includeDeadWires, unsigned short firstPt, unsigned short lastPt) |
float | DeadWireCount (const TjStuff &tjs, const TrajPoint &tp1, const TrajPoint &tp2) |
float | DeadWireCount (const TjStuff &tjs, const float &inWirePos1, const float &inWirePos2, CTP_t tCTP) |
unsigned short | PDGCodeIndex (TjStuff &tjs, int PDGCode) |
void | MakeTrajectoryObsolete (TjStuff &tjs, unsigned int itj) |
void | RestoreObsoleteTrajectory (TjStuff &tjs, unsigned int itj) |
void | MergeGhostTjs (TjStuff &tjs, CTP_t inCTP) |
bool | SplitTraj (TjStuff &tjs, unsigned short itj, float XPos, bool makeVx2, bool prt) |
bool | SplitTraj (TjStuff &tjs, unsigned short itj, unsigned short pos, unsigned short ivx, bool prt) |
void | TrajPointTrajDOCA (TjStuff &tjs, TrajPoint const &tp, Trajectory const &tj, unsigned short &closePt, float &minSep) |
bool | TrajTrajDOCA (const TjStuff &tjs, const Trajectory &tj1, const Trajectory &tj2, unsigned short &ipt1, unsigned short &ipt2, float &minSep) |
bool | TrajTrajDOCA (const TjStuff &tjs, const Trajectory &tj1, const Trajectory &tj2, unsigned short &ipt1, unsigned short &ipt2, float &minSep, bool considerDeadWires) |
float | HitSep2 (TjStuff &tjs, unsigned int iht, unsigned int jht) |
unsigned short | CloseEnd (TjStuff &tjs, const Trajectory &tj, const Point2_t &pos) |
float | PointTrajSep2 (float wire, float time, TrajPoint const &tp) |
float | PointTrajDOCA (TjStuff const &tjs, unsigned int iht, TrajPoint const &tp) |
float | PointTrajDOCA (TjStuff const &tjs, float wire, float time, TrajPoint const &tp) |
float | PointTrajDOCA2 (TjStuff const &tjs, float wire, float time, TrajPoint const &tp) |
void | TrajIntersection (TrajPoint const &tp1, TrajPoint const &tp2, Point2_t &pos) |
void | TrajIntersection (TrajPoint const &tp1, TrajPoint const &tp2, float &x, float &y) |
float | MaxTjLen (TjStuff const &tjs, std::vector< int > &tjIDs) |
float | TrajLength (Trajectory &tj) |
float | PosSep (const Point2_t &pos1, const Point2_t &pos2) |
float | PosSep2 (const Point2_t &pos1, const Point2_t &pos2) |
float | TrajPointSeparation (TrajPoint &tp1, TrajPoint &tp2) |
bool | TrajClosestApproach (Trajectory const &tj, float x, float y, unsigned short &closePt, float &DOCA) |
float | TwoTPAngle (TrajPoint &tp1, TrajPoint &tp2) |
std::vector< unsigned int > | PutTrajHitsInVector (Trajectory const &tj, HitStatus_t hitRequest) |
void | TagJunkTj (TjStuff const &tjs, Trajectory &tj, bool prt) |
bool | HasDuplicateHits (TjStuff const &tjs, Trajectory const &tj, bool prt) |
void | MoveTPToWire (TrajPoint &tp, float wire) |
std::vector< unsigned int > | FindCloseHits (TjStuff const &tjs, std::array< int, 2 > const &wireWindow, Point2_t const &timeWindow, const unsigned short plane, HitStatus_t hitRequest, bool usePeakTime, bool &hitsNear) |
bool | FindCloseHits (TjStuff const &tjs, TrajPoint &tp, float const &maxDelta, HitStatus_t hitRequest) |
std::vector< int > | FindCloseTjs (const TjStuff &tjs, const TrajPoint &fromTp, const TrajPoint &toTp, const float &maxDelta) |
float | ChgFracNearPos (TjStuff &tjs, const Point2_t &pos, const std::vector< int > &tjIDs) |
float | MaxHitDelta (TjStuff &tjs, Trajectory &tj) |
void | ReverseTraj (TjStuff &tjs, Trajectory &tj) |
bool | PointInsideEnvelope (const Point2_t &Point, const std::vector< Point2_t > &Envelope) |
bool | SetMag (Vector2_t &v1, double mag) |
void | FindAlongTrans (Point2_t pos1, Vector2_t dir1, Point2_t pos2, Point2_t &alongTrans) |
double | DeltaAngle (const Point2_t &p1, const Point2_t &p2) |
double | DeltaAngle2 (double Ang1, double Ang2) |
double | DeltaAngle (double Ang1, double Ang2) |
void | SetEndPoints (TjStuff &tjs, Trajectory &tj) |
bool | TrajIsClean (TjStuff &tjs, Trajectory &tj, bool prt) |
short | MCSMom (const TjStuff &tjs, const std::vector< int > &tjIDs) |
short | MCSMom (TjStuff &tjs, Trajectory &tj) |
short | MCSMom (TjStuff &tjs, Trajectory &tj, unsigned short firstPt, unsigned short lastPt) |
unsigned short | NearestPtWithChg (TjStuff &tjs, Trajectory &tj, unsigned short thePt) |
float | MCSThetaRMS (TjStuff &tjs, Trajectory &tj) |
double | MCSThetaRMS (TjStuff &tjs, Trajectory &tj, unsigned short firstPt, unsigned short lastPt) |
void | TjDeltaRMS (TjStuff &tjs, Trajectory &tj, unsigned short firstPt, unsigned short lastPt, double &rms, unsigned short &cnt) |
void | TagDeltaRays (TjStuff &tjs, const CTP_t &inCTP) |
void | TagMuonDirections (TjStuff &tjs, short debugWorkID) |
void | UpdateTjChgProperties (std::string inFcnLabel, TjStuff &tjs, Trajectory &tj, bool prt) |
void | UpdateVxEnvironment (std::string inFcnLabel, TjStuff &tjs, VtxStore &vx2, bool prt) |
TrajPoint | MakeBareTP (TjStuff &tjs, Point3_t &pos, Vector3_t &dir, CTP_t inCTP) |
bool | MakeBareTrajPoint (const TjStuff &tjs, unsigned int fromHit, unsigned int toHit, TrajPoint &tp) |
bool | MakeBareTrajPoint (const TjStuff &tjs, float fromWire, float fromTick, float toWire, float toTick, CTP_t tCTP, TrajPoint &tp) |
bool | MakeBareTrajPoint (const Point2_t &fromPos, const Point2_t &toPos, TrajPoint &tpOut) |
bool | MakeBareTrajPoint (const TjStuff &tjs, const TrajPoint &tpIn1, const TrajPoint &tpIn2, TrajPoint &tpOut) |
unsigned short | FarEnd (const TjStuff &tjs, const Trajectory &tj, const Point2_t &pos) |
Vector2_t | PointDirection (const Point2_t p1, const Point2_t p2) |
float | TPHitsRMSTime (TjStuff &tjs, TrajPoint &tp, HitStatus_t hitRequest) |
float | TPHitsRMSTick (TjStuff &tjs, TrajPoint &tp, HitStatus_t hitRequest) |
float | HitsRMSTime (TjStuff &tjs, const std::vector< unsigned int > &hitsInMultiplet, HitStatus_t hitRequest) |
float | HitsRMSTick (TjStuff &tjs, const std::vector< unsigned int > &hitsInMultiplet, HitStatus_t hitRequest) |
float | HitsPosTime (TjStuff &tjs, const std::vector< unsigned int > &hitsInMultiplet, float &sum, HitStatus_t hitRequest) |
float | HitsPosTick (TjStuff &tjs, const std::vector< unsigned int > &hitsInMultiplet, float &sum, HitStatus_t hitRequest) |
unsigned short | NumUsedHitsInTj (const TjStuff &tjs, const Trajectory &tj) |
unsigned short | NumHitsInTP (const TrajPoint &tp, HitStatus_t hitRequest) |
void | SetPDGCode (TjStuff &tjs, unsigned short itj) |
void | SetPDGCode (TjStuff &tjs, Trajectory &tj) |
bool | FillWireHitRange (TjStuff &tjs, const geo::TPCID &tpcid) |
bool | CheckWireHitRange (const TjStuff &tjs) |
bool | WireHitRangeOK (const TjStuff &tjs, const CTP_t &inCTP) |
bool | MergeAndStore (TjStuff &tjs, unsigned int itj1, unsigned int itj2, bool doPrt) |
std::vector< int > | GetAssns (const TjStuff &tjs, std::string type1Name, int id, std::string type2Name) |
void | PrintAllTraj (std::string someText, const TjStuff &tjs, const DebugStuff &debug, unsigned short itj, unsigned short ipt, bool prtVtx) |
void | PrintTrajectory (std::string someText, const TjStuff &tjs, const Trajectory &tj, unsigned short tPoint) |
void | PrintHeader (std::string someText) |
void | PrintTrajPoint (std::string someText, const TjStuff &tjs, unsigned short ipt, short dir, unsigned short pass, TrajPoint const &tp) |
void | PrintPFP (std::string someText, const TjStuff &tjs, const PFPStruct &pfp, bool printHeader) |
void | PrintPFPs (std::string someText, const TjStuff &tjs) |
std::string | PrintStopFlag (const Trajectory &tj, unsigned short end) |
std::string | PrintHitShort (const TCHit &hit) |
std::string | PrintHit (const TCHit &hit) |
std::string | PrintPos (const TjStuff &tjs, const TrajPoint &tp) |
std::string | PrintPos (const TjStuff &tjs, const Point2_t &pos) |
bool | SignalAtTp (TjStuff &tjs, TrajPoint const &tp) |
double | DotProd (const Vector2_t &v1, const Vector2_t &v2) |
template<typename T > | |
std::vector< T > | SetIntersection (const std::vector< T > &set1, const std::vector< T > &set2) |
template<typename T > | |
std::vector< T > | SetDifference (const std::vector< T > &set1, const std::vector< T > &set2) |
void | PrintClusters () |
Variables | |
constexpr unsigned int | Tpad = 10 |
constexpr unsigned int | Cpad = 10000 |
DebugStuff | debug |
typedef unsigned int tca::CTP_t |
Definition at line 41 of file DataStructs.h.
using tca::Point2_t = typedef std::array<float, 2> |
Definition at line 37 of file DataStructs.h.
using tca::Point3_t = typedef std::array<double, 3> |
Definition at line 35 of file DataStructs.h.
using tca::Vector2_t = typedef std::array<double, 2> |
Definition at line 38 of file DataStructs.h.
using tca::Vector3_t = typedef std::array<double, 3> |
Definition at line 36 of file DataStructs.h.
enum tca::AlgBit_t |
Definition at line 374 of file DataStructs.h.
enum tca::HitStatus_t |
Enumerator | |
---|---|
kAllHits | |
kUsedHits | |
kUnusedHits |
enum tca::StopFlag_t |
Enumerator | |
---|---|
kSignal | |
kAtKink | |
kAtVtx | |
kBragg | |
kAtTj | |
kOutFV | |
kFlagBitSize |
don't mess with this line |
Definition at line 443 of file DataStructs.h.
enum tca::TPEnvironment_t |
Enumerator | |
---|---|
kEnvNearTj | |
kEnvNearShower | |
kEnvOverlap | |
kEnvUnusedHits | |
kEnvClean |
the charge fraction is small near this point |
kEnvFlag |
a general purpose flag bit used in 3D matching |
Definition at line 453 of file DataStructs.h.
enum tca::VtxBit_t |
Definition at line 100 of file DataStructs.h.
void tca::AddCloseTjsToList | ( | std::string | inFcnLabel, |
TjStuff & | tjs, | ||
unsigned short | itj, | ||
std::vector< int > | list | ||
) |
void tca::AddCloseTjsToList | ( | TjStuff & | tjs, |
unsigned short | itj, | ||
std::vector< int > | list | ||
) |
Definition at line 3907 of file TCShower.cxx.
References tca::TjStuff::allTraj, tca::TjStuff::fHits, tca::Trajectory::MCSMom, and tca::TjStuff::ShowerTag.
bool tca::AddLooseHits | ( | std::string | inFcnLabel, |
TjStuff & | tjs, | ||
int | cotID, | ||
bool | prt | ||
) |
bool tca::AddLooseHits | ( | TjStuff & | tjs, |
int | cotID, | ||
bool | prt | ||
) |
Definition at line 4069 of file TCShower.cxx.
References tca::TjStuff::allTraj, tca::TjStuff::cots, tca::ShowerStruct::CTP, DecodeCTP(), tca::ShowerStruct::Envelope, tca::TjStuff::fHits, tca::TrajPoint::Hits, tca::Trajectory::ID, tca::ShowerStruct::ID, tca::TjStuff::LastWire, geo::PlaneID::Plane, PointInsideEnvelope(), tca::Trajectory::Pts, tca::ShowerStruct::ShowerTjID, ss, tca::ShowerStruct::TjIDs, tca::TjStuff::UnitsPerTick, and tca::TjStuff::WireHitRange.
bool tca::AddMissedTj | ( | TjStuff & | tjs, |
PFPStruct & | pfp, | ||
unsigned short | itj, | ||
bool | looseCuts, | ||
bool | prt | ||
) |
Definition at line 1130 of file PFPUtils.cxx.
References tca::PFPStruct::ID, tca::TjStuff::matchVec, PFPVxTjOK(), SetIntersection(), tca::PFPStruct::TjCompleteness, and tca::PFPStruct::TjIDs.
bool tca::AddPFP | ( | std::string | inFcnLabel, |
TjStuff & | tjs, | ||
int | pID, | ||
ShowerStruct3D & | ss3, | ||
bool | doUpdate, | ||
bool | prt | ||
) |
Definition at line 1570 of file TCShower.cxx.
References AddTj(), tca::TjStuff::allTraj, tca::ShowerStruct3D::CotIDs, tca::TjStuff::cots, tca::ShowerStruct3D::ID, tca::ShowerStruct3D::NeedsUpdate, tca::TjStuff::pfps, ss, tca::ShowerStruct3D::TPCID, and UpdateShower().
Referenced by Reconcile3D().
bool tca::AddTj | ( | std::string | inFcnLabel, |
TjStuff & | tjs, | ||
int | tjID, | ||
ShowerStruct & | ss, | ||
bool | doUpdate, | ||
bool | prt | ||
) |
Definition at line 1624 of file TCShower.cxx.
References tca::TjStuff::allTraj, tca::TrajPoint::Chg, tca::Trajectory::CTP, tca::ShowerStruct::CTP, tca::Trajectory::EndPt, tca::TjStuff::fHits, tca::TrajPoint::Hits, tca::Trajectory::ID, tca::ShowerStruct::ID, tca::ShowerStruct::NearTjIDs, tca::ShowerStruct::NeedsUpdate, tca::Trajectory::Pts, tca::ShowerStruct::ShPts, tca::Trajectory::SSID, tca::ShowerStruct::TjIDs, tca::TjStuff::UnitsPerTick, UpdateShower(), and tca::TrajPoint::UseHit.
Referenced by AddPFP(), AddTjsInsideEnvelope(), MergeNearby2DShowers(), MergeSubShowersTj(), and SetParent().
bool tca::AddTjsInsideEnvelope | ( | std::string | inFcnLabel, |
TjStuff & | tjs, | ||
ShowerStruct & | ss, | ||
bool | prt | ||
) |
Definition at line 3996 of file TCShower.cxx.
References AddTj(), tca::TjStuff::allTraj, tca::ShowerStruct::AngleErr, tca::ShowerStruct::CTP, DontCluster(), tca::ShowerStruct::Envelope, tca::ShowerStruct::ID, kKilled, kShowerTj, tca::ShowerStruct::NeedsUpdate, NeutrinoPrimaryTjID(), tca::ShowerStruct::ParentID, PointInsideEnvelope(), tca::ShowerStruct::TjIDs, tmp, and UpdateShower().
Referenced by FindShowers3D().
Definition at line 2339 of file PFPUtils.cxx.
References tca::TjStuff::allTraj, DefinePFP(), tca::PFPStruct::ID, kMat3D, tca::PFPStruct::NeedsUpdate, NumPtsWithCharge(), PFPVxTjOK(), tca::PFPStruct::TjCompleteness, tca::PFPStruct::TjIDs, and tca::PFPStruct::Tp3s.
Referenced by DotProd(), FindPFParticles(), and Match3DVtxTjs().
bool tca::AnalyzeRotPos | ( | std::string | inFcnLabel, |
TjStuff & | tjs, | ||
ShowerStruct & | ss, | ||
bool | prt | ||
) |
Definition at line 3170 of file TCShower.cxx.
References tca::TjStuff::allTraj, tca::ShowerStruct::DirectionFOM, tca::ShowerStruct::ID, tca::Trajectory::Pts, tca::ShowerStruct::ShowerTjID, and tca::ShowerStruct::ShPts.
Referenced by UpdateShower().
Definition at line 636 of file Utils.cxx.
References tca::TrajPoint::Ang, and AngleRange().
Referenced by tca::TrajClusterAlg::CheckHiMultUnusedHits(), and tca::TrajClusterAlg::UseUnusedHits().
unsigned short tca::AngleRange | ( | TjStuff & | tjs, |
float | angle | ||
) |
Definition at line 659 of file Utils.cxx.
References tca::TjStuff::AngleRanges.
Referenced by AngleRange(), FitTraj(), and SetAngleCode().
bool tca::AttachAnyTrajToVertex | ( | TjStuff & | tjs, |
unsigned short | ivx, | ||
bool | prt | ||
) |
Definition at line 1689 of file TCVertex.cxx.
References tca::TjStuff::allTraj, AttachTrajToVertex(), tca::VtxStore::CTP, tca::VtxStore::ID, kKilled, tca::TjStuff::Vertex2DCuts, and tca::TjStuff::vtx.
Referenced by CompleteIncomplete3DVertices(), Find2DVertices(), FindHammerVertices(), FindHammerVertices2(), tca::TrajClusterAlg::ReconstructAllTraj(), and Split3DKink().
bool tca::AttachPFPToVertex | ( | TjStuff & | tjs, |
PFPStruct & | pfp, | ||
unsigned short | end, | ||
unsigned short | vx3ID, | ||
bool | prt | ||
) |
Definition at line 1651 of file TCVertex.cxx.
References tca::TjStuff::allTraj, DecodeCTP(), evd::details::end(), tca::PFPStruct::ID, tca::PFPStruct::PDGCode, tca::TjStuff::pfps, geo::PlaneID::Plane, PosInPlane(), tca::PFPStruct::TjIDs, tca::TjStuff::vtx3, and tca::PFPStruct::Vx3ID.
bool tca::AttachTrajToVertex | ( | TjStuff & | tjs, |
Trajectory & | tj, | ||
VtxStore & | vx, | ||
bool | prt | ||
) |
Definition at line 1712 of file TCVertex.cxx.
References tca::Trajectory::AlgMod, tca::TjStuff::allTraj, tca::VtxStore::CTP, tca::Trajectory::CTP, evd::details::end(), tca::Trajectory::EndPt, FitVertex(), tca::VtxStore::ID, tca::Trajectory::ID, kFixed, kKilled, kNoFitToVx, kPhoton, tca::VtxStore::NTraj, tca::VtxStore::Pos, PosSep2(), tca::Trajectory::Pts, SetVx2Score(), SignalBetween(), tca::VtxStore::Stat, TrajClosestApproach(), TrajLength(), TrajPointVertexPull(), tca::TjStuff::Vertex2DCuts, and tca::Trajectory::VtxID.
Referenced by AttachAnyTrajToVertex(), and tca::TrajClusterAlg::StepCrawl().
void tca::CheckTrajBeginChg | ( | TjStuff & | tjs, |
unsigned short | itj, | ||
bool | prt | ||
) |
Definition at line 1272 of file Utils.cxx.
References tca::TjStuff::allTraj, tca::VtxStore::ChiDOF, tca::VtxStore::CTP, tca::VtxStore::ID, kBeginChg, kBragg, kFixed, kFTBRvProp, kKilled, MakeVertexObsolete(), tca::VtxStore::NTraj, tca::VtxStore::Pass, tca::VtxStore::Pos, PrintPos(), SetVx2Score(), SplitTraj(), tca::VtxStore::Stat, StoreVertex(), tca::VtxStore::Topo, tca::TjStuff::UseAlg, and tca::TjStuff::vtx.
Referenced by tca::TrajClusterAlg::ReconstructAllTraj().
bool tca::CheckWireHitRange | ( | const TjStuff & | tjs | ) |
Definition at line 3855 of file Utils.cxx.
References tca::TjStuff::fHits, tca::TjStuff::NumPlanes, tca::TjStuff::NumWires, and tca::TjStuff::WireHitRange.
Referenced by tca::TrajClusterAlg::CreateHit(), DotProd(), tca::TrajClusterAlg::EraseHit(), and FillWireHitRange().
Definition at line 1527 of file Utils.cxx.
References tca::TrajPoint::Dir, tca::TrajPoint::Pos, and SignalAtTp().
Referenced by SignalBetween().
float tca::ChgFracBetween | ( | TjStuff & | tjs, |
Point3_t | pos1, | ||
Point3_t | pos2, | ||
geo::TPCID | tpcid | ||
) |
Definition at line 2860 of file PFPUtils.cxx.
References detinfo::DetectorProperties::ConvertXToTicks(), geo::CryostatID::Cryostat, tca::TrajPoint::CTP, tca::TjStuff::detprop, dir, EncodeCTP(), tca::TjStuff::geom, tca::TjStuff::NumPlanes, PointDirection(), tca::TrajPoint::Pos, PosSep(), SignalAtTp(), geo::TPCID::TPC, tca::TjStuff::TPCID, tca::TjStuff::UnitsPerTick, geo::GeometryCore::WireCoordinate(), and tca::TjStuff::WirePitch.
Referenced by DotProd(), FindNeutralVertices(), FindParent(), ParentFOM(), and tca::TruthMatcher::StudyShowerParents().
Definition at line 2890 of file PFPUtils.cxx.
References tca::TjStuff::allTraj, ChgFracNearPos(), detinfo::DetectorProperties::ConvertXToTicks(), geo::CryostatID::Cryostat, tca::TjStuff::detprop, EncodeCTP(), tca::TjStuff::geom, tca::PFPStruct::ID, tca::TjStuff::NumPlanes, tca::TjStuff::NumWires, tca::PFPStruct::TjIDs, geo::TPCID::TPC, tca::PFPStruct::TPCID, tca::TjStuff::TPCID, tca::TjStuff::UnitsPerTick, geo::GeometryCore::WireCoordinate(), tca::TjStuff::WireHitRange, and tca::PFPStruct::XYZ.
Referenced by DotProd(), and FindNeutralVertices().
Definition at line 2614 of file Utils.cxx.
References tca::TjStuff::allTraj, DecodeCTP(), tca::TjStuff::fHits, FindCloseHits(), kAllHits, and geo::PlaneID::Plane.
Referenced by ChgFracNearEnd(), tca::TrajClusterAlg::ChkStop(), CompleteIncomplete3DVertices(), CompleteIncomplete3DVerticesInGaps(), tca::TrajClusterAlg::EndMerge(), ParentFOM(), and SetVx2Score().
float tca::ChgToMeV | ( | float | chg | ) |
Definition at line 4460 of file TCShower.cxx.
Referenced by FindParent(), MergeSubShowersTj(), ShowerEnergy(), tca::TruthMatcher::StudyShowerParents(), and UpdateShower().
bool tca::ChkAssns | ( | std::string | inFcnLabel, |
TjStuff & | tjs | ||
) |
Definition at line 4625 of file TCShower.cxx.
References tca::TjStuff::allTraj, tca::TjStuff::cots, kKilled, tca::TjStuff::showers, and ss.
Referenced by CompleteIncompleteShower(), FindShowers3D(), Finish3DShowers(), Match2DShowers(), MergeNearby2DShowers(), MergeOverlap(), MergeShowerChain(), MergeSubShowers(), MergeSubShowersTj(), and Reconcile3D().
void tca::ChkChgAsymmetry | ( | TjStuff & | tjs, |
Trajectory & | tj, | ||
bool | prt | ||
) |
Definition at line 1436 of file Utils.cxx.
References tca::Trajectory::AlgMod, tca::Trajectory::EndPt, tca::Trajectory::ID, kChkChgAsym, PrintTrajectory(), tca::Trajectory::Pts, SetEndPoints(), UnsetUsedHits(), and tca::TjStuff::UseAlg.
Referenced by tca::TrajClusterAlg::CheckTraj().
Definition at line 2128 of file TCVertex.cxx.
References tca::TjStuff::allTraj, DecodeCTP(), evd::details::end(), kKilled, geo::PlaneID::Plane, tca::TjStuff::vtx, and tca::TjStuff::vtx3.
Referenced by tca::TrajClusterAlg::ReconstructAllTraj(), and tca::TrajClusterAlg::RunTrajClusterAlg().
Definition at line 715 of file TCVertex.cxx.
References tca::TjStuff::allTraj, close(), CompatibleMerge(), DeltaAngle(), FarEnd(), GetAssns(), kChkVxTj, kDeltaRay, kFixed, kKilled, MakeVertexObsolete(), MergeAndStore(), PointTrajDOCA(), PosSep(), PrintPos(), tca::TjStuff::UseAlg, and tca::TjStuff::vtx.
Referenced by tca::TrajClusterAlg::EndMerge(), and Find2DVertices().
void tca::ClearCRInfo | ( | TjStuff & | tjs | ) |
Definition at line 117 of file TCCR.cxx.
References tca::CRTreeVars::cr_origin, tca::CRTreeVars::cr_pfpxmax, tca::CRTreeVars::cr_pfpxmin, tca::CRTreeVars::cr_pfpyzmindis, and tca::TjStuff::crt.
Referenced by tca::TrajClusterAlg::ClearResults().
void tca::ClearShowerTree | ( | ShowerTreeVars & | stv | ) |
Definition at line 203 of file TCShTree.cxx.
References tca::ShowerTreeVars::BeginAng, tca::ShowerTreeVars::BeginChg, tca::ShowerTreeVars::BeginTim, tca::ShowerTreeVars::BeginVtx, tca::ShowerTreeVars::BeginWir, tca::ShowerTreeVars::EndAng, tca::ShowerTreeVars::EndChg, tca::ShowerTreeVars::EndTim, tca::ShowerTreeVars::EndVtx, tca::ShowerTreeVars::EndWir, tca::ShowerTreeVars::Envelope, tca::ShowerTreeVars::EnvPlane, tca::ShowerTreeVars::EnvShowerID, tca::ShowerTreeVars::EnvStage, tca::ShowerTreeVars::IsShowerParent, tca::ShowerTreeVars::IsShowerTj, tca::ShowerTreeVars::MCSMom, tca::ShowerTreeVars::PlaneNum, tca::ShowerTreeVars::ShowerID, tca::ShowerTreeVars::StageNum, and tca::ShowerTreeVars::TjID.
Referenced by tca::TrajClusterAlg::ClearResults().
unsigned short tca::CloseEnd | ( | TjStuff & | tjs, |
const Trajectory & | tj, | ||
const Point2_t & | pos | ||
) |
Definition at line 2120 of file Utils.cxx.
References tca::Trajectory::EndPt, PosSep2(), and tca::Trajectory::Pts.
Referenced by FindNeutralVertices(), and MergeWithVertex().
bool tca::CompatibleMerge | ( | TjStuff & | tjs, |
std::vector< int > & | tjIDs, | ||
bool | prt | ||
) |
Definition at line 455 of file Utils.cxx.
References tca::TjStuff::allTraj, evd::details::end(), and TrajClosestApproach().
Referenced by ChkVxTjs(), DefinePFP(), and tca::TrajClusterAlg::EndMerge().
bool tca::CompatibleMerge | ( | TjStuff & | tjs, |
const Trajectory & | tj1, | ||
const Trajectory & | tj2, | ||
bool | prt | ||
) |
Definition at line 526 of file Utils.cxx.
References tca::Trajectory::AlgMod, tca::Trajectory::CTP, DeltaAngle(), tca::Trajectory::EndPt, tca::Trajectory::ID, tca::TjStuff::KinkCuts, kKilled, OverlapFraction(), PointTrajDOCA(), PosSep(), and tca::Trajectory::Pts.
void tca::CompleteIncomplete3DVertices | ( | TjStuff & | tjs, |
const geo::TPCID & | tpcid | ||
) |
Definition at line 2569 of file TCVertex.cxx.
References tca::TjStuff::allTraj, AttachAnyTrajToVertex(), ChgFracNearPos(), detinfo::DetectorProperties::ConvertXToTicks(), tca::VtxStore::CTP, debug, tca::TjStuff::detprop, EncodeCTP(), evd::details::end(), GetAssns(), tca::VtxStore::ID, kComp3DVx, kFixed, kKilled, MakeVertexObsolete(), tca::VtxStore::NTraj, tca::TjStuff::NumPlanes, NumPtsWithCharge(), tca::VtxStore::Pass, tca::DebugStuff::Plane, tca::VtxStore::Pos, tca::TrajPoint::Pos, PrintPos(), RefineVtxPosition(), SetPDGCode(), SetVx2Score(), SplitTraj(), tca::VtxStore::Stat, StoreVertex(), tca::DebugStuff::Tick, tca::VtxStore::TjChgFrac, util::flags::to_string(), tca::VtxStore::Topo, TrajPointTrajDOCA(), tca::TjStuff::UnitsPerTick, tca::TjStuff::UseAlg, tca::TjStuff::vtx, tca::TjStuff::vtx3, and tca::VtxStore::Vx3ID.
Referenced by Find3DVertices().
void tca::CompleteIncomplete3DVerticesInGaps | ( | TjStuff & | tjs, |
const geo::TPCID & | tpcid | ||
) |
Definition at line 2478 of file TCVertex.cxx.
References tca::TjStuff::allTraj, ChgFracNearPos(), detinfo::DetectorProperties::ConvertXToTicks(), geo::CryostatID::Cryostat, tca::VtxStore::CTP, tca::TrajPoint::CTP, DeadWireCount(), debug, tca::TjStuff::detprop, EncodeCTP(), evd::details::end(), tca::VtxStore::ID, tca::Vtx3Store::ID, kComp3DVxIG, kKilled, tca::VtxStore::NTraj, tca::TjStuff::NumPlanes, tca::VtxStore::Pass, tca::DebugStuff::Plane, PointTrajDOCA(), tca::VtxStore::Pos, tca::TrajPoint::Pos, SetVx2Score(), StoreVertex(), tca::DebugStuff::Tick, tca::VtxStore::TjChgFrac, tca::VtxStore::Topo, geo::TPCID::TPC, tca::Vtx3Store::TPCID, tca::TjStuff::UnitsPerTick, tca::TjStuff::UseAlg, tca::TjStuff::vtx, tca::TjStuff::vtx3, tca::Vtx3Store::Vx2ID, tca::VtxStore::Vx3ID, tca::Vtx3Store::Wire, and tca::Vtx3Store::X.
Referenced by Find3DVertices().
bool tca::CompleteIncompleteShower | ( | std::string | inFcnLabel, |
TjStuff & | tjs, | ||
ShowerStruct3D & | ss3, | ||
bool | prt | ||
) |
Definition at line 804 of file TCShower.cxx.
References tca::TjStuff::allTraj, ChkAssns(), tca::ShowerStruct3D::CotIDs, tca::TjStuff::cots, CreateSS(), DecodeCTP(), evd::details::end(), GetAssns(), tca::ShowerStruct3D::ID, kCompleteShower, MakeShowerObsolete(), tca::ShowerStruct3D::NeedsUpdate, tca::TjStuff::NumPlanes, tca::TjStuff::pfps, geo::PlaneID::Plane, SetIntersection(), ShowerEnergy(), ss, StoreShower(), UpdateShower(), tca::TjStuff::UseAlg, and tca::TjStuff::vtx.
Referenced by Match2DShowers().
void tca::ConfigureMVA | ( | TjStuff & | tjs, |
std::string | fMVAShowerParentWeights | ||
) |
Definition at line 15 of file TCShower.cxx.
References tca::TjStuff::ShowerParentReader, and tca::TjStuff::ShowerParentVars.
Referenced by tca::TrajClusterAlg::reconfigure().
PFPStruct tca::CreateFakePFP | ( | const TjStuff & | tjs, |
const ShowerStruct3D & | ss3 | ||
) |
Definition at line 2050 of file TCShower.cxx.
References CreatePFP(), tca::ShowerStruct3D::Dir, tca::ShowerStruct3D::End, tca::ShowerStruct3D::Len, PointDirection(), tca::ShowerStruct3D::Start, and tca::ShowerStruct3D::TPCID.
PFPStruct tca::CreatePFP | ( | const TjStuff & | tjs, |
const geo::TPCID & | tpcid | ||
) |
Definition at line 1943 of file PFPUtils.cxx.
References tca::PFPStruct::dEdx, tca::PFPStruct::dEdxErr, tca::PFPStruct::Dir, tca::PFPStruct::DirErr, tca::PFPStruct::ID, tca::TjStuff::NumPlanes, tca::PFPStruct::ParentID, tca::TjStuff::pfps, tca::PFPStruct::TPCID, and tca::PFPStruct::XYZ.
Referenced by CreateFakePFP(), DefineTjParents(), DotProd(), FindPFParticles(), Finish3DShowers(), and Match3DVtxTjs().
ShowerStruct tca::CreateSS | ( | TjStuff & | tjs, |
CTP_t | inCTP, | ||
const std::vector< int > & | tjl | ||
) |
Definition at line 4572 of file TCShower.cxx.
References tca::TjStuff::allTraj, tca::ShowerStruct::Cheat, tca::TjStuff::cots, tca::Trajectory::CTP, tca::ShowerStruct::CTP, tca::ShowerStruct::Envelope, tca::ShowerStruct::ID, kCheat, kShowerTj, tca::ShowerStruct::ShowerTjID, ss, and tca::ShowerStruct::TjIDs.
Referenced by CompleteIncompleteShower(), FindShowers3D(), tca::MCParticleListUtils::MakeCheatShower(), and MergeShowers().
ShowerStruct3D tca::CreateSS3 | ( | TjStuff & | tjs, |
const geo::TPCID & | tpcid | ||
) |
Definition at line 4553 of file TCShower.cxx.
References tca::ShowerStruct3D::dEdx, tca::ShowerStruct3D::dEdxErr, tca::ShowerStruct3D::Energy, tca::ShowerStruct3D::EnergyErr, tca::ShowerStruct3D::ID, tca::ShowerStruct3D::MIPEnergy, tca::ShowerStruct3D::MIPEnergyErr, tca::TjStuff::NumPlanes, tca::TjStuff::showers, and tca::ShowerStruct3D::TPCID.
Referenced by tca::MCParticleListUtils::MakeCheatShower(), and Match2DShowers().
Definition at line 1756 of file Utils.cxx.
References tca::TrajPoint::CTP, DeadWireCount(), and tca::TrajPoint::Pos.
Referenced by tca::TrajClusterAlg::AddHits(), cluster::ClusterCrawlerAlg::CheckClusterHitFrac(), cluster::ClusterCrawlerAlg::ChkMerge(), CompleteIncomplete3DVerticesInGaps(), Find2DVertices(), tca::TrajClusterAlg::StepCrawl(), and tca::TrajClusterAlg::UpdateTraj().
float tca::DeadWireCount | ( | const TjStuff & | tjs, |
const float & | inWirePos1, | ||
const float & | inWirePos2, | ||
CTP_t | tCTP | ||
) |
Definition at line 1762 of file Utils.cxx.
References DecodeCTP(), tca::TjStuff::NumWires, geo::PlaneID::Plane, tmp, and tca::TjStuff::WireHitRange.
Referenced by DeadWireCount(), NumPtsWithCharge(), and TrajTrajDOCA().
geo::PlaneID tca::DecodeCTP | ( | CTP_t | CTP | ) |
Definition at line 89 of file DataStructs.cxx.
Referenced by tca::TrajClusterAlg::AddHits(), tca::TrajClusterAlg::AddLAHits(), AddLooseHits(), AttachPFPToVertex(), ChgFracNearPos(), tca::TrajClusterAlg::ChkStopEndPts(), ChkVtxAssociations(), CompleteIncompleteShower(), DeadWireCount(), DefineDontCluster(), tca::TrajClusterAlg::DefineHit(), DefinePFP(), DefineTjParents(), EncodeCTP(), tca::TrajClusterAlg::EndMerge(), ExpectedHitsRMS(), FilldEdx(), FillmAllTraj(), Find2DVertices(), Find3DVertices(), FindCloseHits(), FindCloseTjs(), FindCompleteness(), tca::TrajClusterAlg::FindJunkTraj(), FindMissedTjsInTp3s(), FindShowers3D(), tca::TrajClusterAlg::FindVtxTraj(), FindXMatches(), Finish3DShowers(), FitTp3(), FitTp3s(), cluster::ClusterCrawlerAlg::FitVtx(), FollowTp3s(), cluster::ClusterCrawlerAlg::GetHitRange(), KillPoorVertices(), MakeBareTP(), MakeJunkVertices(), MakeTp3(), MakeVertexObsolete(), Match2DShowers(), Match3DFOM(), tca::TruthMatcher::MatchAndSum(), tca::TruthMatcher::MatchTruth(), MaxChargeAsymmetry(), tca::MCParticleListUtils::MCParticleStartTjID(), MergePFPTjs(), PrintAllTraj(), cluster::TrajCluster::produce(), tca::TruthMatcher::PutMCPHitsInVector(), Reconcile3D(), tca::TrajClusterAlg::ReconstructAllTraj(), tca::TrajClusterAlg::ReversePropagate(), SaveTjInfo(), SaveTjInfoStuff(), ScoreVertices(), SignalAtTp(), Split3DKink(), SplitTraj(), SplitTrajCrossingVertices(), tca::TrajClusterAlg::StartTraj(), tca::TrajClusterAlg::StepCrawl(), TrimEndPts(), UpdateMatchStructs(), UpdateShower(), UpdateTp3s(), VtxHitsSwap(), cluster::ClusterCrawlerAlg::VtxMatch(), and WireHitRangeOK().
void tca::DefineDontCluster | ( | TjStuff & | tjs, |
const geo::TPCID & | tpcid, | ||
bool | prt | ||
) |
Definition at line 3397 of file TCShower.cxx.
References tca::TjStuff::allTraj, tca::TjStuff::DebugMode, DecodeCTP(), tca::TjStuff::dontCluster, DotProd(), GetAssns(), IsShowerLike(), PFPDOCA(), tca::TjStuff::pfps, geo::PlaneID::Plane, PointDirection(), PosSep(), t1, t2, tca::DontClusterStruct::TjIDs, tca::TjStuff::vtx3, tca::DontClusterStruct::Vx2ID, and tca::DontClusterStruct::Vx3ID.
Referenced by FindShowers3D().
void tca::DefineEnvelope | ( | std::string | inFcnLabel, |
TjStuff & | tjs, | ||
ShowerStruct & | ss, | ||
bool | prt | ||
) |
Definition at line 3936 of file TCShower.cxx.
References tca::TjStuff::allTraj, tca::TrajPoint::Ang, tca::TrajPoint::Chg, tca::ShowerStruct::ChgDensity, tca::TrajPoint::DeltaRMS, tca::ShowerStruct::Envelope, tca::ShowerStruct::EnvelopeArea, tca::ShowerStruct::ID, SortEntry::length, tca::ShowerStruct::NeedsUpdate, tca::TrajPoint::Pos, PosSep(), tca::Trajectory::Pts, tca::TjStuff::ShowerTag, tca::ShowerStruct::ShowerTjID, tca::ShowerStruct::TjIDs, and tca::TjStuff::UnitsPerTick.
Referenced by ReverseShower(), and UpdateShower().
Definition at line 2159 of file PFPUtils.cxx.
References tca::TjStuff::allTraj, CompatibleMerge(), DecodeCTP(), FindCompleteness(), FollowTp3s(), tca::PFPStruct::ID, kKilled, kMat3D, kMat3DMerge, tca::TjStuff::Match3DCuts, tca::TjStuff::matchVec, tca::PFPStruct::MatchVecIndex, MaxTjLen(), MCSMom(), MergePFPTjs(), tca::PFPStruct::NeedsUpdate, tca::TjStuff::NumPlanes, tca::PFPStruct::PDGCode, PFPVxTjOK(), geo::PlaneID::Plane, PosSep(), SetIntersection(), SetStart(), SharesHighScoreVx(), tca::PFPStruct::TjIDs, tca::PFPStruct::Tp3s, tca::TjStuff::UseAlg, and tca::PFPStruct::Vx3ID.
Referenced by AnalyzePFP(), DotProd(), FindPFParticles(), and Match3DVtxTjs().
void tca::DefinePFPParents | ( | TjStuff & | tjs, |
const geo::TPCID & | tpcid, | ||
bool | prt | ||
) |
Definition at line 2441 of file PFPUtils.cxx.
References tca::TjStuff::allTraj, tca::TjStuff::DebugMode, DefinePFPParentsTestBeam(), GetPFPIndex(), IsShowerLike(), tca::TjStuff::NumPlanes, PDGCodeVote(), tca::TjStuff::pfps, tca::TjStuff::TestBeam, and tca::TjStuff::vtx.
Referenced by DotProd(), and tca::TrajClusterAlg::RunTrajClusterAlg().
void tca::DefinePFPParentsTestBeam | ( | TjStuff & | tjs, |
const geo::TPCID & | tpcid, | ||
bool | prt | ||
) |
Definition at line 2572 of file PFPUtils.cxx.
References GetPFPIndex(), GetVtxTjIDs(), tca::TjStuff::pfps, SetDifference(), tca::TjStuff::vtx3, and tca::TjStuff::ZLo.
Referenced by DefinePFPParents(), and DotProd().
void tca::DefineTjParents | ( | TjStuff & | tjs, |
const geo::TPCID & | tpcid, | ||
bool | prt | ||
) |
Definition at line 17 of file Utils.cxx.
References tca::TjStuff::allTraj, CreatePFP(), geo::CryostatID::Cryostat, DecodeCTP(), evd::details::end(), GetVtxTjIDs(), SortEntry::index, kDeltaRay, kKilled, kSetDir, tca::TjStuff::Match3DCuts, ReverseTraj(), StorePFP(), tca::TjStuff::TestBeam, geo::TPCID::TPC, TrajTrajDOCA(), valDecreasing(), tca::TjStuff::Vertex2DCuts, tca::TjStuff::vtx, and tca::TjStuff::vtx3.
Referenced by tca::TrajClusterAlg::RunTrajClusterAlg().
Definition at line 1607 of file PFPUtils.cxx.
References DotProd().
Referenced by tca::TrajClusterAlg::AddLAHits(), ChkVxTjs(), DotProd(), tca::TrajClusterAlg::EndMerge(), FindHammerVertices(), FindHammerVertices2(), tca::TrajClusterAlg::FindSoftKink(), FindXMatches(), tca::TrajClusterAlg::GottaKink(), KinkAngle(), tca::TruthMatcher::MatchTruth(), ParentFOM(), PrintTp3s(), SetVx2Score(), SplitTrajCrossingVertices(), and tca::TrajClusterAlg::StepCrawl().
double tca::DeltaAngle | ( | double | Ang1, |
double | Ang2 | ||
) |
Definition at line 2782 of file Utils.cxx.
Referenced by CompatibleMerge(), PointInsideEnvelope(), and TagDeltaRays().
double tca::DeltaAngle2 | ( | double | Ang1, |
double | Ang2 | ||
) |
Definition at line 2772 of file Utils.cxx.
Referenced by DeltaAngle(), and DotProd().
bool tca::DontCluster | ( | const TjStuff & | tjs, |
const std::vector< int > & | tjlist1, | ||
const std::vector< int > & | tjlist2 | ||
) |
Definition at line 3381 of file TCShower.cxx.
References tca::TjStuff::dontCluster.
Referenced by AddTjsInsideEnvelope(), FindCots(), FindParent(), MergeNearby2DShowers(), MergeOverlap(), MergeShowerChain(), MergeSubShowers(), MergeSubShowersTj(), and Print2DShowers().
Definition at line 60 of file PFPUtils.h.
References AnalyzePFP(), ChgFracBetween(), ChgFracNearEnd(), CreatePFP(), DefinePFP(), DefinePFPParents(), DefinePFPParentsTestBeam(), evd::details::end(), FarEnd(), FilldEdx(), FindAlongTrans(), FindKinks(), FindPFParticles(), InsideTPC(), KinkAngle(), LineLineIntersect(), PFPDOCA(), PFPVertexCheck(), PFPVxTjOK(), PointDirection(), PointDirIntersect(), PosSep(), PosSep2(), PrintTp3(), PrintTp3s(), ReversePFP(), SetMag(), Split3DKink(), and StorePFP().
Referenced by DefineDontCluster(), DeltaAngle(), FindAlongTrans(), FindParent(), FindShowers3D(), FindShowerStart(), recob::Seed::GetPointingSign(), InShowerProb(), MergeOverlap(), and tca::TruthMatcher::StudyShowerParents().
Definition at line 142 of file Utils.h.
References CheckWireHitRange(), DeltaAngle(), DeltaAngle2(), dir, evd::details::end(), FarEnd(), FillWireHitRange(), GetAssns(), HitsPosTick(), HitsPosTime(), HitsRMSTick(), HitsRMSTime(), MakeBareTP(), MakeBareTrajPoint(), MCSMom(), MCSThetaRMS(), MergeAndStore(), NearestPtWithChg(), NumHitsInTP(), NumUsedHitsInTj(), PointDirection(), PrintAllTraj(), PrintClusters(), PrintHeader(), PrintHit(), PrintHitShort(), PrintPFP(), PrintPFPs(), PrintPos(), PrintStopFlag(), PrintTrajectory(), PrintTrajPoint(), SetDifference(), SetEndPoints(), SetIntersection(), SetPDGCode(), TagDeltaRays(), TagMuonDirections(), TjDeltaRMS(), TPHitsRMSTick(), TPHitsRMSTime(), TrajIsClean(), UpdateTjChgProperties(), UpdateVxEnvironment(), and WireHitRangeOK().
void tca::DumpShowerPts | ( | std::string | inFcnLabel, |
TjStuff & | tjs, | ||
int | cotID | ||
) |
void tca::DumpShowerPts | ( | TjStuff & | tjs, |
int | cotID | ||
) |
Definition at line 4302 of file TCShower.cxx.
References tca::TjStuff::cots, tca::ShowerStruct::ID, pt, tca::ShowerStruct::ShPts, ss, and tca::ShowerStruct::TjIDs.
|
inline |
Definition at line 45 of file DataStructs.h.
Referenced by ChgFracBetween(), ChgFracNearEnd(), CompleteIncomplete3DVertices(), CompleteIncomplete3DVerticesInGaps(), EncodeCTP(), cluster::ClusterCrawlerAlg::FindHammerClusters(), FindMissedTjsInTp3s(), tca::TrajClusterAlg::FindMissedVxTjs(), FindNeutralVertices(), FindParent(), FindPFParticles(), FindShowers3D(), FindXMatches(), MakeBareTrajPoint(), tca::MCParticleListUtils::MakeCheatShower(), tca::TruthMatcher::MatchAndSum(), tca::TruthMatcher::MatchTruth(), MergePFPTjs(), tca::MCParticleListUtils::PrimaryElectronPFPID(), PrintShowers(), tca::TrajClusterAlg::reconfigure(), cluster::ClusterCrawlerAlg::RunCrawler(), tca::TrajClusterAlg::RunTrajClusterAlg(), tca::TrajClusterAlg::StartTraj(), tca::TruthMatcher::StudyShowerParents(), cluster::ClusterCrawlerAlg::TmpStore(), cluster::ClusterCrawlerAlg::Vtx3ClusterMatch(), and cluster::ClusterCrawlerAlg::Vtx3ClusterSplit().
|
inline |
Definition at line 46 of file DataStructs.h.
References geo::CryostatID::Cryostat, EncodeCTP(), geo::PlaneID::Plane, and geo::TPCID::TPC.
|
inline |
Definition at line 47 of file DataStructs.h.
References geo::CryostatID::Cryostat, DecodeCTP(), EncodeCTP(), geo::PlaneID::Plane, and geo::TPCID::TPC.
Definition at line 1627 of file Utils.cxx.
References tca::TjStuff::AveHitRMS, tca::TrajPoint::CTP, DecodeCTP(), tca::TrajPoint::Dir, geo::PlaneID::Plane, and tca::TjStuff::UnitsPerTick.
Referenced by tca::TrajClusterAlg::AddHits(), tca::TrajClusterAlg::FindUseHits(), and tca::TrajClusterAlg::StartTraj().
Definition at line 2936 of file PFPUtils.cxx.
References tca::PFPStruct::ID, PosSep2(), and tca::PFPStruct::XYZ.
Referenced by ChkVxTjs(), DotProd(), FindParent(), MergeSubShowersTj(), ParentFOM(), tca::MCParticleListUtils::PrimaryElectronPFPID(), Reconcile3D(), SetParent(), tca::TruthMatcher::StudyShowerParents(), TagShowerLike(), and UpdateShower().
unsigned short tca::FarEnd | ( | const TjStuff & | tjs, |
const Trajectory & | tj, | ||
const Point2_t & | pos | ||
) |
Definition at line 3554 of file Utils.cxx.
References tca::Trajectory::EndPt, tca::Trajectory::ID, PosSep2(), and tca::Trajectory::Pts.
Definition at line 1654 of file PFPUtils.cxx.
References tca::TjStuff::allTraj, tca::PFPStruct::BestPlane, tca::TjStuff::caloAlg, tca::Trajectory::ChgRMS, tca::Trajectory::CTP, DecodeCTP(), tca::Trajectory::dEdx, tca::PFPStruct::dEdx, calo::CalorimetryAlg::dEdx_AREA(), tca::PFPStruct::dEdxErr, tca::PFPStruct::Dir, tca::Trajectory::EndPt, tca::TjStuff::geom, tca::PFPStruct::ID, tca::TjStuff::NumPlanes, tca::PFPStruct::PDGCode, geo::PlaneID::Plane, geo::GeometryCore::Plane(), tca::Trajectory::Pts, geo::PlaneGeo::ThetaZ(), tca::PFPStruct::TjIDs, tca::TjStuff::UnitsPerTick, and geo::GeometryCore::WirePitch().
Referenced by DotProd(), and StorePFP().
void tca::FilldEdx | ( | TjStuff & | tjs, |
TrajPoint3 & | tp3 | ||
) |
Definition at line 1714 of file PFPUtils.cxx.
References tca::TjStuff::allTraj, tca::TjStuff::caloAlg, DecodeCTP(), tca::TrajPoint3::dEdx, calo::CalorimetryAlg::dEdx_AREA(), tca::TrajPoint3::Dir, tca::TjStuff::fHits, tca::TjStuff::geom, geo::PlaneID::Plane, geo::GeometryCore::Plane(), geo::PlaneGeo::ThetaZ(), tca::TrajPoint3::Tj2Pts, tca::TjStuff::UnitsPerTick, and geo::GeometryCore::WirePitch().
void tca::FillmAllTraj | ( | TjStuff & | tjs, |
const geo::TPCID & | tpcid | ||
) |
Definition at line 127 of file PFPUtils.cxx.
References tca::TjStuff::allTraj, detinfo::DetectorProperties::ConvertTicksToX(), geo::CryostatID::Cryostat, DecodeCTP(), tca::TjStuff::detprop, tca::TjStuff::geom, geo::GeometryCore::HasWire(), kKilled, kMat3D, kTjHiVx3Score, kUsedHits, tca::TjStuff::mallTraj, tca::TjStuff::Match3DCuts, tca::TjStuff::matchVec, NumPtsWithCharge(), geo::PlaneID::Plane, geo::TPCID::TPC, TPHitsRMSTime(), tca::TjStuff::UnitsPerTick, and valIncreasings().
Referenced by tca::TrajClusterAlg::RunTrajClusterAlg().
bool tca::FillWireHitRange | ( | TjStuff & | tjs, |
const geo::TPCID & | tpcid | ||
) |
Definition at line 3722 of file Utils.cxx.
References tca::TjStuff::AveHitRMS, CheckWireHitRange(), geo::CryostatID::Cryostat, debug, tca::TjStuff::DebugMode, geo::GeometryCore::DetHalfHeight(), geo::GeometryCore::DetHalfWidth(), geo::GeometryCore::DetLength(), tca::TjStuff::detprop, detinfo::DetectorProperties::DriftVelocity(), detinfo::DetectorProperties::Efield(), tca::TjStuff::fHits, tca::TjStuff::FirstWire, tca::TjStuff::geom, tca::TjStuff::LastWire, geo::TPCGeo::LocalToWorld(), tca::TjStuff::MaxPos0, tca::TjStuff::MaxPos1, geo::TPCGeo::Nplanes(), detinfo::DetectorProperties::NumberTimeSamples(), tca::TjStuff::NumPlanes, tca::TjStuff::NumWires, geo::GeometryCore::Nwires(), geo::GeometryCore::PlaneWireToChannel(), detinfo::DetectorProperties::SamplingRate(), detinfo::DetectorProperties::Temperature(), tca::DebugStuff::TPC, geo::TPCID::TPC, geo::GeometryCore::TPC(), tca::TjStuff::TPCID, tca::TjStuff::UnitsPerTick, geo::GeometryCore::View(), tca::TjStuff::WireHitRange, tca::TjStuff::WirePitch, geo::GeometryCore::WirePitch(), tca::TjStuff::XHi, tca::TjStuff::XLo, tca::TjStuff::YHi, tca::TjStuff::YLo, tca::TjStuff::ZHi, and tca::TjStuff::ZLo.
Referenced by DotProd(), FindShowers3D(), trkf::CCTrackMaker::produce(), and tca::TrajClusterAlg::RunTrajClusterAlg().
Definition at line 114 of file TCVertex.cxx.
References tca::TjStuff::allTraj, AttachAnyTrajToVertex(), tca::VtxStore::ChiDOF, ChkVxTjs(), tca::VtxStore::CTP, tca::TrajPoint::CTP, DeadWireCount(), debug, DecodeCTP(), FindHammerVertices(), FindHammerVertices2(), FitVertex(), tca::VtxStore::ID, IsCloseToVertex(), kFixed, kKilled, kOnDeadWire, kShowerLike, tca::TjStuff::MaxPos0, tca::TjStuff::MaxPos1, MergeWithVertex(), MoveTPToWire(), NearestPtWithChg(), tca::VtxStore::NTraj, tca::VtxStore::Pass, tca::DebugStuff::Plane, geo::PlaneID::Plane, tca::VtxStore::Pos, tca::TrajPoint::Pos, PosSep(), PosSep2(), PrintAllTraj(), PrintPos(), SetVx2Score(), SignalBetween(), tca::VtxStore::Stat, tca::TjStuff::StepDir, StoreVertex(), tca::DebugStuff::Tick, tca::VtxStore::Topo, TrajClosestApproach(), TrajIntersection(), TrajLength(), TrajTrajDOCA(), tca::TjStuff::UnitsPerTick, tca::TjStuff::Vertex2DCuts, and tca::TjStuff::vtx.
Referenced by tca::TrajClusterAlg::ReconstructAllTraj().
void tca::Find3DVertices | ( | TjStuff & | tjs, |
const geo::TPCID & | tpcid | ||
) |
Definition at line 1215 of file TCVertex.cxx.
References tca::TjStuff::allTraj, CompleteIncomplete3DVertices(), CompleteIncomplete3DVerticesInGaps(), detinfo::DetectorProperties::ConvertTicksToX(), detinfo::DetectorProperties::ConvertXToTicks(), geo::CryostatID::Cryostat, debug, DecodeCTP(), tca::TjStuff::detprop, tca::TjStuff::fHits, FindCloseHits(), tca::TjStuff::geom, geo::GeometryCore::HasWire(), tca::SortEntry::index, geo::GeometryCore::IntersectionPoint(), kAllHits, kKilled, kTjHiVx3Score, evd::kWire, geo::kX, tca::TjStuff::NumPlanes, tca::TjStuff::NumWires, tca::DebugStuff::Plane, geo::PlaneID::Plane, PrintAllTraj(), PrintHit(), tca::Vtx3Store::Score, SetVx2Score(), SetVx3Score(), tca::DebugStuff::Tick, geo::TPCID::TPC, tca::Vtx3Store::TPCID, tca::TjStuff::UnitsPerTick, tca::SortEntry::val, valIncreasing(), tca::TjStuff::Vertex3DCuts, tca::TjStuff::vtx, tca::TjStuff::vtx3, tca::Vtx3Store::Vx2ID, tca::VtxStore::Vx3ID, tca::Vtx3Store::Wire, geo::GeometryCore::WireCoordinate(), geo::GeometryCore::WirePitch(), tca::Vtx3Store::X, tca::Vtx3Store::XErr, y, tca::Vtx3Store::Y, tca::Vtx3Store::YErr, tca::TjStuff::YHi, tca::Vtx3Store::Z, z, tca::Vtx3Store::ZErr, and tca::TjStuff::ZHi.
Referenced by tca::TrajClusterAlg::RunTrajClusterAlg().
Definition at line 2751 of file PFPUtils.cxx.
References DotProd(), E, PointDirection(), PosSep(), and SetMag().
Referenced by DotProd(), FindCompleteness(), FindParent(), FollowTp3s(), InShowerProb(), MergeSubShowers(), ParentFOM(), and tca::TruthMatcher::StudyShowerParents().
std::vector< unsigned int > tca::FindCloseHits | ( | TjStuff const & | tjs, |
std::array< int, 2 > const & | wireWindow, | ||
Point2_t const & | timeWindow, | ||
const unsigned short | plane, | ||
HitStatus_t | hitRequest, | ||
bool | usePeakTime, | ||
bool & | hitsNear | ||
) |
Definition at line 2362 of file Utils.cxx.
References tca::TjStuff::fHits, tca::TjStuff::FirstWire, kAllHits, kUnusedHits, kUsedHits, tca::TjStuff::LastWire, tca::TjStuff::UnitsPerTick, and tca::TjStuff::WireHitRange.
Referenced by tca::TrajClusterAlg::AddLAHits(), tca::TrajClusterAlg::ChkStopEndPts(), Find3DVertices(), tca::TrajClusterAlg::FindVtxTraj(), tca::TrajClusterAlg::FixTrajBegin(), and tca::TrajClusterAlg::ReversePropagate().
bool tca::FindCloseHits | ( | TjStuff const & | tjs, |
TrajPoint & | tp, | ||
float const & | maxDelta, | ||
HitStatus_t | hitRequest | ||
) |
Definition at line 2418 of file Utils.cxx.
References tca::TrajPoint::CTP, DecodeCTP(), tca::TjStuff::fHits, tca::TjStuff::FirstWire, tca::TrajPoint::Hits, kAllHits, kUnusedHits, kUsedHits, tca::TjStuff::LastWire, geo::PlaneID::Plane, PointTrajDOCA(), tca::TrajPoint::Pos, tca::TjStuff::UnitsPerTick, tca::TrajPoint::UseHit, tca::TjStuff::WireHitRange, and WireHitRangeOK().
Referenced by ChgFracNearPos().
std::vector< int > tca::FindCloseTjs | ( | const TjStuff & | tjs, |
const TrajPoint & | fromTp, | ||
const TrajPoint & | toTp, | ||
const float & | maxDelta | ||
) |
Definition at line 2466 of file Utils.cxx.
References tca::TjStuff::allTraj, tca::TrajPoint::CTP, DecodeCTP(), tca::TjStuff::fHits, tca::TjStuff::FirstWire, tca::TjStuff::LastWire, MakeBareTrajPoint(), MoveTPToWire(), geo::PlaneID::Plane, tca::TrajPoint::Pos, tmp, tca::TjStuff::UnitsPerTick, and tca::TjStuff::WireHitRange.
Referenced by MakeJunkVertices().
Definition at line 593 of file PFPUtils.cxx.
References tca::TjStuff::allTraj, tca::TrajPoint3::AlongTrans, geo::CryostatID::Cryostat, DecodeCTP(), dir, tca::TrajPoint3::Dir, tca::PFPStruct::Dir, tca::PFPStruct::EffPur, trkf::fill(), FindAlongTrans(), Fit3D(), tca::TjStuff::geom, tca::PFPStruct::ID, MakeTp3(), tca::TjStuff::mallTraj, tca::TjStuff::Match3DCuts, tca::TjStuff::NumPlanes, geo::PlaneID::Plane, tca::TrajPoint3::Pos, tca::TrajPoint3::Tj2Pts, tca::PFPStruct::TjCompleteness, tca::PFPStruct::TjIDs, tmp, tca::PFPStruct::Tp3s, geo::TPCID::TPC, geo::GeometryCore::WireCoordinate(), tca::TjStuff::WireHitRange, and tca::PFPStruct::XYZ.
Referenced by DefinePFP(), and FindPFParticles().
void tca::FindCots | ( | std::string | inFcnLabel, |
TjStuff & | tjs, | ||
const CTP_t & | inCTP, | ||
std::vector< std::vector< int >> & | tjLists, | ||
bool | prt | ||
) |
Definition at line 3485 of file TCShower.cxx.
References tca::TjStuff::allTraj, tca::TjStuff::ChargeCuts, DontCluster(), GetAssns(), greaterThan(), tca::Trajectory::ID, kKilled, kMat3D, kShowerLike, kShowerTj, tca::Trajectory::MCSMom, MCSMom(), NumPtsWithCharge(), PFPDOCA(), tca::TjStuff::pfps, PosSep(), SetIntersection(), ShowerEnergy(), tca::TjStuff::ShowerTag, t1, t2, tmp, TrajTrajDOCA(), and tca::TjStuff::WirePitch.
Referenced by FindShowers3D().
Definition at line 995 of file TCVertex.cxx.
References tca::TjStuff::allTraj, AttachAnyTrajToVertex(), tca::VtxStore::ChiDOF, tca::VtxStore::CTP, debug, DeltaAngle(), tca::VtxStore::ID, kHamVx, kJunkTj, kKilled, kShowerLike, tca::VtxStore::NTraj, tca::VtxStore::Pass, tca::DebugStuff::Plane, tca::VtxStore::Pos, SetPDGCode(), SetVx2Score(), SplitTraj(), StoreVertex(), tca::DebugStuff::Tick, tca::VtxStore::Topo, TrajPointTrajDOCA(), tca::TjStuff::UseAlg, and tca::TjStuff::vtx.
Referenced by Find2DVertices().
Definition at line 819 of file TCVertex.cxx.
References tca::TjStuff::allTraj, AttachAnyTrajToVertex(), tca::VtxStore::ChiDOF, tca::VtxStore::CTP, debug, DeltaAngle(), dir, tca::VtxStore::ID, kHamVx, kHamVx2, kJunkTj, kKilled, kShowerLike, MCSMom(), MoveTPToWire(), tca::VtxStore::NTraj, NumPtsWithCharge(), tca::VtxStore::Pass, tca::DebugStuff::Plane, PointTrajDOCA(), tca::VtxStore::Pos, PosSep(), PrintPos(), SetPDGCode(), SetVx2Score(), SignalAtTp(), SplitTraj(), StoreVertex(), tca::DebugStuff::Tick, tmp, tca::VtxStore::Topo, TrajClosestApproach(), TrajIntersection(), TrajPointTrajDOCA(), tca::TjStuff::UnitsPerTick, tca::TjStuff::UseAlg, and tca::TjStuff::vtx.
Referenced by Find2DVertices().
std::vector< unsigned short > tca::FindKinks | ( | const TjStuff & | tjs, |
PFPStruct & | pfp, | ||
double | sep, | ||
bool | prt | ||
) |
Definition at line 1870 of file PFPUtils.cxx.
References KinkAngle(), PosSep2(), and tca::PFPStruct::Tp3s.
Referenced by DotProd(), and Split3DKink().
void tca::FindMissedTjsInTp3s | ( | TjStuff & | tjs, |
PFPStruct & | pfp, | ||
std::vector< int > & | missTjs, | ||
std::vector< float > & | missFrac | ||
) |
Definition at line 807 of file PFPUtils.cxx.
References tca::TjStuff::allTraj, geo::CryostatID::Cryostat, DecodeCTP(), tca::PFPStruct::Dir, EncodeCTP(), kKilled, kMat3D, MakeBareTP(), mat, tca::TjStuff::NumPlanes, geo::PlaneID::Plane, PosSep(), SharesHighScoreVx(), tca::PFPStruct::TjIDs, tca::PFPStruct::Tp3s, geo::TPCID::TPC, tca::PFPStruct::TPCID, and tca::PFPStruct::XYZ.
void tca::FindNearbyTjs | ( | std::string | inFcnLabel, |
TjStuff & | tjs, | ||
ShowerStruct & | ss, | ||
bool | prt | ||
) |
Definition at line 3829 of file TCShower.cxx.
References tca::TjStuff::allTraj, tca::ShowerStruct::CTP, tca::ShowerStruct::Envelope, GetAssns(), tca::ShowerStruct::ID, kKilled, kShowerTj, tca::ShowerStruct::NearTjIDs, PointInsideEnvelope(), PointTrajDOCA(), tca::ShowerStruct::ShowerTjID, tca::ShowerStruct::TjIDs, TrajTrajDOCA(), and tca::TjStuff::vtx.
Referenced by FindShowers3D().
void tca::FindNeutralVertices | ( | TjStuff & | tjs, |
const geo::TPCID & | tpcid | ||
) |
Definition at line 369 of file TCVertex.cxx.
References tca::TjStuff::allTraj, ChgFracBetween(), ChgFracNearEnd(), CloseEnd(), tca::VtxStore::CTP, debug, dir, EncodeCTP(), evd::details::end(), FitVertex(), tca::VtxStore::ID, tca::Vtx3Store::ID, kVxNeutral, MakeBareTP(), tca::TjStuff::NeutralVxCuts, tca::TjStuff::NumPlanes, tca::TjStuff::pfps, tca::DebugStuff::Plane, PointDirIntersect(), tca::VtxStore::Pos, PosSep(), tca::Vtx3Store::Primary, PrintPos(), SetVx2Score(), SetVx3Score(), StoreVertex(), tca::DebugStuff::Tick, tca::VtxStore::Topo, tca::Vtx3Store::TPCID, geo::TPCID::TPCID(), tca::TjStuff::TPCID, tca::TjStuff::UseAlg, tca::TjStuff::vtx, tca::TjStuff::vtx3, tca::Vtx3Store::Vx2ID, tca::VtxStore::Vx3ID, tca::Vtx3Store::X, tca::TjStuff::XHi, tca::TjStuff::XLo, tca::Vtx3Store::Y, tca::TjStuff::YHi, tca::TjStuff::YLo, tca::Vtx3Store::Z, tca::TjStuff::ZHi, and tca::TjStuff::ZLo.
Referenced by tca::TrajClusterAlg::RunTrajClusterAlg().
bool tca::FindParent | ( | std::string | inFcnLabel, |
TjStuff & | tjs, | ||
ShowerStruct3D & | ss3, | ||
bool | prt | ||
) |
Definition at line 1739 of file TCShower.cxx.
References tca::TjStuff::allTraj, ChgFracBetween(), tca::ShowerStruct3D::ChgPos, ChgToMeV(), tca::ShowerStruct3D::CotIDs, tca::TjStuff::cots, geo::CryostatID::Cryostat, tca::ShowerStruct3D::Dir, DontCluster(), DotProd(), EncodeCTP(), tca::ShowerStruct3D::End, energy, FarEnd(), FindAlongTrans(), GetAssns(), tca::ShowerStruct3D::ID, InShowerProbLong(), kShwrParent, MakeBareTP(), MCSMom(), tca::TjStuff::NumPlanes, tca::ShowerStruct3D::ParentID, tca::TjStuff::pfps, PointDirection(), PosSep(), PosSep2(), SetParent(), ShowerEnergy(), ShowerParams(), tca::TjStuff::ShowerParentReader, tca::TjStuff::ShowerParentVars, tca::TjStuff::showers, ss, tca::ShowerStruct3D::Start, geo::TPCID::TPC, tca::ShowerStruct3D::TPCID, UpdateShower(), tca::TjStuff::UseAlg, and tca::ShowerStruct3D::Vx3ID.
Referenced by FindShowers3D().
void tca::FindPFParticles | ( | TjStuff & | tjs, |
const geo::TPCID & | tpcid, | ||
bool | prt | ||
) |
Definition at line 1968 of file PFPUtils.cxx.
References tca::TjStuff::allTraj, AnalyzePFP(), CreatePFP(), geo::CryostatID::Cryostat, DefinePFP(), tca::PFPStruct::Dir, EncodeCTP(), FindCompleteness(), FindXMatches(), tca::PFPStruct::ID, tca::SortEntry::index, kEnvFlag, kKilled, kMat3D, MakeBareTP(), tca::TjStuff::Match3DCuts, Match3DVtxTjs(), tca::TjStuff::matchVec, tca::PFPStruct::MatchVecIndex, MaxTjLen(), MCSMom(), tca::TjStuff::NumPlanes, tca::PFPStruct::PDGCode, PDGCodeVote(), SetIntersection(), Split3DKink(), StorePFP(), tca::TjStuff::TestBeam, tca::PFPStruct::TjCompleteness, tca::PFPStruct::TjIDs, geo::TPCID::TPC, tca::PFPStruct::TPCID, tca::SortEntry::val, valDecreasings(), and tca::PFPStruct::XYZ.
Referenced by DotProd(), and tca::TrajClusterAlg::RunTrajClusterAlg().
bool tca::FindShowers3D | ( | TjStuff & | tjs, |
const geo::TPCID & | tpcid | ||
) |
Definition at line 286 of file TCShower.cxx.
References AddTjsInsideEnvelope(), ChkAssns(), tca::TjStuff::cots, CreateSS(), geo::CryostatID::Cryostat, debug, DecodeCTP(), DefineDontCluster(), DotProd(), EncodeCTP(), energy, FillWireHitRange(), FindCots(), FindNearbyTjs(), FindParent(), tca::TjStuff::geom, MakeShowerObsolete(), Match2DShowers(), tca::TjStuff::MCPartList, MergeNearby2DShowers(), MergeOverlap(), MergeShowerChain(), MergeSubShowers(), MergeSubShowersTj(), geo::TPCGeo::Nplanes(), tca::TjStuff::NumPlanes, PosSep(), Print2DShowers(), PrintAllTraj(), PrintPFPs(), Reconcile3D(), SaveAllCots(), tca::TjStuff::SaveShowerTree, SaveTjInfo(), ShowerEnergy(), tca::TjStuff::showers, tca::TjStuff::ShowerTag, ss, StoreShower(), geo::TPCID::TPC, geo::GeometryCore::TPC(), tca::TjStuff::TPCID, and UpdateShower().
Referenced by tca::TrajClusterAlg::RunTrajClusterAlg().
bool tca::FindShowerStart | ( | TjStuff & | tjs, |
ShowerStruct3D & | ss3, | ||
bool | prt | ||
) |
Definition at line 45 of file TCShower.cxx.
References tca::TjStuff::allTraj, tca::ShowerStruct3D::ChgPos, tca::ShowerStruct3D::CotIDs, tca::TjStuff::cots, tca::ShowerStruct3D::Dir, DotProd(), tca::ShowerStruct3D::End, tca::ShowerStruct3D::ID, tca::ShowerStruct3D::Len, MakeBareTP(), tca::ShowerStruct3D::OpenAngle, PosSep(), ReverseShower(), ss, tca::ShowerStruct3D::Start, tca::TjStuff::vtx3, tca::ShowerStruct3D::Vx3ID, and tca::TjStuff::WirePitch.
void tca::FindStartChg | ( | std::string | inFcnLabel, |
TjStuff & | tjs, | ||
int | cotID, | ||
bool | prt | ||
) |
Definition at line 4142 of file TCShower.cxx.
References tca::TjStuff::allTraj, tca::ShowerStruct::AspectRatio, tca::TjStuff::cots, tca::ShowerStruct::DirectionFOM, tca::ShowerStruct::ID, tca::ShowerStruct::ParentID, tca::TjStuff::ShowerTag, tca::ShowerStruct::ShowerTjID, ss, StartChgVec(), and tca::ShowerStruct::TjIDs.
void tca::FindXMatches | ( | TjStuff & | tjs, |
unsigned short | numPlanes, | ||
short | maxScore, | ||
std::vector< MatchStruct > & | matVec, | ||
bool | prt | ||
) |
Definition at line 1326 of file PFPUtils.cxx.
References tca::TjStuff::allTraj, detinfo::DetectorProperties::ConvertXToTicks(), tca::MatchStruct::Count, geo::CryostatID::Cryostat, tca::TrajPoint::CTP, DecodeCTP(), DeltaAngle(), tca::TjStuff::detprop, tca::TrajPoint3::Dir, EncodeCTP(), tca::TjStuff::geom, tca::SortEntry::index, MakeTp3(), tca::TjStuff::mallTraj, tca::TjStuff::Match3DCuts, tca::TjStuff::MaxPos0, tca::TjStuff::NumPlanes, geo::PlaneID::Plane, tca::TrajPoint::Pos, tca::TrajPoint3::Pos, SignalAtTp(), tca::MatchStruct::TjIDs, geo::TPCID::TPC, tca::TjStuff::UnitsPerTick, valDecreasings(), and geo::GeometryCore::WireCoordinate().
Referenced by FindPFParticles().
void tca::Finish3DShowers | ( | TjStuff & | tjs | ) |
Definition at line 131 of file TCShower.cxx.
References tca::TjStuff::allTraj, ChkAssns(), tca::TjStuff::cots, CreatePFP(), DecodeCTP(), evd::details::end(), GetAssns(), kKilled, kUsedHits, tca::TjStuff::pfps, geo::PlaneID::Plane, PutTrajHitsInVector(), tca::TjStuff::showers, ss, tca::TjStuff::TPCID, TransferTjHits(), tca::TjStuff::vtx, tca::TjStuff::vtx3, and tca::Trajectory::VtxID.
Referenced by tca::TrajClusterAlg::MakeAllTrajClusters().
void tca::Fit3D | ( | unsigned short | mode, |
Point3_t | point, | ||
Vector3_t | dir, | ||
Point3_t & | fitPos, | ||
Vector3_t & | fitDir | ||
) |
Definition at line 899 of file PFPUtils.cxx.
References SetMag().
Referenced by FindCompleteness().
bool tca::FitTp3 | ( | TjStuff & | tjs, |
TrajPoint3 & | tp3, | ||
const std::vector< Tj2Pt > & | tj2pts | ||
) |
Definition at line 502 of file PFPUtils.cxx.
References tca::TjStuff::allTraj, detinfo::DetectorProperties::ConvertTicksToX(), geo::CryostatID::Cryostat, DecodeCTP(), tca::TjStuff::detprop, tca::TrajPoint3::Dir, tca::TjStuff::geom, norm, geo::PlaneID::Plane, tca::TrajPoint3::Pos, PosSep(), PosSep2(), sw, geo::TPCID::TPC, tca::TjStuff::UnitsPerTick, w, geo::GeometryCore::WireCoordinate(), and x.
bool tca::FitTp3s | ( | TjStuff & | tjs, |
const std::vector< TrajPoint3 > & | tp3s, | ||
Point3_t & | pos, | ||
Vector3_t & | dir, | ||
float & | rCorr | ||
) |
Definition at line 412 of file PFPUtils.cxx.
References dir.
bool tca::FitTp3s | ( | TjStuff & | tjs, |
const std::vector< TrajPoint3 > & | tp3s, | ||
unsigned short | fromPt, | ||
unsigned short | toPt, | ||
Point3_t & | pos, | ||
Vector3_t & | dir, | ||
float & | rCorr | ||
) |
Definition at line 418 of file PFPUtils.cxx.
References tca::TjStuff::allTraj, detinfo::DetectorProperties::ConvertTicksToX(), geo::CryostatID::Cryostat, DecodeCTP(), tca::TjStuff::detprop, tca::TjStuff::geom, norm, tca::TjStuff::NumPlanes, geo::PlaneID::Plane, sw, geo::TPCID::TPC, tca::TjStuff::UnitsPerTick, w, geo::GeometryCore::WireCoordinate(), and x.
void tca::FitTraj | ( | TjStuff & | tjs, |
Trajectory & | tj | ||
) |
Definition at line 673 of file Utils.cxx.
References tca::Trajectory::EndPt, FitTraj(), and tca::Trajectory::Pts.
Referenced by tca::TrajClusterAlg::EndMerge(), tca::TrajClusterAlg::GottaKink(), tca::TrajClusterAlg::HiEndDelta(), tca::TrajClusterAlg::MaskBadTPs(), tca::TrajClusterAlg::MaskedHitsOK(), tca::TrajClusterAlg::PrepareForNextPass(), and tca::TrajClusterAlg::UpdateTraj().
void tca::FitTraj | ( | TjStuff & | tjs, |
Trajectory & | tj, | ||
unsigned short | originPt, | ||
unsigned short | npts, | ||
short | fitDir, | ||
TrajPoint & | tpFit | ||
) |
Definition at line 686 of file Utils.cxx.
References tca::TrajPoint::Ang, tca::TrajPoint::AngErr, tca::TrajPoint::AngleCode, AngleRange(), B, dir, tca::TrajPoint::Dir, tca::Trajectory::EndPt, tca::TrajPoint::FitChi, MoveTPToWire(), NumPtsWithCharge(), geo::origin(), tca::TrajPoint::Pos, tca::Trajectory::Pts, SetAngleCode(), w, x, xx, and y.
Referenced by FitTraj().
Definition at line 1946 of file TCVertex.cxx.
References tca::TjStuff::allTraj, tca::VtxStore::CTP, tca::VtxStore::ID, kFixed, kKilled, kNoFitToVx, kPhoton, and tca::VtxStore::Stat.
Referenced by AttachTrajToVertex(), tca::TrajClusterAlg::EndMerge(), Find2DVertices(), FindNeutralVertices(), MergeWithVertex(), and SplitTrajCrossingVertices().
Definition at line 1986 of file TCVertex.cxx.
References tca::TrajPoint::Ang, tca::TrajPoint::AngErr, tca::VtxStore::ChiDOF, tca::VtxStore::CTP, tca::TrajPoint::CTP, tca::TrajPoint::Dir, tca::VtxStore::ID, kOnDeadWire, tca::VtxStore::NTraj, tca::VtxStore::Pos, tca::TrajPoint::Pos, tca::VtxStore::PosErr, PrintHeader(), PrintPos(), PrintTrajPoint(), tca::VtxStore::Stat, tmp, tca::VtxStore::Topo, TrajIntersection(), TrajPointVertexPull(), tca::TjStuff::UnitsPerTick, and tca::TjStuff::Vertex2DCuts.
Definition at line 261 of file PFPUtils.cxx.
References tca::TjStuff::allTraj, detinfo::DetectorProperties::ConvertXToTicks(), geo::CryostatID::Cryostat, DecodeCTP(), tca::TjStuff::detprop, tca::PFPStruct::Dir, FindAlongTrans(), tca::TjStuff::geom, kEnvFlag, tca::TjStuff::NumPlanes, geo::PlaneID::Plane, PointDirection(), PosSep(), PosSep2(), SetMag(), tca::PFPStruct::TjIDs, tca::PFPStruct::Tp3s, geo::TPCID::TPC, tca::PFPStruct::TPCID, tca::TjStuff::UnitsPerTick, tca::TjStuff::vtx3, tca::PFPStruct::Vx3ID, geo::GeometryCore::WireCoordinate(), tca::TjStuff::WirePitch, and tca::PFPStruct::XYZ.
Referenced by DefinePFP().
std::vector< int > tca::GetAssns | ( | const TjStuff & | tjs, |
std::string | type1Name, | ||
int | id, | ||
std::string | type2Name | ||
) |
Definition at line 4079 of file Utils.cxx.
References tca::TjStuff::allTraj, tca::TjStuff::cots, evd::details::end(), kKilled, kMat3D, tca::TjStuff::pfps, SetIntersection(), tca::TjStuff::showers, ss, tmp, tca::TjStuff::vtx, and tca::TjStuff::vtx3.
Referenced by ChkVxTjs(), CompleteIncomplete3DVertices(), CompleteIncompleteShower(), DefineDontCluster(), DotProd(), FindCots(), FindNearbyTjs(), FindParent(), Finish3DShowers(), KillVerticesInShower(), tca::MCParticleListUtils::MakeCheatShower(), MergeNearby2DShowers(), ParentFOM(), tca::MCParticleListUtils::PrimaryElectronPFPID(), PrintAllTraj(), Reconcile3D(), SetParent(), and TagShowerLike().
int tca::GetCotID | ( | TjStuff & | tjs, |
int | ShowerTjID | ||
) |
Definition at line 4424 of file TCShower.cxx.
References tca::TjStuff::cots.
Referenced by MergeShowerTjsAndStore().
Definition at line 77 of file TCCR.cxx.
References tca::TjStuff::allTraj, tca::TCHit::ArtPtr, cheat::BackTrackerService::ChannelToTrackIDEs(), geo::CryostatID::Cryostat, tca::TjStuff::fHits, tca::TjStuff::geom, simb::MCTruth::Origin(), geo::origin(), tca::TCHit::PeakTime, geo::PlaneID::Plane, geo::GeometryCore::PlaneWireToChannel(), tca::Trajectory::Pts, tca::TCHit::RMS, tca::PFPStruct::TjIDs, geo::TPCID::TPC, cheat::ParticleInventoryService::TrackIdToMCTruth_P(), geo::WireID::Wire, and recob::Hit::WireID().
Referenced by SaveCRInfo().
unsigned short tca::GetPFPIndex | ( | const TjStuff & | tjs, |
int | tjID | ||
) |
Definition at line 1045 of file Utils.cxx.
References tca::TjStuff::pfps.
Referenced by DefinePFPParents(), DefinePFPParentsTestBeam(), and MergeAndStore().
Definition at line 3063 of file TCVertex.cxx.
References tca::TjStuff::allTraj, evd::details::end(), tca::PFPStruct::TjIDs, tmp, and tca::TjStuff::vtx.
int tca::GetStageNum | ( | ShowerTreeVars & | stv, |
std::string | stageName | ||
) |
Definition at line 185 of file TCShTree.cxx.
References tca::ShowerTreeVars::StageName.
Referenced by SaveTjInfo().
Definition at line 3022 of file TCVertex.cxx.
References tca::TjStuff::allTraj, tca::VtxStore::CTP, evd::details::end(), tca::VtxStore::ID, kKilled, and tmp.
Referenced by DefinePFPParentsTestBeam(), DefineTjParents(), GetVtxTjIDs(), Match3DVtxTjs(), MergeWithVertex(), PFPVxTjOK(), SetHighScoreBits(), SetVx2Score(), SharesHighScoreVx(), and SplitTrajCrossingVertices().
Definition at line 3039 of file TCVertex.cxx.
References GetVtxTjIDs(), tca::Vtx3Store::ID, tmp, and tca::TjStuff::vtx.
bool tca::HasDuplicateHits | ( | TjStuff const & | tjs, |
Trajectory const & | tj, | ||
bool | prt | ||
) |
Definition at line 2335 of file Utils.cxx.
References tca::TjStuff::fHits, kAllHits, PrintHit(), and PutTrajHitsInVector().
Referenced by tca::TrajClusterAlg::CheckTraj(), and MergeAndStore().
float tca::HitSep2 | ( | TjStuff & | tjs, |
unsigned int | iht, | ||
unsigned int | jht | ||
) |
Definition at line 2110 of file Utils.cxx.
References tca::TjStuff::fHits, and tca::TjStuff::UnitsPerTick.
Referenced by tca::TrajClusterAlg::FindJunkTraj().
float tca::HitsPosTick | ( | TjStuff & | tjs, |
const std::vector< unsigned int > & | hitsInMultiplet, | ||
float & | sum, | ||
HitStatus_t | hitRequest | ||
) |
Definition at line 3645 of file Utils.cxx.
References tca::TjStuff::fHits, kAllHits, kUnusedHits, and kUsedHits.
Referenced by DotProd(), HitsPosTime(), tca::TrajClusterAlg::ReconstructAllTraj(), and TrajHitsOK().
float tca::HitsPosTime | ( | TjStuff & | tjs, |
const std::vector< unsigned int > & | hitsInMultiplet, | ||
float & | sum, | ||
HitStatus_t | hitRequest | ||
) |
Definition at line 3639 of file Utils.cxx.
References HitsPosTick(), and tca::TjStuff::UnitsPerTick.
Referenced by DotProd().
float tca::HitsRMSTick | ( | TjStuff & | tjs, |
const std::vector< unsigned int > & | hitsInMultiplet, | ||
HitStatus_t | hitRequest | ||
) |
Definition at line 3613 of file Utils.cxx.
References tca::TjStuff::fHits, kAllHits, kUnusedHits, and kUsedHits.
Referenced by DotProd(), tca::TrajClusterAlg::FindUseHits(), HitsRMSTime(), and tca::TrajClusterAlg::ReconstructAllTraj().
float tca::HitsRMSTime | ( | TjStuff & | tjs, |
const std::vector< unsigned int > & | hitsInMultiplet, | ||
HitStatus_t | hitRequest | ||
) |
Definition at line 3607 of file Utils.cxx.
References HitsRMSTick(), and tca::TjStuff::UnitsPerTick.
Referenced by DotProd(), and tca::TrajClusterAlg::HitsTimeErr2().
double tca::InShowerProb | ( | double | showerEnergy, |
double | along, | ||
double | trans | ||
) |
float tca::InShowerProb | ( | const TjStuff & | tjs, |
const ShowerStruct3D & | ss3, | ||
const PFPStruct & | pfp | ||
) |
Definition at line 2172 of file TCShower.cxx.
References tca::TjStuff::allTraj, tca::ShowerStruct3D::CotIDs, tca::TjStuff::cots, tca::PFPStruct::ID, tca::ShowerStruct3D::ID, InShowerProb(), ss, and tca::PFPStruct::TjIDs.
float tca::InShowerProb | ( | const TjStuff & | tjs, |
const ShowerStruct & | ss, | ||
const Trajectory & | tj | ||
) |
Definition at line 2196 of file TCShower.cxx.
References tca::TjStuff::allTraj, tca::Trajectory::CTP, tca::ShowerStruct::CTP, DotProd(), FindAlongTrans(), tca::Trajectory::ID, tca::ShowerStruct::ID, PosSep(), tca::Trajectory::Pts, tca::ShowerStruct::ShowerTjID, and TrajTrajDOCA().
Referenced by InShowerProb(), and Reconcile3D().
double tca::InShowerProbLong | ( | double | showerEnergy, |
double | along | ||
) |
Definition at line 2118 of file TCShower.cxx.
References ShowerParams().
Referenced by FindParent(), InShowerProbParam(), MergeSubShowers(), ParentFOM(), and tca::TruthMatcher::StudyShowerParents().
double tca::InShowerProbParam | ( | double | showerEnergy, |
double | along, | ||
double | trans | ||
) |
Definition at line 2166 of file TCShower.cxx.
References InShowerProbLong(), and InShowerProbTrans().
double tca::InShowerProbTrans | ( | double | showerEnergy, |
double | along, | ||
double | trans | ||
) |
Definition at line 2152 of file TCShower.cxx.
References ShowerParamTransRMS().
Referenced by InShowerProbParam(), and MergeSubShowers().
bool tca::InsideTPC | ( | const TjStuff & | tjs, |
Point3_t & | pos, | ||
geo::TPCID & | inTPCID | ||
) |
Definition at line 2725 of file PFPUtils.cxx.
References geo::GeometryCore::DetHalfHeight(), geo::GeometryCore::DetHalfWidth(), geo::GeometryCore::DetLength(), tca::TjStuff::geom, geo::GeometryCore::IterateTPCIDs(), geo::TPCGeo::LocalToWorld(), and geo::GeometryCore::TPC().
Referenced by DotProd(), tca::TruthMatcher::MatchTruth(), and tca::TruthMatcher::StudyShowerParents().
bool tca::InTrajOK | ( | TjStuff & | tjs, |
std::string | someText | ||
) |
Definition at line 1199 of file Utils.cxx.
References AlgBitNames, tca::TjStuff::allTraj, evd::details::end(), tca::TjStuff::fHits, kKilled, kUsedHits, PrintHit(), PrintTrajectory(), PutTrajHitsInVector(), and tca::TjStuff::vtx.
Referenced by tca::TrajClusterAlg::FindVtxTraj(), tca::TrajClusterAlg::MakeAllTrajClusters(), tca::TrajClusterAlg::MakeJunkTraj(), and tca::TrajClusterAlg::ReconstructAllTraj().
Definition at line 3093 of file TCVertex.cxx.
References tca::TjStuff::Vertex2DCuts, VertexVertexPull(), and tca::TjStuff::vtx.
Referenced by Find2DVertices().
Definition at line 3110 of file TCVertex.cxx.
References tca::TjStuff::Vertex3DCuts, VertexVertexPull(), tca::TjStuff::vtx3, and tca::Vtx3Store::X.
bool tca::IsShowerLike | ( | const TjStuff & | tjs, |
const std::vector< int > | TjIDs | ||
) |
Definition at line 2071 of file TCShower.cxx.
References tca::TjStuff::allTraj, and kShowerLike.
Referenced by DefineDontCluster(), DefinePFPParents(), and PrintPFP().
void tca::KillPoorVertices | ( | TjStuff & | tjs, |
const geo::TPCID & | tpcid | ||
) |
Definition at line 2233 of file TCVertex.cxx.
References geo::CryostatID::Cryostat, DecodeCTP(), MakeVertexObsolete(), geo::TPCID::TPC, tca::TjStuff::Vertex2DCuts, tca::TjStuff::vtx, and tca::TjStuff::vtx3.
Referenced by tca::TrajClusterAlg::RunTrajClusterAlg().
void tca::KillVerticesInShower | ( | std::string | inFcnLabel, |
TjStuff & | tjs, | ||
ShowerStruct & | ss, | ||
bool | prt | ||
) |
Definition at line 767 of file TCShower.cxx.
References tca::TjStuff::allTraj, tca::ShowerStruct::CTP, tca::TjStuff::dontCluster, tca::ShowerStruct::Envelope, GetAssns(), tca::ShowerStruct::ID, kKillInShowerVx, MakeVertexObsolete(), PointInsideEnvelope(), tca::TjStuff::UseAlg, tca::TjStuff::vtx, and tca::TjStuff::vtx3.
Referenced by MergeShowersAndStore().
double tca::KinkAngle | ( | const TjStuff & | tjs, |
const std::vector< TrajPoint3 > & | tp3s, | ||
unsigned short | atPt, | ||
double | sep | ||
) |
Definition at line 1913 of file PFPUtils.cxx.
References DeltaAngle(), and PosSep2().
Referenced by DotProd(), FindKinks(), PrintTp3s(), and Split3DKink().
bool tca::LineLineIntersect | ( | Point3_t | p1, |
Point3_t | p2, | ||
Point3_t | p3, | ||
Point3_t | p4, | ||
Point3_t & | intersect, | ||
float & | doca | ||
) |
Definition at line 3435 of file Utils.cxx.
References tca::TrajPoint::Ang, detinfo::DetectorProperties::ConvertXToTicks(), tca::TrajPoint::CTP, DecodeCTP(), tca::TrajPoint::Delta, tca::TjStuff::detprop, tca::TrajPoint::Dir, tca::TjStuff::geom, tca::TjStuff::MaxPos0, norm, geo::PlaneID::Plane, tca::TrajPoint::Pos, tca::TjStuff::UnitsPerTick, and geo::GeometryCore::WireCoordinate().
Referenced by DotProd(), FindMissedTjsInTp3s(), FindNeutralVertices(), FindParent(), FindPFParticles(), FindShowerStart(), tca::MCParticleListUtils::MakeTruTrajPoint(), tca::TruthMatcher::MatchTruth(), PrintShowers(), SetParent(), and tca::TruthMatcher::StudyShowerParents().
bool tca::MakeBareTrajPoint | ( | const TjStuff & | tjs, |
unsigned int | fromHit, | ||
unsigned int | toHit, | ||
TrajPoint & | tp | ||
) |
Definition at line 3493 of file Utils.cxx.
References EncodeCTP(), tca::TjStuff::fHits, and MakeBareTrajPoint().
Referenced by DotProd(), tca::TrajClusterAlg::EndMerge(), tca::TrajClusterAlg::FillGaps(), tca::TrajClusterAlg::GottaKink(), MergeShowerChain(), ParentFOM(), and tca::TrajClusterAlg::StartTraj().
bool tca::MakeBareTrajPoint | ( | const TjStuff & | tjs, |
float | fromWire, | ||
float | fromTick, | ||
float | toWire, | ||
float | toTick, | ||
CTP_t | tCTP, | ||
TrajPoint & | tp | ||
) |
Definition at line 3502 of file Utils.cxx.
References tca::TrajPoint::Ang, tca::TrajPoint::CTP, tca::TrajPoint::Dir, norm, tca::TrajPoint::Pos, and tca::TjStuff::UnitsPerTick.
Definition at line 3518 of file Utils.cxx.
References tca::TrajPoint::Ang, tca::TrajPoint::Dir, PointDirection(), and tca::TrajPoint::Pos.
bool tca::MakeBareTrajPoint | ( | const TjStuff & | tjs, |
const TrajPoint & | tpIn1, | ||
const TrajPoint & | tpIn2, | ||
TrajPoint & | tpOut | ||
) |
Definition at line 3536 of file Utils.cxx.
References tca::TrajPoint::Ang, tca::TrajPoint::CTP, tca::TrajPoint::Dir, PointDirection(), and tca::TrajPoint::Pos.
Referenced by FindCloseTjs(), MakeBareTrajPoint(), SignalBetween(), TjDeltaRMS(), and UpdateVxEnvironment().
Definition at line 14 of file TCVertex.cxx.
References tca::TjStuff::allTraj, close(), tca::VtxStore::CTP, debug, DecodeCTP(), FindCloseTjs(), tca::VtxStore::ID, kFixed, kJunkTj, kJunkVx, kKilled, kShowerLike, tca::DebugStuff::Plane, geo::PlaneID::Plane, tca::VtxStore::Pos, tca::VtxStore::PosErr, PosSep(), tca::VtxStore::Score, SignalBetween(), tca::VtxStore::Stat, StoreVertex(), tca::DebugStuff::Tick, tca::VtxStore::Topo, TrajLength(), tca::TjStuff::UnitsPerTick, tca::TjStuff::UseAlg, tca::TjStuff::Vertex2DCuts, and tca::TjStuff::vtx.
Referenced by tca::TrajClusterAlg::ReconstructAllTraj().
void tca::MakeShowerObsolete | ( | std::string | inFcnLabel, |
TjStuff & | tjs, | ||
ShowerStruct3D & | ss3, | ||
bool | prt | ||
) |
Definition at line 3310 of file TCShower.cxx.
References tca::ShowerStruct3D::CotIDs, tca::TjStuff::cots, tca::ShowerStruct3D::ID, tca::ShowerStruct3D::PFPIndex, tca::TjStuff::pfps, and ss.
void tca::MakeShowerObsolete | ( | std::string | inFcnLabel, |
TjStuff & | tjs, | ||
ShowerStruct & | ss, | ||
bool | prt | ||
) |
Definition at line 3334 of file TCShower.cxx.
References tca::Trajectory::AlgMod, tca::TjStuff::allTraj, tca::ShowerStruct::ID, kKilled, kMergeNrShowers, kMergeOverlap, kMergeShChain, kMergeSubShowers, kShwrParent, MakeTrajectoryObsolete(), tca::TjStuff::showers, tca::ShowerStruct::ShowerTjID, tca::ShowerStruct::SS3ID, tca::Trajectory::SSID, and tca::ShowerStruct::TjIDs.
Referenced by CompleteIncompleteShower(), FindShowers3D(), Match2DShowers(), MergeShowers(), Reconcile3D(), and RemoveTj().
bool tca::MakeTp3 | ( | TjStuff & | tjs, |
const TrajPoint & | itp, | ||
const TrajPoint & | jtp, | ||
TrajPoint3 & | tp3, | ||
bool | findDirection | ||
) |
Definition at line 1526 of file PFPUtils.cxx.
References tca::TrajPoint::Chg, detinfo::DetectorProperties::ConvertTicksToX(), detinfo::DetectorProperties::ConvertXToTicks(), tca::TrajPoint::CTP, DecodeCTP(), tca::TrajPoint3::dEdx, den, tca::TjStuff::detprop, tca::TrajPoint::Dir, tca::TrajPoint3::Dir, tca::TjStuff::geom, tca::TrajPoint::Pos, tca::TrajPoint3::Pos, PosSep(), tca::TjStuff::UnitsPerTick, and geo::GeometryCore::WireCoordinate().
Referenced by FindCompleteness(), FindXMatches(), Match2DShowers(), and UpdateShower().
void tca::MakeTrajectoryObsolete | ( | TjStuff & | tjs, |
unsigned int | itj | ||
) |
Definition at line 1797 of file Utils.cxx.
References tca::TjStuff::allTraj, tca::TjStuff::fHits, and kKilled.
Referenced by MakeShowerObsolete(), MergeAndStore(), MergePFPTjs(), and MergeShowersAndStore().
Definition at line 2917 of file TCVertex.cxx.
References tca::TjStuff::allTraj, tca::VtxStore::CTP, DecodeCTP(), evd::details::end(), tca::VtxStore::ID, tca::Vtx3Store::ID, kEnvOverlap, kHiVx3Score, kKilled, kPhoton, kTjHiVx3Score, tca::TjStuff::NumPlanes, tca::TjStuff::pfps, geo::PlaneID::Plane, tca::VtxStore::Pos, SetVx3Score(), tca::TjStuff::Vertex2DCuts, tca::TjStuff::vtx, tca::TjStuff::vtx3, tca::Vtx3Store::Vx2ID, tca::VtxStore::Vx3ID, and tca::Vtx3Store::Wire.
Referenced by CheckTrajBeginChg(), ChkVxTjs(), CompleteIncomplete3DVertices(), KillPoorVertices(), KillVerticesInShower(), MakeVertexObsolete(), MergeAndStore(), MergePFPTjs(), SplitTrajCrossingVertices(), and TagShowerLike().
Definition at line 3001 of file TCVertex.cxx.
References tca::Vtx3Store::ID, MakeVertexObsolete(), tca::TjStuff::vtx, tca::TjStuff::vtx3, and tca::Vtx3Store::Vx2ID.
void tca::Match2DShowers | ( | std::string | inFcnLabel, |
TjStuff & | tjs, | ||
const geo::TPCID & | tpcid, | ||
bool | prt | ||
) |
Definition at line 947 of file TCShower.cxx.
References tca::TjStuff::allTraj, tca::ShowerStruct3D::ChgPos, ChkAssns(), CompleteIncompleteShower(), tca::ShowerStruct3D::CotIDs, tca::TjStuff::cots, CreateSS3(), geo::CryostatID::Cryostat, tca::ShowerStruct::CTP, DecodeCTP(), tca::TrajPoint3::Dir, tca::ShowerStruct3D::Dir, tca::ShowerStruct::Energy, tca::ShowerStruct3D::Energy, greaterThan(), tca::ShowerStruct::ID, tca::ShowerStruct3D::ID, tca::SortEntry::index, MakeShowerObsolete(), MakeTp3(), Match3DFOM(), tca::ShowerStruct3D::MatchFOM, tca::TjStuff::NumPlanes, tca::ShowerStruct3D::PFPIndex, geo::PlaneID::Plane, tca::TrajPoint3::Pos, PosSep(), PrintShowers(), tca::Trajectory::Pts, Reconcile3D(), tca::TjStuff::showers, tca::ShowerStruct::ShowerTjID, ss, tca::ShowerStruct::SS3ID, StoreShower(), tca::ShowerStruct::TjIDs, geo::TPCID::TPC, and UpdateShower().
Referenced by FindShowers3D().
float tca::Match3DFOM | ( | std::string | inFcnLabel, |
TjStuff & | tjs, | ||
ShowerStruct3D & | ss3, | ||
bool | prt | ||
) |
Definition at line 1417 of file TCShower.cxx.
References tca::ShowerStruct3D::CotIDs, and Match3DFOM().
float tca::Match3DFOM | ( | std::string | inFcnLabel, |
TjStuff & | tjs, | ||
int | icid, | ||
int | jcid, | ||
int | kcid, | ||
bool | prt | ||
) |
Definition at line 1434 of file TCShower.cxx.
References tca::TjStuff::cots, and Match3DFOM().
float tca::Match3DFOM | ( | std::string | inFcnLabel, |
TjStuff & | tjs, | ||
int | icid, | ||
int | jcid, | ||
bool | prt | ||
) |
Definition at line 1449 of file TCShower.cxx.
References tca::TjStuff::allTraj, detinfo::DetectorProperties::ConvertTicksToX(), tca::TjStuff::cots, DecodeCTP(), tca::TjStuff::detprop, and tca::TjStuff::UnitsPerTick.
Referenced by Match2DShowers(), and Match3DFOM().
void tca::Match3DVtxTjs | ( | TjStuff & | tjs, |
const geo::TPCID & | tpcid, | ||
bool | prt | ||
) |
Definition at line 1506 of file TCVertex.cxx.
References tca::TjStuff::allTraj, AnalyzePFP(), CreatePFP(), DefinePFP(), tca::PFPStruct::Dir, GetVtxTjIDs(), tca::PFPStruct::ID, tca::SortEntry::index, kKilled, kMat3D, tca::TjStuff::matchVec, tca::PFPStruct::MatchVecIndex, tca::TjStuff::NumPlanes, tca::PFPStruct::PDGCode, PDGCodeVote(), PrintPFP(), SetDifference(), SetIntersection(), Split3DKink(), StorePFP(), tca::PFPStruct::TjIDs, tmp, tca::SortEntry::val, valDecreasing(), tca::TjStuff::Vertex2DCuts, tca::TjStuff::vtx3, tca::PFPStruct::Vx3ID, and tca::PFPStruct::XYZ.
Referenced by FindPFParticles().
unsigned short tca::MatchVecIndex | ( | const TjStuff & | tjs, |
int | tjID | ||
) |
float tca::MaxChargeAsymmetry | ( | TjStuff & | tjs, |
std::vector< int > & | tjIDs | ||
) |
Definition at line 235 of file Utils.cxx.
References tca::TjStuff::allTraj, DecodeCTP(), tca::TjStuff::NumPlanes, geo::PlaneID::Plane, and UpdateTjChgProperties().
float tca::MaxHitDelta | ( | TjStuff & | tjs, |
Trajectory & | tj | ||
) |
Definition at line 2649 of file Utils.cxx.
References PointTrajDOCA(), and tca::Trajectory::Pts.
Referenced by tca::TrajClusterAlg::CheckHiMultUnusedHits(), and tca::TrajClusterAlg::FillGaps().
float tca::MaxTjLen | ( | TjStuff const & | tjs, |
std::vector< int > & | tjIDs | ||
) |
Definition at line 2189 of file Utils.cxx.
References tca::TjStuff::allTraj, and PosSep2().
Referenced by DefinePFP(), and FindPFParticles().
short tca::MCSMom | ( | const TjStuff & | tjs, |
const std::vector< int > & | tjIDs | ||
) |
Definition at line 2837 of file Utils.cxx.
References tca::TjStuff::allTraj.
Referenced by tca::TrajClusterAlg::CheckTraj(), DefinePFP(), DotProd(), tca::TrajClusterAlg::FillGaps(), FindCots(), FindHammerVertices2(), FindParent(), FindPFParticles(), tca::TrajClusterAlg::FindSoftKink(), tca::TrajClusterAlg::GottaKink(), tca::TrajClusterAlg::IsGhost(), MergeNearby2DShowers(), MergePFPTjs(), MergeSubShowersTj(), tca::TruthMatcher::StudyElectrons(), tca::TruthMatcher::StudyShowerParents(), and tca::TrajClusterAlg::UpdateTraj().
short tca::MCSMom | ( | TjStuff & | tjs, |
Trajectory & | tj | ||
) |
Definition at line 2853 of file Utils.cxx.
References tca::Trajectory::EndPt, and MCSMom().
short tca::MCSMom | ( | TjStuff & | tjs, |
Trajectory & | tj, | ||
unsigned short | firstPt, | ||
unsigned short | lastPt | ||
) |
Definition at line 2859 of file Utils.cxx.
References tca::Trajectory::AlgMod, tca::Trajectory::EndPt, kJunkTj, MCSThetaRMS(), NearestPtWithChg(), NumPtsWithCharge(), tca::Trajectory::Pts, and TrajPointSeparation().
Referenced by MCSMom(), PrintPFP(), and SetPDGCode().
float tca::MCSThetaRMS | ( | TjStuff & | tjs, |
Trajectory & | tj | ||
) |
Definition at line 2907 of file Utils.cxx.
References tca::Trajectory::EndPt, MCSThetaRMS(), tca::Trajectory::Pts, and TrajPointSeparation().
Referenced by DotProd(), tca::TrajClusterAlg::EndMerge(), and tca::TrajClusterAlg::GottaKink().
double tca::MCSThetaRMS | ( | TjStuff & | tjs, |
Trajectory & | tj, | ||
unsigned short | firstPt, | ||
unsigned short | lastPt | ||
) |
Definition at line 2921 of file Utils.cxx.
References tca::Trajectory::EndPt, tca::Trajectory::MCSMom, NearestPtWithChg(), tca::Trajectory::Pts, TjDeltaRMS(), and TrajPointSeparation().
Referenced by MCSMom(), and MCSThetaRMS().
bool tca::MergeAndStore | ( | TjStuff & | tjs, |
unsigned int | itj1, | ||
unsigned int | itj2, | ||
bool | doPrt | ||
) |
Not allowed
Definition at line 3896 of file Utils.cxx.
References tca::Trajectory::AlgMod, tca::TjStuff::allTraj, tca::Trajectory::EndPt, GetPFPIndex(), HasDuplicateHits(), tca::Trajectory::ID, kBragg, kDeltaRay, kKilled, kMichel, kShowerTj, MakeTrajectoryObsolete(), MakeVertexObsolete(), MergeShowerTjsAndStore(), tca::Trajectory::ParentID, PosSep2(), PrintPos(), PrintTrajectory(), tca::Trajectory::Pts, ReverseTraj(), SetEndPoints(), SetPDGCode(), tca::Trajectory::StepDir, tca::Trajectory::StopFlag, StoreTraj(), TrajPointTrajDOCA(), UpdateMatchStructs(), tca::TjStuff::vtx, tca::Trajectory::VtxID, and tca::Trajectory::WorkID.
Referenced by ChkVxTjs(), DotProd(), tca::TrajClusterAlg::EndMerge(), and MergeTjIntoPFP().
Definition at line 1830 of file Utils.cxx.
References tca::TjStuff::allTraj, tca::TjStuff::fHits, kAllHits, kKilled, kMrgGhost, PutTrajHitsInVector(), and tca::TjStuff::UseAlg.
void tca::MergeNearby2DShowers | ( | std::string | inFcnLabel, |
TjStuff & | tjs, | ||
const CTP_t & | inCTP, | ||
bool | prt | ||
) |
Definition at line 2443 of file TCShower.cxx.
References AddTj(), tca::Trajectory::AlgMod, tca::TjStuff::allTraj, ChkAssns(), tca::TjStuff::cots, tca::ShowerStruct::CTP, DontCluster(), GetAssns(), tca::ShowerStruct::ID, kMat3D, kMergeNrShowers, MCSMom(), MergeShowersAndStore(), tca::ShowerStruct::NearTjIDs, tca::TjStuff::pfps, SetIntersection(), tca::ShowerStruct::ShowerTjID, ss, tca::ShowerStruct::TjIDs, and tca::TjStuff::UseAlg.
Referenced by FindShowers3D().
Definition at line 2530 of file TCShower.cxx.
References tca::Trajectory::AlgMod, tca::TjStuff::allTraj, ChkAssns(), close(), tca::TjStuff::cots, DontCluster(), DotProd(), kMergeOverlap, MergeShowersAndStore(), PointInsideEnvelope(), PosSep(), PosSep2(), tca::TjStuff::ShowerTag, and tca::TjStuff::UseAlg.
Referenced by cluster::ClusterCrawlerAlg::ClusterLoop(), and FindShowers3D().
Definition at line 1174 of file PFPUtils.cxx.
References tca::Trajectory::AlgMod, tca::TjStuff::allTraj, geo::CryostatID::Cryostat, tca::Trajectory::CTP, DecodeCTP(), EncodeCTP(), evd::details::end(), tca::TjStuff::EventsProcessed, tca::TjStuff::geom, tca::Trajectory::ID, tca::PFPStruct::ID, kMat3DMerge, MakeTrajectoryObsolete(), MakeVertexObsolete(), tca::Trajectory::MCSMom, MCSMom(), geo::TPCGeo::Nplanes(), geo::PlaneID::Plane, PrintPFP(), tca::Trajectory::Pts, ReverseTraj(), SetEndPoints(), SetPDGCode(), tca::Trajectory::SSID, tca::Trajectory::StepDir, StoreTraj(), tca::PFPStruct::TjIDs, tca::PFPStruct::Tp3s, geo::TPCID::TPC, geo::GeometryCore::TPC(), tca::PFPStruct::TPCID, UpdateMatchStructs(), UpdateTp3s(), tca::TjStuff::vtx, and tca::Trajectory::VtxID.
Referenced by DefinePFP().
Definition at line 2642 of file TCShower.cxx.
References tca::TjStuff::allTraj, ChkAssns(), tca::TjStuff::cots, tca::ShowerStruct::CTP, DontCluster(), tca::ShowerStruct::Energy, tca::ShowerStruct::ID, kMergeShChain, lessThan(), MakeBareTrajPoint(), MergeShowers(), PointTrajDOCA(), PosSep(), PrintPos(), tca::ShowerStruct::ShowerTjID, tca::ShowerStruct::TjIDs, and tca::TjStuff::UseAlg.
Referenced by FindShowers3D().
int tca::MergeShowers | ( | std::string | inFcnLabel, |
TjStuff & | tjs, | ||
std::vector< int > | ssIDs, | ||
bool | prt | ||
) |
Definition at line 2985 of file TCShower.cxx.
References tca::TjStuff::allTraj, tca::TjStuff::cots, CreateSS(), kKilled, MakeShowerObsolete(), ss, StoreShower(), and UpdateShower().
Referenced by MergeShowerChain().
bool tca::MergeShowersAndStore | ( | std::string | inFcnLabel, |
TjStuff & | tjs, | ||
int | icotID, | ||
int | jcotID, | ||
bool | prt | ||
) |
Definition at line 3053 of file TCShower.cxx.
References tca::TjStuff::allTraj, tca::TjStuff::cots, tca::ShowerStruct::CTP, tca::Trajectory::ID, tca::ShowerStruct::ID, KillVerticesInShower(), MakeTrajectoryObsolete(), tca::ShowerStruct::NearTjIDs, tca::ShowerStruct::NeedsUpdate, tca::Trajectory::Pts, tca::ShowerStruct::ShowerTjID, tca::ShowerStruct::ShPts, tca::ShowerStruct::SS3ID, tca::ShowerStruct::TjIDs, tca::ShowerStruct::TruParentID, and UpdateShower().
Referenced by MergeNearby2DShowers(), MergeOverlap(), MergeShowerTjsAndStore(), MergeSubShowers(), and Reconcile3D().
bool tca::MergeShowerTjsAndStore | ( | TjStuff & | tjs, |
unsigned short | istj, | ||
unsigned short | jstj, | ||
bool | prt | ||
) |
Definition at line 3128 of file TCShower.cxx.
References tca::Trajectory::AlgMod, tca::TjStuff::allTraj, tca::TjStuff::cots, GetCotID(), tca::Trajectory::ID, tca::ShowerStruct::ID, kShowerTj, MergeShowersAndStore(), and tca::ShowerStruct::TjIDs.
Referenced by MergeAndStore().
Definition at line 2878 of file TCShower.cxx.
References tca::Trajectory::AlgMod, tca::TjStuff::allTraj, tca::ShowerStruct::AspectRatio, ChkAssns(), tca::TjStuff::cots, tca::TrajPoint::Dir, DontCluster(), tca::ShowerStruct::Energy, FindAlongTrans(), greaterThan(), tca::ShowerStruct::ID, tca::SortEntry::index, InShowerProbLong(), InShowerProbTrans(), kMergeSubShowers, MergeShowersAndStore(), PointTrajDOCA(), tca::TrajPoint::Pos, PosSep(), ShowerParams(), tca::TjStuff::ShowerTag, tca::ShowerStruct::ShowerTjID, ss, tca::ShowerStruct::TjIDs, tca::TjStuff::UseAlg, and tca::TjStuff::WirePitch.
Referenced by FindShowers3D().
void tca::MergeSubShowersTj | ( | std::string | inFcnLabel, |
TjStuff & | tjs, | ||
const CTP_t & | inCTP, | ||
bool | prt | ||
) |
Definition at line 2768 of file TCShower.cxx.
References AddTj(), tca::TjStuff::allTraj, ChgToMeV(), ChkAssns(), tca::TjStuff::cots, DontCluster(), FarEnd(), kKilled, kMergeSubShowersTj, mat, MCSMom(), NumPtsWithCharge(), PointTrajDOCA(), PosSep(), tca::TjStuff::ShowerTag, ss, and tca::TjStuff::UseAlg.
Referenced by FindShowers3D().
Definition at line 428 of file Utils.cxx.
References tca::TjStuff::allTraj, MergeAndStore(), and tca::PFPStruct::TjIDs.
void tca::MergeTjList | ( | std::vector< std::vector< int >> & | tjList | ) |
Definition at line 1494 of file TCShower.cxx.
void tca::MergeTjList2 | ( | std::string | inFcnLabel, |
TjStuff & | tjs, | ||
std::vector< std::vector< int >> & | tjList, | ||
bool | prt | ||
) |
Definition at line 544 of file TCVertex.cxx.
References tca::TjStuff::allTraj, tca::VtxStore::ChiDOF, CloseEnd(), tca::VtxStore::CTP, evd::details::end(), FitVertex(), GetVtxTjIDs(), tca::VtxStore::ID, tca::SortEntry::index, kFixed, kKilled, kVtxMerged, kVxMerge, NearestPtWithChg(), NumPtsWithCharge(), tca::VtxStore::Pos, tca::VtxStore::PosErr, PrintPos(), SetVx2Score(), tca::VtxStore::Stat, tmp, tca::TjStuff::UseAlg, valDecreasing(), and tca::TjStuff::vtx.
Referenced by Find2DVertices().
void tca::MoveTPToWire | ( | TrajPoint & | tp, |
float | wire | ||
) |
Definition at line 2351 of file Utils.cxx.
References tca::TrajPoint::Dir, and tca::TrajPoint::Pos.
Referenced by tca::TrajClusterAlg::AddHits(), Find2DVertices(), FindCloseTjs(), FindHammerVertices2(), tca::TrajClusterAlg::FindVtxTraj(), FitTraj(), tca::TrajClusterAlg::IsGhost(), and tca::TrajClusterAlg::ReversePropagate().
unsigned short tca::NearestPtWithChg | ( | TjStuff & | tjs, |
Trajectory & | tj, | ||
unsigned short | thePt | ||
) |
Definition at line 2889 of file Utils.cxx.
References tca::Trajectory::EndPt, and tca::Trajectory::Pts.
Referenced by DotProd(), Find2DVertices(), MCSMom(), MCSThetaRMS(), MergeWithVertex(), and TjDeltaRMS().
int tca::NeutrinoPrimaryTjID | ( | const TjStuff & | tjs, |
const Trajectory & | tj | ||
) |
Definition at line 363 of file Utils.cxx.
References tca::Trajectory::AlgMod, tca::TjStuff::allTraj, evd::details::end(), kKilled, tca::Trajectory::ParentID, PrimaryID(), tca::TjStuff::vtx, and tca::TjStuff::vtx3.
Referenced by AddTjsInsideEnvelope(), and PrintAllTraj().
unsigned short tca::NumDeltaRays | ( | const TjStuff & | tjs, |
const Trajectory & | tj | ||
) |
Definition at line 335 of file Utils.cxx.
References tca::TjStuff::allTraj, tca::Trajectory::ID, kDeltaRay, and kKilled.
unsigned short tca::NumDeltaRays | ( | const TjStuff & | tjs, |
std::vector< int > & | tjIDs | ||
) |
Definition at line 348 of file Utils.cxx.
References tca::TjStuff::allTraj, kDeltaRay, and kKilled.
Referenced by PDGCodeVote().
unsigned short tca::NumHitsInTP | ( | const TrajPoint & | tp, |
HitStatus_t | hitRequest | ||
) |
Definition at line 3677 of file Utils.cxx.
References tca::TrajPoint::Hits, kAllHits, kUsedHits, and tca::TrajPoint::UseHit.
Referenced by tca::TrajClusterAlg::AddHits(), tca::TrajClusterAlg::CheckHiMultUnusedHits(), DotProd(), and tca::TrajClusterAlg::MergeTPHits().
unsigned short tca::NumPtsWithCharge | ( | const TjStuff & | tjs, |
const Trajectory & | tj, | ||
bool | includeDeadWires | ||
) |
Definition at line 1738 of file Utils.cxx.
References tca::Trajectory::EndPt, and NumPtsWithCharge().
Referenced by AnalyzePFP(), tca::TrajClusterAlg::CheckHiMultUnusedHits(), tca::TrajClusterAlg::CheckTraj(), CompleteIncomplete3DVertices(), tca::TrajClusterAlg::EndMerge(), FillmAllTraj(), FindCots(), FindHammerVertices2(), tca::TrajClusterAlg::FindVtxTraj(), tca::TrajClusterAlg::FixTrajBegin(), tca::TrajClusterAlg::FixTrajEnd(), MergeSubShowersTj(), MergeWithVertex(), tca::TrajClusterAlg::ReconstructAllTraj(), SplitTrajCrossingVertices(), tca::TrajClusterAlg::StepCrawl(), TagShowerLike(), and tca::TrajClusterAlg::UpdateTraj().
unsigned short tca::NumPtsWithCharge | ( | const TjStuff & | tjs, |
const Trajectory & | tj, | ||
bool | includeDeadWires, | ||
unsigned short | firstPt, | ||
unsigned short | lastPt | ||
) |
Definition at line 1746 of file Utils.cxx.
References DeadWireCount(), and tca::Trajectory::Pts.
Referenced by FitTraj(), MCSMom(), NumPtsWithCharge(), and TrimEndPts().
unsigned short tca::NumUsedHitsInTj | ( | const TjStuff & | tjs, |
const Trajectory & | tj | ||
) |
Definition at line 3665 of file Utils.cxx.
References tca::Trajectory::AlgMod, kKilled, and tca::Trajectory::Pts.
Referenced by DotProd().
float tca::OverlapFraction | ( | TjStuff & | tjs, |
const Trajectory & | tj1, | ||
const Trajectory & | tj2 | ||
) |
Definition at line 584 of file Utils.cxx.
References tca::Trajectory::Pts.
Referenced by CompatibleMerge(), and tca::TrajClusterAlg::EndMerge().
float tca::ParentFOM | ( | std::string | inFcnLabel, |
TjStuff & | tjs, | ||
PFPStruct & | pfp, | ||
unsigned short | pend, | ||
ShowerStruct3D & | ss3, | ||
bool | prt | ||
) |
Definition at line 2238 of file TCShower.cxx.
References tca::TjStuff::allTraj, tca::ShowerStruct3D::CotIDs, tca::TjStuff::cots, FarEnd(), tca::PFPStruct::ID, tca::ShowerStruct3D::ID, ParentFOM(), PosSep2(), ss, and tca::PFPStruct::TjIDs.
float tca::ParentFOM | ( | std::string | inFcnLabel, |
TjStuff & | tjs, | ||
Trajectory & | tj, | ||
unsigned short & | tjEnd, | ||
ShowerStruct & | ss, | ||
float & | tp1Sep, | ||
float & | vx2Score, | ||
bool | prt | ||
) |
Definition at line 2280 of file TCShower.cxx.
References tca::TjStuff::allTraj, tca::TrajPoint::Ang, tca::ShowerStruct::AspectRatio, ChgFracBetween(), ChgFracNearPos(), DeltaAngle(), tca::TrajPoint::DeltaRMS, tca::TrajPoint::Dir, tca::ShowerStruct::DirectionFOM, tca::Trajectory::EndPt, tca::ShowerStruct::Energy, FarEnd(), FindAlongTrans(), GetAssns(), tca::VtxStore::ID, tca::Trajectory::ID, tca::ShowerStruct::ID, InShowerProbLong(), MakeBareTrajPoint(), tca::VtxStore::Pos, tca::TrajPoint::Pos, PosSep(), PrintPos(), tca::Trajectory::Pts, tca::VtxStore::Score, ShowerParams(), tca::ShowerStruct::ShowerTjID, tca::ShowerStruct::TjIDs, tca::TjStuff::vtx, tca::Trajectory::VtxID, and tca::TjStuff::WirePitch.
Referenced by ParentFOM(), and SetParent().
unsigned short tca::PDGCodeIndex | ( | TjStuff & | tjs, |
int | PDGCode | ||
) |
Definition at line 1783 of file Utils.cxx.
Referenced by tca::TruthMatcher::MatchAndSum(), tca::TruthMatcher::MatchTruth(), and tca::TruthMatcher::StudyElectrons().
int tca::PDGCodeVote | ( | TjStuff & | tjs, |
std::vector< int > & | tjIDs, | ||
bool | prt | ||
) |
Definition at line 267 of file Utils.cxx.
References tca::TjStuff::allTraj, evd::details::end(), kBragg, kShowerLike, NumDeltaRays(), and TrajLength().
Referenced by DefinePFPParents(), FindPFParticles(), and Match3DVtxTjs().
float tca::PFPDOCA | ( | const PFPStruct & | pfp1, |
const PFPStruct & | pfp2, | ||
unsigned short & | close1, | ||
unsigned short & | close2 | ||
) |
Definition at line 1761 of file PFPUtils.cxx.
References PosSep2(), and tca::PFPStruct::Tp3s.
Referenced by DefineDontCluster(), DotProd(), and FindCots().
void tca::PFPVertexCheck | ( | TjStuff & | tjs | ) |
Definition at line 2418 of file PFPUtils.cxx.
References tca::Vtx3Store::ID, tca::TjStuff::pfps, tca::Vtx3Store::Primary, tca::Vtx3Store::TPCID, geo::TPCID::TPCID(), tca::TjStuff::vtx3, tca::Vtx3Store::Wire, tca::Vtx3Store::X, tca::Vtx3Store::Y, and tca::Vtx3Store::Z.
Referenced by DotProd(), and tca::TrajClusterAlg::RunTrajClusterAlg().
Definition at line 2283 of file PFPUtils.cxx.
References tca::TjStuff::allTraj, GetVtxTjIDs(), tca::PFPStruct::ID, SetIntersection(), tca::PFPStruct::TjIDs, tmp, tca::TjStuff::vtx, tca::TjStuff::vtx3, and tca::PFPStruct::Vx3ID.
Referenced by AddMissedTj(), AnalyzePFP(), DefinePFP(), and DotProd().
Definition at line 1614 of file PFPUtils.cxx.
Referenced by ChgFracBetween(), CreateFakePFP(), DefineDontCluster(), DotProd(), FindAlongTrans(), FindParent(), FollowTp3s(), tca::TruthMatcher::StudyShowerParents(), and UpdateShower().
bool tca::PointDirIntersect | ( | Point3_t | p1, |
Vector3_t | p1Dir, | ||
Point3_t | p2, | ||
Vector3_t | p2Dir, | ||
Point3_t & | intersect, | ||
float & | doca | ||
) |
Definition at line 2769 of file PFPUtils.cxx.
References LineLineIntersect().
Referenced by DotProd(), and FindNeutralVertices().
Definition at line 2705 of file Utils.cxx.
References DeltaAngle().
Referenced by AddLooseHits(), AddTjsInsideEnvelope(), FindNearbyTjs(), KillVerticesInShower(), and MergeOverlap().
Definition at line 2139 of file Utils.cxx.
References tca::TjStuff::fHits, PointTrajDOCA2(), and tca::TjStuff::UnitsPerTick.
Referenced by tca::TrajClusterAlg::AddHits(), tca::TrajClusterAlg::CheckHiMultUnusedHits(), ChkVxTjs(), CompleteIncomplete3DVerticesInGaps(), tca::TrajClusterAlg::EndMerge(), tca::TrajClusterAlg::FillGaps(), FindHammerVertices2(), FindNearbyTjs(), tca::TrajClusterAlg::FindUseHits(), tca::TrajClusterAlg::FixTrajBegin(), tca::TrajClusterAlg::FixTrajEnd(), tca::TrajClusterAlg::HiEndDelta(), tca::TrajClusterAlg::MaskTrajEndPoints(), MergeShowerChain(), MergeSubShowers(), MergeSubShowersTj(), SplitTrajCrossingVertices(), TrajPointVertexPull(), tca::TrajClusterAlg::UpdateDeltaRMS(), tca::TrajClusterAlg::UpdateTraj(), and VtxHitsSwap().
Definition at line 2147 of file Utils.cxx.
References PointTrajDOCA2().
Referenced by CompatibleMerge(), FindCloseHits(), MaxHitDelta(), and TagDeltaRays().
Definition at line 2153 of file Utils.cxx.
References tca::TrajPoint::Dir, and tca::TrajPoint::Pos.
Referenced by PointTrajDOCA(), and TjDeltaRMS().
float tca::PointTrajSep2 | ( | float | wire, |
float | time, | ||
TrajPoint const & | tp | ||
) |
Definition at line 2131 of file Utils.cxx.
References tca::TrajPoint::Pos.
void tca::PosInPlane | ( | const TjStuff & | tjs, |
const Vtx3Store & | vx3, | ||
unsigned short | plane, | ||
Point2_t & | pos | ||
) |
Definition at line 3083 of file TCVertex.cxx.
References detinfo::DetectorProperties::ConvertXToTicks(), geo::CryostatID::Cryostat, tca::TjStuff::detprop, tca::TjStuff::geom, geo::TPCID::TPC, tca::Vtx3Store::TPCID, tca::TjStuff::UnitsPerTick, geo::GeometryCore::WireCoordinate(), tca::Vtx3Store::X, tca::Vtx3Store::Y, and tca::Vtx3Store::Z.
Referenced by AttachPFPToVertex(), and PrintAllTraj().
Definition at line 1625 of file PFPUtils.cxx.
References PosSep2().
Referenced by ChgFracBetween(), ChkVxTjs(), DefineDontCluster(), DefineEnvelope(), DefinePFP(), DotProd(), tca::TrajClusterAlg::EndMerge(), Find2DVertices(), FindAlongTrans(), FindCots(), FindHammerVertices2(), FindMissedTjsInTp3s(), FindNeutralVertices(), FindParent(), FindShowers3D(), FindShowerStart(), FitTp3(), FollowTp3s(), InShowerProb(), LineLineIntersect(), tca::MCParticleListUtils::MakeCheatShower(), MakeJunkVertices(), MakeTp3(), Match2DShowers(), tca::TruthMatcher::MatchTruth(), MergeOverlap(), MergeShowerChain(), MergeSubShowers(), MergeSubShowersTj(), ParentFOM(), PrintTp3s(), Reconcile3D(), tca::TruthMatcher::StudyElectrons(), tca::TruthMatcher::StudyShowerParents(), TagShowerLike(), and UpdateShower().
Definition at line 2220 of file Utils.cxx.
References PosSep2().
Referenced by CompatibleMerge(), PrintPFP(), TagDeltaRays(), and TjDirFOM().
Definition at line 1631 of file PFPUtils.cxx.
Referenced by AttachTrajToVertex(), DotProd(), tca::TrajClusterAlg::EndMerge(), FarEnd(), Find2DVertices(), FindKinks(), FindParent(), FitTp3(), FollowTp3s(), KinkAngle(), LengthInCTP(), tca::TrajClusterAlg::MakeAllTrajClusters(), MergeOverlap(), ParentFOM(), PFPDOCA(), PosSep(), tca::MCParticleListUtils::PrimaryElectronPFPID(), tca::TrajClusterAlg::StepCrawl(), tca::TruthMatcher::StudyShowerParents(), TrajPointVertexPull(), UpdateShower(), and tca::TrajClusterAlg::UseUnusedHits().
Definition at line 2226 of file Utils.cxx.
Referenced by CloseEnd(), FarEnd(), MaxTjLen(), MergeAndStore(), and PosSep().
int tca::PrimaryID | ( | const TjStuff & | tjs, |
const Trajectory & | tj | ||
) |
Definition at line 385 of file Utils.cxx.
References tca::Trajectory::AlgMod, tca::TjStuff::allTraj, tca::Trajectory::ID, kKilled, and tca::Trajectory::ParentID.
Definition at line 404 of file Utils.cxx.
References tca::PFPStruct::ID, tca::PFPStruct::ParentID, and tca::TjStuff::pfps.
Referenced by NeutrinoPrimaryTjID(), PrintAllTraj(), and PrintPFP().
void tca::Print2DShowers | ( | std::string | someText, |
const TjStuff & | tjs, | ||
CTP_t | inCTP, | ||
bool | printKilledShowers | ||
) |
Definition at line 4713 of file TCShower.cxx.
References tca::TjStuff::cots, tca::TjStuff::dontCluster, DontCluster(), nlines, PrintShower(), tca::TjStuff::ShowerTag, ss, util::flags::to_string(), and tca::TjStuff::UnitsPerTick.
Referenced by FindShowers3D(), Reconcile3D(), and tca::TrajClusterAlg::RunTrajClusterAlg().
void tca::PrintAllTraj | ( | std::string | someText, |
const TjStuff & | tjs, | ||
const DebugStuff & | debug, | ||
unsigned short | itj, | ||
unsigned short | ipt, | ||
bool | prtVtx | ||
) |
Definition at line 4232 of file Utils.cxx.
References AlgBitNames, tca::TjStuff::allTraj, geo::CryostatID::Cryostat, DecodeCTP(), evd::details::end(), GetAssns(), tca::Vtx3Store::ID, kAtKink, kAtTj, kAtVtx, kBragg, kEnvNearTj, kKilled, kVtxTruMatch, tca::TjStuff::MCPartList, tca::Vtx3Store::Neutrino, NeutrinoPrimaryTjID(), tca::TjStuff::NumPlanes, tca::TjStuff::pfps, tca::DebugStuff::Plane, geo::PlaneID::Plane, PosInPlane(), tca::Vtx3Store::Primary, PrimaryID(), PrintHeader(), PrintPos(), PrintTrajPoint(), art::right(), tca::Vtx3Store::Score, tca::TjStuff::StepDir, tmp, util::flags::to_string(), geo::TPCID::TPC, tca::Vtx3Store::TPCID, tca::TjStuff::UnitsPerTick, tca::TjStuff::vtx, tca::TjStuff::vtx3, VtxBitNames, tca::Vtx3Store::Vx2ID, tca::Vtx3Store::Wire, tca::Vtx3Store::X, tca::Vtx3Store::XErr, tca::Vtx3Store::Y, tca::Vtx3Store::YErr, tca::Vtx3Store::Z, and tca::Vtx3Store::ZErr.
Referenced by DotProd(), Find2DVertices(), Find3DVertices(), FindShowers3D(), and tca::TrajClusterAlg::RunTrajClusterAlg().
void tca::PrintClusters | ( | ) |
void tca::PrintHeader | ( | std::string | someText | ) |
Definition at line 4568 of file Utils.cxx.
Referenced by DotProd(), tca::TrajClusterAlg::FindVtxTraj(), FitVertex(), PrintAllTraj(), lar_content::LArFormattingHelper::PrintRule(), and PrintTrajectory().
std::string tca::PrintHit | ( | const TCHit & | hit | ) |
Definition at line 4732 of file Utils.cxx.
References tca::TCHit::ArtPtr, tca::TCHit::InTraj, tca::TCHit::PeakTime, geo::PlaneID::Plane, util::flags::to_string(), geo::WireID::Wire, and recob::Hit::WireID().
Referenced by cluster::ClusterCrawlerAlg::AddHit(), tca::TrajClusterAlg::AddHits(), cluster::ClusterCrawlerAlg::AddLAHit(), tca::TrajClusterAlg::AddLAHits(), tca::TrajClusterAlg::CheckHiMultUnusedHits(), tca::TrajClusterAlg::ChkInTraj(), tca::TrajClusterAlg::ChkStopEndPts(), cluster::ClusterCrawlerAlg::ClusterLoop(), DotProd(), tca::TrajClusterAlg::FillGaps(), Find3DVertices(), tca::TrajClusterAlg::FindJunkTraj(), tca::TrajClusterAlg::FindUseHits(), tca::TrajClusterAlg::FindVtxTraj(), tca::TrajClusterAlg::GetHitCollection(), HasDuplicateHits(), InTrajOK(), tca::TrajClusterAlg::MakeJunkTraj(), tca::TruthMatcher::MatchAndSum(), cluster::ClusterCrawlerAlg::MergeOverlap(), tca::TrajClusterAlg::ReconstructAllTraj(), tca::TrajClusterAlg::ReversePropagate(), tca::TrajClusterAlg::RunTrajClusterAlg(), and StoreTraj().
std::string tca::PrintHitShort | ( | const TCHit & | hit | ) |
Definition at line 4726 of file Utils.cxx.
References tca::TCHit::ArtPtr, tca::TCHit::PeakTime, geo::PlaneID::Plane, util::flags::to_string(), geo::WireID::Wire, and recob::Hit::WireID().
Referenced by DotProd(), tca::TruthMatcher::MatchTruth(), and WatchHit().
void tca::PrintPFP | ( | std::string | someText, |
const TjStuff & | tjs, | ||
const PFPStruct & | pfp, | ||
bool | printHeader | ||
) |
Definition at line 4619 of file Utils.cxx.
References tca::PFPStruct::dEdx, tca::PFPStruct::Dir, tca::PFPStruct::DtrIDs, tca::PFPStruct::EffPur, tca::PFPStruct::ID, IsShowerLike(), kOutFV, SortEntry::length, tca::TjStuff::MCPartList, tca::PFPStruct::MCPartListIndex, MCSMom(), tca::PFPStruct::ParentID, tca::PFPStruct::PDGCode, PosSep(), PrimaryID(), art::right(), tca::PFPStruct::StopFlag, tca::PFPStruct::TjIDs, util::flags::to_string(), tca::PFPStruct::Tp3s, tca::PFPStruct::Vx3ID, and tca::PFPStruct::XYZ.
Referenced by DotProd(), Match3DVtxTjs(), MergePFPTjs(), and PrintPFPs().
void tca::PrintPFPs | ( | std::string | someText, |
const TjStuff & | tjs | ||
) |
Definition at line 4690 of file Utils.cxx.
References tca::TjStuff::pfps, and PrintPFP().
Referenced by DotProd(), FindShowers3D(), and tca::TrajClusterAlg::RunTrajClusterAlg().
Definition at line 4738 of file Utils.cxx.
References tca::TrajPoint::CTP, tca::TrajPoint::Pos, PrintPos(), and util::flags::to_string().
Referenced by tca::TrajClusterAlg::AddLAHits(), tca::TrajClusterAlg::ChkStop(), tca::TrajClusterAlg::ChkStopEndPts(), ChkVxTjs(), CompleteIncomplete3DVertices(), DotProd(), tca::TrajClusterAlg::EndMerge(), tca::TrajClusterAlg::FillGaps(), Find2DVertices(), FindHammerVertices2(), FindNeutralVertices(), tca::TrajClusterAlg::FindSoftKink(), FitVertex(), tca::TrajClusterAlg::FixTrajBegin(), tca::TrajClusterAlg::GottaKink(), tca::TrajClusterAlg::MaskTrajEndPoints(), MergeShowerChain(), MergeWithVertex(), ParentFOM(), PrintShower(), PrintShowers(), PrintTp3(), PrintTp3s(), RefineVtxPosition(), tca::TrajClusterAlg::ReversePropagate(), tca::TrajClusterAlg::SplitHiChgHits(), tca::TrajClusterAlg::StepCrawl(), UpdateShower(), and VtxHitsSwap().
Definition at line 4744 of file Utils.cxx.
References util::flags::to_string(), and tca::TjStuff::UnitsPerTick.
Referenced by CheckTrajBeginChg(), MergeAndStore(), PrintAllTraj(), PrintPos(), TagDeltaRays(), TagMuonDirections(), TjDirFOM(), and UpdateVxEnvironment().
void tca::PrintShower | ( | std::string | someText, |
const TjStuff & | tjs, | ||
const ShowerStruct & | ss, | ||
bool | printHeader, | ||
bool | printExtras | ||
) |
Definition at line 4801 of file TCShower.cxx.
References tca::TjStuff::allTraj, tca::ShowerStruct::AspectRatio, tca::ShowerStruct::CTP, tca::ShowerStruct::DirectionFOM, tca::ShowerStruct::Energy, tca::ShowerStruct::Envelope, tca::ShowerStruct::ID, tca::ShowerStruct::NearTjIDs, tca::ShowerStruct::NeedsUpdate, tca::ShowerStruct::ParentFOM, tca::ShowerStruct::ParentID, tca::TjStuff::pfps, PrintPos(), tca::TjStuff::showers, tca::ShowerStruct::ShowerTjID, tca::ShowerStruct::SS3ID, tca::ShowerStruct::TjIDs, util::flags::to_string(), tca::ShowerStruct::TruParentID, and tca::TjStuff::UnitsPerTick.
Referenced by Print2DShowers().
void tca::PrintShowers | ( | std::string | fcnLabel, |
TjStuff & | tjs | ||
) |
Definition at line 4676 of file TCShower.cxx.
References tca::TjStuff::allTraj, tca::TjStuff::cots, EncodeCTP(), MakeBareTP(), tca::TjStuff::NumPlanes, PrintPos(), tca::TjStuff::showers, and ss.
Referenced by Match2DShowers(), and tca::TrajClusterAlg::RunTrajClusterAlg().
std::string tca::PrintStopFlag | ( | const Trajectory & | tj, |
unsigned short | end | ||
) |
Definition at line 4707 of file Utils.cxx.
References tca::Trajectory::StopFlag, StopFlagNames, tmp, and util::flags::to_string().
Referenced by DotProd(), tca::TrajClusterAlg::FixTrajBegin(), and PrintTrajectory().
void tca::PrintTp3 | ( | std::string | someText, |
const TjStuff & | tjs, | ||
const TrajPoint3 & | tp3 | ||
) |
Definition at line 2945 of file PFPUtils.cxx.
References tca::TjStuff::allTraj, tca::TrajPoint3::Dir, tca::TrajPoint3::Pos, PrintPos(), and tca::TrajPoint3::Tj2Pts.
Referenced by DotProd(), and SetStart().
void tca::PrintTp3s | ( | std::string | someText, |
const TjStuff & | tjs, | ||
const PFPStruct & | pfp, | ||
short | printPts | ||
) |
Definition at line 2961 of file PFPUtils.cxx.
References tca::TjStuff::allTraj, DeltaAngle(), tca::PFPStruct::Dir, tca::PFPStruct::ID, KinkAngle(), PosSep(), PrintPos(), tca::PFPStruct::Tp3s, and tca::PFPStruct::XYZ.
Referenced by DotProd().
void tca::PrintTrajectory | ( | std::string | someText, |
const TjStuff & | tjs, | ||
const Trajectory & | tj, | ||
unsigned short | tPoint | ||
) |
Definition at line 4488 of file Utils.cxx.
References AlgBitNames, tca::Trajectory::AlgMod, tca::ShowerStruct::Angle, tca::ShowerStruct::AngleErr, tca::ShowerStruct::AspectRatio, tca::ShowerStruct::ChgDensity, tca::TjStuff::cots, tca::Trajectory::CTP, tca::ShowerStruct::DirectionFOM, tca::Trajectory::EndPt, tca::ShowerStruct::Energy, tca::ShowerStruct::Envelope, tca::ShowerStruct::EnvelopeArea, tca::Trajectory::ID, kShowerTj, tca::TjStuff::MCPartList, tca::Trajectory::MCPartListIndex, tca::Trajectory::MCSMom, tca::ShowerStruct::NearTjIDs, tca::ShowerStruct::NeedsUpdate, tca::ShowerStruct::ParentFOM, tca::ShowerStruct::ParentID, tca::Trajectory::Pass, tca::Trajectory::PDGCode, PrintHeader(), PrintStopFlag(), PrintTrajPoint(), tca::Trajectory::Pts, ss, tca::ShowerStruct::SS3ID, tca::Trajectory::StepDir, tca::ShowerStruct::TjIDs, tca::ShowerStruct::TruParentID, tca::TjStuff::UnitsPerTick, tca::Trajectory::VtxID, and tca::Trajectory::WorkID.
Referenced by tca::TrajClusterAlg::CheckHiMultUnusedHits(), tca::TrajClusterAlg::CheckTraj(), ChkChgAsymmetry(), tca::TrajClusterAlg::ChkInTraj(), DotProd(), tca::TrajClusterAlg::FixTrajBegin(), tca::TrajClusterAlg::FixTrajEnd(), tca::TrajClusterAlg::GottaKink(), InTrajOK(), tca::TrajClusterAlg::IsGhost(), tca::TrajClusterAlg::MakeAllTrajClusters(), tca::TrajClusterAlg::MakeJunkTraj(), tca::TrajClusterAlg::MaskedHitsOK(), MergeAndStore(), tca::TrajClusterAlg::ReconstructAllTraj(), tca::TrajClusterAlg::ReversePropagate(), tca::TrajClusterAlg::StepCrawl(), and TrimEndPts().
void tca::PrintTrajPoint | ( | std::string | someText, |
const TjStuff & | tjs, | ||
unsigned short | ipt, | ||
short | dir, | ||
unsigned short | pass, | ||
TrajPoint const & | tp | ||
) |
Definition at line 4574 of file Utils.cxx.
References tca::TrajPoint::Ang, tca::TrajPoint::AngErr, tca::TrajPoint::AngleCode, tca::TrajPoint::AveChg, tca::TrajPoint::Chg, tca::TrajPoint::ChgPull, tca::TrajPoint::CTP, tca::TrajPoint::Delta, tca::TrajPoint::DeltaRMS, tca::TrajPoint::Dir, tca::TjStuff::fHits, tca::TrajPoint::FitChi, tca::TrajPoint::Hits, tca::TrajPoint::NTPsFit, tca::TrajPoint::Pos, tca::TrajPoint::Step, tca::TjStuff::UnitsPerTick, and tca::TrajPoint::UseHit.
Referenced by DotProd(), tca::TrajClusterAlg::FillGaps(), tca::TrajClusterAlg::FindVtxTraj(), FitVertex(), tca::TrajClusterAlg::FixTrajBegin(), tca::TrajClusterAlg::HiEndDelta(), PrintAllTraj(), PrintTrajectory(), SplitTrajCrossingVertices(), and tca::TrajClusterAlg::StepCrawl().
std::vector< unsigned int > tca::PutTrajHitsInVector | ( | Trajectory const & | tj, |
HitStatus_t | hitRequest | ||
) |
Definition at line 2283 of file Utils.cxx.
References tca::Trajectory::AlgMod, kAllHits, kShowerTj, kUnusedHits, kUsedHits, and tca::Trajectory::Pts.
Referenced by tca::TrajClusterAlg::AddLAHits(), tca::TrajClusterAlg::CheckHiMultUnusedHits(), tca::TrajClusterAlg::ChkInTraj(), Finish3DShowers(), HasDuplicateHits(), InTrajOK(), tca::TrajClusterAlg::MakeAllTrajClusters(), tca::TruthMatcher::MatchAndSum(), tca::TruthMatcher::MatchTruth(), MergeGhostTjs(), tca::MCParticleListUtils::PrimaryElectronPFPID(), and TransferTjHits().
bool tca::Reconcile3D | ( | std::string | inFcnLabel, |
TjStuff & | tjs, | ||
const geo::TPCID & | tpcid, | ||
bool | parentSearchDone, | ||
bool | prt | ||
) |
Definition at line 491 of file TCShower.cxx.
References AddPFP(), tca::TjStuff::allTraj, ChkAssns(), tca::TjStuff::cots, geo::CryostatID::Cryostat, DecodeCTP(), evd::details::end(), GetAssns(), InShowerProb(), kMat3D, MakeShowerObsolete(), MergeShowersAndStore(), tca::TjStuff::pfps, Print2DShowers(), RemovePFP(), SetIntersection(), ShowerEnergy(), tca::TjStuff::showers, ss, geo::TPCID::TPC, and UpdateShower().
bool tca::Reconcile3D | ( | std::string | inFcnLabel, |
TjStuff & | tjs, | ||
ShowerStruct3D & | ss3, | ||
bool | prt | ||
) |
Definition at line 645 of file TCShower.cxx.
References AddPFP(), evd::details::begin(), tca::ShowerStruct3D::ChgPos, ChkAssns(), tca::ShowerStruct3D::CotIDs, tca::TjStuff::cots, evd::details::end(), FarEnd(), GetAssns(), tca::ShowerStruct3D::ID, InShowerProb(), tca::TjStuff::pfps, PosSep(), Print2DShowers(), RemovePFP(), SetDifference(), ss, and UpdateShower().
Referenced by FindShowers3D(), and Match2DShowers().
bool tca::RefineVtxPosition | ( | TjStuff & | tjs, |
const Trajectory & | tj, | ||
unsigned short & | nearPt, | ||
short | nPtsToChk, | ||
bool | prt | ||
) |
Definition at line 2735 of file TCVertex.cxx.
References tca::Trajectory::EndPt, PrintPos(), and tca::Trajectory::Pts.
Referenced by CompleteIncomplete3DVertices().
void tca::ReleaseHits | ( | TjStuff & | tjs, |
Trajectory & | tj | ||
) |
Definition at line 1070 of file Utils.cxx.
References tca::TjStuff::fHits, tca::Trajectory::ID, and tca::Trajectory::Pts.
Referenced by tca::TrajClusterAlg::FindVtxTraj(), tca::TrajClusterAlg::MakeJunkTraj(), tca::TrajClusterAlg::ReconstructAllTraj(), and StoreTraj().
bool tca::RemovePFP | ( | std::string | inFcnLabel, |
TjStuff & | tjs, | ||
int | pID, | ||
ShowerStruct3D & | ss3, | ||
bool | doUpdate, | ||
bool | prt | ||
) |
bool tca::RemovePFP | ( | std::string | inFcnLabel, |
TjStuff & | tjs, | ||
PFPStruct & | pfp, | ||
ShowerStruct3D & | ss3, | ||
bool | doUpdate, | ||
bool | prt | ||
) |
Definition at line 1547 of file TCShower.cxx.
References tca::ShowerStruct3D::CotIDs, tca::TjStuff::cots, tca::PFPStruct::ID, tca::ShowerStruct3D::ID, tca::ShowerStruct3D::NeedsUpdate, RemoveTj(), ss, tca::PFPStruct::TjIDs, and UpdateShower().
Referenced by Reconcile3D().
bool tca::RemoveTj | ( | std::string | inFcnLabel, |
TjStuff & | tjs, | ||
int | TjID, | ||
ShowerStruct & | ss, | ||
bool | doUpdate, | ||
bool | prt | ||
) |
Definition at line 1691 of file TCShower.cxx.
References tca::Trajectory::AlgMod, tca::TjStuff::allTraj, tca::ShowerStruct::ID, kShwrParent, MakeShowerObsolete(), tca::ShowerStruct::NeedsUpdate, tca::ShowerStruct::ParentID, tca::ShowerStruct::ShPts, tca::Trajectory::SSID, tca::ShowerStruct::TjIDs, and UpdateShower().
Referenced by RemovePFP().
void tca::RestoreObsoleteTrajectory | ( | TjStuff & | tjs, |
unsigned int | itj | ||
) |
Definition at line 1808 of file Utils.cxx.
References tca::TjStuff::allTraj, tca::TjStuff::fHits, and kKilled.
Definition at line 996 of file Utils.cxx.
References tca::Trajectory::AlgMod, tca::TjStuff::allTraj, tca::PFPStruct::dEdx, tca::PFPStruct::dEdxErr, tca::PFPStruct::Dir, tca::PFPStruct::DirErr, kBragg, kMat3D, tca::PFPStruct::PDGCode, ReverseTraj(), tca::PFPStruct::TjIDs, tca::PFPStruct::Vx3ID, and tca::PFPStruct::XYZ.
Definition at line 2837 of file PFPUtils.cxx.
References tca::PFPStruct::dEdx, tca::PFPStruct::dEdxErr, tca::PFPStruct::Dir, tca::PFPStruct::DirErr, tca::PFPStruct::StopFlag, tca::PFPStruct::Tp3s, tca::PFPStruct::Vx3ID, and tca::PFPStruct::XYZ.
Referenced by DotProd().
void tca::ReverseShower | ( | std::string | inFcnLabel, |
TjStuff & | tjs, | ||
ShowerStruct & | ss, | ||
bool | prt | ||
) |
Definition at line 3269 of file TCShower.cxx.
References tca::TjStuff::allTraj, tca::ShowerStruct::Angle, DefineEnvelope(), tca::ShowerStruct::DirectionFOM, tca::ShowerStruct::ID, ReverseTraj(), tca::ShowerStruct::ShowerTjID, tca::ShowerStruct::ShPts, and tca::ShowerStruct::TjIDs.
void tca::ReverseShower | ( | std::string | inFcnLabel, |
TjStuff & | tjs, | ||
int | cotID, | ||
bool | prt | ||
) |
Definition at line 3298 of file TCShower.cxx.
References tca::TjStuff::cots, tca::ShowerStruct::ID, and ss.
Referenced by FindShowerStart(), and UpdateShower().
void tca::ReverseTraj | ( | TjStuff & | tjs, |
Trajectory & | tj | ||
) |
Definition at line 2666 of file Utils.cxx.
References tca::Trajectory::dEdx, tca::Trajectory::DirFOM, tca::Trajectory::ID, tca::Trajectory::Pts, SetEndPoints(), tca::Trajectory::StepDir, tca::Trajectory::StopFlag, UpdateMatchStructs(), and tca::Trajectory::VtxID.
Referenced by DefineTjParents(), tca::TrajClusterAlg::EndMerge(), MergeAndStore(), MergePFPTjs(), tca::TrajClusterAlg::ReconstructAllTraj(), Reverse3DMatchTjs(), tca::TrajClusterAlg::ReversePropagate(), ReverseShower(), StorePFP(), TagDeltaRays(), and TagMuonDirections().
Definition at line 165 of file TCShTree.cxx.
References tca::TjStuff::cots, tca::TjStuff::SaveShowerTree, SaveTjInfo(), and ss.
Referenced by FindShowers3D().
void tca::SaveAllCots | ( | TjStuff & | tjs, |
std::string | someText | ||
) |
Definition at line 176 of file TCShTree.cxx.
References tca::TjStuff::cots, tca::TjStuff::SaveShowerTree, SaveTjInfo(), and ss.
Definition at line 8 of file TCCR.cxx.
References tca::PFPStruct::CosmicScore, tca::CRTreeVars::cr_origin, tca::CRTreeVars::cr_pfpxmax, tca::CRTreeVars::cr_pfpxmin, tca::CRTreeVars::cr_pfpyzmindis, tca::TjStuff::crt, tca::TjStuff::geom, GetOrigin(), max, geo::BoxBoundedGeo::MaxY(), geo::BoxBoundedGeo::MaxZ(), min, geo::BoxBoundedGeo::MinY(), geo::BoxBoundedGeo::MinZ(), tca::TjStuff::SaveCRTree, geo::GeometryCore::TPC(), and tca::PFPStruct::XYZ.
Referenced by tca::TrajClusterAlg::RunTrajClusterAlg().
void tca::SaveTjInfo | ( | TjStuff & | tjs, |
std::vector< std::vector< int >> & | tjList, | ||
std::string | stageName | ||
) |
Definition at line 5 of file TCShTree.cxx.
References tca::Trajectory::AlgMod, tca::TjStuff::allTraj, tca::Trajectory::CTP, tca::ShowerTreeVars::Envelope, tca::ShowerTreeVars::EnvPlane, tca::ShowerTreeVars::EnvShowerID, tca::ShowerTreeVars::EnvStage, GetStageNum(), tca::Trajectory::ID, kKilled, tca::TjStuff::SaveShowerTree, SaveTjInfoStuff(), tca::ShowerTreeVars::ShowerID, and tca::TjStuff::stv.
Referenced by FindShowers3D(), and SaveAllCots().
void tca::SaveTjInfo | ( | TjStuff & | tjs, |
const ShowerStruct & | ss, | ||
std::string | stageName | ||
) |
Definition at line 47 of file TCShTree.cxx.
References tca::Trajectory::AlgMod, tca::TjStuff::allTraj, tca::ShowerStruct::CTP, DecodeCTP(), tca::ShowerStruct::Envelope, tca::ShowerTreeVars::Envelope, tca::ShowerTreeVars::EnvPlane, tca::ShowerTreeVars::EnvShowerID, tca::ShowerTreeVars::EnvStage, GetStageNum(), tca::Trajectory::ID, tca::ShowerStruct::ID, tca::ShowerTreeVars::IsShowerParent, tca::ShowerTreeVars::IsShowerTj, kKilled, kShowerTj, tca::ShowerStruct::ParentID, geo::PlaneID::Plane, tca::ShowerTreeVars::PlaneNum, tca::TjStuff::SaveShowerTree, SaveTjInfoStuff(), tca::ShowerTreeVars::ShowerID, tca::ShowerStruct::ShowerTjID, tca::ShowerTreeVars::StageNum, tca::TjStuff::stv, tca::ShowerTreeVars::TjID, tca::ShowerStruct::TjIDs, and tca::TjStuff::UnitsPerTick.
void tca::SaveTjInfoStuff | ( | TjStuff & | tjs, |
Trajectory & | tj, | ||
int | stageNum, | ||
std::string | stageName | ||
) |
Definition at line 131 of file TCShTree.cxx.
References tca::TrajPoint::Ang, tca::ShowerTreeVars::BeginAng, tca::ShowerTreeVars::BeginChg, tca::ShowerTreeVars::BeginTim, tca::ShowerTreeVars::BeginVtx, tca::ShowerTreeVars::BeginWir, tca::TrajPoint::Chg, tca::Trajectory::CTP, DecodeCTP(), tca::ShowerTreeVars::EndAng, tca::ShowerTreeVars::EndChg, tca::Trajectory::EndPt, tca::ShowerTreeVars::EndTim, tca::ShowerTreeVars::EndVtx, tca::ShowerTreeVars::EndWir, tca::Trajectory::ID, tca::ShowerTreeVars::IsShowerParent, tca::ShowerTreeVars::IsShowerTj, tca::Trajectory::MCSMom, tca::ShowerTreeVars::MCSMom, tca::ShowerTreeVars::nPlanes, tca::ShowerTreeVars::nStages, tca::TjStuff::NumPlanes, geo::PlaneID::Plane, tca::ShowerTreeVars::PlaneNum, tca::TrajPoint::Pos, tca::Trajectory::Pts, tca::TjStuff::SaveShowerTree, tca::ShowerTreeVars::ShowerID, tca::ShowerTreeVars::StageNum, tca::TjStuff::stv, tca::ShowerTreeVars::TjID, tca::TjStuff::UnitsPerTick, and tca::Trajectory::VtxID.
Referenced by SaveTjInfo().
void tca::ScoreVertices | ( | TjStuff & | tjs, |
const geo::TPCID & | tpcid, | ||
bool | prt | ||
) |
Definition at line 2193 of file TCVertex.cxx.
References tca::TjStuff::allTraj, geo::CryostatID::Cryostat, DecodeCTP(), kHiVx3Score, kKilled, kTjHiVx3Score, SetVx2Score(), SetVx3Score(), geo::TPCID::TPC, tca::TjStuff::vtx, and tca::TjStuff::vtx3.
Referenced by tca::TrajClusterAlg::RunTrajClusterAlg().
Definition at line 642 of file Utils.cxx.
References tca::TrajPoint::Ang, tca::TrajPoint::AngleCode, AngleRange(), and tca::TjStuff::AngleRanges.
Referenced by FitTraj(), tca::TrajClusterAlg::MakeJunkTraj(), tca::TrajClusterAlg::StartTraj(), and tca::TrajClusterAlg::UpdateTraj().
std::vector< T > tca::SetDifference | ( | const std::vector< T > & | set1, |
const std::vector< T > & | set2 | ||
) |
Definition at line 236 of file Utils.h.
Referenced by DefinePFPParentsTestBeam(), DotProd(), Match3DVtxTjs(), and Reconcile3D().
void tca::SetEndPoints | ( | TjStuff & | tjs, |
Trajectory & | tj | ||
) |
Definition at line 2788 of file Utils.cxx.
References tca::Trajectory::AlgMod, tca::Trajectory::EndPt, kShowerTj, and tca::Trajectory::Pts.
Referenced by tca::TrajClusterAlg::AddHits(), tca::TrajClusterAlg::AddLAHits(), tca::TrajClusterAlg::CheckHiMultEndHits(), tca::TrajClusterAlg::CheckHiMultUnusedHits(), tca::TrajClusterAlg::CheckTraj(), ChkChgAsymmetry(), tca::TrajClusterAlg::ChkStopEndPts(), DotProd(), tca::TrajClusterAlg::EraseHit(), tca::TrajClusterAlg::FindSoftKink(), tca::TrajClusterAlg::FixTrajBegin(), tca::TrajClusterAlg::IsGhost(), tca::TrajClusterAlg::MakeAllTrajClusters(), tca::TrajClusterAlg::MakeJunkTraj(), tca::TrajClusterAlg::MaskedHitsOK(), tca::TrajClusterAlg::MaskTrajEndPoints(), MergeAndStore(), MergePFPTjs(), tca::TrajClusterAlg::ReversePropagate(), ReverseTraj(), tca::TrajClusterAlg::SplitHiChgHits(), SplitTraj(), tca::TrajClusterAlg::StepCrawl(), StoreTraj(), TrimEndPts(), tca::TrajClusterAlg::UpdateTraj(), tca::TrajClusterAlg::UseUnusedHits(), and VtxHitsSwap().
Definition at line 2256 of file TCVertex.cxx.
References tca::TjStuff::allTraj, evd::details::end(), GetVtxTjIDs(), tca::VtxStore::ID, tca::Vtx3Store::ID, kHiVx3Score, kTjHiVx3Score, tca::TjStuff::NumPlanes, tca::VtxStore::Stat, tmp, tca::TjStuff::vtx, and tca::Vtx3Store::Vx2ID.
Referenced by SetVx3Score().
std::vector< T > tca::SetIntersection | ( | const std::vector< T > & | set1, |
const std::vector< T > & | set2 | ||
) |
Definition at line 214 of file Utils.h.
Referenced by AddMissedTj(), CompleteIncompleteShower(), DefinePFP(), DotProd(), FindCots(), FindPFParticles(), GetAssns(), Match3DVtxTjs(), tca::TruthMatcher::MatchAndSum(), MergeNearby2DShowers(), PFPVxTjOK(), tca::MCParticleListUtils::PrimaryElectronPFPID(), Reconcile3D(), and SharesHighScoreVx().
bool tca::SetMag | ( | Vector3_t & | v1, |
double | mag | ||
) |
Definition at line 1641 of file PFPUtils.cxx.
References den.
Referenced by DotProd(), FindAlongTrans(), Fit3D(), FollowTp3s(), tca::MCParticleListUtils::MakeTruTrajPoint(), tca::TruthMatcher::MatchTrueHits(), tca::TruthMatcher::MatchTruth(), PointDirection(), tca::MCParticleListUtils::PrimaryElectronStart(), tca::TruthMatcher::StudyPiZeros(), and UpdateShower().
bool tca::SetMag | ( | Vector2_t & | v1, |
double | mag | ||
) |
bool tca::SetParent | ( | std::string | inFcnLabel, |
TjStuff & | tjs, | ||
PFPStruct & | pfp, | ||
ShowerStruct3D & | ss3, | ||
bool | prt | ||
) |
Definition at line 1988 of file TCShower.cxx.
References AddTj(), tca::TjStuff::allTraj, tca::ShowerStruct3D::ChgPos, tca::ShowerStruct3D::CotIDs, tca::TjStuff::cots, tca::PFPStruct::Dir, evd::details::end(), FarEnd(), GetAssns(), tca::PFPStruct::ID, tca::ShowerStruct3D::ID, kShwrParent, MakeBareTP(), ParentFOM(), tca::ShowerStruct3D::ParentID, ss, tca::PFPStruct::TjIDs, UpdateShower(), tca::TjStuff::vtx3, tca::PFPStruct::Vx3ID, tca::ShowerStruct3D::Vx3ID, and tca::PFPStruct::XYZ.
Referenced by FindParent().
void tca::SetPDGCode | ( | TjStuff & | tjs, |
unsigned short | itj | ||
) |
Definition at line 3697 of file Utils.cxx.
References tca::TjStuff::allTraj, and SetPDGCode().
Referenced by CompleteIncomplete3DVertices(), DotProd(), FindHammerVertices(), FindHammerVertices2(), MergePFPTjs(), and tca::TrajClusterAlg::StepCrawl().
void tca::SetPDGCode | ( | TjStuff & | tjs, |
Trajectory & | tj | ||
) |
Definition at line 3704 of file Utils.cxx.
References tca::Trajectory::EndPt, tca::Trajectory::MCSMom, MCSMom(), tca::TjStuff::MuonTag, and tca::Trajectory::PDGCode.
Referenced by MergeAndStore(), SetPDGCode(), and SplitTraj().
Definition at line 207 of file PFPUtils.cxx.
References tca::PFPStruct::Dir, tca::PFPStruct::ID, PrintTp3(), tca::PFPStruct::TjIDs, tca::PFPStruct::Tp3s, valIncreasings(), and tca::PFPStruct::XYZ.
Referenced by DefinePFP().
void tca::SetVx2Score | ( | TjStuff & | tjs, |
bool | prt | ||
) |
Definition at line 2322 of file TCVertex.cxx.
References tca::TjStuff::vtx.
Referenced by AttachTrajToVertex(), CheckTrajBeginChg(), CompleteIncomplete3DVertices(), CompleteIncomplete3DVerticesInGaps(), tca::TrajClusterAlg::EndMerge(), Find2DVertices(), Find3DVertices(), FindHammerVertices(), FindHammerVertices2(), FindNeutralVertices(), MergeWithVertex(), ScoreVertices(), and tca::TrajClusterAlg::SplitHiChgHits().
Definition at line 2331 of file TCVertex.cxx.
References tca::Trajectory::AlgMod, tca::TjStuff::allTraj, ChgFracNearPos(), tca::Trajectory::ChgRMS, DeltaAngle(), tca::Trajectory::EndPt, GetVtxTjIDs(), tca::VtxStore::ID, kBragg, kJunkTj, kShowerLike, kShowerTj, tca::Trajectory::MCSMom, tca::Trajectory::PDGCode, tca::VtxStore::Pos, tca::VtxStore::PosErr, tca::Trajectory::Pts, tca::VtxStore::Score, tca::Trajectory::StopFlag, tca::VtxStore::TjChgFrac, tca::VtxStore::Topo, tca::TjStuff::Vertex2DCuts, tca::TjStuff::VertexScoreWeights, tca::TjStuff::vtx3, tca::Trajectory::VtxID, and tca::VtxStore::Vx3ID.
Definition at line 2303 of file TCVertex.cxx.
References tca::Vtx3Store::ID, tca::TjStuff::NumPlanes, tca::VtxStore::Score, tca::Vtx3Store::Score, SetHighScoreBits(), tca::TjStuff::Vertex2DCuts, tca::TjStuff::vtx, and tca::Vtx3Store::Vx2ID.
Referenced by Find3DVertices(), FindNeutralVertices(), MakeVertexObsolete(), and ScoreVertices().
bool tca::SharesHighScoreVx | ( | TjStuff & | tjs, |
const PFPStruct & | pfp, | ||
const Trajectory & | tj | ||
) |
Definition at line 883 of file PFPUtils.cxx.
References evd::details::end(), GetVtxTjIDs(), kHiVx3Score, SetIntersection(), tca::PFPStruct::TjIDs, tca::TjStuff::vtx, and tca::Trajectory::VtxID.
Referenced by DefinePFP(), and FindMissedTjsInTp3s().
double tca::ShowerEnergy | ( | const ShowerStruct3D & | ss3 | ) |
Definition at line 4434 of file TCShower.cxx.
References e, tca::ShowerStruct3D::Energy, and tca::ShowerStruct3D::ID.
Referenced by tca::TruthMatcher::StudyShowerParents(), and showerreco::ShowerCalo::~ShowerCalo().
float tca::ShowerEnergy | ( | const TjStuff & | tjs, |
const std::vector< int > | tjIDs | ||
) |
Definition at line 4447 of file TCShower.cxx.
References tca::TjStuff::allTraj, and ChgToMeV().
Referenced by CompleteIncompleteShower(), FindCots(), FindParent(), FindShowers3D(), and Reconcile3D().
void tca::ShowerParams | ( | double | showerEnergy, |
double & | shMaxAlong, | ||
double & | along95 | ||
) |
Definition at line 2084 of file TCShower.cxx.
References scale.
Referenced by FindParent(), InShowerProbLong(), MergeSubShowers(), ParentFOM(), and ShowerParamTransRMS().
double tca::ShowerParamTransRMS | ( | double | showerEnergy, |
double | along | ||
) |
Definition at line 2104 of file TCShower.cxx.
References ShowerParams().
Referenced by InShowerProbTrans().
Definition at line 1639 of file Utils.cxx.
References tca::TrajPoint::CTP, DecodeCTP(), tca::TrajPoint::Dir, tca::TjStuff::fHits, tca::TjStuff::MaxPos1, tca::TjStuff::NumWires, tca::TCHit::PeakTime, geo::PlaneID::Plane, tca::TrajPoint::Pos, tca::TCHit::RMS, tca::TjStuff::UnitsPerTick, and tca::TjStuff::WireHitRange.
Referenced by ChgFracBetween(), FindHammerVertices2(), FindXMatches(), SignalBetween(), and tca::TrajClusterAlg::StepCrawl().
bool tca::SignalBetween | ( | TjStuff & | tjs, |
const TrajPoint & | tp1, | ||
const TrajPoint & | tp2, | ||
const float & | MinWireSignalFraction, | ||
bool | prt | ||
) |
Definition at line 1495 of file Utils.cxx.
References MakeBareTrajPoint(), tca::TrajPoint::Pos, SignalAtTp(), and SignalBetween().
Referenced by AttachTrajToVertex(), tca::TrajClusterAlg::EndMerge(), Find2DVertices(), and MakeJunkVertices().
bool tca::SignalBetween | ( | TjStuff & | tjs, |
TrajPoint | tp, | ||
float | toPos0, | ||
const float & | MinWireSignalFraction, | ||
bool | prt | ||
) |
Definition at line 1520 of file Utils.cxx.
References ChgFracBetween().
Referenced by SignalBetween().
Definition at line 1782 of file PFPUtils.cxx.
References tca::TjStuff::allTraj, AttachAnyTrajToVertex(), tca::VtxStore::CTP, DecodeCTP(), FindKinks(), tca::VtxStore::ID, tca::Vtx3Store::ID, KinkAngle(), kSplit3DKink, tca::PFPStruct::NeedsUpdate, tca::TjStuff::NumPlanes, geo::PlaneID::Plane, tca::VtxStore::Pos, SplitTraj(), StoreVertex(), tca::PFPStruct::TjIDs, tca::VtxStore::Topo, tca::PFPStruct::Tp3s, tca::Vtx3Store::TPCID, tca::PFPStruct::TPCID, tca::TjStuff::UseAlg, tca::TjStuff::vtx, tca::TjStuff::vtx3, tca::Vtx3Store::Vx2ID, tca::Vtx3Store::X, tca::Vtx3Store::Y, and tca::Vtx3Store::Z.
Referenced by DotProd(), FindPFParticles(), and Match3DVtxTjs().
bool tca::SplitTraj | ( | TjStuff & | tjs, |
unsigned short | itj, | ||
float | XPos, | ||
bool | makeVx2, | ||
bool | prt | ||
) |
Definition at line 1879 of file Utils.cxx.
References tca::TjStuff::allTraj, detinfo::DetectorProperties::ConvertXToTicks(), tca::VtxStore::CTP, DecodeCTP(), tca::TjStuff::detprop, tca::VtxStore::NTraj, tca::VtxStore::Pos, SplitTraj(), StoreVertex(), tca::VtxStore::Topo, tca::TjStuff::UnitsPerTick, and tca::TjStuff::vtx.
Referenced by CompleteIncomplete3DVertices(), FindHammerVertices(), FindHammerVertices2(), Split3DKink(), and SplitTrajCrossingVertices().
bool tca::SplitTraj | ( | TjStuff & | tjs, |
unsigned short | itj, | ||
unsigned short | pos, | ||
unsigned short | ivx, | ||
bool | prt | ||
) |
Definition at line 1918 of file Utils.cxx.
References tca::Trajectory::AlgMod, tca::TjStuff::allTraj, tca::Trajectory::EndPt, tca::TjStuff::fHits, tca::Trajectory::ID, kSplit, tca::Trajectory::ParentID, tca::Trajectory::PDGCode, tca::Trajectory::Pts, SetEndPoints(), SetPDGCode(), UpdateMatchStructs(), UpdateTjChgProperties(), tca::TjStuff::vtx, and tca::Trajectory::VtxID.
Referenced by CheckTrajBeginChg(), and SplitTraj().
Definition at line 1091 of file TCVertex.cxx.
References tca::TjStuff::allTraj, debug, DecodeCTP(), DeltaAngle(), evd::details::end(), FitVertex(), GetVtxTjIDs(), kDeltaRay, tca::TjStuff::KinkCuts, kKilled, kOnDeadWire, kSplitTjCVx, MakeVertexObsolete(), NumPtsWithCharge(), tca::DebugStuff::Plane, geo::PlaneID::Plane, PointTrajDOCA(), PrintTrajPoint(), SplitTraj(), tca::DebugStuff::Tick, TrajClosestApproach(), tca::TjStuff::UseAlg, tca::TjStuff::Vertex2DCuts, and tca::TjStuff::vtx.
Referenced by tca::TrajClusterAlg::ReconstructAllTraj().
std::vector< float > tca::StartChgVec | ( | TjStuff & | tjs, |
int | cotID, | ||
bool | prt | ||
) |
Definition at line 4254 of file TCShower.cxx.
References tca::TjStuff::allTraj, tca::ShowerStruct::Angle, tca::TjStuff::cots, tca::TjStuff::fHits, tca::ShowerStruct::ID, tca::ShowerStruct::ParentID, tca::TrajPoint::Pos, tca::ShowerStruct::ShowerTjID, tca::ShowerStruct::ShPts, ss, tca::ShowerStruct::TjIDs, and tca::TjStuff::UnitsPerTick.
Referenced by FindStartChg().
Definition at line 2660 of file PFPUtils.cxx.
References tca::TjStuff::allTraj, tca::PFPStruct::BestPlane, FilldEdx(), tca::PFPStruct::ID, kMat3D, kSetDir, tca::PFPStruct::NeedsUpdate, tca::PFPStruct::PDGCode, tca::TjStuff::pfps, ReverseTraj(), tca::PFPStruct::TjIDs, and tca::PFPStruct::Tp3s.
Referenced by DefineTjParents(), DotProd(), FindPFParticles(), and Match3DVtxTjs().
bool tca::StoreShower | ( | std::string | inFcnLabel, |
TjStuff & | tjs, | ||
ShowerStruct3D & | ss3 | ||
) |
Definition at line 4468 of file TCShower.cxx.
References tca::ShowerStruct3D::CotIDs, tca::TjStuff::cots, tca::ShowerStruct3D::ID, tca::TjStuff::showers, and ss.
Referenced by tca::MCParticleListUtils::MakeCheatShower(), and tca::TruthMatcher::StudyShowerParents().
bool tca::StoreShower | ( | std::string | inFcnLabel, |
TjStuff & | tjs, | ||
ShowerStruct & | ss | ||
) |
Definition at line 4511 of file TCShower.cxx.
References tca::Trajectory::AlgMod, tca::TjStuff::allTraj, tca::ShowerStruct::Cheat, tca::TjStuff::cots, tca::Trajectory::ID, tca::ShowerStruct::ID, kShwrParent, tca::ShowerStruct::ParentID, tca::Trajectory::SSID, and tca::ShowerStruct::TjIDs.
Referenced by CompleteIncompleteShower(), FindShowers3D(), Match2DShowers(), and MergeShowers().
bool tca::StoreTraj | ( | TjStuff & | tjs, |
Trajectory & | tj | ||
) |
Definition at line 1095 of file Utils.cxx.
References tca::TjStuff::allTraj, debug, tca::Trajectory::DirFOM, tca::Trajectory::EndPt, tca::TjStuff::fHits, tca::DebugStuff::Hit, tca::Trajectory::ID, tca::Trajectory::ParentID, PrintHit(), tca::Trajectory::Pts, ReleaseHits(), SetEndPoints(), tca::Trajectory::StepDir, TjDirFOM(), UpdateTjChgProperties(), and tca::Trajectory::WorkID.
Referenced by tca::TrajClusterAlg::FindVtxTraj(), tca::TrajClusterAlg::MakeJunkTraj(), MergeAndStore(), MergePFPTjs(), and tca::TrajClusterAlg::ReconstructAllTraj().
Definition at line 1911 of file TCVertex.cxx.
References tca::TjStuff::allTraj, tca::VtxStore::CTP, tca::VtxStore::ID, kKilled, tca::VtxStore::NTraj, tca::VtxStore::Topo, and tca::TjStuff::vtx.
Referenced by CheckTrajBeginChg(), CompleteIncomplete3DVertices(), CompleteIncomplete3DVerticesInGaps(), tca::TrajClusterAlg::EndMerge(), Find2DVertices(), FindHammerVertices(), FindHammerVertices2(), FindNeutralVertices(), MakeJunkVertices(), Split3DKink(), tca::TrajClusterAlg::SplitHiChgHits(), and SplitTraj().
Definition at line 2985 of file Utils.cxx.
References tca::Trajectory::AlgMod, tca::TjStuff::allTraj, tca::DebugStuff::CTP, tca::Trajectory::CTP, debug, DeltaAngle(), tca::TjStuff::DeltaRayTag, tca::Trajectory::EndPt, tca::Trajectory::ID, kDeltaRay, tca::TjStuff::KinkCuts, kKilled, tca::Trajectory::MCSMom, tca::Trajectory::ParentID, tca::Trajectory::PDGCode, PointTrajDOCA(), PosSep(), PrintPos(), tca::Trajectory::Pts, ReverseTraj(), tca::Trajectory::StepDir, tca::DebugStuff::Tick, TrajTrajDOCA(), tca::TjStuff::UseAlg, and tca::TjStuff::Vertex2DCuts.
Referenced by DotProd(), and tca::TrajClusterAlg::ReconstructAllTraj().
void tca::TagJunkTj | ( | TjStuff const & | tjs, |
Trajectory & | tj, | ||
bool | prt | ||
) |
Definition at line 2309 of file Utils.cxx.
References tca::Trajectory::AlgMod, tca::Trajectory::ID, kJunkTj, and tca::Trajectory::Pts.
Referenced by tca::TrajClusterAlg::CheckTraj().
void tca::TagMuonDirections | ( | TjStuff & | tjs, |
short | debugWorkID | ||
) |
Definition at line 3078 of file Utils.cxx.
References tca::Trajectory::AlgMod, tca::TjStuff::allTraj, tca::Trajectory::CTP, tca::Trajectory::EndPt, tca::Trajectory::ID, kKilled, tca::TjStuff::MuonTag, tca::Trajectory::PDGCode, PrintPos(), tca::Trajectory::Pts, ReverseTraj(), tca::Trajectory::StepDir, and tca::Trajectory::WorkID.
Referenced by DotProd(), and tca::TrajClusterAlg::RunTrajClusterAlg().
Definition at line 3700 of file TCShower.cxx.
References tca::TjStuff::allTraj, evd::details::begin(), tca::TjStuff::ChargeCuts, evd::details::end(), tca::Trajectory::EndPt, FarEnd(), GetAssns(), tca::Trajectory::ID, kBragg, kKilled, kSetDir, kShowerLike, kShowerTj, MakeVertexObsolete(), NumPtsWithCharge(), PosSep(), tca::Trajectory::Pts, tca::TjStuff::ShowerTag, TrajTrajDOCA(), and tca::TjStuff::vtx.
Referenced by tca::TrajClusterAlg::ReconstructAllTraj().
void tca::TjDeltaRMS | ( | TjStuff & | tjs, |
Trajectory & | tj, | ||
unsigned short | firstPt, | ||
unsigned short | lastPt, | ||
double & | rms, | ||
unsigned short & | cnt | ||
) |
Definition at line 2951 of file Utils.cxx.
References tca::Trajectory::EndPt, tca::TrajPoint::HitPos, MakeBareTrajPoint(), NearestPtWithChg(), PointTrajDOCA2(), tca::TrajPoint::Pos, tca::Trajectory::Pts, and tmp.
Referenced by DotProd(), and MCSThetaRMS().
float tca::TjDirFOM | ( | const TjStuff & | tjs, |
const Trajectory & | tj, | ||
bool | prt | ||
) |
Definition at line 906 of file Utils.cxx.
References tca::Trajectory::AlgMod, B, tca::Trajectory::EndPt, tca::Trajectory::ID, kEnvOverlap, kKilled, geo::origin(), PosSep(), PrintPos(), tca::Trajectory::Pts, w, x, and y.
Referenced by StoreTraj().
float tca::TPHitsRMSTick | ( | TjStuff & | tjs, |
TrajPoint & | tp, | ||
HitStatus_t | hitRequest | ||
) |
Definition at line 3582 of file Utils.cxx.
References tca::TjStuff::fHits, tca::TrajPoint::Hits, kAllHits, kUnusedHits, kUsedHits, and tca::TrajPoint::UseHit.
Referenced by DotProd(), tca::TrajClusterAlg::FindUseHits(), and TPHitsRMSTime().
float tca::TPHitsRMSTime | ( | TjStuff & | tjs, |
TrajPoint & | tp, | ||
HitStatus_t | hitRequest | ||
) |
Definition at line 3576 of file Utils.cxx.
References TPHitsRMSTick(), and tca::TjStuff::UnitsPerTick.
Referenced by DotProd(), and FillmAllTraj().
Definition at line 1637 of file TCVertex.cxx.
References tca::TrajPoint::CTP, tca::TrajPoint::Pos, and tca::TjStuff::vtx.
Referenced by tca::TrajClusterAlg::StepCrawl().
Definition at line 1678 of file Utils.cxx.
References tca::TjStuff::fHits, tca::TrajPoint::Hits, and tca::TrajPoint::UseHit.
Referenced by tca::TrajClusterAlg::SplitHiChgHits(), and VtxHitsSwap().
bool tca::TrajClosestApproach | ( | Trajectory const & | tj, |
float | x, | ||
float | y, | ||
unsigned short & | closePt, | ||
float & | DOCA | ||
) |
Definition at line 2244 of file Utils.cxx.
References tca::Trajectory::EndPt, tca::Trajectory::Pts, x, and y.
Referenced by AttachTrajToVertex(), CompatibleMerge(), Find2DVertices(), FindHammerVertices2(), and SplitTrajCrossingVertices().
bool tca::TrajHitsOK | ( | TjStuff & | tjs, |
const std::vector< unsigned int > & | iHitsInMultiplet, | ||
const std::vector< unsigned int > & | jHitsInMultiplet | ||
) |
Definition at line 1563 of file Utils.cxx.
References tca::TjStuff::fHits, HitsPosTick(), and kAllHits.
Referenced by tca::TrajClusterAlg::FindJunkTraj(), and tca::TrajClusterAlg::ReconstructAllTraj().
bool tca::TrajHitsOK | ( | TjStuff & | tjs, |
const unsigned int | iht, | ||
const unsigned int | jht | ||
) |
Definition at line 1603 of file Utils.cxx.
References tca::TCHit::ArtPtr, tca::TjStuff::fHits, tca::TCHit::PeakTime, tca::TCHit::RMS, geo::WireID::Wire, and recob::Hit::WireID().
Definition at line 2166 of file Utils.cxx.
References TrajIntersection().
Referenced by tca::TrajClusterAlg::EndMerge(), Find2DVertices(), FindHammerVertices2(), and FitVertex().
Definition at line 2171 of file Utils.cxx.
References tca::TrajPoint::Dir, tca::TrajPoint::Pos, and s.
Referenced by TrajIntersection().
bool tca::TrajIsClean | ( | TjStuff & | tjs, |
Trajectory & | tj, | ||
bool | prt | ||
) |
Definition at line 2814 of file Utils.cxx.
References tca::Trajectory::EndPt, tca::TrajPoint::Hits, tca::Trajectory::Pts, and tca::TrajPoint::UseHit.
Referenced by DotProd(), and tca::TrajClusterAlg::UpdateTraj().
float tca::TrajLength | ( | Trajectory & | tj | ) |
Definition at line 2204 of file Utils.cxx.
References tca::Trajectory::EndPt, and tca::Trajectory::Pts.
Referenced by AttachTrajToVertex(), tca::TrajClusterAlg::EndMerge(), Find2DVertices(), MakeJunkVertices(), and PDGCodeVote().
Definition at line 2235 of file Utils.cxx.
References tca::TrajPoint::Pos.
Referenced by tca::TrajClusterAlg::EndMerge(), tca::TrajClusterAlg::GottaKink(), tca::TrajClusterAlg::MakeJunkTraj(), tca::TrajClusterAlg::MaskTrajEndPoints(), MCSMom(), MCSThetaRMS(), and tca::TrajClusterAlg::StepCrawl().
void tca::TrajPointTrajDOCA | ( | TjStuff & | tjs, |
TrajPoint const & | tp, | ||
Trajectory const & | tj, | ||
unsigned short & | closePt, | ||
float & | minSep | ||
) |
Definition at line 2026 of file Utils.cxx.
References tca::Trajectory::EndPt, tca::TrajPoint::Pos, and tca::Trajectory::Pts.
Referenced by CompleteIncomplete3DVertices(), FindHammerVertices(), FindHammerVertices2(), tca::TrajClusterAlg::FindMissedVxTjs(), and MergeAndStore().
Definition at line 1847 of file TCVertex.cxx.
References tca::TrajPoint::AngErr, tca::TrajPoint::Dir, tca::TrajPoint::HitPosErr2, PointTrajDOCA(), tca::VtxStore::Pos, tca::TrajPoint::Pos, tca::VtxStore::PosErr, and PosSep2().
Referenced by AttachTrajToVertex(), and FitVertex().
bool tca::TrajTrajDOCA | ( | const TjStuff & | tjs, |
const Trajectory & | tj1, | ||
const Trajectory & | tj2, | ||
unsigned short & | ipt1, | ||
unsigned short & | ipt2, | ||
float & | minSep | ||
) |
Definition at line 2046 of file Utils.cxx.
References TrajTrajDOCA().
Referenced by tca::TrajClusterAlg::EndMerge(), Find2DVertices(), FindCots(), FindNearbyTjs(), InShowerProb(), and TagShowerLike().
bool tca::TrajTrajDOCA | ( | const TjStuff & | tjs, |
const Trajectory & | tj1, | ||
const Trajectory & | tj2, | ||
unsigned short & | ipt1, | ||
unsigned short & | ipt2, | ||
float & | minSep, | ||
bool | considerDeadWires | ||
) |
Definition at line 2052 of file Utils.cxx.
References DeadWireCount(), tca::Trajectory::EndPt, and tca::Trajectory::Pts.
Referenced by DefineTjParents(), TagDeltaRays(), and TrajTrajDOCA().
bool tca::TransferTjHits | ( | TjStuff & | tjs, |
bool | prt | ||
) |
Definition at line 4383 of file TCShower.cxx.
References tca::TjStuff::allTraj, tca::TjStuff::cots, tca::TjStuff::fHits, tca::Trajectory::ID, kKilled, kShowerTj, kUsedHits, tca::Trajectory::Pts, PutTrajHitsInVector(), and ss.
Referenced by Finish3DShowers().
void tca::TrimEndPts | ( | std::string | fcnLabel, |
TjStuff & | tjs, | ||
Trajectory & | tj, | ||
const std::vector< float > & | fQualityCuts, | ||
bool | prt | ||
) |
Definition at line 1342 of file Utils.cxx.
References tca::Trajectory::AlgMod, tca::Trajectory::CTP, DecodeCTP(), tca::Trajectory::EndPt, tca::Trajectory::ID, kTEP, NumPtsWithCharge(), tca::TjStuff::NumWires, geo::PlaneID::Plane, PrintTrajectory(), tca::Trajectory::Pts, SetEndPoints(), tca::Trajectory::StepDir, UnsetUsedHits(), tca::TjStuff::UseAlg, and tca::TjStuff::WireHitRange.
Referenced by tca::TrajClusterAlg::CheckTraj(), tca::TrajClusterAlg::FixTrajBegin(), and tca::TrajClusterAlg::IsGhost().
Definition at line 2274 of file Utils.cxx.
References tca::TrajPoint::Pos.
Definition at line 1082 of file Utils.cxx.
References tca::TrajPoint::Chg, tca::TjStuff::fHits, tca::TrajPoint::Hits, and tca::TrajPoint::UseHit.
Referenced by tca::TrajClusterAlg::CheckHiMultEndHits(), tca::TrajClusterAlg::CheckHiMultUnusedHits(), tca::TrajClusterAlg::CheckTraj(), ChkChgAsymmetry(), tca::TrajClusterAlg::ChkStopEndPts(), tca::TrajClusterAlg::FillGaps(), tca::TrajClusterAlg::FindSoftKink(), tca::TrajClusterAlg::FixTrajBegin(), tca::TrajClusterAlg::IsGhost(), tca::TrajClusterAlg::MaskBadTPs(), tca::TrajClusterAlg::MaskTrajEndPoints(), TrimEndPts(), tca::TrajClusterAlg::UpdateTraj(), and tca::TrajClusterAlg::UseUnusedHits().
void tca::UpdateMatchStructs | ( | TjStuff & | tjs, |
int | oldTj, | ||
int | newTj | ||
) |
Definition at line 16 of file PFPUtils.cxx.
References tca::TjStuff::allTraj, detinfo::DetectorProperties::ConvertTicksToX(), DecodeCTP(), tca::TjStuff::detprop, tca::TjStuff::mallTraj, tca::TjStuff::pfps, and tca::TjStuff::UnitsPerTick.
Referenced by MergeAndStore(), MergePFPTjs(), ReverseTraj(), and SplitTraj().
bool tca::UpdateShower | ( | std::string | inFcnLabel, |
TjStuff & | tjs, | ||
ShowerStruct & | ss, | ||
bool | prt | ||
) |
Definition at line 1104 of file TCShower.cxx.
References tca::TjStuff::allTraj, AnalyzeRotPos(), tca::ShowerStruct::Angle, tca::ShowerStruct::AspectRatio, B, tca::ShowerStruct::Cheat, tca::ShowerPoint::Chg, ChgToMeV(), tca::ShowerStruct::CTP, DefineEnvelope(), tca::ShowerStruct::DirectionFOM, tca::ShowerStruct::Energy, FarEnd(), tca::TjStuff::fHits, tca::ShowerPoint::HitIndex, tca::TrajPoint::Hits, tca::ShowerStruct::ID, kShowerTj, lessThan(), tca::ShowerStruct::NeedsUpdate, tca::ShowerStruct::ParentID, PointDirection(), tca::ShowerPoint::Pos, PosSep2(), PrintPos(), ReverseShower(), tca::ShowerStruct::ShowerTjID, tca::ShowerStruct::ShPts, ss, tca::ShowerPoint::TID, tca::ShowerStruct::TjIDs, tca::TjStuff::UnitsPerTick, tca::TrajPoint::UseHit, and xx.
Referenced by tca::MCParticleListUtils::MakeCheatShower().
bool tca::UpdateShower | ( | std::string | inFcnLabel, |
TjStuff & | tjs, | ||
ShowerStruct3D & | ss3, | ||
bool | prt | ||
) |
Definition at line 1302 of file TCShower.cxx.
References tca::TjStuff::allTraj, tca::ShowerStruct3D::ChgPos, tca::ShowerStruct3D::CotIDs, tca::TjStuff::cots, DecodeCTP(), tca::ShowerStruct3D::dEdx, tca::ShowerStruct3D::dEdxErr, dir, tca::TrajPoint3::Dir, tca::ShowerStruct3D::Dir, tca::ShowerStruct3D::End, tca::ShowerStruct3D::Energy, tca::ShowerStruct3D::EnergyErr, FarEnd(), tca::ShowerStruct3D::ID, tca::ShowerStruct3D::Len, MakeTp3(), tca::ShowerStruct3D::MIPEnergy, tca::ShowerStruct3D::MIPEnergyErr, tca::ShowerStruct3D::NeedsUpdate, tca::ShowerStruct3D::ParentID, tca::TjStuff::pfps, geo::PlaneID::Plane, tca::TrajPoint3::Pos, PosSep(), SetMag(), ss, tca::ShowerStruct3D::Start, and tca::ShowerStruct3D::Vx3ID.
Referenced by AddPFP(), AddTj(), AddTjsInsideEnvelope(), CompleteIncompleteShower(), FindParent(), FindShowers3D(), Match2DShowers(), MergeShowers(), MergeShowersAndStore(), Reconcile3D(), RemovePFP(), RemoveTj(), and SetParent().
void tca::UpdateTjChgProperties | ( | std::string | inFcnLabel, |
TjStuff & | tjs, | ||
Trajectory & | tj, | ||
bool | prt | ||
) |
Definition at line 3118 of file Utils.cxx.
References tca::Trajectory::AlgMod, tca::Trajectory::AveChg, tca::Trajectory::ChgRMS, evd::details::end(), tca::Trajectory::EndPt, tca::TjStuff::fHits, kEnvNearTj, kEnvOverlap, kEnvUnusedHits, kKilled, kPhoton, tca::Trajectory::NeedsUpdate, tca::TjStuff::NPtsAve, tca::Trajectory::Pts, tca::Trajectory::TotChg, tca::TjStuff::vtx, and tca::Trajectory::VtxID.
Referenced by tca::TrajClusterAlg::AddLAHits(), tca::TrajClusterAlg::ChkStopEndPts(), DotProd(), tca::TrajClusterAlg::MaskedHitsOK(), MaxChargeAsymmetry(), SplitTraj(), StoreTraj(), tca::TrajClusterAlg::UpdateTraj(), and UpdateVxEnvironment().
Definition at line 85 of file PFPUtils.cxx.
References tca::TjStuff::allTraj, detinfo::DetectorProperties::ConvertTicksToX(), DecodeCTP(), tca::TjStuff::detprop, tca::TjStuff::mallTraj, tca::PFPStruct::Tp3s, and tca::TjStuff::UnitsPerTick.
Referenced by MergePFPTjs().
Definition at line 3297 of file Utils.cxx.
References tca::TjStuff::allTraj, tca::TrajPoint::Chg, tca::VtxStore::CTP, tca::TrajPoint::Dir, evd::details::end(), tca::VtxStore::ID, kEnvOverlap, kKilled, kOnDeadWire, kPhoton, MakeBareTrajPoint(), tca::VtxStore::Pos, tca::TrajPoint::Pos, PrintPos(), tca::VtxStore::Stat, and UpdateTjChgProperties().
Referenced by DotProd(), and tca::TrajClusterAlg::ReconstructAllTraj().
Definition at line 10 of file TCVertex.cxx.
References tca::SortEntry::val.
Referenced by tca::TrajClusterAlg::FindVtxTraj(), tca::TrajClusterAlg::MakeAllTrajClusters(), tca::TrajClusterAlg::MakeJunkTraj(), Match3DVtxTjs(), and MergeWithVertex().
Definition at line 12 of file PFPUtils.cxx.
References tca::SortEntry::val.
Referenced by FindPFParticles(), and FindXMatches().
Definition at line 11 of file TCVertex.cxx.
References tca::SortEntry::val.
Referenced by Find3DVertices().
Definition at line 13 of file PFPUtils.cxx.
References tca::SortEntry::val.
Referenced by FillmAllTraj(), and SetStart().
Definition at line 1882 of file TCVertex.cxx.
References tca::Vtx3Store::X, tca::Vtx3Store::XErr, tca::Vtx3Store::Y, tca::Vtx3Store::YErr, tca::Vtx3Store::Z, and tca::Vtx3Store::ZErr.
Referenced by IsCloseToVertex().
Definition at line 1898 of file TCVertex.cxx.
References tca::VtxStore::Pos, and tca::VtxStore::PosErr.
Definition at line 2758 of file TCVertex.cxx.
References tca::Trajectory::AlgMod, tca::TjStuff::allTraj, tca::VtxStore::CTP, debug, DecodeCTP(), evd::details::end(), tca::Trajectory::EndPt, tca::TjStuff::fHits, tca::TrajPoint::Hits, tca::VtxStore::ID, tca::Trajectory::ID, kKilled, kVtxHitsSwap, tca::VtxStore::NTraj, tca::DebugStuff::Plane, geo::PlaneID::Plane, PointTrajDOCA(), tca::VtxStore::Pos, PrintPos(), tca::Trajectory::Pts, SetEndPoints(), tca::DebugStuff::Tick, TpSumHitChg(), tca::TjStuff::UseAlg, tca::TrajPoint::UseHit, tca::TjStuff::vtx, and tca::Trajectory::VtxID.
Referenced by tca::TrajClusterAlg::ReconstructAllTraj().
Definition at line 2450 of file TCVertex.cxx.
References tca::Vtx3Store::ID, tca::TjStuff::vtx, and tca::Vtx3Store::Vx2ID.
void tca::WatchHit | ( | std::string | someText, |
TjStuff & | tjs, | ||
const unsigned int & | wHit, | ||
short & | wInTraj, | ||
const unsigned short & | tjID | ||
) |
Definition at line 984 of file Utils.cxx.
References tca::TjStuff::fHits, and PrintHitShort().
Definition at line 3886 of file Utils.cxx.
References geo::CryostatID::Cryostat, DecodeCTP(), geo::TPCID::TPC, and tca::TjStuff::TPCID.
Referenced by DotProd(), and FindCloseHits().
Definition at line 1060 of file PFPUtils.cxx.
References tca::TjStuff::allTraj, and evd::details::end().
bool tca::WrongSplitTj | ( | std::string | inFcnLabel, |
TjStuff & | tjs, | ||
Trajectory & | tj, | ||
unsigned short | tjEnd, | ||
ShowerStruct & | ss, | ||
bool | prt | ||
) |
Definition at line 2409 of file TCShower.cxx.
References tca::Trajectory::AlgMod, tca::Trajectory::ID, kComp3DVx, tca::TjStuff::vtx, and tca::Trajectory::VtxID.
const std::vector< std::string > tca::AlgBitNames |
Definition at line 4 of file DataStructs.cxx.
Referenced by tca::TrajClusterAlg::ChkInTraj(), tca::TrajClusterAlg::GetAlgBitNames(), InTrajOK(), tca::TrajClusterAlg::MakeAllTrajClusters(), tca::TruthMatcher::MatchAndSum(), PrintAllTraj(), PrintTrajectory(), and tca::TrajClusterAlg::reconfigure().
constexpr unsigned int tca::Cpad = 10000 |
Definition at line 43 of file DataStructs.h.
Referenced by DecodeCTP().
DebugStuff tca::debug |
Definition at line 4 of file DebugStruct.cxx.
Referenced by CompleteIncomplete3DVertices(), CompleteIncomplete3DVerticesInGaps(), detinfo::DetectorPropertiesStandard::DetectorPropertiesStandard(), tca::TrajClusterAlg::EndMerge(), FillWireHitRange(), Find2DVertices(), Find3DVertices(), FindHammerVertices(), FindHammerVertices2(), tca::TrajClusterAlg::FindJunkTraj(), tca::TrajClusterAlg::FindMissedVxTjs(), FindNeutralVertices(), FindShowers3D(), main(), MakeJunkVertices(), trkf::SpacePointAlg::makeSpacePoints(), tca::TrajClusterAlg::reconfigure(), tca::TrajClusterAlg::ReconstructAllTraj(), tca::TrajClusterAlg::RunTrajClusterAlg(), cmtool::CBAlgoPolyOverlap::SetDebug(), cmtool::CBAlgoStartInPoly::SetDebug(), cmtool::CFAlgoTimeOverlap::SetDebug(), cmtool::CFAlgo3DAngle::SetDebug(), cmtool::CBAlgoStartInCone::SetDebug(), SplitTrajCrossingVertices(), tca::TrajClusterAlg::StartTraj(), StoreTraj(), TagDeltaRays(), and VtxHitsSwap().
const std::vector< std::string > tca::StopFlagNames |
Definition at line 71 of file DataStructs.cxx.
Referenced by PrintStopFlag(), and tca::TrajClusterAlg::reconfigure().
constexpr unsigned int tca::Tpad = 10 |
Definition at line 42 of file DataStructs.h.
Referenced by DecodeCTP().
const std::vector< std::string > tca::VtxBitNames |
Definition at line 80 of file DataStructs.cxx.
Referenced by PrintAllTraj().