![]() |
LArSoft
v10_04_05
Liquid Argon Software toolkit - https://larsoft.org/
|
Namespaces | |
detail | |
Classes | |
struct | CRTreeVars |
struct | DebugStuff |
struct | DontClusterStruct |
struct | HistStuff |
struct | MatchStruct |
struct | ParFit |
struct | PFPStruct |
struct | SectionFit |
struct | ShowerPoint |
struct | ShowerStruct |
struct | ShowerStruct3D |
struct | ShowerTreeVars |
struct | TCConfig |
struct | TCEvent |
struct | TCHit |
struct | TCSlice |
struct | TCWireIntersection |
struct | Tj2Pt |
struct | TjForecast |
struct | TP3D |
class | TrajClusterAlg |
struct | Trajectory |
struct | TrajPoint |
struct | TrajPoint3 |
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) |
void | StitchPFPs () |
void | FindPFParticles (detinfo::DetectorClocksData const &clockData, detinfo::DetectorPropertiesData const &detProp, TCSlice &slc) |
void | MakePFParticles (detinfo::DetectorClocksData const &clockData, detinfo::DetectorPropertiesData const &detProp, TCSlice &slc, std::vector< MatchStruct > matVec, unsigned short matVec_Iter) |
bool | ReconcileTPs (TCSlice &slc, PFPStruct &pfp, bool prt) |
void | ReconcileTPs (TCSlice &slc) |
void | MakePFPTjs (TCSlice &slc) |
void | FillWireIntersections (TCSlice &slc) |
bool | TCIntersectionPoint (unsigned int wir1, unsigned int wir2, unsigned int pln1, unsigned int pln2, float &y, float &z) |
void | Match3PlanesSpt (TCSlice &slc, std::vector< MatchStruct > &matVec) |
bool | SptInTPC (const std::array< unsigned int, 3 > &sptHits, unsigned int tpc) |
void | Match3Planes (TCSlice &slc, std::vector< MatchStruct > &matVec) |
void | Match2Planes (TCSlice &slc, std::vector< MatchStruct > &matVec) |
bool | Update (detinfo::DetectorPropertiesData const &detProp, const TCSlice &slc, PFPStruct &pfp) |
bool | ReSection (detinfo::DetectorPropertiesData const &detProp, const TCSlice &slc, PFPStruct &pfp, bool prt) |
void | CountBadPoints (const TCSlice &slc, const PFPStruct &pfp, unsigned short fromPt, unsigned short toPt, unsigned short &nBadPts, unsigned short &firstBadPt) |
bool | CanSection (const TCSlice &slc, const PFPStruct &pfp) |
unsigned short | Find3DRecoRange (const TCSlice &slc, const PFPStruct &pfp, unsigned short fromPt, unsigned short min2DPts, short dir) |
void | GetRange (const PFPStruct &pfp, unsigned short sfIndex, unsigned short &fromPt, unsigned short &npts) |
bool | FitSection (detinfo::DetectorPropertiesData const &detProp, const TCSlice &slc, PFPStruct &pfp, unsigned short sfIndex) |
SectionFit | FitTP3Ds (detinfo::DetectorPropertiesData const &detProp, const TCSlice &slc, const std::vector< TP3D > &tp3ds, unsigned short fromPt, short fitDir, unsigned short nPtsFit) |
bool | FitTP3Ds (detinfo::DetectorPropertiesData const &detProp, const TCSlice &slc, PFPStruct &pfp, unsigned short fromPt, unsigned short nPtsFit, unsigned short sfIndex) |
void | ReconcileVertices (TCSlice &slc, PFPStruct &pfp, bool prt) |
void | FillGaps3D (detinfo::DetectorClocksData const &clockData, detinfo::DetectorPropertiesData const &detProp, TCSlice &slc, PFPStruct &pfp, bool prt) |
bool | ValidTwoPlaneMatch (detinfo::DetectorPropertiesData const &detProp, const TCSlice &slc, const PFPStruct &pfp) |
void | AddPointsInRange (detinfo::DetectorClocksData const &clockData, detinfo::DetectorPropertiesData const &detProp, TCSlice &slc, PFPStruct &pfp, unsigned short fromPt, unsigned short toPt, CTP_t inCTP, float maxPull, unsigned short &nWires, unsigned short &nAdd, bool prt) |
unsigned short | InsertTP3D (PFPStruct &pfp, TP3D &tp3d) |
bool | SortSection (PFPStruct &pfp, unsigned short sfIndex) |
void | Recover (detinfo::DetectorPropertiesData const &detProp, TCSlice &slc, PFPStruct &pfp, bool prt) |
bool | MakeTP3Ds (detinfo::DetectorPropertiesData const &detProp, TCSlice &slc, PFPStruct &pfp, bool prt) |
bool | MakeSmallAnglePFP (detinfo::DetectorPropertiesData const &detProp, TCSlice &slc, PFPStruct &pfp, bool prt) |
void | Reverse (PFPStruct &pfp) |
void | FillmAllTraj (detinfo::DetectorPropertiesData const &detProp, TCSlice &slc) |
TP3D | MakeTP3D (detinfo::DetectorPropertiesData const &detProp, const TrajPoint &itp, const TrajPoint &jtp) |
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 (detinfo::DetectorClocksData const &clockData, detinfo::DetectorPropertiesData const &detProp, const TCSlice &slc, PFPStruct &pfp) |
void | Average_dEdX (detinfo::DetectorClocksData const &clockData, detinfo::DetectorPropertiesData const &detProp, const TCSlice &slc, PFPStruct &pfp, float &dEdXAve, float &dEdXRms) |
float | dEdx (detinfo::DetectorClocksData const &clockData, detinfo::DetectorPropertiesData const &detProp, const TCSlice &slc, TP3D &tp3d) |
TP3D | CreateTP3D (detinfo::DetectorPropertiesData const &detProp, const TCSlice &slc, int tjID, unsigned short tpIndex) |
bool | SetSection (detinfo::DetectorPropertiesData const &detProp, PFPStruct &pfp, TP3D &tp3d) |
float | PointPull (const TP3D &tp3d) |
PFPStruct | CreatePFP (const TCSlice &slc) |
void | PFPVertexCheck (TCSlice &slc) |
void | DefinePFPParents (TCSlice &slc) |
bool | StorePFP (TCSlice &slc, PFPStruct &pfp) |
bool | InsideFV (const TCSlice &slc, const PFPStruct &pfp, unsigned short end) |
bool | InsideTPC (const 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) |
float | ChgFracBetween (detinfo::DetectorPropertiesData const &detProp, const TCSlice &slc, Point3_t pos1, Point3_t pos2) |
float | ChgFracNearEnd (detinfo::DetectorPropertiesData const &detProp, const TCSlice &slc, const PFPStruct &pfp, unsigned short end) |
Vector3_t | DirAtEnd (const PFPStruct &pfp, unsigned short end) |
Point3_t | PosAtEnd (const PFPStruct &pfp, unsigned short end) |
float | Length (const PFPStruct &pfp) |
bool | SectionStartEnd (const PFPStruct &pfp, unsigned short sfIndex, unsigned short &startPt, unsigned short &endPt) |
unsigned short | FarEnd (const PFPStruct &pfp, const Point3_t &pos) |
int | PDGCodeVote (detinfo::DetectorClocksData const &clockData, detinfo::DetectorPropertiesData const &detProp, const TCSlice &slc, PFPStruct &pfp) |
void | PrintTP3Ds (detinfo::DetectorClocksData const &clockData, detinfo::DetectorPropertiesData const &detProp, std::string someText, const TCSlice &slc, const PFPStruct &pfp, short printPts) |
double | DotProd (const Vector3_t &v1, const Vector3_t &v2) |
void | StepAway (TCSlice &slc, Trajectory &tj) |
bool | StopShort (TCSlice &slc, Trajectory &tj, bool prt) |
void | SetStrategy (TCSlice &slc, Trajectory &tj) |
void | Forecast (TCSlice &slc, const Trajectory &tj) |
void | UpdateStiffEl (TCSlice const &slc, Trajectory &tj) |
void | UpdateTraj (TCSlice &slc, Trajectory &tj) |
void | CheckStiffEl (TCSlice &slc, Trajectory &tj) |
void | CheckTraj (TCSlice &slc, Trajectory &tj) |
void | AddHits (TCSlice &slc, Trajectory &tj, unsigned short ipt, bool &sigOK) |
void | AddLAHits (TCSlice &slc, Trajectory &tj, unsigned short ipt, bool &sigOK) |
void | ReversePropagate (TCSlice &slc, Trajectory &tj) |
void | GetHitMultiplet (const TCSlice &slc, unsigned int theHit, std::vector< unsigned int > &hitsInMultiplet, bool useLongPulseHits) |
float | HitTimeErr (const TCSlice &slc, unsigned int iht) |
float | HitsTimeErr2 (const TCSlice &slc, const std::vector< unsigned int > &hitVec) |
void | ChkStopEndPts (TCSlice &slc, Trajectory &tj, bool prt) |
void | DefineHitPos (TCSlice &slc, TrajPoint &tp) |
void | FindUseHits (TCSlice &slc, Trajectory &tj, unsigned short ipt, float maxDelta, bool useChg) |
void | FillGaps (TCSlice &slc, Trajectory &tj) |
void | CheckHiMultUnusedHits (TCSlice &slc, Trajectory &tj) |
void | CheckHiMultEndHits (TCSlice &slc, Trajectory &tj) |
void | UpdateDeltaRMS (Trajectory &tj) |
void | MaskBadTPs (TCSlice &slc, Trajectory &tj, float const &maxChi) |
bool | MaskedHitsOK (TCSlice &slc, Trajectory &tj) |
bool | StopIfBadFits (Trajectory &tj) |
bool | GottaKink (TCSlice &slc, Trajectory &tj, bool doTrim) |
void | ChkBegin (TCSlice &slc, Trajectory &tj) |
void | FixBegin (TCSlice &slc, Trajectory &tj, unsigned short atPt) |
bool | IsGhost (TCSlice &slc, Trajectory &tj) |
bool | IsGhost (TCSlice &slc, std::vector< unsigned int > &tHits) |
void | LastEndMerge (TCSlice &slc, CTP_t inCTP) |
TrajPoint | CreateTPFromTj (const Trajectory &tj) |
void | EndMerge (TCSlice &slc, CTP_t inCTP, bool lastPass) |
void | MaskTrajEndPoints (TCSlice &slc, Trajectory &tj, unsigned short nPts) |
void | ChkStop (Trajectory &tj) |
bool | ChkMichel (Trajectory &tj, unsigned short &lastGoodPt) |
bool | MakeJunkTraj (TCSlice &slc, std::vector< unsigned int > tHits) |
void | SaveCRInfo (detinfo::DetectorClocksData const &clockData, TCSlice &slc, PFPStruct &pfp, bool fIsRealData) |
int | GetOrigin (detinfo::DetectorClocksData const &clockData, TCSlice &slc, PFPStruct &pfp) |
void | ClearCRInfo (TCSlice &slc) |
void | ConfigureMVA (TCConfig &tcc, std::string fMVAShowerParentWeights) |
bool | FindShowerStart (detinfo::DetectorPropertiesData const &detProp, TCSlice &slc, ShowerStruct3D &ss3, bool prt) |
void | Finish3DShowers (TCSlice &slc) |
bool | FindShowers3D (detinfo::DetectorPropertiesData const &detProp, TCSlice &slc) |
bool | Reconcile3D (std::string inFcnLabel, TCSlice &slc, bool parentSearchDone, bool prt) |
bool | Reconcile3D (std::string inFcnLabel, TCSlice &slc, ShowerStruct3D &ss3, bool prt) |
void | KillVerticesInShower (std::string inFcnLabel, TCSlice &slc, ShowerStruct &ss, bool prt) |
bool | CompleteIncompleteShower (std::string inFcnLabel, TCSlice &slc, ShowerStruct3D &ss3, bool prt) |
bool | UpdateShower (std::string inFcnLabel, TCSlice &slc, ShowerStruct &ss, bool prt) |
bool | UpdateShower (std::string inFcnLabel, TCSlice &slc, ShowerStruct3D &ss3, bool prt) |
float | Match3DFOM (detinfo::DetectorPropertiesData const &detProp, std::string inFcnLabel, TCSlice &slc, ShowerStruct3D &ss3, bool prt) |
float | Match3DFOM (detinfo::DetectorPropertiesData const &detProp, std::string inFcnLabel, TCSlice &slc, int icid, int jcid, int kcid, bool prt) |
float | Match3DFOM (detinfo::DetectorPropertiesData const &detProp, std::string inFcnLabel, TCSlice &slc, int icid, int jcid, bool prt) |
void | MergeTjList (std::vector< std::vector< int >> &tjList) |
bool | RemovePFP (std::string inFcnLabel, TCSlice &slc, PFPStruct &pfp, ShowerStruct3D &ss3, bool doUpdate, bool prt) |
bool | AddPFP (std::string inFcnLabel, TCSlice &slc, int pID, ShowerStruct3D &ss3, bool doUpdate, bool prt) |
bool | AddTj (std::string inFcnLabel, TCSlice &slc, int tjID, ShowerStruct &ss, bool doUpdate, bool prt) |
bool | RemoveTj (std::string inFcnLabel, TCSlice &slc, int TjID, ShowerStruct &ss, bool doUpdate, bool prt) |
bool | FindParent (detinfo::DetectorPropertiesData const &detProp, std::string inFcnLabel, TCSlice &slc, ShowerStruct3D &ss3, bool prt) |
bool | SetParent (detinfo::DetectorPropertiesData const &detProp, std::string inFcnLabel, TCSlice &slc, PFPStruct &pfp, ShowerStruct3D &ss3, bool prt) |
bool | IsShowerLike (TCSlice const &slc, std::vector< int > const &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 (TCSlice &slc, const ShowerStruct3D &ss3, const PFPStruct &pfp) |
float | InShowerProb (TCSlice &slc, const ShowerStruct &ss, const Trajectory &tj) |
float | ParentFOM (std::string inFcnLabel, TCSlice &slc, PFPStruct &pfp, ShowerStruct3D &ss3, bool prt) |
float | ParentFOM (std::string inFcnLabel, TCSlice &slc, Trajectory &tj, unsigned short &tjEnd, ShowerStruct &ss, float &tp1Sep, float &vx2Score, bool prt) |
bool | WrongSplitTj (std::string inFcnLabel, TCSlice &slc, Trajectory &tj, unsigned short tjEnd, bool prt) |
void | MergeNearby2DShowers (std::string inFcnLabel, TCSlice &slc, const CTP_t &inCTP, bool prt) |
void | MergeOverlap (std::string inFcnLabel, TCSlice &slc, const CTP_t &inCTP, bool prt) |
void | MergeShowerChain (std::string inFcnLabel, TCSlice &slc, const CTP_t &inCTP, bool prt) |
void | MergeSubShowersTj (std::string inFcnLabel, TCSlice &slc, const CTP_t &inCTP, bool prt) |
void | MergeSubShowers (std::string inFcnLabel, TCSlice &slc, const CTP_t &inCTP, bool prt) |
int | MergeShowers (std::string inFcnLabel, TCSlice &slc, std::vector< int > ssIDs, bool prt) |
bool | MergeShowersAndStore (std::string inFcnLabel, TCSlice &slc, int icotID, int jcotID, bool prt) |
bool | MergeShowerTjsAndStore (TCSlice &slc, unsigned short istj, unsigned short jstj, bool prt) |
bool | AnalyzeRotPos (std::string inFcnLabel, TCSlice &slc, ShowerStruct &ss, bool prt) |
void | ReverseShower (std::string inFcnLabel, TCSlice &slc, ShowerStruct &ss, bool prt) |
void | ReverseShower (std::string inFcnLabel, TCSlice &slc, int cotID, bool prt) |
void | MakeShowerObsolete (std::string inFcnLabel, TCSlice &slc, ShowerStruct3D &ss3, bool prt) |
void | MakeShowerObsolete (std::string inFcnLabel, TCSlice &slc, ShowerStruct &ss, bool prt) |
bool | DontCluster (TCSlice const &slc, const std::vector< int > &tjlist1, const std::vector< int > &tjlist2) |
void | TagShowerLike (TCSlice &slc, const CTP_t &inCTP) |
void | FindNearbyTjs (std::string inFcnLabel, TCSlice &slc, ShowerStruct &ss, bool prt) |
void | AddCloseTjsToList (TCSlice &slc, unsigned short itj, std::vector< int > list) |
void | DefineEnvelope (std::string inFcnLabel, TCSlice &slc, ShowerStruct &ss, bool prt) |
bool | AddTjsInsideEnvelope (std::string inFcnLabel, TCSlice &slc, ShowerStruct &ss, bool prt) |
bool | AddLooseHits (TCSlice &slc, int cotID, bool prt) |
void | FindStartChg (std::string inFcnLabel, TCSlice &slc, int cotID, bool prt) |
std::vector< float > | StartChgVec (TCSlice &slc, int cotID) |
void | DumpShowerPts (TCSlice &slc, int cotID) |
bool | TransferTjHits (TCSlice &slc, bool prt) |
int | GetCotID (TCSlice &slc, int ShowerTjID) |
double | ShowerEnergy (const ShowerStruct3D &ss3) |
float | ShowerEnergy (TCSlice &slc, const std::vector< int > tjIDs) |
float | ChgToMeV (float chg) |
bool | StoreShower (std::string inFcnLabel, TCSlice &slc, ShowerStruct3D &ss3) |
bool | StoreShower (std::string inFcnLabel, TCSlice &slc, ShowerStruct &ss) |
ShowerStruct3D | CreateSS3 (TCSlice &slc) |
ShowerStruct | CreateSS (TCSlice &slc, const std::vector< int > &tjl) |
bool | ChkAssns (std::string inFcnLabel, TCSlice &slc) |
void | PrintShowers (detinfo::DetectorPropertiesData const &detProp, std::string fcnLabel, TCSlice const &slc) |
void | Print2DShowers (std::string someText, TCSlice const &slc, CTP_t inCTP, bool printKilledShowers) |
void | PrintShower (std::string someText, TCSlice const &slc, const ShowerStruct &ss, bool printHeader, bool printExtras) |
void | Match2DShowers (std::string inFcnLabel, TCSlice &slc, bool prt) |
void | DefineDontCluster (TCSlice &slc, bool prt) |
bool | RemovePFP (std::string inFcnLabel, TCSlice &slc, int pID, ShowerStruct3D &ss3, bool doUpdate, bool prt) |
double | InShowerProb (double showerEnergy, double along, double trans) |
bool | AddLooseHits (std::string inFcnLabel, TCSlice &slc, int cotID, bool prt) |
void | DumpShowerPts (std::string inFcnLabel, TCSlice &slc, int cotID) |
void | FindCots (std::string inFcnLabel, TCSlice &slc, const CTP_t &inCTP, std::vector< std::vector< int >> &tjLists, bool prt) |
void | AddCloseTjsToList (std::string inFcnLabel, TCSlice &slc, unsigned short itj, std::vector< int > list) |
void | MergeTjList2 (std::string inFcnLabel, TCSlice &slc, std::vector< std::vector< int >> &tjList, bool prt) |
void | SaveTjInfo (TCSlice &slc, std::vector< std::vector< int >> &tjList, std::string stageName) |
void | SaveTjInfo (TCSlice &slc, const ShowerStruct &ss, std::string stageName) |
void | SaveTjInfoStuff (TCSlice &slc, Trajectory &tj, int stageNum) |
void | SaveAllCots (TCSlice &slc, const CTP_t &inCTP, std::string someText) |
void | SaveAllCots (TCSlice &slc, std::string someText) |
int | GetStageNum (ShowerTreeVars &stv, std::string stageName) |
void | ClearShowerTree (ShowerTreeVars &stv) |
void | MakeJunkVertices (TCSlice &slc, const CTP_t &inCTP) |
void | Find2DVertices (detinfo::DetectorPropertiesData const &detProp, TCSlice &slc, const CTP_t &inCTP, unsigned short pass) |
bool | MergeWithVertex (TCSlice &slc, VtxStore &vx, unsigned short oVxID) |
void | FindHammerVertices2 (TCSlice &slc, const CTP_t &inCTP) |
void | FindHammerVertices (TCSlice &slc, const CTP_t &inCTP) |
void | SplitTrajCrossingVertices (TCSlice &slc, CTP_t inCTP) |
void | Reconcile2Vs (TCSlice &slc) |
bool | Reconcile2VTs (TCSlice &slc, std::vector< int > &vx2cls, bool prt) |
void | Find3DVertices (detinfo::DetectorPropertiesData const &detProp, TCSlice &slc) |
unsigned short | TPNearVertex (const TCSlice &slc, const TrajPoint &tp) |
bool | AttachToAnyVertex (TCSlice &slc, PFPStruct &pfp, float maxSep, bool prt) |
bool | AttachAnyVertexToTraj (TCSlice &slc, int tjID, bool prt) |
bool | AttachAnyTrajToVertex (TCSlice &slc, unsigned short ivx, bool prt) |
bool | AttachTrajToVertex (TCSlice &slc, Trajectory &tj, VtxStore &vx, bool prt) |
float | TrajPointVertexPull (const TrajPoint &tp, const VtxStore &vx) |
float | VertexVertexPull (const Vtx3Store &vx1, const Vtx3Store &vx2) |
float | VertexVertexPull (const VtxStore &vx1, const VtxStore &vx2) |
bool | StoreVertex (TCSlice &slc, VtxStore &vx) |
bool | FitVertex (TCSlice &slc, VtxStore &vx, bool prt) |
bool | FitVertex (TCSlice &slc, VtxStore &vx, std::vector< TrajPoint > &vxTPs, bool prt) |
bool | ChkVtxAssociations (TCSlice &slc, const CTP_t &inCTP) |
void | ScoreVertices (TCSlice &slc) |
void | KillPoorVertices (TCSlice &slc) |
void | SetHighScoreBits (TCSlice &slc, Vtx3Store &vx3) |
void | SetVx3Score (TCSlice &slc, Vtx3Store &vx3) |
void | SetVx2Score (TCSlice &slc) |
void | SetVx2Score (TCSlice &slc, VtxStore &vx2) |
void | CompleteIncomplete3DVerticesInGaps (detinfo::DetectorPropertiesData const &detProp, TCSlice &slc) |
void | CompleteIncomplete3DVertices (detinfo::DetectorPropertiesData const &detProp, TCSlice &slc) |
bool | RefineVtxPosition (const Trajectory &tj, unsigned short &nearPt, short nPtsToChk, bool prt) |
bool | MakeVertexObsolete (std::string fcnLabel, TCSlice &slc, VtxStore &vx2, bool forceKill) |
bool | MakeVertexObsolete (TCSlice &slc, Vtx3Store &vx3) |
std::vector< int > | GetVtxTjIDs (const TCSlice &slc, const VtxStore &vx2) |
std::vector< int > | GetVtxTjIDs (const TCSlice &slc, const Vtx3Store &vx3, float &score) |
void | PosInPlane (detinfo::DetectorPropertiesData const &detProp, const Vtx3Store &vx3, unsigned short plane, Point2_t &pos) |
unsigned short | IsCloseToVertex (const TCSlice &slc, const VtxStore &inVx2) |
unsigned short | IsCloseToVertex (const TCSlice &slc, const Vtx3Store &vx3) |
void | MakeJunkTjVertices (TCSlice &slc, const CTP_t &inCTP) |
void | MakeHaloTj (TCSlice &slc, Trajectory &muTj, bool prt) |
void | DefineTjParents (TCSlice &slc, bool prt) |
float | MaxChargeAsymmetry (TCSlice &slc, std::vector< int > const &tjIDs) |
int | PDGCodeVote (const TCSlice &slc, const std::vector< int > &tjIDs) |
int | NeutrinoPrimaryTjID (const TCSlice &slc, const Trajectory &tj) |
int | PrimaryID (const TCSlice &slc, const Trajectory &tj) |
int | PrimaryUID (const PFPStruct &pfp) |
bool | MergeTjIntoPFP (TCSlice &slc, int mtjid, PFPStruct &pfp, bool prt) |
float | PointPull (Point2_t pos, float chg, const Trajectory &tj) |
bool | CompatibleMerge (const TCSlice &slc, std::vector< int > const &tjIDs, bool prt) |
bool | CompatibleMerge (const Trajectory &tj1, const Trajectory &tj2, bool prt) |
float | OverlapFraction (const Trajectory &tj1, const Trajectory &tj2) |
unsigned short | AngleRange (TrajPoint const &tp) |
void | SetAngleCode (TrajPoint &tp) |
unsigned short | AngleRange (float angle) |
void | FitTraj (TCSlice const &slc, Trajectory &tj) |
void | FitTraj (TCSlice const &slc, Trajectory &tj, unsigned short originPt, unsigned short npts, short fitDir, TrajPoint &tpFit) |
unsigned short | GetPFPIndex (const TCSlice &slc, int tjID) |
void | ReleaseHits (TCSlice &slc, Trajectory const &tj) |
void | UnsetUsedHits (TCSlice &slc, TrajPoint &tp) |
bool | StoreTraj (TCSlice &slc, Trajectory &tj) |
void | FitPar (const Trajectory &tj, unsigned short originPt, unsigned short npts, short fitDir, ParFit &pFit, unsigned short usePar) |
bool | InTrajOK (TCSlice &slc, std::string someText) |
void | CheckTrajBeginChg (TCSlice &slc, unsigned short itj) |
bool | BraggSplit (TCSlice &slc, unsigned short itj) |
void | TrimHiChgEndPts (TCSlice &slc, Trajectory &tj, bool prt) |
void | TrimEndPts (std::string fcnLabel, TCSlice &slc, Trajectory &tj, const std::vector< float > &fQualityCuts, bool prt) |
void | ChkEndKink (TCSlice const &slc, Trajectory &tj, bool prt) |
void | ChkChgAsymmetry (TCSlice &slc, Trajectory &tj, bool prt) |
bool | SignalBetween (const TrajPoint &tp1, const TrajPoint &tp2, const float MinWireSignalFraction) |
bool | SignalBetween (TrajPoint tp, float toPos0, const float MinWireSignalFraction) |
float | ChgFracBetween (TrajPoint tp, float toPos0) |
bool | TrajHitsOK (TCSlice const &slc, const std::vector< unsigned int > &iHitsInMultiplet, const std::vector< unsigned int > &jHitsInMultiplet) |
bool | TrajHitsOK (TCSlice const &slc, const unsigned int iht, const unsigned int jht) |
float | ExpectedHitsRMS (const TrajPoint &tp) |
bool | SignalAtTpInSlc (const TCSlice &slc, const TrajPoint &tp) |
bool | SignalAtTp (TrajPoint &tp) |
bool | NearbySrcHit (geo::PlaneID plnID, unsigned int wire, float loTick, float hiTick) |
float | TpSumHitChg (const TCSlice &slc, TrajPoint const &tp) |
unsigned short | NumPtsWithCharge (const TCSlice &slc, const Trajectory &tj, bool includeDeadWires) |
unsigned short | NumPtsWithCharge (const TCSlice &slc, const Trajectory &tj, bool includeDeadWires, unsigned short firstPt, unsigned short lastPt) |
float | DeadWireCount (const TCSlice &slc, const TrajPoint &tp1, const TrajPoint &tp2) |
float | DeadWireCount (const TCSlice &slc, const float &inWirePos1, const float &inWirePos2, CTP_t tCTP) |
unsigned short | PDGCodeIndex (int PDGCode) |
void | MakeTrajectoryObsolete (TCSlice &slc, unsigned int itj) |
void | RestoreObsoleteTrajectory (TCSlice &slc, unsigned int itj) |
void | MergeGhostTjs (TCSlice &slc, CTP_t inCTP) |
bool | SplitTraj (detinfo::DetectorPropertiesData const &detProp, TCSlice &slc, unsigned short itj, float XPos, bool makeVx2, bool prt) |
bool | SplitTraj (TCSlice &slc, unsigned short itj, unsigned short pos, unsigned short ivx, bool prt) |
void | TrajPointTrajDOCA (TrajPoint const &tp, Trajectory const &tj, unsigned short &closePt, float &minSep) |
bool | TrajTrajDOCA (const TCSlice &slc, const Trajectory &tj1, const Trajectory &tj2, unsigned short &ipt1, unsigned short &ipt2, float &minSep) |
bool | TrajTrajDOCA (const TCSlice &slc, const Trajectory &tj1, const Trajectory &tj2, unsigned short &ipt1, unsigned short &ipt2, float &minSep, bool considerDeadWires) |
float | HitSep2 (const TCSlice &slc, unsigned int iht, unsigned int jht) |
unsigned short | CloseEnd (const Trajectory &tj, const Point2_t &pos) |
float | PointTrajSep2 (float wire, float time, TrajPoint const &tp) |
float | PointTrajDOCA (const TCSlice &slc, unsigned int iht, TrajPoint const &tp) |
float | PointTrajDOCA (float wire, float time, TrajPoint const &tp) |
float | PointTrajDOCA2 (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 (const TCSlice &slc, std::vector< int > &tjIDs) |
float | TrajLength (const Trajectory &tj) |
float | PosSep (const Point2_t &pos1, const Point2_t &pos2) |
float | PosSep2 (const Point2_t &pos1, const Point2_t &pos2) |
float | TrajPointSeparation (const TrajPoint &tp1, const TrajPoint &tp2) |
bool | TrajClosestApproach (Trajectory const &tj, float x, float y, unsigned short &closePt, float &DOCA) |
float | TwoTPAngle (const TrajPoint &tp1, const TrajPoint &tp2) |
std::vector< unsigned int > | PutHitsInVector (const TCSlice &slc, PFPStruct const &pfp, HitStatus_t hitRequest) |
std::vector< unsigned int > | PutTrajHitsInVector (const Trajectory &tj, HitStatus_t hitRequest) |
void | TagJunkTj (Trajectory &tj, bool prt) |
bool | HasDuplicateHits (const TCSlice &slc, Trajectory const &tj, bool prt) |
void | MoveTPToWire (TrajPoint &tp, float wire) |
std::vector< unsigned int > | FindCloseHits (const TCSlice &slc, std::array< int, 2 > const &wireWindow, Point2_t const &timeWindow, const unsigned short plane, HitStatus_t hitRequest, bool usePeakTime, bool &hitsNear) |
bool | FindCloseHits (TCSlice const &slc, TrajPoint &tp, float const maxDelta, HitStatus_t hitRequest) |
unsigned short | NearbyCleanPt (const Trajectory &tj, unsigned short end) |
std::vector< int > | FindCloseTjs (const TCSlice &slc, const TrajPoint &fromTp, const TrajPoint &toTp, const float &maxDelta) |
float | KinkSignificance (TCSlice const &slc, Trajectory const &tj1, unsigned short end1, Trajectory const &tj2, unsigned short end2, unsigned short nPtsFit, bool useChg, bool prt) |
float | KinkSignificance (TCSlice const &slc, Trajectory &tj, unsigned short kinkPt, unsigned short nPtsFit, bool useChg, bool prt) |
float | ElectronLikelihood (const TCSlice &slc, const Trajectory &tj) |
float | ChgFracNearPos (const TCSlice &slc, const Point2_t &pos, const std::vector< int > &tjIDs) |
float | MaxHitDelta (TCSlice &slc, Trajectory &tj) |
void | ReverseTraj (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 (Trajectory &tj) |
bool | TrajIsClean (Trajectory const &tj, bool prt) |
short | MCSMom (const TCSlice &slc, const std::vector< int > &tjIDs) |
short | MCSMom (const TCSlice &slc, const Trajectory &tj) |
short | MCSMom (const TCSlice &slc, const Trajectory &tj, unsigned short firstPt, unsigned short lastPt) |
unsigned short | NearestPtWithChg (const Trajectory &tj, unsigned short thePt) |
float | MCSThetaRMS (const Trajectory &tj) |
double | MCSThetaRMS (const Trajectory &tj, unsigned short firstPt, unsigned short lastPt) |
void | TjDeltaRMS (const Trajectory &tj, unsigned short firstPt, unsigned short lastPt, double &rms, unsigned short &cnt) |
void | SetTPEnvironment (TCSlice &slc, CTP_t inCTP) |
void | UpdateTjChgProperties (std::string inFcnLabel, TCSlice const &slc, Trajectory &tj, bool prt) |
void | UpdateVxEnvironment (TCSlice &slc) |
void | UpdateVxEnvironment (TCSlice &slc, VtxStore &vx2, bool prt) |
TrajPoint | MakeBareTP (detinfo::DetectorPropertiesData const &detProp, const Point3_t &pos, CTP_t inCTP) |
TrajPoint | MakeBareTP (detinfo::DetectorPropertiesData const &detProp, const Point3_t &pos, const Vector3_t &dir, CTP_t inCTP) |
bool | MakeBareTrajPoint (const TCSlice &slc, unsigned int fromHit, unsigned int toHit, TrajPoint &tp) |
bool | MakeBareTrajPoint (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 TrajPoint &tpIn1, const TrajPoint &tpIn2, TrajPoint &tpOut) |
unsigned short | FarEnd (const Trajectory &tj, const Point2_t &pos) |
Vector2_t | PointDirection (const Point2_t p1, const Point2_t p2) |
float | TPHitsRMSTime (const TCSlice &slc, const TrajPoint &tp, HitStatus_t hitRequest) |
float | TPHitsRMSTick (const TCSlice &slc, const TrajPoint &tp, HitStatus_t hitRequest) |
float | HitsRMSTime (const TCSlice &slc, const std::vector< unsigned int > &hitsInMultiplet, HitStatus_t hitRequest) |
float | HitsRMSTick (const TCSlice &slc, const std::vector< unsigned int > &hitsInMultiplet, HitStatus_t hitRequest) |
float | HitsPosTime (const TCSlice &slc, const std::vector< unsigned int > &hitsInMultiplet, float &sum, HitStatus_t hitRequest) |
float | HitsPosTick (const TCSlice &slc, const std::vector< unsigned int > &hitsInMultiplet, float &sum, HitStatus_t hitRequest) |
unsigned short | NumHitsInTP (const TrajPoint &tp, HitStatus_t hitRequest) |
void | SetPDGCode (TCSlice &slc, unsigned short itj) |
void | SetPDGCode (TCSlice const &slc, Trajectory &tj) |
bool | AnalyzeHits () |
bool | LongPulseHit (const recob::Hit &hit) |
void | FillWireHitRange (geo::TPCID inTPCID) |
bool | FillWireHitRange (detinfo::DetectorClocksData const &clockData, detinfo::DetectorPropertiesData const &detProp, TCSlice &slc) |
bool | WireHitRangeOK (TCSlice const &slc, const CTP_t &inCTP) |
bool | MergeAndStore (TCSlice &slc, unsigned int itj1, unsigned int itj2, bool doPrt) |
std::vector< int > | GetAssns (TCSlice const &slc, std::string type1Name, int id, std::string type2Name) |
bool | StartTraj (TCSlice const &slc, Trajectory &tj, unsigned int fromhit, unsigned int tohit, unsigned short pass) |
bool | StartTraj (Trajectory &tj, float fromWire, float fromTick, float toWire, float toTick, CTP_t &tCTP, unsigned short pass) |
std::pair< unsigned short, unsigned short > | GetSliceIndex (std::string typeName, int uID) |
bool | Fit2D (short mode, Point2_t inPt, float &inPtErr, Vector2_t &outVec, Vector2_t &outVecErr, float &chiDOF) |
bool | DecodeDebugString (std::string strng) |
void | DumpTj () |
void | PrintDebugMode () |
void | PrintAll (detinfo::DetectorPropertiesData const &detProp, std::string someText) |
void | PrintP (mf::LogVerbatim &myprt, PFPStruct const &pfp, bool &printHeader) |
void | Print3V (detinfo::DetectorPropertiesData const &detProp, mf::LogVerbatim &myprt, Vtx3Store const &vx3, bool &printHeader) |
void | Print2V (mf::LogVerbatim &myprt, VtxStore const &vx2, bool &printHeader) |
void | Print3S (detinfo::DetectorPropertiesData const &detProp, mf::LogVerbatim &myprt, ShowerStruct3D const &ss3) |
void | PrintT (mf::LogVerbatim &myprt, Trajectory const &tj, bool &printHeader) |
void | PrintAllTraj (detinfo::DetectorPropertiesData const &detProp, std::string someText, TCSlice const &slc, unsigned short itj, unsigned short ipt, bool prtVtx) |
void | PrintTrajectory (std::string someText, const TCSlice &slc, const Trajectory &tj, unsigned short tPoint) |
void | PrintTPHeader (std::string someText) |
void | PrintTP (std::string someText, const TCSlice &slc, unsigned short ipt, short dir, unsigned short pass, const TrajPoint &tp) |
std::string | TPEnvString (const TrajPoint &tp) |
void | PrintPFP (std::string someText, TCSlice const &slc, const PFPStruct &pfp, bool printHeader) |
void | PrintPFPs (std::string someText, TCSlice const &slc) |
std::string | PrintEndFlag (const PFPStruct &pfp, unsigned short end) |
std::string | PrintEndFlag (const Trajectory &tj, unsigned short end) |
std::string | PrintHitShort (const TCHit &tch) |
std::string | PrintHit (const TCHit &tch) |
std::string | PrintPos (const TrajPoint &tp) |
std::string | PrintPos (const Point2_t &pos) |
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 |
Bruce Baller, balle Citation: Liquid argon TPC signal formation, signal processing and reconstruction techniques B. Baller 2017 JINST 12 P07010 r@fn al.go v
typedef unsigned int tca::CTP_t |
Definition at line 45 of file DataStructs.h.
using tca::Point2_t = typedef std::array<float, 2> |
Definition at line 41 of file DataStructs.h.
using tca::Point3_t = typedef std::array<double, 3> |
Definition at line 39 of file DataStructs.h.
using tca::Vector2_t = typedef std::array<double, 2> |
Definition at line 42 of file DataStructs.h.
using tca::Vector3_t = typedef std::array<double, 3> |
Definition at line 40 of file DataStructs.h.
enum tca::AlgBit_t |
Definition at line 417 of file DataStructs.h.
enum tca::EndFlag_t |
Enumerator | |
---|---|
kSignal | |
kAtKink | |
kAtVtx | |
kBragg | |
kAtTj | |
kOutFV | |
kNoFitVx | |
kFlagBitSize |
don't mess with this line |
Definition at line 498 of file DataStructs.h.
enum tca::HitStatus_t |
Enumerator | |
---|---|
kAllHits | |
kUsedHits | |
kUnusedHits |
enum tca::PFPFlags_t |
Enumerator | |
---|---|
kCanSection | |
kNeedsUpdate | |
kSmallAngle |
Definition at line 300 of file DataStructs.h.
enum tca::Strategy_t |
Enumerator | |
---|---|
kNormal | |
kStiffEl |
use the stiff electron strategy |
kStiffMu |
use the stiff muon strategy |
kSlowing |
use the slowing-down strategy |
Definition at line 490 of file DataStructs.h.
enum tca::TCModes_t |
Definition at line 521 of file DataStructs.h.
enum tca::TP3DFlags_t |
Enumerator | |
---|---|
kTP3DGood | |
kTP3DBad | |
kTP3DHiDEdx |
Definition at line 261 of file DataStructs.h.
enum tca::TPEnvironment_t |
Enumerator | |
---|---|
kEnvNotGoodWire | |
kEnvNearMuon | |
kEnvNearShower | |
kEnvOverlap | |
kEnvUnusedHits | |
kEnvNearSrcHit |
TP is near a hit in the srcHit collection but no allHit hit exists (DUNE disambiguation error) |
kEnvFlag |
a general purpose flag bit used in 3D matching |
Definition at line 510 of file DataStructs.h.
enum tca::VtxBit_t |
Definition at line 86 of file DataStructs.h.
void tca::AddCloseTjsToList | ( | std::string | inFcnLabel, |
TCSlice & | slc, | ||
unsigned short | itj, | ||
std::vector< int > | list | ||
) |
void tca::AddCloseTjsToList | ( | TCSlice & | slc, |
unsigned short | itj, | ||
std::vector< int > | list | ||
) |
Definition at line 3413 of file TCShower.cxx.
References tca::Trajectory::MCSMom, tca::TCConfig::showerTag, tca::TCSlice::slHits, tcc, and tca::TCSlice::tjs.
void tca::AddHits | ( | TCSlice & | slc, |
Trajectory & | tj, | ||
unsigned short | ipt, | ||
bool & | sigOK | ||
) |
Definition at line 1113 of file StepUtils.cxx.
References util::abs(), AddLAHits(), tca::Trajectory::AlgMod, tca::TCEvent::allHits, tca::Trajectory::CTP, tca::TCConfig::dbgStp, DeadWireCount(), DecodeCTP(), DefineHitPos(), tca::TrajPoint::Delta, tca::TrajPoint::DeltaRMS, tca::TrajPoint::Dir, tca::Trajectory::EndPt, tca::TrajPoint::Environment, evt, ExpectedHitsRMS(), FindUseHits(), tca::TCSlice::firstWire, GetHitMultiplet(), tca::TCEvent::goodWire, tca::TrajPoint::Hits, tca::Trajectory::ID, if(), kEnvNearSrcHit, kRvPrp, kSlowing, kStiffEl, kUsedHits, tca::TCSlice::lastWire, LongPulseHit(), MoveTPToWire(), NearbySrcHit(), NumHitsInTP(), geo::PlaneID::Plane, PointTrajDOCA(), tca::TrajPoint::Pos, PrintHit(), tca::TCConfig::projectionErrFactor, tca::Trajectory::Pts, SetEndPoints(), tca::TCSlice::slHits, tca::Trajectory::Strategy, tcc, tca::TCConfig::unitsPerTick, tca::TrajPoint::UseHit, and tca::TCSlice::wireHitRange.
Referenced by cluster::ClusterAndHitMerger::Add(), pma::Track3D::Length(), tca::TrajClusterAlg::ReconstructAllTraj(), and StepAway().
void tca::AddLAHits | ( | TCSlice & | slc, |
Trajectory & | tj, | ||
unsigned short | ipt, | ||
bool & | sigOK | ||
) |
Definition at line 1309 of file StepUtils.cxx.
References tca::TrajPoint::AngleCode, tca::Trajectory::CTP, tca::TCConfig::dbgStp, DecodeCTP(), DefineHitPos(), tca::TrajPoint::Dir, FindCloseHits(), tca::TrajPoint::Hits, tca::Trajectory::ID, kAllHits, tca::TCSlice::lastWire, geo::PlaneID::Plane, tca::TrajPoint::Pos, PrintHit(), PrintPos(), tca::Trajectory::Pts, PutTrajHitsInVector(), SetEndPoints(), tca::TCSlice::slHits, tcc, tca::TCConfig::unitsPerTick, UpdateTjChgProperties(), tca::TrajPoint::UseHit, tca::TCConfig::VLAStepSize, and tca::TCSlice::wireHitRange.
Referenced by AddHits().
bool tca::AddLooseHits | ( | std::string | inFcnLabel, |
TCSlice & | slc, | ||
int | cotID, | ||
bool | prt | ||
) |
bool tca::AddLooseHits | ( | TCSlice & | slc, |
int | cotID, | ||
bool | prt | ||
) |
Definition at line 3578 of file TCShower.cxx.
References tca::TCEvent::allHits, tca::TCSlice::cots, tca::ShowerStruct::CTP, DecodeCTP(), tca::ShowerStruct::Envelope, evt, tca::TrajPoint::Hits, tca::Trajectory::ID, tca::ShowerStruct::ID, if(), tca::TCSlice::lastWire, geo::PlaneID::Plane, PointInsideEnvelope(), tca::Trajectory::Pts, tca::ShowerStruct::ShowerTjID, tca::TCSlice::slHits, tcc, tca::ShowerStruct::TjIDs, tca::TCSlice::tjs, tca::TCConfig::unitsPerTick, and tca::TCSlice::wireHitRange.
bool tca::AddPFP | ( | std::string | inFcnLabel, |
TCSlice & | slc, | ||
int | pID, | ||
ShowerStruct3D & | ss3, | ||
bool | doUpdate, | ||
bool | prt | ||
) |
Definition at line 1368 of file TCShower.cxx.
References AddTj(), tca::ShowerStruct3D::CotIDs, tca::TCSlice::cots, tca::ShowerStruct3D::ID, tca::ShowerStruct3D::NeedsUpdate, tca::TCSlice::pfps, tca::TCSlice::tjs, tca::ShowerStruct3D::TPCID, and UpdateShower().
Referenced by Reconcile3D().
void tca::AddPointsInRange | ( | detinfo::DetectorClocksData const & | clockData, |
detinfo::DetectorPropertiesData const & | detProp, | ||
TCSlice & | slc, | ||
PFPStruct & | pfp, | ||
unsigned short | fromPt, | ||
unsigned short | toPt, | ||
CTP_t | inCTP, | ||
float | maxPull, | ||
unsigned short & | nWires, | ||
unsigned short & | nAdd, | ||
bool | prt | ||
) |
Definition at line 1811 of file PFPUtils.cxx.
References Average_dEdX(), CreateTP3D(), DecodeCTP(), dEdx(), FindCloseHits(), tca::PFPStruct::ID, tca::TCSlice::ID, InsertTP3D(), kEnvNotGoodWire, kEnvOverlap, kUsedHits, MakeBareTP(), MoveTPToWire(), tca::TCSlice::nWires, geo::PlaneID::Plane, PointPull(), tca::TP3D::Pos, PrintPos(), tca::PFPStruct::SectionFits, SetAngleCode(), SetSection(), tca::TP3D::SFIndex, tca::TCSlice::slHits, tca::TP3D::TjID, tca::TCSlice::tjs, tca::PFPStruct::TP3Ds, tca::TP3D::TPIndex, and tca::TP3D::TPX.
Referenced by FillGaps3D().
bool tca::AddTj | ( | std::string | inFcnLabel, |
TCSlice & | slc, | ||
int | tjID, | ||
ShowerStruct & | ss, | ||
bool | doUpdate, | ||
bool | prt | ||
) |
Definition at line 1429 of file TCShower.cxx.
References tca::TCEvent::allHits, tca::TrajPoint::Chg, tca::Trajectory::CTP, tca::ShowerStruct::CTP, tca::Trajectory::EndPt, evt, tca::TrajPoint::Hits, tca::Trajectory::ID, tca::ShowerStruct::ID, tca::ShowerStruct::NearTjIDs, tca::ShowerStruct::NeedsUpdate, tca::Trajectory::Pts, tca::ShowerStruct::ShPts, tca::TCSlice::slHits, tca::Trajectory::SSID, tcc, tca::ShowerStruct::TjIDs, tca::TCSlice::tjs, tca::TCConfig::unitsPerTick, UpdateShower(), and tca::TrajPoint::UseHit.
Referenced by AddPFP(), AddTjsInsideEnvelope(), MergeNearby2DShowers(), MergeSubShowersTj(), and SetParent().
bool tca::AddTjsInsideEnvelope | ( | std::string | inFcnLabel, |
TCSlice & | slc, | ||
ShowerStruct & | ss, | ||
bool | prt | ||
) |
Definition at line 3503 of file TCShower.cxx.
References util::abs(), AddTj(), tca::ShowerStruct::AngleErr, tca::ShowerStruct::CTP, DontCluster(), tca::ShowerStruct::Envelope, tca::ShowerStruct::ID, tca::TCSlice::ID, kKilled, kShowerTj, tca::ShowerStruct::NeedsUpdate, NeutrinoPrimaryTjID(), tca::ShowerStruct::ParentID, PointInsideEnvelope(), tca::ShowerStruct::TjIDs, tca::TCSlice::tjs, tmp, and UpdateShower().
Referenced by FindShowers3D().
bool tca::AnalyzeHits | ( | ) |
Definition at line 4261 of file Utils.cxx.
References tca::TCEvent::allHits, tca::TCEvent::aveHitRMS, tca::TCEvent::aveHitRMSValid, evt, kDebug, tca::TCConfig::modes, geo::WireReadoutGeom::Nplanes(), util::size(), tcc, and tca::TCConfig::wireReadoutGeom.
Referenced by DotProd(), and tca::TrajClusterAlg::SetInputHits().
bool tca::AnalyzeRotPos | ( | std::string | inFcnLabel, |
TCSlice & | slc, | ||
ShowerStruct & | ss, | ||
bool | prt | ||
) |
Definition at line 3022 of file TCShower.cxx.
References util::abs(), tca::ShowerStruct::DirectionFOM, tca::ShowerStruct::ID, tca::Trajectory::Pts, tca::ShowerStruct::ShowerTjID, tca::ShowerStruct::ShPts, and tca::TCSlice::tjs.
Referenced by UpdateShower().
unsigned short tca::AngleRange | ( | TrajPoint const & | tp | ) |
Definition at line 759 of file Utils.cxx.
References tca::TrajPoint::Ang.
Referenced by CheckHiMultUnusedHits(), FitTraj(), and SetAngleCode().
unsigned short tca::AngleRange | ( | float | angle | ) |
Definition at line 784 of file Utils.cxx.
References tca::TCConfig::angleRanges, and tcc.
bool tca::AttachAnyTrajToVertex | ( | TCSlice & | slc, |
unsigned short | ivx, | ||
bool | prt | ||
) |
Definition at line 1678 of file TCVertex.cxx.
References AttachTrajToVertex(), tca::VtxStore::CTP, util::end(), tca::VtxStore::ID, kHaloTj, kKilled, tca::VtxStore::Pos, PosSep(), tcc, tca::TCSlice::tjs, tca::VtxStore::Topo, TrajPointVertexPull(), tca::TCConfig::vtx2DCuts, and tca::TCSlice::vtxs.
Referenced by CompleteIncomplete3DVertices(), Find2DVertices(), FindHammerVertices2(), and tca::TrajClusterAlg::ReconstructAllTraj().
bool tca::AttachAnyVertexToTraj | ( | TCSlice & | slc, |
int | tjID, | ||
bool | prt | ||
) |
Definition at line 1637 of file TCVertex.cxx.
References AttachTrajToVertex(), util::end(), for(), if(), kKilled, PosSep(), tcc, tca::TCSlice::tjs, TrajPointVertexPull(), tca::TCConfig::vtx2DCuts, and tca::TCSlice::vtxs.
Referenced by MergeAndStore().
Definition at line 1580 of file TCVertex.cxx.
References util::abs(), dir, DirAtEnd(), DotProd(), util::end(), tca::PFPStruct::ID, Length(), PointDirection(), PosAtEnd(), PosSep(), tca::PFPStruct::TPCID, tca::TCSlice::vtx3s, and tca::PFPStruct::Vx3ID.
Referenced by ReconcileVertices().
bool tca::AttachTrajToVertex | ( | TCSlice & | slc, |
Trajectory & | tj, | ||
VtxStore & | vx, | ||
bool | prt | ||
) |
Definition at line 1722 of file TCVertex.cxx.
References tca::Trajectory::AlgMod, tca::Trajectory::ChgRMS, tca::VtxStore::CTP, tca::Trajectory::CTP, util::end(), tca::Trajectory::EndFlag, tca::Trajectory::EndPt, FitVertex(), tca::VtxStore::ID, tca::Trajectory::ID, kFixed, kHaloTj, kKilled, kNoFitVx, kPhoton, tca::VtxStore::NTraj, tca::VtxStore::Pos, PosSep2(), tca::Trajectory::Pts, SetVx2Score(), SignalBetween(), tca::VtxStore::Stat, tcc, tca::TCSlice::tjs, TrajClosestApproach(), TrajLength(), TrajPointVertexPull(), tca::TCConfig::vtx2DCuts, and tca::Trajectory::VtxID.
Referenced by AttachAnyTrajToVertex(), and AttachAnyVertexToTraj().
void tca::Average_dEdX | ( | detinfo::DetectorClocksData const & | clockData, |
detinfo::DetectorPropertiesData const & | detProp, | ||
const TCSlice & | slc, | ||
PFPStruct & | pfp, | ||
float & | dEdXAve, | ||
float & | dEdXRms | ||
) |
Definition at line 2635 of file PFPUtils.cxx.
References dEdx(), kTP3DBad, kTP3DGood, sum, and tca::PFPStruct::TP3Ds.
Referenced by AddPointsInRange(), DotProd(), and PDGCodeVote().
bool tca::BraggSplit | ( | TCSlice & | slc, |
unsigned short | itj | ||
) |
Definition at line 1423 of file Utils.cxx.
References util::abs(), tca::TrajPoint::Ang, tca::VtxStore::ChiDOF, tca::ParFit::ChiDOF, tca::TCConfig::chkStopCuts, tca::VtxStore::CTP, tca::TCConfig::dbgAlg, tca::TCConfig::dbgSlc, tca::TCConfig::dbgStp, tca::TrajPoint::FitChi, FitPar(), FitTraj(), tca::VtxStore::ID, kBragg, kBraggSplit, kFixed, tca::TCConfig::kinkCuts, MakeVertexObsolete(), tca::VtxStore::NTraj, NumPtsWithCharge(), tca::ParFit::Par0, tca::ParFit::ParSlp, tca::VtxStore::Pass, tca::VtxStore::Pos, PrintPos(), SetVx2Score(), SplitTraj(), tca::VtxStore::Stat, StoreVertex(), tcc, tca::TCSlice::tjs, tca::VtxStore::Topo, tca::TCConfig::useAlg, and tca::TCSlice::vtxs.
Referenced by tca::TrajClusterAlg::ReconstructAllTraj().
Definition at line 1323 of file PFPUtils.cxx.
References tca::PFPStruct::AlgMod, Find3DRecoRange(), kJunk3D, kSmallAngle, and tca::PFPStruct::TP3Ds.
Referenced by MakePFParticles(), and Recover().
void tca::CheckHiMultEndHits | ( | TCSlice & | slc, |
Trajectory & | tj | ||
) |
Definition at line 2500 of file StepUtils.cxx.
References tca::Trajectory::AlgMod, tca::TCConfig::dbgStp, tca::Trajectory::EndFlag, tca::Trajectory::EndPt, kBragg, kCHMEH, tca::Trajectory::Pts, SetEndPoints(), tcc, UnsetUsedHits(), and tca::TCConfig::useAlg.
Referenced by CheckTraj().
void tca::CheckHiMultUnusedHits | ( | TCSlice & | slc, |
Trajectory & | tj | ||
) |
Definition at line 2344 of file StepUtils.cxx.
References tca::Trajectory::AlgMod, AngleRange(), tca::TCConfig::dbgStp, DefineHitPos(), tca::Trajectory::EndFlag, tca::Trajectory::EndPt, GottaKink(), tca::Trajectory::ID, kAtKink, kCHMUH, kUsedHits, MaxHitDelta(), tca::TCConfig::minPtsFit, tca::Trajectory::NeedsUpdate, NumHitsInTP(), NumPtsWithCharge(), tca::Trajectory::Pass, PointTrajDOCA(), PrintHit(), PrintTrajectory(), tca::Trajectory::Pts, PutTrajHitsInVector(), SetEndPoints(), tca::TCSlice::slHits, tcc, UnsetUsedHits(), UpdateTraj(), and tca::TCConfig::useAlg.
void tca::CheckStiffEl | ( | TCSlice & | slc, |
Trajectory & | tj | ||
) |
Definition at line 983 of file StepUtils.cxx.
References ChkBegin(), tca::TCConfig::dbgStp, FillGaps(), kStiffEl, NumPtsWithCharge(), tca::Trajectory::Strategy, and tcc.
Referenced by CheckTraj().
void tca::CheckTraj | ( | TCSlice & | slc, |
Trajectory & | tj | ||
) |
Definition at line 997 of file StepUtils.cxx.
References tca::Trajectory::AlgMod, CheckHiMultEndHits(), CheckStiffEl(), ChkBegin(), ChkChgAsymmetry(), ChkStop(), ChkStopEndPts(), tca::TCConfig::dbgStp, tca::Trajectory::EndPt, FillGaps(), HasDuplicateHits(), IsGhost(), tca::Trajectory::IsGood, tca::TCSlice::isValid, kJunkTj, kKilled, kSlowing, kStiffEl, tca::Trajectory::MCSMom, MCSMom(), tca::TCConfig::minMCSMom, tca::TCConfig::minPts, NumPtsWithCharge(), tca::Trajectory::Pass, tca::Trajectory::Pts, tca::TCConfig::qualityCuts, SetEndPoints(), tca::Trajectory::Strategy, TagJunkTj(), tcc, TrimEndPts(), and TrimHiChgEndPts().
Referenced by tca::TrajClusterAlg::ReconstructAllTraj().
void tca::CheckTrajBeginChg | ( | TCSlice & | slc, |
unsigned short | itj | ||
) |
Definition at line 1317 of file Utils.cxx.
References tca::VtxStore::ChiDOF, tca::VtxStore::CTP, tca::TCConfig::dbgAlg, tca::TCConfig::dbgSlc, tca::TCConfig::dbgStp, util::end(), tca::VtxStore::ID, kBeginChg, kBragg, kFixed, kFTBRvProp, kHaloTj, kKilled, MakeVertexObsolete(), tca::VtxStore::NTraj, tca::VtxStore::Pass, tca::VtxStore::Pos, PrintPos(), SetVx2Score(), SplitTraj(), tca::VtxStore::Stat, StoreVertex(), sum, tcc, tca::TCSlice::tjs, tca::VtxStore::Topo, tca::TCConfig::useAlg, and tca::TCSlice::vtxs.
Referenced by tca::TrajClusterAlg::ReconstructAllTraj().
float tca::ChgFracBetween | ( | TrajPoint | tp, |
float | toPos0 | ||
) |
Definition at line 1808 of file Utils.cxx.
References util::abs(), tca::TrajPoint::Dir, tca::TrajPoint::Pos, and SignalAtTp().
float tca::ChgFracBetween | ( | detinfo::DetectorPropertiesData const & | detProp, |
const TCSlice & | slc, | ||
Point3_t | pos1, | ||
Point3_t | pos2 | ||
) |
Definition at line 3163 of file PFPUtils.cxx.
References detinfo::DetectorPropertiesData::ConvertXToTicks(), geo::CryostatID::Cryostat, tca::TrajPoint::CTP, dir, EncodeCTP(), for(), tca::TCSlice::nPlanes, geo::WireReadoutGeom::Plane(), PointDirection(), tca::TrajPoint::Pos, PosSep(), SignalAtTp(), sum, tcc, geo::TPCID::TPC, tca::TCSlice::TPCID, tca::TCConfig::unitsPerTick, geo::PlaneGeo::WireCoordinate(), tca::TCConfig::wirePitch, and tca::TCConfig::wireReadoutGeom.
Referenced by DotProd(), FindParent(), ParentFOM(), and SignalBetween().
float tca::ChgFracNearEnd | ( | detinfo::DetectorPropertiesData const & | detProp, |
const TCSlice & | slc, | ||
const PFPStruct & | pfp, | ||
unsigned short | end | ||
) |
Definition at line 3197 of file PFPUtils.cxx.
References ChgFracNearPos(), detinfo::DetectorPropertiesData::ConvertXToTicks(), geo::CryostatID::Cryostat, EncodeCTP(), tca::PFPStruct::ID, tca::TCSlice::nPlanes, tca::TCSlice::nWires, geo::WireReadoutGeom::Plane(), PosAtEnd(), tca::PFPStruct::SectionFits, sum, tcc, tca::PFPStruct::TjIDs, tca::TCSlice::tjs, geo::TPCID::TPC, tca::PFPStruct::TPCID, tca::TCSlice::TPCID, tca::TCConfig::unitsPerTick, geo::PlaneGeo::WireCoordinate(), tca::TCSlice::wireHitRange, and tca::TCConfig::wireReadoutGeom.
Referenced by DotProd().
float tca::ChgFracNearPos | ( | const TCSlice & | slc, |
const Point2_t & | pos, | ||
const std::vector< int > & | tjIDs | ||
) |
Definition at line 3163 of file Utils.cxx.
References tca::TCEvent::allHits, DecodeCTP(), evt, FindCloseHits(), kAllHits, geo::PlaneID::Plane, tca::TCSlice::slHits, and tca::TCSlice::tjs.
Referenced by ChgFracNearEnd(), CompleteIncomplete3DVertices(), CompleteIncomplete3DVerticesInGaps(), EndMerge(), FindHammerVertices(), ParentFOM(), and SetVx2Score().
float tca::ChgToMeV | ( | float | chg | ) |
Definition at line 3925 of file TCShower.cxx.
Referenced by FindParent(), MergeSubShowersTj(), ShowerEnergy(), and UpdateShower().
bool tca::ChkAssns | ( | std::string | inFcnLabel, |
TCSlice & | slc | ||
) |
Definition at line 4095 of file TCShower.cxx.
References tca::TCSlice::cots, kKilled, tca::TCSlice::showers, and tca::TCSlice::tjs.
Referenced by CompleteIncompleteShower(), FindShowers3D(), Finish3DShowers(), MergeNearby2DShowers(), MergeOverlap(), MergeShowerChain(), MergeSubShowers(), MergeSubShowersTj(), and Reconcile3D().
void tca::ChkBegin | ( | TCSlice & | slc, |
Trajectory & | tj | ||
) |
Definition at line 2882 of file StepUtils.cxx.
References util::abs(), tca::Trajectory::AlgMod, tca::TrajPoint::AngleCode, tca::TCConfig::chargeCuts, ChkStopEndPts(), tca::TrajPoint::CTP, tca::TCConfig::dbgStp, DecodeCTP(), tca::TrajPoint::DeltaRMS, tca::TrajPoint::Dir, tca::Trajectory::EndPt, evt, FindCloseHits(), FixBegin(), tca::TCEvent::goodWire, tca::TrajPoint::Hits, tca::Trajectory::IsGood, kAllHits, kFixBegin, kFTBRvProp, kJunkTj, kKilled, kRvPrp, NumPtsWithCharge(), tca::TCSlice::nWires, geo::PlaneID::Plane, tca::TrajPoint::Pos, PrintPos(), tca::Trajectory::Pts, tca::TCConfig::qualityCuts, ReversePropagate(), seeds, SetEndPoints(), tca::TCSlice::slHits, tca::Trajectory::StepDir, tcc, TrimEndPts(), UnsetUsedHits(), tca::TCConfig::useAlg, tca::TrajPoint::UseHit, and tca::TCConfig::VLAStepSize.
Referenced by CheckStiffEl(), and CheckTraj().
void tca::ChkChgAsymmetry | ( | TCSlice & | slc, |
Trajectory & | tj, | ||
bool | prt | ||
) |
Definition at line 1714 of file Utils.cxx.
References util::abs(), tca::Trajectory::AlgMod, tca::Trajectory::EndPt, tca::Trajectory::ID, kChkChgAsym, tca::Trajectory::PDGCode, PrintTrajectory(), tca::Trajectory::Pts, SetEndPoints(), tcc, UnsetUsedHits(), and tca::TCConfig::useAlg.
Referenced by CheckTraj().
void tca::ChkEndKink | ( | TCSlice const & | slc, |
Trajectory & | tj, | ||
bool | prt | ||
) |
Definition at line 1682 of file Utils.cxx.
References tca::Trajectory::EndPt, tca::Trajectory::ID, kEndKink, tca::TCConfig::kinkCuts, KinkSignificance(), tca::Trajectory::PDGCode, PrintPos(), tca::Trajectory::Pts, tcc, and tca::TCConfig::useAlg.
bool tca::ChkMichel | ( | Trajectory & | tj, |
unsigned short & | lastGoodPt | ||
) |
Definition at line 4087 of file StepUtils.cxx.
References tca::Trajectory::AlgMod, tca::TCConfig::dbgAlg, tca::TCConfig::dbgStp, tca::Trajectory::EndPt, kMichel, tca::Trajectory::PDGCode, tca::Trajectory::Pts, tcc, and tca::TCConfig::useAlg.
void tca::ChkStop | ( | Trajectory & | tj | ) |
Definition at line 3972 of file StepUtils.cxx.
References util::abs(), tca::Trajectory::AlgMod, tca::TrajPoint::Chg, tca::TCConfig::chkStopCuts, tca::TCConfig::dbgAlg, tca::TCConfig::dbgStp, dir, util::end(), tca::Trajectory::EndFlag, tca::Trajectory::EndPt, Fit2D(), tca::Trajectory::ID, kBragg, kChkStop, kEnvUnusedHits, kStiffEl, tca::Trajectory::PDGCode, tca::TrajPoint::Pos, tca::Trajectory::Pts, tca::Trajectory::Strategy, tcc, and tca::TCConfig::useAlg.
Referenced by CheckTraj(), ChkStopEndPts(), Forecast(), and ReversePropagate().
void tca::ChkStopEndPts | ( | TCSlice & | slc, |
Trajectory & | tj, | ||
bool | prt | ||
) |
Definition at line 1671 of file StepUtils.cxx.
References util::abs(), tca::Trajectory::AlgMod, ChkStop(), tca::TrajPoint::CTP, tca::Trajectory::CTP, tca::TCConfig::dbgStp, DecodeCTP(), DefineHitPos(), tca::TrajPoint::Dir, tca::Trajectory::EndFlag, tca::Trajectory::EndPt, FindCloseHits(), tca::Trajectory::ID, kAllHits, kAtKink, kBragg, kChkStopEP, kJunkTj, kStiffEl, geo::PlaneID::Plane, tca::TrajPoint::Pos, PrintHit(), PrintPos(), tca::Trajectory::Pts, SetEndPoints(), tca::TCSlice::slHits, tca::Trajectory::Strategy, tcc, tmp, UnsetUsedHits(), UpdateTjChgProperties(), and tca::TCConfig::useAlg.
Referenced by CheckTraj(), ChkBegin(), and ReversePropagate().
Definition at line 2058 of file TCVertex.cxx.
References DecodeCTP(), util::end(), kHaloTj, kKilled, geo::PlaneID::Plane, tca::TCSlice::tjs, tca::TCSlice::vtx3s, and tca::TCSlice::vtxs.
Referenced by tca::TrajClusterAlg::ReconstructAllTraj(), and tca::TrajClusterAlg::RunTrajClusterAlg().
void tca::ClearCRInfo | ( | TCSlice & | slc | ) |
Definition at line 108 of file TCCR.cxx.
References tca::CRTreeVars::cr_origin, tca::CRTreeVars::cr_pfpxmax, tca::CRTreeVars::cr_pfpxmin, tca::CRTreeVars::cr_pfpyzmindis, and tca::TCSlice::crt.
void tca::ClearShowerTree | ( | ShowerTreeVars & | stv | ) |
Definition at line 219 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.
unsigned short tca::CloseEnd | ( | const Trajectory & | tj, |
const Point2_t & | pos | ||
) |
Definition at line 2495 of file Utils.cxx.
References tca::Trajectory::EndPt, PosSep2(), and tca::Trajectory::Pts.
Referenced by MakePFPTjs(), and MergeWithVertex().
bool tca::CompatibleMerge | ( | const TCSlice & | slc, |
std::vector< int > const & | tjIDs, | ||
bool | prt | ||
) |
Definition at line 577 of file Utils.cxx.
References util::abs(), util::end(), tca::TCSlice::tjs, and TrajClosestApproach().
Referenced by EndMerge().
bool tca::CompatibleMerge | ( | const Trajectory & | tj1, |
const Trajectory & | tj2, | ||
bool | prt | ||
) |
Definition at line 648 of file Utils.cxx.
References tca::Trajectory::AlgMod, tca::Trajectory::CTP, DeltaAngle(), tca::Trajectory::EndPt, tca::Trajectory::ID, kHaloTj, tca::TCConfig::kinkCuts, kKilled, OverlapFraction(), PointTrajDOCA(), PosSep(), tca::Trajectory::Pts, and tcc.
void tca::CompleteIncomplete3DVertices | ( | detinfo::DetectorPropertiesData const & | detProp, |
TCSlice & | slc | ||
) |
Definition at line 2470 of file TCVertex.cxx.
References AttachAnyTrajToVertex(), ChgFracNearPos(), detinfo::DetectorPropertiesData::ConvertXToTicks(), tca::VtxStore::CTP, tca::TCConfig::dbgAlg, tca::TCConfig::dbgSlc, EncodeCTP(), util::end(), GetAssns(), tca::VtxStore::ID, tca::TCSlice::ID, kComp3DVx, kDebug, kFixed, kHaloTj, kKilled, kVxIndPlnNoChg, MakeVertexObsolete(), tca::TCConfig::modes, tca::TCSlice::nPlanes, tca::VtxStore::NTraj, NumPtsWithCharge(), tca::VtxStore::Pass, tca::VtxStore::Pos, tca::TrajPoint::Pos, PrintPos(), RefineVtxPosition(), SetPDGCode(), SetVx2Score(), SplitTraj(), tca::VtxStore::Stat, StoreVertex(), tcc, tca::VtxStore::TjChgFrac, tca::TCSlice::tjs, util::to_string(), tca::VtxStore::Topo, TrajPointTrajDOCA(), tca::TCConfig::unitsPerTick, tca::TCConfig::useAlg, tca::TCSlice::vtx3s, tca::TCSlice::vtxs, and tca::VtxStore::Vx3ID.
Referenced by Find3DVertices().
void tca::CompleteIncomplete3DVerticesInGaps | ( | detinfo::DetectorPropertiesData const & | detProp, |
TCSlice & | slc | ||
) |
Definition at line 2376 of file TCVertex.cxx.
References util::abs(), ChgFracNearPos(), detinfo::DetectorPropertiesData::ConvertXToTicks(), geo::CryostatID::Cryostat, tca::VtxStore::CTP, tca::TrajPoint::CTP, tca::TCConfig::dbgAlg, tca::TCConfig::dbgSlc, DeadWireCount(), EncodeCTP(), util::end(), tca::VtxStore::ID, tca::Vtx3Store::ID, kComp3DVxIG, kDebug, kHaloTj, kKilled, tca::TCConfig::modes, tca::TCSlice::nPlanes, tca::VtxStore::NTraj, tca::VtxStore::Pass, PointTrajDOCA(), tca::VtxStore::Pos, tca::TrajPoint::Pos, SetVx2Score(), StoreVertex(), tcc, tca::VtxStore::TjChgFrac, tca::TCSlice::tjs, tca::VtxStore::Topo, geo::TPCID::TPC, tca::Vtx3Store::TPCID, tca::TCConfig::unitsPerTick, tca::TCConfig::useAlg, tca::TCSlice::vtx3s, tca::TCSlice::vtxs, tca::Vtx3Store::Vx2ID, tca::VtxStore::Vx3ID, tca::Vtx3Store::Wire, and tca::Vtx3Store::X.
Referenced by Find3DVertices().
bool tca::CompleteIncompleteShower | ( | std::string | inFcnLabel, |
TCSlice & | slc, | ||
ShowerStruct3D & | ss3, | ||
bool | prt | ||
) |
Definition at line 748 of file TCShower.cxx.
References ChkAssns(), tca::ShowerStruct3D::CotIDs, tca::TCSlice::cots, CreateSS(), DecodeCTP(), util::end(), GetAssns(), tca::ShowerStruct3D::ID, tca::TCSlice::ID, kCompleteShower, MakeShowerObsolete(), tca::ShowerStruct3D::NeedsUpdate, tca::TCSlice::nPlanes, tca::TCSlice::pfps, geo::PlaneID::Plane, SetIntersection(), ShowerEnergy(), StoreShower(), tcc, tca::TCSlice::tjs, UpdateShower(), tca::TCConfig::useAlg, and tca::TCSlice::vtxs.
void tca::ConfigureMVA | ( | TCConfig & | tcc, |
std::string | fMVAShowerParentWeights | ||
) |
Definition at line 35 of file TCShower.cxx.
References tca::TCConfig::showerParentReader, and tca::TCConfig::showerParentVars.
Referenced by tca::TrajClusterAlg::TrajClusterAlg().
void tca::CountBadPoints | ( | const TCSlice & | slc, |
const PFPStruct & | pfp, | ||
unsigned short | fromPt, | ||
unsigned short | toPt, | ||
unsigned short & | nBadPts, | ||
unsigned short & | firstBadPt | ||
) |
Definition at line 1290 of file PFPUtils.cxx.
References kEnvOverlap, kTP3DGood, tca::TCConfig::match3DCuts, PointPull(), tcc, tca::TCSlice::tjs, and tca::PFPStruct::TP3Ds.
Definition at line 2802 of file PFPUtils.cxx.
References tca::PFPStruct::dEdx, tca::PFPStruct::dEdxErr, tca::PFPStruct::ID, tca::TCSlice::nPlanes, tca::PFPStruct::ParentUID, tca::TCSlice::pfps, tca::PFPStruct::SectionFits, tca::PFPStruct::TPCID, and tca::TCSlice::TPCID.
Referenced by DefineTjParents(), DotProd(), Finish3DShowers(), and MakePFParticles().
ShowerStruct tca::CreateSS | ( | TCSlice & | slc, |
const std::vector< int > & | tjl | ||
) |
Definition at line 4049 of file TCShower.cxx.
References tca::Trajectory::AlgMod, tca::TCSlice::cots, tca::Trajectory::CTP, tca::ShowerStruct::CTP, tca::Trajectory::EndPt, tca::ShowerStruct::Envelope, tca::Trajectory::ID, tca::ShowerStruct::ID, kShowerTj, tca::Trajectory::PDGCode, tca::Trajectory::Pts, tca::ShowerStruct::ShowerTjID, tca::ShowerStruct::TjIDs, and tca::TCSlice::tjs.
Referenced by CompleteIncompleteShower(), FindShowers3D(), and MergeShowers().
ShowerStruct3D tca::CreateSS3 | ( | TCSlice & | slc | ) |
Definition at line 4030 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::TCSlice::nPlanes, tca::TCSlice::showers, tca::ShowerStruct3D::TPCID, and tca::TCSlice::TPCID.
TP3D tca::CreateTP3D | ( | detinfo::DetectorPropertiesData const & | detProp, |
const TCSlice & | slc, | ||
int | tjID, | ||
unsigned short | tpIndex | ||
) |
Definition at line 2706 of file PFPUtils.cxx.
References detinfo::DetectorPropertiesData::ConvertTicksToX(), tca::TP3D::CTP, DecodeCTP(), tca::TP3D::Flags, GetHitMultiplet(), HitsRMSTime(), kAllHits, kTP3DBad, kTP3DGood, tcc, tca::TP3D::TjID, tca::TCSlice::tjs, TPHitsRMSTime(), tca::TP3D::TPIndex, tca::TP3D::TPX, tca::TP3D::TPXErr2, tca::TCConfig::unitsPerTick, tca::TP3D::Wire, and tca::TCConfig::wirePitch.
Referenced by AddPointsInRange(), DotProd(), MakeSmallAnglePFP(), and MakeTP3Ds().
TrajPoint tca::CreateTPFromTj | ( | const Trajectory & | tj | ) |
Definition at line 3450 of file StepUtils.cxx.
References tca::Trajectory::AlgMod, tca::TrajPoint::Ang, tca::TrajPoint::Chg, tca::TrajPoint::CTP, tca::Trajectory::CTP, tca::TrajPoint::Dir, tca::Trajectory::EndPt, tca::Trajectory::ID, kKilled, tca::TrajPoint::Pos, tca::Trajectory::Pts, and tca::TrajPoint::Step.
Referenced by LastEndMerge().
Definition at line 2095 of file Utils.cxx.
References tca::TrajPoint::CTP, and tca::TrajPoint::Pos.
Referenced by AddHits(), cluster::ClusterCrawlerAlg::CheckClusterHitFrac(), cluster::ClusterCrawlerAlg::ChkMerge(), CompleteIncomplete3DVerticesInGaps(), EndMerge(), Find2DVertices(), cluster::BlurredClusteringAlg::GetMinSize(), LastEndMerge(), NumPtsWithCharge(), StepAway(), TrajTrajDOCA(), and UpdateTraj().
float tca::DeadWireCount | ( | const TCSlice & | slc, |
const float & | inWirePos1, | ||
const float & | inWirePos2, | ||
CTP_t | tCTP | ||
) |
Definition at line 2101 of file Utils.cxx.
References DecodeCTP(), evt, tca::TCEvent::goodWire, tca::TCSlice::nWires, geo::PlaneID::Plane, and tmp.
geo::PlaneID tca::DecodeCTP | ( | CTP_t | CTP | ) |
Definition at line 100 of file DataStructs.cxx.
Referenced by AddHits(), AddLAHits(), AddLooseHits(), AddPointsInRange(), ChgFracNearPos(), ChkBegin(), ChkStopEndPts(), ChkVtxAssociations(), CompleteIncompleteShower(), CreateTP3D(), DeadWireCount(), dEdx(), EncodeCTP(), ExpectedHitsRMS(), FilldEdx(), FillmAllTraj(), Find2DVertices(), Find3DRecoRange(), Find3DVertices(), FindCloseHits(), FindCloseTjs(), tca::TrajClusterAlg::FindJunkTraj(), Finish3DShowers(), FitTP3Ds(), cluster::ClusterCrawlerAlg::FitVtx(), Forecast(), cluster::ClusterCrawlerAlg::GetHitRange(), MakeBareTP(), MakeJunkVertices(), MakePFPTjs(), MakeTP3D(), MakeVertexObsolete(), Match3DFOM(), MaxChargeAsymmetry(), PrintAllTraj(), PrintPos(), cluster::TrajCluster::produce(), Reconcile2Vs(), tca::TrajClusterAlg::ReconstructAllTraj(), ReversePropagate(), SaveTjInfo(), SaveTjInfoStuff(), SetSection(), SetTPEnvironment(), SignalAtTp(), SignalAtTpInSlc(), SplitTraj(), SplitTrajCrossingVertices(), StepAway(), TrimEndPts(), UpdateShower(), ValidTwoPlaneMatch(), cluster::ClusterCrawlerAlg::VtxMatch(), and WireHitRangeOK().
bool tca::DecodeDebugString | ( | std::string | strng | ) |
Definition at line 5068 of file Utils.cxx.
References tca::DebugStuff::Cryostat, tca::DebugStuff::CTP, tca::TCConfig::dbg2S, tca::TCConfig::dbg2V, tca::TCConfig::dbg3S, tca::TCConfig::dbg3V, tca::TCConfig::dbgAlg, tca::TCConfig::dbgDeltaRayTag, tca::TCConfig::dbgDump, tca::TCConfig::dbgMrg, tca::TCConfig::dbgMuonTag, tca::TCConfig::dbgPFP, tca::TCConfig::dbgStitch, tca::TCConfig::dbgStp, tca::TCConfig::dbgSummary, tca::TCConfig::dbgVxJunk, tca::TCConfig::dbgVxMerge, debug, EncodeCTP(), kDebug, kHamVx, kHamVx2, tca::TCConfig::modes, tca::DebugStuff::MVI, tca::DebugStuff::MVI_Iter, tca::DebugStuff::Plane, tca::TCConfig::recoSlice, tca::TCConfig::recoTPC, tca::DebugStuff::Slice, tcc, tca::DebugStuff::Tick, tca::DebugStuff::TPC, tca::DebugStuff::Wire, and tca::DebugStuff::WorkID.
Referenced by DotProd(), and tca::TrajClusterAlg::TrajClusterAlg().
float tca::dEdx | ( | detinfo::DetectorClocksData const & | clockData, |
detinfo::DetectorPropertiesData const & | detProp, | ||
const TCSlice & | slc, | ||
TP3D & | tp3d | ||
) |
Definition at line 2671 of file PFPUtils.cxx.
References util::abs(), tca::TCEvent::allHits, tca::TCConfig::caloAlg, DecodeCTP(), calo::CalorimetryAlg::dEdx_AREA(), tca::TP3D::Dir, E, evt, tca::TP3D::Flags, kEnvOverlap, kTP3DGood, geo::WireReadoutGeom::Plane(), geo::PlaneID::Plane, tca::TCSlice::slHits, tcc, geo::PlaneGeo::ThetaZ(), tca::TP3D::TjID, tca::TCSlice::tjs, tca::TP3D::TPIndex, tca::TCConfig::unitsPerTick, geo::PlaneGeo::WirePitch(), and tca::TCConfig::wireReadoutGeom.
Referenced by AddPointsInRange(), lar::example::AnalysisExample::analyze(), Average_dEdX(), detinfo::DetectorPropertiesStandard::BirksCorrection(), calo::CalorimetryAlg::BirksCorrection(), lar_pandora::LArPandoraShowerCreation::BuildShower(), larg4::ISCalcSeparate::CalcIon(), larg4::ISCalcCorrelated::CalcIonAndScint(), mvapid::MVAAlg::CalcSegmentdEdxDist(), ShowerRecoTools::ShowerUnidirectiondEdx::CalculateElement(), ShowerRecoTools::ShowerTrajPointdEdx::CalculateElement(), detsim::ISCalculationSeparate::CalculateIonization(), larg4::ISCalculationSeparate::CalculateIonizationAndScintillation(), larg4::ISCalculationCorrelated::CalculateIonizationAndScintillation(), evd::AnalysisBaseDrawer::CalorShower(), opdet::FlashHypothesisCreator::CreateFlashHypothesesFromSegment(), DotProd(), evd::AnalysisBaseDrawer::DrawDeDx(), evd::AnalysisBaseDrawer::DrawKineticEnergy(), sim::DumpMCTracks::DumpMCTrack(), FilldEdx(), ShowerRecoTools::ShowerTrajPointdEdx::FinddEdxLength(), opdet::FlashHypothesisCalculator::FlashHypothesisCalculator(), opdet::FlashHypothesisCreator::FlashHypothesisCreator(), shwf::ShowerReco::LongTransEnergy(), shower::EMShowerAlg::MakeShower(), detinfo::DetectorPropertiesStandard::ModBoxCorrection(), calo::CalorimetryAlg::ModBoxCorrection(), PrintTP3Ds(), calo::ShowerCalorimetry::produce(), calo::Calorimetry::produce(), trkf::Track3DKalmanSPS::produce(), calo::GnocchiCalorimetry::produce(), sim::MCTrackRecoAlg::Reconstruct(), showerreco::ShowerRecoAlg::RecoOneShower(), and pid::PIDAAlg::RunPIDAAlg().
void tca::DefineDontCluster | ( | TCSlice & | slc, |
bool | prt | ||
) |
void tca::DefineEnvelope | ( | std::string | inFcnLabel, |
TCSlice & | slc, | ||
ShowerStruct & | ss, | ||
bool | prt | ||
) |
Definition at line 3442 of file TCShower.cxx.
References tca::TrajPoint::Ang, tca::TrajPoint::Chg, tca::ShowerStruct::ChgDensity, tca::TrajPoint::DeltaRMS, tca::ShowerStruct::Envelope, tca::ShowerStruct::EnvelopeArea, tca::ShowerStruct::ID, if(), tca::ShowerStruct::NeedsUpdate, tca::TrajPoint::Pos, PosSep(), tca::Trajectory::Pts, tca::TCConfig::showerTag, tca::ShowerStruct::ShowerTjID, sn, tcc, tca::ShowerStruct::TjIDs, tca::TCSlice::tjs, and tca::TCConfig::unitsPerTick.
Referenced by ReverseShower(), and UpdateShower().
Definition at line 1791 of file StepUtils.cxx.
References util::abs(), tca::TCEvent::allHits, tca::TrajPoint::Chg, tca::TCConfig::dbgStp, tca::TrajPoint::Dir, evt, tca::TrajPoint::HitPos, tca::TrajPoint::HitPosErr2, tca::TrajPoint::Hits, HitsTimeErr2(), HitTimeErr(), LongPulseHit(), tca::TCSlice::slHits, tcc, tca::TCConfig::unitsPerTick, and tca::TrajPoint::UseHit.
Referenced by AddHits(), AddLAHits(), CheckHiMultUnusedHits(), ChkStopEndPts(), FillGaps(), Forecast(), MakeHaloTj(), MaskedHitsOK(), StepAway(), and UpdateTraj().
void tca::DefinePFPParents | ( | TCSlice & | slc | ) |
Definition at line 2860 of file PFPUtils.cxx.
References GetAssns(), IsShowerLike(), kTestBeam, tca::TCConfig::modes, tca::TCSlice::pfps, tcc, tca::TCSlice::tjs, and tca::TCSlice::vtxs.
Referenced by DotProd(), and tca::TrajClusterAlg::RunTrajClusterAlg().
void tca::DefineTjParents | ( | TCSlice & | slc, |
bool | prt | ||
) |
Definition at line 173 of file Utils.cxx.
References CreatePFP(), util::end(), GetVtxTjIDs(), kDeltaRay, kHaloTj, kKilled, kNeedsUpdate, kTestBeam, tca::TCConfig::match3DCuts, tca::TCConfig::modes, ReverseTraj(), StorePFP(), tcc, tca::TCSlice::tjs, TrajTrajDOCA(), tca::detail::valsDecreasing(), tca::TCConfig::vtx2DCuts, tca::TCSlice::vtx3s, and tca::TCSlice::vtxs.
Referenced by tca::TrajClusterAlg::RunTrajClusterAlg().
Definition at line 2531 of file PFPUtils.cxx.
References DotProd().
Referenced by CompatibleMerge(), DotProd(), EndMerge(), FindHammerVertices(), FindHammerVertices2(), KinkSignificance(), LastEndMerge(), ParentFOM(), PointInsideEnvelope(), SetVx2Score(), SplitTrajCrossingVertices(), and StepAway().
double tca::DeltaAngle | ( | double | Ang1, |
double | Ang2 | ||
) |
Definition at line 3324 of file Utils.cxx.
References util::abs().
double tca::DeltaAngle2 | ( | double | Ang1, |
double | Ang2 | ||
) |
Definition at line 3312 of file Utils.cxx.
Referenced by DeltaAngle(), and DotProd().
Definition at line 3249 of file PFPUtils.cxx.
References tca::PFPStruct::SectionFits.
Referenced by AttachToAnyVertex(), DotProd(), FindParent(), PrintP(), PrintPFP(), cluster::TrajCluster::produce(), SetParent(), and StitchPFPs().
bool tca::DontCluster | ( | TCSlice const & | slc, |
const std::vector< int > & | tjlist1, | ||
const std::vector< int > & | tjlist2 | ||
) |
Definition at line 3213 of file TCShower.cxx.
References tca::TCSlice::dontCluster.
Referenced by AddTjsInsideEnvelope(), FindParent(), MergeNearby2DShowers(), MergeOverlap(), MergeShowerChain(), MergeSubShowers(), MergeSubShowersTj(), and Print2DShowers().
Definition at line 126 of file PFPUtils.h.
References Average_dEdX(), ChgFracBetween(), ChgFracNearEnd(), CreatePFP(), CreateTP3D(), dEdx(), DefinePFPParents(), DirAtEnd(), util::end(), FarEnd(), FilldEdx(), FindAlongTrans(), InsideFV(), InsideTPC(), Length(), LineLineIntersect(), PDGCodeVote(), PFPVertexCheck(), PointDirection(), PointDirIntersect(), PointPull(), PosAtEnd(), PosSep(), PosSep2(), PrintTP3Ds(), SectionStartEnd(), SetMag(), SetSection(), and StorePFP().
Referenced by AttachToAnyVertex(), DeltaAngle(), EndMerge(), FindAlongTrans(), FindParent(), FindShowerStart(), recob::Seed::GetPointingSign(), InShowerProb(), MergeOverlap(), and StitchPFPs().
Definition at line 226 of file Utils.h.
References AnalyzeHits(), DecodeDebugString(), DeltaAngle(), DeltaAngle2(), dir, DumpTj(), util::end(), FarEnd(), FillWireHitRange(), Fit2D(), GetAssns(), GetSliceIndex(), HitsPosTick(), HitsPosTime(), HitsRMSTick(), HitsRMSTime(), LongPulseHit(), MakeBareTP(), MakeBareTrajPoint(), MCSMom(), MCSThetaRMS(), MergeAndStore(), NearestPtWithChg(), NumHitsInTP(), PointDirection(), Print2V(), Print3S(), Print3V(), PrintAll(), PrintAllTraj(), PrintClusters(), PrintDebugMode(), PrintEndFlag(), PrintHit(), PrintHitShort(), PrintP(), PrintPFP(), PrintPFPs(), PrintPos(), PrintT(), PrintTP(), PrintTPHeader(), PrintTrajectory(), SetDifference(), SetEndPoints(), SetIntersection(), SetPDGCode(), SetTPEnvironment(), StartTraj(), TjDeltaRMS(), TPEnvString(), TPHitsRMSTick(), TPHitsRMSTime(), TrajIsClean(), UpdateTjChgProperties(), UpdateVxEnvironment(), and WireHitRangeOK().
void tca::DumpShowerPts | ( | std::string | inFcnLabel, |
TCSlice & | slc, | ||
int | cotID | ||
) |
void tca::DumpShowerPts | ( | TCSlice & | slc, |
int | cotID | ||
) |
Definition at line 3823 of file TCShower.cxx.
References tca::TCSlice::cots, tca::ShowerStruct::ID, pt, tca::ShowerStruct::ShPts, and tca::ShowerStruct::TjIDs.
void tca::DumpTj | ( | ) |
Definition at line 5251 of file Utils.cxx.
References tca::TCEvent::allHits, tca::TCConfig::dbgDump, debug, evt, for(), slices, tcc, util::to_string(), tca::TCConfig::unitsPerTick, and tca::DebugStuff::WorkID.
Referenced by DotProd(), and tca::TrajClusterAlg::RunTrajClusterAlg().
float tca::ElectronLikelihood | ( | const TCSlice & | slc, |
const Trajectory & | tj | ||
) |
Definition at line 3144 of file Utils.cxx.
References util::abs(), tca::Trajectory::ChgRMS, tca::Trajectory::EndFlag, tca::Trajectory::EndPt, kBragg, NumPtsWithCharge(), and TjDeltaRMS().
Referenced by PDGCodeVote(), PrintT(), and SetPDGCode().
|
inline |
Definition at line 49 of file DataStructs.h.
Referenced by ChgFracBetween(), ChgFracNearEnd(), CompleteIncomplete3DVertices(), CompleteIncomplete3DVerticesInGaps(), tca::TrajClusterAlg::CreateSlice(), DecodeDebugString(), cluster::ClusterCrawlerAlg::EncodeCTP(), FillGaps3D(), cluster::ClusterCrawlerAlg::FindHammerClusters(), FindParent(), FindShowers3D(), FitTP3Ds(), MakeBareTrajPoint(), MakeJunkTraj(), MakePFParticles(), MakePFPTjs(), Print3S(), PrintShowers(), PrintTP3Ds(), cluster::TrajCluster::produce(), cluster::ClusterCrawlerAlg::RunCrawler(), tca::TrajClusterAlg::RunTrajClusterAlg(), StartTraj(), cluster::ClusterCrawlerAlg::TmpStore(), ValidTwoPlaneMatch(), cluster::ClusterCrawlerAlg::Vtx3ClusterMatch(), and cluster::ClusterCrawlerAlg::Vtx3ClusterSplit().
|
inline |
Definition at line 53 of file DataStructs.h.
References geo::CryostatID::Cryostat, EncodeCTP(), geo::PlaneID::Plane, and geo::TPCID::TPC.
|
inline |
Definition at line 57 of file DataStructs.h.
References geo::CryostatID::Cryostat, DecodeCTP(), geo::PlaneID::Plane, and geo::TPCID::TPC.
Referenced by EncodeCTP().
Definition at line 3486 of file StepUtils.cxx.
References util::abs(), tca::TrajPoint::Ang, tca::TrajPoint::AngleCode, tca::TrajPoint::AveChg, tca::TCConfig::chargeCuts, ChgFracNearPos(), CompatibleMerge(), tca::DebugStuff::CTP, tca::VtxStore::CTP, tca::TCConfig::dbgMrg, tca::TCConfig::dbgSlc, DeadWireCount(), debug, DeltaAngle(), tca::TrajPoint::Dir, DotProd(), FitTraj(), FitVertex(), tca::VtxStore::ID, kAtKink, kBragg, kFixed, tca::TCConfig::kinkCuts, KinkSignificance(), kKilled, kMerge, kStepDir, MakeBareTrajPoint(), MakeVertexObsolete(), MergeAndStore(), tca::TCConfig::modes, tca::TrajPoint::NTPsFit, tca::VtxStore::NTraj, NumPtsWithCharge(), OverlapFraction(), tca::VtxStore::Pass, PointTrajDOCA(), tca::VtxStore::Pos, tca::TrajPoint::Pos, tca::VtxStore::PosErr, PosSep(), PosSep2(), PrintPos(), pt1, pt2, tca::TCConfig::qualityCuts, ReverseTraj(), SetVx2Score(), SignalBetween(), slices, tca::VtxStore::Stat, StoreVertex(), tcc, tca::TCSlice::tjs, tca::VtxStore::Topo, TrajIntersection(), TrajLength(), TrajTrajDOCA(), tca::TCConfig::unitsPerTick, tca::TCConfig::useAlg, tca::TCConfig::vtx2DCuts, and tca::TCSlice::vtxs.
Referenced by tca::TrajClusterAlg::ReconstructAllTraj().
float tca::ExpectedHitsRMS | ( | const TrajPoint & | tp | ) |
Definition at line 1911 of file Utils.cxx.
References util::abs(), tca::TCEvent::aveHitRMS, tca::TrajPoint::CTP, DecodeCTP(), tca::TrajPoint::Dir, evt, geo::PlaneID::Plane, tcc, and tca::TCConfig::unitsPerTick.
Referenced by AddHits(), FindUseHits(), and StartTraj().
Definition at line 3300 of file PFPUtils.cxx.
References tca::PFPStruct::ID, PosSep2(), and tca::PFPStruct::TP3Ds.
Referenced by DotProd(), FindParent(), MergeSubShowersTj(), ParentFOM(), Reconcile2VTs(), Reconcile3D(), SetParent(), and UpdateShower().
unsigned short tca::FarEnd | ( | const Trajectory & | tj, |
const Point2_t & | pos | ||
) |
Definition at line 4069 of file Utils.cxx.
References tca::Trajectory::EndPt, tca::Trajectory::ID, PosSep2(), and tca::Trajectory::Pts.
void tca::FilldEdx | ( | detinfo::DetectorClocksData const & | clockData, |
detinfo::DetectorPropertiesData const & | detProp, | ||
const TCSlice & | slc, | ||
PFPStruct & | pfp | ||
) |
Definition at line 2583 of file PFPUtils.cxx.
References DecodeCTP(), tca::PFPStruct::dEdx, dEdx(), dir, util::end(), kTP3DBad, kTP3DGood, tca::TCSlice::nPlanes, tca::PFPStruct::PDGCode, geo::PlaneID::Plane, PosAtEnd(), PosSep2(), tcc, tca::PFPStruct::TP3Ds, and tca::TCConfig::wirePitch.
Referenced by DotProd(), and MakePFParticles().
void tca::FillGaps | ( | TCSlice & | slc, |
Trajectory & | tj | ||
) |
Definition at line 2204 of file StepUtils.cxx.
References tca::Trajectory::AlgMod, tca::TCEvent::allHits, tca::Trajectory::AveChg, tca::TCConfig::chargeCuts, tca::Trajectory::ChgRMS, tca::TCConfig::dbgStp, DefineHitPos(), tca::Trajectory::EndFlag, tca::Trajectory::EndPt, evt, tca::Trajectory::ID, if(), tca::Trajectory::IsGood, tca::TCSlice::isValid, kBragg, kFillGaps, kJunkTj, MakeBareTrajPoint(), MaxHitDelta(), tca::Trajectory::MCSMom, MCSMom(), NumPtsWithCharge(), tca::Trajectory::Pass, PointTrajDOCA(), PrintHit(), PrintPos(), PrintTP(), tca::Trajectory::Pts, tca::TCSlice::slHits, tca::Trajectory::StepDir, tcc, UnsetUsedHits(), and tca::TCConfig::useAlg.
Referenced by CheckStiffEl(), and CheckTraj().
void tca::FillGaps3D | ( | detinfo::DetectorClocksData const & | clockData, |
detinfo::DetectorPropertiesData const & | detProp, | ||
TCSlice & | slc, | ||
PFPStruct & | pfp, | ||
bool | prt | ||
) |
Definition at line 1720 of file PFPUtils.cxx.
References AddPointsInRange(), tca::TCConfig::dbgPFP, debug, EncodeCTP(), tca::PFPStruct::Flags, tca::PFPStruct::ID, kFillGaps3D, kJunk3D, kNeedsUpdate, kSmallAngle, tca::TCConfig::match3DCuts, tca::DebugStuff::MVI, tca::PFPStruct::MVI, tca::TCSlice::nPlanes, tca::PFPStruct::SectionFits, tcc, tca::PFPStruct::TP3Ds, Update(), and tca::TCConfig::useAlg.
Referenced by MakePFParticles().
void tca::FillmAllTraj | ( | detinfo::DetectorPropertiesData const & | detProp, |
TCSlice & | slc | ||
) |
Definition at line 2369 of file PFPUtils.cxx.
References detinfo::DetectorPropertiesData::ConvertTicksToX(), geo::CryostatID::Cryostat, DecodeCTP(), geo::WireReadoutGeom::HasWire(), tca::Tj2Pt::id, tca::Tj2Pt::ipt, kEnvNearMuon, kHaloTj, kKilled, kMat3D, tca::TCSlice::mallTraj, tca::TCConfig::match3DCuts, tca::Tj2Pt::npts, tca::Tj2Pt::plane, geo::PlaneID::Plane, tcc, tca::TCSlice::tjs, geo::TPCID::TPC, tca::TCSlice::TPCID, tca::TCConfig::unitsPerTick, tca::detail::valsIncreasing(), tca::Tj2Pt::wire, tca::TCConfig::wireReadoutGeom, tca::Tj2Pt::xhi, and tca::Tj2Pt::xlo.
Referenced by FindPFParticles().
void tca::FillWireHitRange | ( | geo::TPCID | inTPCID | ) |
Definition at line 4325 of file Utils.cxx.
References tca::TCEvent::allHits, evt, tca::TCEvent::expectSlicedHits, tca::TCEvent::goodWire, geo::Iterable< IterationPolicy, Transform >::Iterate(), kDebug, tca::TCConfig::modes, geo::WireReadoutGeom::Nplanes(), geo::WireReadoutGeom::Nwires(), geo::WireReadoutGeom::PlaneWireToChannel(), util::size(), tcc, tca::TCEvent::TPCID, tca::TCConfig::useChannelStatus, tca::TCEvent::wireHitRange, and tca::TCConfig::wireReadoutGeom.
Referenced by tca::TrajClusterAlg::CreateSlice(), and DotProd().
bool tca::FillWireHitRange | ( | detinfo::DetectorClocksData const & | clockData, |
detinfo::DetectorPropertiesData const & | detProp, | ||
TCSlice & | slc | ||
) |
Definition at line 4397 of file Utils.cxx.
References tca::TCEvent::allHits, tca::TCEvent::aveHitRMS, geo::CryostatID::Cryostat, debug, detinfo::DetectorPropertiesData::DriftVelocity(), detinfo::DetectorPropertiesData::Efield(), evt, tca::TCSlice::firstWire, tca::TCConfig::geom, tca::TCSlice::ID, kDebug, tca::TCSlice::lastWire, tca::TCConfig::maxPos0, tca::TCConfig::maxPos1, tca::TCConfig::modes, geo::WireReadoutGeom::Nplanes(), tca::TCSlice::nPlanes, detinfo::DetectorPropertiesData::NumberTimeSamples(), geo::WireReadoutGeom::Nwires(), tca::TCSlice::nWires, geo::WireReadoutGeom::Plane(), geo::WireReadoutGeom::PlaneWireToChannel(), detinfo::sampling_rate(), tca::TCSlice::slHits, slices, tcc, detinfo::DetectorPropertiesData::Temperature(), tca::DebugStuff::TPC, geo::TPCID::TPC, geo::GeometryCore::TPC(), tca::TCSlice::TPCID, tca::TCConfig::unitsPerTick, geo::WireReadoutGeom::View(), tca::TCSlice::wireHitRange, tca::TCConfig::wirePitch, tca::TCConfig::wireReadoutGeom, tca::TCSlice::xHi, tca::TCSlice::xLo, tca::TCSlice::yHi, tca::TCSlice::yLo, tca::TCSlice::zHi, and tca::TCSlice::zLo.
void tca::FillWireIntersections | ( | TCSlice & | slc | ) |
Definition at line 607 of file PFPUtils.cxx.
References geo::CryostatID::Cryostat, tca::TCWireIntersection::dydw1, tca::TCWireIntersection::dydw2, tca::TCWireIntersection::dzdw1, tca::TCWireIntersection::dzdw2, evt, tca::TCSlice::nPlanes, tca::TCSlice::nWires, tca::TCWireIntersection::pln1, tca::TCWireIntersection::pln2, tcc, tca::TCWireIntersection::tpc, geo::TPCID::TPC, tca::TCSlice::TPCID, tca::TCWireIntersection::wir1, tca::TCWireIntersection::wir2, geo::WireReadoutGeom::WireIDsIntersect(), tca::TCEvent::wireIntersections, tca::TCConfig::wireReadoutGeom, tca::TCWireIntersection::y, and tca::TCWireIntersection::z.
Referenced by FindPFParticles().
void tca::Find2DVertices | ( | detinfo::DetectorPropertiesData const & | detProp, |
TCSlice & | slc, | ||
const CTP_t & | inCTP, | ||
unsigned short | pass | ||
) |
Definition at line 131 of file TCVertex.cxx.
References util::abs(), AttachAnyTrajToVertex(), tca::VtxStore::ChiDOF, tca::VtxStore::CTP, tca::TrajPoint::CTP, tca::TCConfig::dbg2V, tca::TCConfig::dbgSlc, DeadWireCount(), debug, DecodeCTP(), FindHammerVertices(), FindHammerVertices2(), FitVertex(), tca::VtxStore::ID, IsCloseToVertex(), kAtKink, kFixed, kHaloTj, kKilled, kOnDeadWire, kShowerLike, kStepDir, kVxIndPlnNoChg, tca::TCConfig::maxPos0, tca::TCConfig::maxPos1, MergeWithVertex(), tca::TCConfig::modes, MoveTPToWire(), NearestPtWithChg(), tca::TCSlice::nPlanes, 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, StoreVertex(), tcc, tca::TCSlice::tjs, tca::VtxStore::Topo, TrajClosestApproach(), TrajIntersection(), TrajLength(), TrajTrajDOCA(), tca::TCConfig::unitsPerTick, tca::TCConfig::vtx2DCuts, and tca::TCSlice::vtxs.
Referenced by tca::TrajClusterAlg::ReconstructAllTraj().
unsigned short tca::Find3DRecoRange | ( | const TCSlice & | slc, |
const PFPStruct & | pfp, | ||
unsigned short | fromPt, | ||
unsigned short | min2DPts, | ||
short | dir | ||
) |
Definition at line 1338 of file PFPUtils.cxx.
References DecodeCTP(), kTP3DGood, tca::TCSlice::nPlanes, geo::PlaneID::Plane, tca::TCSlice::tjs, and tca::PFPStruct::TP3Ds.
Referenced by CanSection(), MakePFParticles(), Recover(), and ReSection().
void tca::Find3DVertices | ( | detinfo::DetectorPropertiesData const & | detProp, |
TCSlice & | slc | ||
) |
Definition at line 1258 of file TCVertex.cxx.
References util::abs(), CompleteIncomplete3DVertices(), CompleteIncomplete3DVerticesInGaps(), detinfo::DetectorPropertiesData::ConvertTicksToX(), detinfo::DetectorPropertiesData::ConvertXToTicks(), geo::CryostatID::Cryostat, tca::TCConfig::dbg3V, tca::TCConfig::dbgSlc, DecodeCTP(), evt, FindCloseHits(), tca::TCEvent::global3V_UID, tca::Vtx3Store::ID, tca::detail::SortEntry::index, kAllHits, kHaloTj, kKilled, kTjHiVx3Score, evd::kWire, geo::kX, tca::TCSlice::nPlanes, geo::WireReadoutGeom::Plane(), geo::PlaneID::Plane, PrintHit(), tca::Vtx3Store::Score, SetVx2Score(), SetVx3Score(), util::size(), tca::TCSlice::slHits, tcc, tca::TCSlice::tjs, geo::TPCID::TPC, tca::Vtx3Store::TPCID, tca::TCSlice::TPCID, tca::TCConfig::unitsPerTick, tca::detail::SortEntry::val, tca::detail::valsIncreasing(), tca::TCConfig::vtx2DCuts, tca::TCConfig::vtx3DCuts, tca::TCSlice::vtx3s, tca::TCSlice::vtxs, tca::Vtx3Store::Vx2ID, tca::VtxStore::Vx3ID, tca::Vtx3Store::Wire, geo::WireReadoutGeom::WireIDsIntersect(), tca::TCConfig::wirePitch, tca::TCConfig::wireReadoutGeom, tca::Vtx3Store::X, tca::Vtx3Store::XErr, y, tca::Vtx3Store::Y, tca::Vtx3Store::YErr, tca::TCSlice::yHi, tca::Vtx3Store::Z, z, tca::Vtx3Store::ZErr, and tca::TCSlice::zHi.
Referenced by tca::TrajClusterAlg::RunTrajClusterAlg().
Definition at line 3066 of file PFPUtils.cxx.
References DotProd(), PointDirection(), PosSep(), and SetMag().
Referenced by DotProd(), FindParent(), InShowerProb(), MakeJunkTraj(), MergeSubShowers(), and ParentFOM().
std::vector< unsigned int > tca::FindCloseHits | ( | const TCSlice & | slc, |
std::array< int, 2 > const & | wireWindow, | ||
Point2_t const & | timeWindow, | ||
const unsigned short | plane, | ||
HitStatus_t | hitRequest, | ||
bool | usePeakTime, | ||
bool & | hitsNear | ||
) |
Definition at line 2774 of file Utils.cxx.
References tca::TCEvent::allHits, evt, tca::TCSlice::firstWire, for(), tca::TCEvent::goodWire, if(), kAllHits, kUnusedHits, kUsedHits, tca::TCSlice::lastWire, tca::TCSlice::slHits, tcc, tca::TCConfig::unitsPerTick, and tca::TCSlice::wireHitRange.
Referenced by AddLAHits(), AddPointsInRange(), ChgFracNearPos(), ChkBegin(), ChkStopEndPts(), Find3DVertices(), Forecast(), MakeHaloTj(), ReversePropagate(), and SetTPEnvironment().
bool tca::FindCloseHits | ( | TCSlice const & | slc, |
TrajPoint & | tp, | ||
float const | maxDelta, | ||
HitStatus_t | hitRequest | ||
) |
Definition at line 2837 of file Utils.cxx.
References tca::TCEvent::allHits, tca::TrajPoint::CTP, DecodeCTP(), tca::TrajPoint::Environment, evt, tca::TCSlice::firstWire, tca::TCEvent::goodWire, tca::TrajPoint::Hits, kAllHits, kEnvNotGoodWire, kUnusedHits, kUsedHits, tca::TCSlice::lastWire, geo::PlaneID::Plane, PointTrajDOCA(), tca::TrajPoint::Pos, tca::TCSlice::slHits, tcc, tca::TCSlice::tjs, tca::TCConfig::unitsPerTick, tca::TrajPoint::UseHit, tca::TCSlice::wireHitRange, and WireHitRangeOK().
std::vector< int > tca::FindCloseTjs | ( | const TCSlice & | slc, |
const TrajPoint & | fromTp, | ||
const TrajPoint & | toTp, | ||
const float & | maxDelta | ||
) |
Definition at line 2908 of file Utils.cxx.
References tca::TCEvent::allHits, tca::TrajPoint::CTP, DecodeCTP(), evt, tca::TCSlice::firstWire, if(), tca::TCSlice::lastWire, MakeBareTrajPoint(), MoveTPToWire(), geo::PlaneID::Plane, tca::TrajPoint::Pos, tca::TCSlice::slHits, tcc, tca::TCSlice::tjs, tmp, tca::TCConfig::unitsPerTick, and tca::TCSlice::wireHitRange.
Referenced by MakeJunkVertices().
void tca::FindCots | ( | std::string | inFcnLabel, |
TCSlice & | slc, | ||
const CTP_t & | inCTP, | ||
std::vector< std::vector< int >> & | tjLists, | ||
bool | prt | ||
) |
Definition at line 791 of file TCVertex.cxx.
References util::abs(), ChgFracNearPos(), tca::VtxStore::ChiDOF, tca::VtxStore::CTP, tca::TCConfig::dbgAlg, tca::TCConfig::dbgSlc, DeltaAngle(), GetAssns(), tca::VtxStore::ID, tca::TCSlice::ID, kDebug, kHaloTj, kHamVx, kJunkTj, kKilled, kShowerLike, MakeVertexObsolete(), tca::TCConfig::modes, tca::VtxStore::NTraj, tca::VtxStore::Pass, tca::VtxStore::Pos, PrintPos(), SetPDGCode(), SetVx2Score(), SplitTraj(), StoreVertex(), tcc, tca::TCSlice::tjs, tca::VtxStore::Topo, TrajClosestApproach(), TrajIntersection(), TrajPointTrajDOCA(), tca::TCConfig::useAlg, and tca::TCSlice::vtxs.
Referenced by Find2DVertices().
Definition at line 601 of file TCVertex.cxx.
References AttachAnyTrajToVertex(), tca::VtxStore::ChiDOF, tca::VtxStore::CTP, tca::TCConfig::dbgAlg, tca::TCConfig::dbgSlc, DeltaAngle(), dir, tca::VtxStore::ID, if(), kDebug, kHaloTj, kHamVx, kHamVx2, kJunkTj, kKilled, kShowerLike, kTestBeam, MakeVertexObsolete(), MCSMom(), tca::TCConfig::modes, MoveTPToWire(), tca::VtxStore::NTraj, NumPtsWithCharge(), tca::VtxStore::Pass, PointTrajDOCA(), tca::VtxStore::Pos, PosSep(), PrintPos(), SetPDGCode(), SetVx2Score(), SignalAtTp(), SplitTraj(), StoreVertex(), tcc, tca::TCSlice::tjs, tmp, tca::VtxStore::Topo, TrajClosestApproach(), TrajIntersection(), TrajPointTrajDOCA(), tca::TCConfig::unitsPerTick, tca::TCConfig::useAlg, and tca::TCSlice::vtxs.
Referenced by Find2DVertices().
void tca::FindNearbyTjs | ( | std::string | inFcnLabel, |
TCSlice & | slc, | ||
ShowerStruct & | ss, | ||
bool | prt | ||
) |
Definition at line 3335 of file TCShower.cxx.
References tca::ShowerStruct::CTP, tca::ShowerStruct::Envelope, GetAssns(), tca::ShowerStruct::ID, tca::TCSlice::ID, kKilled, kShowerTj, tca::ShowerStruct::NearTjIDs, PointInsideEnvelope(), PointTrajDOCA(), tca::ShowerStruct::ShowerTjID, tca::ShowerStruct::TjIDs, tca::TCSlice::tjs, TrajTrajDOCA(), and tca::TCSlice::vtxs.
Referenced by FindShowers3D().
bool tca::FindParent | ( | detinfo::DetectorPropertiesData const & | detProp, |
std::string | inFcnLabel, | ||
TCSlice & | slc, | ||
ShowerStruct3D & | ss3, | ||
bool | prt | ||
) |
Definition at line 1561 of file TCShower.cxx.
References util::abs(), ChgFracBetween(), tca::ShowerStruct3D::ChgPos, ChgToMeV(), tca::ShowerStruct3D::CotIDs, tca::TCSlice::cots, geo::CryostatID::Cryostat, dir, tca::ShowerStruct3D::Dir, DirAtEnd(), DontCluster(), DotProd(), EncodeCTP(), tca::ShowerStruct3D::End, energy, FarEnd(), FindAlongTrans(), GetAssns(), tca::ShowerStruct3D::ID, InShowerProbLong(), kShwrParent, MakeBareTP(), MCSMom(), tca::TCSlice::nPlanes, tca::ShowerStruct3D::ParentID, tca::TCSlice::pfps, PointDirection(), PosAtEnd(), PosSep(), PosSep2(), SetParent(), ShowerEnergy(), ShowerParams(), tca::TCConfig::showerParentReader, tca::TCConfig::showerParentVars, tca::TCSlice::showers, tca::ShowerStruct3D::Start, tcc, tca::TCSlice::tjs, geo::TPCID::TPC, tca::ShowerStruct3D::TPCID, UpdateShower(), tca::TCConfig::useAlg, and tca::ShowerStruct3D::Vx3ID.
Referenced by FindShowers3D().
void tca::FindPFParticles | ( | detinfo::DetectorClocksData const & | clockData, |
detinfo::DetectorPropertiesData const & | detProp, | ||
TCSlice & | slc | ||
) |
Definition at line 190 of file PFPUtils.cxx.
References tca::TCConfig::dbgPFP, tca::TCConfig::dbgSlc, debug, evt, FillmAllTraj(), FillWireIntersections(), for(), MakePFParticles(), tca::TCSlice::mallTraj, Match2Planes(), tca::TCConfig::match3DCuts, Match3Planes(), tca::DebugStuff::MVI, tca::TCSlice::nPlanes, NumPtsWithCharge(), tca::TCSlice::pfps, PrintTP3Ds(), tca::TCEvent::sptHits, tcc, and tca::TCSlice::tjs.
Referenced by tca::TrajClusterAlg::RunTrajClusterAlg().
bool tca::FindShowers3D | ( | detinfo::DetectorPropertiesData const & | detProp, |
TCSlice & | slc | ||
) |
Definition at line 286 of file TCShower.cxx.
References AddTjsInsideEnvelope(), ChkAssns(), tca::TCSlice::cots, CreateSS(), tca::DebugStuff::CTP, tca::TCConfig::dbg2S, tca::TCConfig::dbg3S, tca::TCConfig::dbgSlc, debug, EncodeCTP(), FindNearbyTjs(), FindParent(), geo::Iterable< IterationPolicy, Transform >::Iterate(), kSaveShowerTree, MakeShowerObsolete(), MergeNearby2DShowers(), MergeOverlap(), MergeShowerChain(), MergeSubShowers(), MergeSubShowersTj(), tca::TCConfig::modes, geo::WireReadoutGeom::Nplanes(), tca::TCSlice::nPlanes, Print2DShowers(), PrintAllTraj(), PrintPFPs(), Reconcile3D(), SaveAllCots(), SaveTjInfo(), ShowerEnergy(), tca::TCSlice::showers, tca::TCConfig::showerTag, StoreShower(), tcc, tca::TCSlice::TPCID, UpdateShower(), and tca::TCConfig::wireReadoutGeom.
Referenced by tca::TrajClusterAlg::RunTrajClusterAlg().
bool tca::FindShowerStart | ( | detinfo::DetectorPropertiesData const & | detProp, |
TCSlice & | slc, | ||
ShowerStruct3D & | ss3, | ||
bool | prt | ||
) |
Definition at line 61 of file TCShower.cxx.
References tca::ShowerStruct3D::ChgPos, tca::ShowerStruct3D::CotIDs, tca::TCSlice::cots, tca::ShowerStruct3D::Dir, DotProd(), tca::ShowerStruct3D::End, tca::ShowerStruct3D::ID, tca::ShowerStruct3D::Len, MakeBareTP(), tca::ShowerStruct3D::OpenAngle, PosSep(), ReverseShower(), tca::ShowerStruct3D::Start, tcc, tca::TCSlice::tjs, tca::TCSlice::vtx3s, tca::ShowerStruct3D::Vx3ID, and tca::TCConfig::wirePitch.
void tca::FindStartChg | ( | std::string | inFcnLabel, |
TCSlice & | slc, | ||
int | cotID, | ||
bool | prt | ||
) |
Definition at line 3654 of file TCShower.cxx.
References tca::ShowerStruct::AspectRatio, tca::TCSlice::cots, tca::ShowerStruct::DirectionFOM, tca::ShowerStruct::ID, tca::ShowerStruct::ParentID, tca::TCConfig::showerTag, tca::ShowerStruct::ShowerTjID, StartChgVec(), sum, tcc, tca::ShowerStruct::TjIDs, and tca::TCSlice::tjs.
void tca::FindUseHits | ( | TCSlice & | slc, |
Trajectory & | tj, | ||
unsigned short | ipt, | ||
float | maxDelta, | ||
bool | useChg | ||
) |
Definition at line 1882 of file StepUtils.cxx.
References util::abs(), tca::Trajectory::AlgMod, tca::TCEvent::allHits, tca::TrajPoint::AngleCode, tca::TrajPoint::AveChg, tca::Trajectory::AveChg, tca::TCConfig::chargeCuts, tca::Trajectory::ChgRMS, tca::TCConfig::dbgStp, tca::TrajPoint::Delta, tca::TrajPoint::Dir, tca::Trajectory::EndPt, evt, ExpectedHitsRMS(), GetHitMultiplet(), tca::TrajPoint::Hits, HitsRMSTick(), HitTimeErr(), tca::Trajectory::ID, if(), kRvPrp, kStiffEl, kUnusedHits, LongPulseHit(), tca::Trajectory::MCSMom, tca::Trajectory::PDGCode, PointTrajDOCA(), tca::TrajPoint::Pos, PrintHit(), tca::Trajectory::Pts, tca::TCSlice::slHits, tca::Trajectory::Strategy, tcc, TPHitsRMSTick(), tca::TCConfig::unitsPerTick, and tca::TrajPoint::UseHit.
Referenced by AddHits().
void tca::Finish3DShowers | ( | TCSlice & | slc | ) |
Definition at line 154 of file TCShower.cxx.
References ChkAssns(), tca::TCSlice::cots, CreatePFP(), DecodeCTP(), util::end(), GetAssns(), GetSliceIndex(), tca::TCSlice::ID, kKilled, kUsedHits, tca::TCSlice::pfps, geo::PlaneID::Plane, PutTrajHitsInVector(), tca::TCSlice::showers, slices, tca::TCSlice::tjs, TransferTjHits(), tca::TCSlice::vtx3s, tca::Trajectory::VtxID, and tca::TCSlice::vtxs.
Referenced by tca::TrajClusterAlg::RunTrajClusterAlg().
bool tca::Fit2D | ( | short | mode, |
Point2_t | inPt, | ||
float & | inPtErr, | ||
Vector2_t & | outVec, | ||
Vector2_t & | outVecErr, | ||
float & | chiDOF | ||
) |
void tca::FitPar | ( | const Trajectory & | tj, |
unsigned short | originPt, | ||
unsigned short | npts, | ||
short | fitDir, | ||
ParFit & | pFit, | ||
unsigned short | usePar | ||
) |
Definition at line 1202 of file Utils.cxx.
References util::abs(), tca::ParFit::AvePar, tca::ParFit::ChiDOF, tca::Trajectory::EndPt, Fit2D(), tca::ParFit::nPtsFit, tca::ParFit::Par0, tca::ParFit::ParErr, tca::ParFit::ParSlp, tca::ParFit::ParSlpErr, tca::ParFit::Pos, and tca::Trajectory::Pts.
Referenced by BraggSplit(), Forecast(), and StopShort().
bool tca::FitSection | ( | detinfo::DetectorPropertiesData const & | detProp, |
const TCSlice & | slc, | ||
PFPStruct & | pfp, | ||
unsigned short | sfIndex | ||
) |
Definition at line 1391 of file PFPUtils.cxx.
References FitTP3Ds(), tca::PFPStruct::Flags, GetRange(), kSmallAngle, tca::PFPStruct::SectionFits, and tca::PFPStruct::TP3Ds.
Referenced by MakePFParticles(), Recover(), ReSection(), and Update().
SectionFit tca::FitTP3Ds | ( | detinfo::DetectorPropertiesData const & | detProp, |
const TCSlice & | slc, | ||
const std::vector< TP3D > & | tp3ds, | ||
unsigned short | fromPt, | ||
short | fitDir, | ||
unsigned short | nPtsFit | ||
) |
Definition at line 1421 of file PFPUtils.cxx.
References tca::SectionFit::ChiDOF, geo::CryostatID::Cryostat, DecodeCTP(), tca::SectionFit::Dir, tca::SectionFit::DirErr, EncodeCTP(), kTP3DGood, MakeBareTP(), norm, tca::TCSlice::nPlanes, tca::SectionFit::NPts, geo::WireReadoutGeom::Plane(), geo::PlaneID::Plane, tca::SectionFit::Pos, tcc, geo::TPCID::TPC, tca::TCSlice::TPCID, w, weight, tca::TCConfig::wireReadoutGeom, and x.
Referenced by FitSection(), FitTP3Ds(), and ReSection().
bool tca::FitTP3Ds | ( | detinfo::DetectorPropertiesData const & | detProp, |
const TCSlice & | slc, | ||
PFPStruct & | pfp, | ||
unsigned short | fromPt, | ||
unsigned short | nPtsFit, | ||
unsigned short | sfIndex | ||
) |
Definition at line 1565 of file PFPUtils.cxx.
References geo::CryostatID::Cryostat, DecodeCTP(), EncodeCTP(), FitTP3Ds(), if(), kTP3DGood, MakeBareTP(), tca::TCSlice::nPlanes, geo::PlaneID::Plane, tca::PFPStruct::SectionFits, SortSection(), tca::PFPStruct::TP3Ds, geo::TPCID::TPC, and tca::PFPStruct::TPCID.
void tca::FitTraj | ( | TCSlice const & | slc, |
Trajectory & | tj | ||
) |
Definition at line 798 of file Utils.cxx.
References tca::Trajectory::EndPt, and tca::Trajectory::Pts.
Referenced by BraggSplit(), EndMerge(), KinkSignificance(), MakeJunkTraj(), MaskBadTPs(), MaskedHitsOK(), UpdateStiffEl(), and UpdateTraj().
void tca::FitTraj | ( | TCSlice const & | slc, |
Trajectory & | tj, | ||
unsigned short | originPt, | ||
unsigned short | npts, | ||
short | fitDir, | ||
TrajPoint & | tpFit | ||
) |
Definition at line 811 of file Utils.cxx.
References util::abs(), tca::TrajPoint::Ang, tca::TrajPoint::AngErr, tca::TrajPoint::AngleCode, AngleRange(), dir, tca::TrajPoint::Dir, tca::Trajectory::EndPt, tca::TrajPoint::FitChi, MoveTPToWire(), NumPtsWithCharge(), geo::origin(), tca::TrajPoint::Pos, tca::Trajectory::Pts, SetAngleCode(), sn, sum, w, x, xx, and y.
Definition at line 1943 of file TCVertex.cxx.
References tca::VtxStore::CTP, tca::VtxStore::ID, if(), kFixed, kHaloTj, kKilled, kNoFitVx, kPhoton, tca::VtxStore::Stat, and tca::TCSlice::tjs.
Referenced by AttachTrajToVertex(), EndMerge(), Find2DVertices(), MergeWithVertex(), Reconcile2VTs(), and SplitTrajCrossingVertices().
Definition at line 1992 of file TCVertex.cxx.
References tca::VtxStore::ChiDOF, tca::VtxStore::Pos, tca::VtxStore::PosErr, PrintTP(), PrintTPHeader(), and TrajPointVertexPull().
void tca::FixBegin | ( | TCSlice & | slc, |
Trajectory & | tj, | ||
unsigned short | atPt | ||
) |
Definition at line 3013 of file StepUtils.cxx.
References util::abs(), tca::Trajectory::AlgMod, tca::TrajPoint::Ang, tca::TrajPoint::AngErr, tca::TrajPoint::AngleCode, tca::Trajectory::AveChg, tca::TCConfig::chargeCuts, tca::Trajectory::ChgRMS, tca::TCConfig::dbgStp, tca::TrajPoint::Dir, tca::Trajectory::EndPt, kFixBegin, kJunkTj, NumPtsWithCharge(), tca::Trajectory::PDGCode, PointTrajDOCA(), tca::TrajPoint::Pos, PrintEndFlag(), PrintPos(), tca::Trajectory::Pts, SetEndPoints(), tcc, UnsetUsedHits(), tca::TCConfig::useAlg, and tca::Trajectory::VtxID.
Referenced by ChkBegin().
void tca::Forecast | ( | TCSlice & | slc, |
const Trajectory & | tj | ||
) |
Definition at line 460 of file StepUtils.cxx.
References util::abs(), tca::Trajectory::AveChg, tca::Trajectory::ChgRMS, tca::ParFit::ChiDOF, ChkStop(), tca::Trajectory::CTP, tca::TCConfig::dbgStp, DecodeCTP(), DefineHitPos(), tca::Trajectory::EndFlag, tca::Trajectory::EndPt, evt, FindCloseHits(), tca::TCSlice::firstWire, FitPar(), tca::Trajectory::ID, if(), kAllHits, kBragg, kEnvNearShower, kEnvNotGoodWire, tca::TCSlice::lastWire, tca::Trajectory::MCSMom, MCSMom(), MoveTPToWire(), NumPtsWithCharge(), tca::ParFit::ParSlp, tca::ParFit::ParSlpErr, tca::Trajectory::PDGCode, geo::PlaneID::Plane, PointTrajDOCA(), PrintPos(), tca::Trajectory::Pts, SetEndPoints(), tca::TCConfig::showerTag, tcc, tjfs, tca::Trajectory::TotChg, UpdateTjChgProperties(), and tca::TCEvent::WorkID.
Referenced by StepAway().
std::vector< int > tca::GetAssns | ( | TCSlice const & | slc, |
std::string | type1Name, | ||
int | id, | ||
std::string | type2Name | ||
) |
Definition at line 4704 of file Utils.cxx.
References tca::TCSlice::cots, util::end(), kHaloTj, kKilled, kMat3D, tca::TCSlice::pfps, SetIntersection(), tca::TCSlice::showers, tca::TCSlice::tjs, tmp, tca::TCSlice::vtx3s, and tca::TCSlice::vtxs.
Referenced by CompleteIncomplete3DVertices(), CompleteIncompleteShower(), DefinePFPParents(), DotProd(), FindHammerVertices(), FindNearbyTjs(), FindParent(), Finish3DShowers(), KillVerticesInShower(), MergeNearby2DShowers(), ParentFOM(), Print3V(), PrintAllTraj(), Reconcile2VTs(), Reconcile3D(), and SetParent().
int tca::GetCotID | ( | TCSlice & | slc, |
int | ShowerTjID | ||
) |
Definition at line 3889 of file TCShower.cxx.
References tca::TCSlice::cots.
Referenced by MergeShowerTjsAndStore().
void tca::GetHitMultiplet | ( | const TCSlice & | slc, |
unsigned int | theHit, | ||
std::vector< unsigned int > & | hitsInMultiplet, | ||
bool | useLongPulseHits | ||
) |
Definition at line 1521 of file StepUtils.cxx.
References util::abs(), tca::TCEvent::allHits, tca::TCEvent::aveHitRMS, evt, if(), LongPulseHit(), tca::TCConfig::multHitSep, tca::TCSlice::slHits, tcc, and tmp.
Referenced by AddHits(), CreateTP3D(), tca::TrajClusterAlg::FindJunkTraj(), FindUseHits(), IsGhost(), and tca::TrajClusterAlg::ReconstructAllTraj().
int tca::GetOrigin | ( | detinfo::DetectorClocksData const & | clockData, |
TCSlice & | slc, | ||
PFPStruct & | pfp | ||
) |
Definition at line 68 of file TCCR.cxx.
References tca::TCEvent::allHits, tca::TCHit::allHitsIndex, cheat::BackTrackerService::ChannelToTrackIDEs(), evt, simb::MCTruth::Origin(), geo::origin(), geo::WireReadoutGeom::PlaneWireToChannel(), tca::Trajectory::Pts, tca::TCSlice::slHits, tcc, tca::PFPStruct::TjIDs, tca::TCSlice::tjs, cheat::ParticleInventoryService::TrackIdToMCTruth_P(), and tca::TCConfig::wireReadoutGeom.
Referenced by SaveCRInfo().
unsigned short tca::GetPFPIndex | ( | const TCSlice & | slc, |
int | tjID | ||
) |
Definition at line 1038 of file Utils.cxx.
References tca::TCSlice::pfps.
Referenced by MakeHaloTj(), and MergeAndStore().
void tca::GetRange | ( | const PFPStruct & | pfp, |
unsigned short | sfIndex, | ||
unsigned short & | fromPt, | ||
unsigned short & | npts | ||
) |
Definition at line 1370 of file PFPUtils.cxx.
References tca::PFPStruct::SectionFits, and tca::PFPStruct::TP3Ds.
Referenced by export_G4UIcommand(), and FitSection().
std::pair< unsigned short, unsigned short > tca::GetSliceIndex | ( | std::string | typeName, |
int | uID | ||
) |
Definition at line 4942 of file Utils.cxx.
References slices.
Referenced by DotProd(), Finish3DShowers(), MakeHaloTj(), PrimaryUID(), Print2V(), Print3S(), Print3V(), PrintP(), PrintT(), Reconcile3D(), and StitchPFPs().
int tca::GetStageNum | ( | ShowerTreeVars & | stv, |
std::string | stageName | ||
) |
Definition at line 200 of file TCShTree.cxx.
References tca::ShowerTreeVars::StageName.
Referenced by SaveTjInfo().
Definition at line 2807 of file TCVertex.cxx.
References tca::VtxStore::CTP, util::end(), tca::VtxStore::ID, kKilled, tca::TCSlice::tjs, and tmp.
Referenced by DefineTjParents(), GetVtxTjIDs(), MergeWithVertex(), SetHighScoreBits(), SetVx2Score(), and SplitTrajCrossingVertices().
Definition at line 2823 of file TCVertex.cxx.
References GetVtxTjIDs(), tca::Vtx3Store::ID, tmp, and tca::TCSlice::vtxs.
bool tca::GottaKink | ( | TCSlice & | slc, |
Trajectory & | tj, | ||
bool | doTrim | ||
) |
Definition at line 2756 of file StepUtils.cxx.
References util::abs(), tca::TCConfig::dbgStp, tca::Trajectory::EndFlag, tca::Trajectory::EndPt, kAtKink, tca::TCConfig::kinkCuts, KinkSignificance(), kSlowing, kStiffEl, kStiffMu, NumPtsWithCharge(), PrintPos(), tca::Trajectory::Pts, SetEndPoints(), tca::Trajectory::Strategy, tcc, and UnsetUsedHits().
Referenced by CheckHiMultUnusedHits(), and StepAway().
bool tca::HasDuplicateHits | ( | const TCSlice & | slc, |
Trajectory const & | tj, | ||
bool | prt | ||
) |
Definition at line 2745 of file Utils.cxx.
References kAllHits, PrintHit(), PutTrajHitsInVector(), and tca::TCSlice::slHits.
Referenced by CheckTraj(), and MergeAndStore().
float tca::HitSep2 | ( | const TCSlice & | slc, |
unsigned int | iht, | ||
unsigned int | jht | ||
) |
Definition at line 2483 of file Utils.cxx.
References tca::TCEvent::allHits, evt, tca::TCSlice::slHits, tcc, and tca::TCConfig::unitsPerTick.
Referenced by tca::TrajClusterAlg::FindJunkTraj().
float tca::HitsPosTick | ( | const TCSlice & | slc, |
const std::vector< unsigned int > & | hitsInMultiplet, | ||
float & | sum, | ||
HitStatus_t | hitRequest | ||
) |
Definition at line 4174 of file Utils.cxx.
References tca::TCEvent::allHits, evt, kAllHits, kUnusedHits, kUsedHits, tca::TCSlice::slHits, and sum.
Referenced by DotProd(), HitsPosTime(), tca::TrajClusterAlg::ReconstructAllTraj(), and TrajHitsOK().
float tca::HitsPosTime | ( | const TCSlice & | slc, |
const std::vector< unsigned int > & | hitsInMultiplet, | ||
float & | sum, | ||
HitStatus_t | hitRequest | ||
) |
Definition at line 4165 of file Utils.cxx.
References HitsPosTick(), tcc, and tca::TCConfig::unitsPerTick.
Referenced by DotProd().
float tca::HitsRMSTick | ( | const TCSlice & | slc, |
const std::vector< unsigned int > & | hitsInMultiplet, | ||
HitStatus_t | hitRequest | ||
) |
Definition at line 4133 of file Utils.cxx.
References tca::TCEvent::allHits, evt, kAllHits, kUnusedHits, kUsedHits, and tca::TCSlice::slHits.
Referenced by DotProd(), FindUseHits(), HitsRMSTime(), and tca::TrajClusterAlg::ReconstructAllTraj().
float tca::HitsRMSTime | ( | const TCSlice & | slc, |
const std::vector< unsigned int > & | hitsInMultiplet, | ||
HitStatus_t | hitRequest | ||
) |
Definition at line 4125 of file Utils.cxx.
References HitsRMSTick(), tcc, and tca::TCConfig::unitsPerTick.
Referenced by CreateTP3D(), DotProd(), and HitsTimeErr2().
float tca::HitsTimeErr2 | ( | const TCSlice & | slc, |
const std::vector< unsigned int > & | hitVec | ||
) |
Definition at line 1662 of file StepUtils.cxx.
References tca::TCConfig::hitErrFac, HitsRMSTime(), kUnusedHits, and tcc.
Referenced by DefineHitPos().
float tca::HitTimeErr | ( | const TCSlice & | slc, |
unsigned int | iht | ||
) |
Definition at line 1654 of file StepUtils.cxx.
References tca::TCEvent::allHits, evt, tca::TCConfig::hitErrFac, tca::TCSlice::slHits, tcc, and tca::TCConfig::unitsPerTick.
Referenced by DefineHitPos(), and FindUseHits().
Definition at line 1961 of file PFPUtils.cxx.
References tca::TP3D::along, tca::PFPStruct::Flags, kNeedsUpdate, tca::PFPStruct::SectionFits, tca::TP3D::SFIndex, and tca::PFPStruct::TP3Ds.
Referenced by AddPointsInRange().
double tca::InShowerProb | ( | double | showerEnergy, |
double | along, | ||
double | trans | ||
) |
float tca::InShowerProb | ( | TCSlice & | slc, |
const ShowerStruct3D & | ss3, | ||
const PFPStruct & | pfp | ||
) |
Definition at line 1992 of file TCShower.cxx.
References tca::ShowerStruct3D::CotIDs, tca::TCSlice::cots, tca::PFPStruct::ID, tca::ShowerStruct3D::ID, sum, tca::PFPStruct::TjIDs, and tca::TCSlice::tjs.
Referenced by Reconcile3D().
float tca::InShowerProb | ( | TCSlice & | slc, |
const ShowerStruct & | ss, | ||
const Trajectory & | tj | ||
) |
Definition at line 2015 of file TCShower.cxx.
References util::abs(), tca::Trajectory::CTP, tca::ShowerStruct::CTP, DotProd(), FindAlongTrans(), tca::Trajectory::ID, tca::ShowerStruct::ID, PosSep(), tca::Trajectory::Pts, tca::ShowerStruct::ShowerTjID, tca::TCSlice::tjs, and TrajTrajDOCA().
double tca::InShowerProbLong | ( | double | showerEnergy, |
double | along | ||
) |
Definition at line 1937 of file TCShower.cxx.
References ShowerParams().
Referenced by FindParent(), InShowerProbParam(), MergeSubShowers(), and ParentFOM().
double tca::InShowerProbParam | ( | double | showerEnergy, |
double | along, | ||
double | trans | ||
) |
Definition at line 1986 of file TCShower.cxx.
References InShowerProbLong(), and InShowerProbTrans().
double tca::InShowerProbTrans | ( | double | showerEnergy, |
double | along, | ||
double | trans | ||
) |
Definition at line 1972 of file TCShower.cxx.
References util::abs(), and ShowerParamTransRMS().
Referenced by InShowerProbParam(), and MergeSubShowers().
Definition at line 3019 of file PFPUtils.cxx.
References tca::PFPStruct::Flags, tca::PFPStruct::ID, kNeedsUpdate, tca::PFPStruct::PDGCode, tca::PFPStruct::SectionFits, tca::PFPStruct::TP3Ds, tca::TCSlice::xHi, tca::TCSlice::xLo, tca::TCSlice::yHi, tca::TCSlice::yLo, tca::TCSlice::zHi, and tca::TCSlice::zLo.
Referenced by DotProd(), PrintP(), and StitchPFPs().
bool tca::InsideTPC | ( | const Point3_t & | pos, |
geo::TPCID & | inTPCID | ||
) |
Definition at line 3045 of file PFPUtils.cxx.
References tca::TCConfig::geom, geo::Iterable< IterationPolicy, Transform >::Iterate(), and tcc.
Referenced by DotProd(), MakePFParticles(), and MakeSmallAnglePFP().
bool tca::InTrajOK | ( | TCSlice & | slc, |
std::string | someText | ||
) |
Definition at line 1257 of file Utils.cxx.
References AlgBitNames, util::end(), kKilled, kUsedHits, PrintHit(), PrintTrajectory(), PutTrajHitsInVector(), tca::TCSlice::slHits, tca::TCSlice::tjs, and tca::TCSlice::vtxs.
Referenced by tca::TrajClusterAlg::ReconstructAllTraj().
Definition at line 2859 of file TCVertex.cxx.
References tca::VtxStore::CTP, tcc, VertexVertexPull(), tca::TCConfig::vtx2DCuts, and tca::TCSlice::vtxs.
Referenced by Find2DVertices().
Definition at line 2878 of file TCVertex.cxx.
References util::abs(), tcc, VertexVertexPull(), tca::TCConfig::vtx3DCuts, tca::TCSlice::vtx3s, and tca::Vtx3Store::X.
bool tca::IsGhost | ( | TCSlice & | slc, |
Trajectory & | tj | ||
) |
Definition at line 3084 of file StepUtils.cxx.
References tca::Trajectory::AlgMod, tca::TCConfig::dbgStp, tca::Trajectory::EndPt, tca::Trajectory::ID, tca::Trajectory::IsGood, kKilled, kStiffEl, kUseGhostHits, tca::Trajectory::MCSMom, MCSMom(), tca::TCConfig::minPts, MoveTPToWire(), tca::Trajectory::Pass, tca::Trajectory::PDGCode, tca::TrajPoint::Pos, PrintTrajectory(), tca::Trajectory::Pts, tca::TCConfig::qualityCuts, SetEndPoints(), tca::TCSlice::slHits, tca::Trajectory::Strategy, tcc, tca::TCSlice::tjs, TrimEndPts(), UnsetUsedHits(), and tca::TCConfig::useAlg.
Referenced by CheckTraj(), and tca::TrajClusterAlg::FindJunkTraj().
bool tca::IsGhost | ( | TCSlice & | slc, |
std::vector< unsigned int > & | tHits | ||
) |
Definition at line 3257 of file StepUtils.cxx.
References tca::TCConfig::dbgAlg, tca::TCConfig::dbgStp, GetHitMultiplet(), kUseGhostHits, tca::TCSlice::slHits, tcc, tca::TCSlice::tjs, and tca::TCConfig::useAlg.
bool tca::IsShowerLike | ( | TCSlice const & | slc, |
std::vector< int > const & | TjIDs | ||
) |
Definition at line 1891 of file TCShower.cxx.
References kShowerLike, and tca::TCSlice::tjs.
Referenced by DefinePFPParents(), PrintP(), and PrintPFP().
void tca::KillPoorVertices | ( | TCSlice & | slc | ) |
Definition at line 2159 of file TCVertex.cxx.
References MakeVertexObsolete(), tcc, tca::TCConfig::vtx2DCuts, tca::TCSlice::vtx3s, and tca::TCSlice::vtxs.
Referenced by tca::TrajClusterAlg::RunTrajClusterAlg().
void tca::KillVerticesInShower | ( | std::string | inFcnLabel, |
TCSlice & | slc, | ||
ShowerStruct & | ss, | ||
bool | prt | ||
) |
Definition at line 704 of file TCShower.cxx.
References tca::ShowerStruct::CTP, tca::TCSlice::dontCluster, tca::ShowerStruct::Envelope, GetAssns(), tca::ShowerStruct::ID, tca::TCSlice::ID, kKillInShowerVx, MakeVertexObsolete(), PointInsideEnvelope(), tcc, tca::TCSlice::tjs, tca::TCConfig::useAlg, tca::TCSlice::vtx3s, and tca::TCSlice::vtxs.
Referenced by MergeShowersAndStore().
float tca::KinkSignificance | ( | TCSlice const & | slc, |
Trajectory const & | tj1, | ||
unsigned short | end1, | ||
Trajectory const & | tj2, | ||
unsigned short | end2, | ||
unsigned short | nPtsFit, | ||
bool | useChg, | ||
bool | prt | ||
) |
Definition at line 2986 of file Utils.cxx.
References tca::Trajectory::CTP, dir, tca::Trajectory::EndPt, tca::Trajectory::ID, and tca::Trajectory::Pts.
Referenced by ChkEndKink(), EndMerge(), GottaKink(), and StoreTraj().
float tca::KinkSignificance | ( | TCSlice const & | slc, |
Trajectory & | tj, | ||
unsigned short | kinkPt, | ||
unsigned short | nPtsFit, | ||
bool | useChg, | ||
bool | prt | ||
) |
Definition at line 3041 of file Utils.cxx.
References util::abs(), tca::TrajPoint::Ang, tca::TrajPoint::AngErr, DeltaAngle(), tca::Trajectory::EndPt, tca::TrajPoint::FitChi, FitTraj(), tca::Trajectory::ID, NumPtsWithCharge(), PrintPos(), and tca::Trajectory::Pts.
Definition at line 3339 of file StepUtils.cxx.
References CreateTPFromTj(), tca::TCConfig::dbgAlg, tca::TCConfig::dbgMrg, DeadWireCount(), DeltaAngle(), kAtKink, kBragg, kKilled, kLastEndMerge, MakeVertexObsolete(), MergeAndStore(), PointTrajDOCA(), PosSep(), PrintPos(), pt1, pt2, slices, tcc, tca::TCSlice::tjs, TrajTrajDOCA(), tca::TCConfig::useAlg, and tca::TCSlice::vtxs.
Referenced by tca::TrajClusterAlg::ReconstructAllTraj().
float tca::Length | ( | const PFPStruct & | pfp | ) |
Definition at line 3267 of file PFPUtils.cxx.
References PosSep(), and tca::PFPStruct::TP3Ds.
Referenced by AttachToAnyVertex(), cluster::BlurredClusteringAlg::CreateDebugPDF(), lbne::PhotonCounterT0Matching::DistFromPoint(), DotProd(), evd::details::GridAxisClass::Dump(), export_G4ProcessTable(), trkf::CCTrackMaker::FillEndMatch(), trkf::SeedFinderAlgorithm::FindSeeds(), pma::Track3D::Length(), trkf::CCTrackMaker::MakeClusterChains(), trkf::CCTrackMaker::MakeFamily(), geo::AuxDetReadoutGeom::NearestAuxDet(), PDGCodeVote(), trkf::CCTrackMaker::PlnMatch(), PrintP(), PrintPFP(), trkf::CCTrackMaker::produce(), evd::details::GridAxisClass::SetLimits(), evd::details::GridAxisClass::SetMaxCellSize(), evd::details::GridAxisClass::SetMinCellSize(), and trkf::CCTrackMaker::TagCosmics().
bool tca::LineLineIntersect | ( | Point3_t | p1, |
Point3_t | p2, | ||
Point3_t | p3, | ||
Point3_t | p4, | ||
Point3_t & | intersect, | ||
float & | doca | ||
) |
Definition at line 3100 of file PFPUtils.cxx.
References util::abs(), and PosSep().
Referenced by DotProd(), and PointDirIntersect().
bool tca::LongPulseHit | ( | const recob::Hit & | hit | ) |
Definition at line 4317 of file Utils.cxx.
References recob::Hit::GoodnessOfFit(), and recob::Hit::Multiplicity().
Referenced by AddHits(), DefineHitPos(), DotProd(), FindUseHits(), GetHitMultiplet(), MakeJunkTraj(), and tca::TrajClusterAlg::ReconstructAllTraj().
TrajPoint tca::MakeBareTP | ( | detinfo::DetectorPropertiesData const & | detProp, |
const Point3_t & | pos, | ||
CTP_t | inCTP | ||
) |
Definition at line 3928 of file Utils.cxx.
References detinfo::DetectorPropertiesData::ConvertXToTicks(), tca::TrajPoint::CTP, DecodeCTP(), tca::TrajPoint::Dir, geo::WireReadoutGeom::Plane(), tca::TrajPoint::Pos, tcc, tca::TCConfig::unitsPerTick, geo::PlaneGeo::WireCoordinate(), and tca::TCConfig::wireReadoutGeom.
Referenced by AddPointsInRange(), DotProd(), FindParent(), FindShowerStart(), FitTP3Ds(), MakePFParticles(), Print3S(), PrintShowers(), PrintTP3Ds(), SetParent(), SetSection(), and ValidTwoPlaneMatch().
TrajPoint tca::MakeBareTP | ( | detinfo::DetectorPropertiesData const & | detProp, |
const Point3_t & | pos, | ||
const Vector3_t & | dir, | ||
CTP_t | inCTP | ||
) |
Definition at line 3945 of file Utils.cxx.
References tca::TrajPoint::Ang, detinfo::DetectorPropertiesData::ConvertXToTicks(), tca::TrajPoint::CTP, DecodeCTP(), tca::TrajPoint::Delta, tca::TrajPoint::DeltaRMS, tca::TrajPoint::Dir, norm, geo::WireReadoutGeom::Plane(), tca::TrajPoint::Pos, sn, tcc, tca::TCConfig::unitsPerTick, geo::PlaneGeo::WireCoordinate(), and tca::TCConfig::wireReadoutGeom.
bool tca::MakeBareTrajPoint | ( | const TCSlice & | slc, |
unsigned int | fromHit, | ||
unsigned int | toHit, | ||
TrajPoint & | tp | ||
) |
Definition at line 4008 of file Utils.cxx.
References tca::TCEvent::allHits, EncodeCTP(), evt, and tca::TCSlice::slHits.
Referenced by DotProd(), EndMerge(), FillGaps(), FindCloseTjs(), MergeShowerChain(), ParentFOM(), SignalBetween(), StartTraj(), TjDeltaRMS(), and UpdateVxEnvironment().
bool tca::MakeBareTrajPoint | ( | float | fromWire, |
float | fromTick, | ||
float | toWire, | ||
float | toTick, | ||
CTP_t | tCTP, | ||
TrajPoint & | tp | ||
) |
Definition at line 4028 of file Utils.cxx.
References tca::TrajPoint::Ang, tca::TrajPoint::CTP, tca::TrajPoint::Dir, norm, tca::TrajPoint::Pos, tcc, and tca::TCConfig::unitsPerTick.
Definition at line 4049 of file Utils.cxx.
References tca::TrajPoint::Ang, tca::TrajPoint::Dir, PointDirection(), and tca::TrajPoint::Pos.
Definition at line 4059 of file Utils.cxx.
References tca::TrajPoint::Ang, tca::TrajPoint::CTP, tca::TrajPoint::Dir, PointDirection(), and tca::TrajPoint::Pos.
void tca::MakeHaloTj | ( | TCSlice & | slc, |
Trajectory & | muTj, | ||
bool | prt | ||
) |
Definition at line 53 of file Utils.cxx.
References util::abs(), tca::Trajectory::AlgMod, tca::Trajectory::ChgRMS, tca::Trajectory::CTP, DefineHitPos(), tca::Trajectory::EndPt, evt, FindCloseHits(), GetPFPIndex(), GetSliceIndex(), tca::TCEvent::globalT_UID, tca::Trajectory::ID, tca::TCSlice::ID, kAllHits, kDeltaRay, kHaloTj, kKilled, kMat3D, MakeTrajectoryObsolete(), tca::TCConfig::muonTag, tca::Trajectory::ParentID, tca::Trajectory::Pass, tca::Trajectory::PDGCode, tca::TCSlice::pfps, PointTrajDOCA(), PrintTrajectory(), tca::Trajectory::Pts, tca::TCSlice::slHits, slices, tca::Trajectory::StartEnd, tca::Trajectory::StepDir, tcc, tca::TCSlice::tjs, tca::Trajectory::TotChg, tca::Trajectory::UID, tca::TCConfig::useAlg, and tca::Trajectory::WorkID.
Referenced by tca::TrajClusterAlg::ReconstructAllTraj().
bool tca::MakeJunkTraj | ( | TCSlice & | slc, |
std::vector< unsigned int > | tHits | ||
) |
Definition at line 4146 of file StepUtils.cxx.
References tca::Trajectory::AlgMod, tca::TCEvent::allHits, tca::Trajectory::CTP, tca::TCConfig::dbgAlg, debug, EncodeCTP(), tca::Trajectory::EndPt, evt, FindAlongTrans(), FitTraj(), tca::DebugStuff::Hit, tca::detail::SortEntry::index, tca::Trajectory::IsGood, kEnvUnusedHits, kJunkTj, LongPulseHit(), tca::TCConfig::minPts, tca::Trajectory::NeedsUpdate, PrintTrajectory(), tca::Trajectory::Pts, tca::TCSlice::slHits, StartTraj(), StoreTraj(), sum, tcc, tca::Trajectory::TotChg, tca::TCConfig::unitsPerTick, UpdateTraj(), tca::TCConfig::useAlg, tca::detail::SortEntry::val, and tca::detail::valsDecreasing().
Referenced by tca::TrajClusterAlg::FindJunkTraj().
Definition at line 31 of file TCVertex.cxx.
References close(), tca::VtxStore::CTP, tca::TCConfig::dbgSlc, tca::TCConfig::dbgVxJunk, DecodeCTP(), FindCloseTjs(), tca::VtxStore::ID, kFixed, kHaloTj, kJunkTj, kJunkVx, kKilled, kShowerLike, geo::PlaneID::Plane, tca::VtxStore::Pos, tca::VtxStore::PosErr, PosSep(), tca::VtxStore::Score, SignalBetween(), tca::VtxStore::Stat, StoreVertex(), tcc, tca::TCSlice::tjs, tca::VtxStore::Topo, TrajLength(), tca::TCConfig::unitsPerTick, tca::TCConfig::useAlg, tca::TCConfig::vtx2DCuts, and tca::TCSlice::vtxs.
Referenced by tca::TrajClusterAlg::ReconstructAllTraj().
void tca::MakePFParticles | ( | detinfo::DetectorClocksData const & | clockData, |
detinfo::DetectorPropertiesData const & | detProp, | ||
TCSlice & | slc, | ||
std::vector< MatchStruct > | matVec, | ||
unsigned short | matVec_Iter | ||
) |
Definition at line 266 of file PFPUtils.cxx.
References CanSection(), CreatePFP(), tca::TCConfig::dbgPFP, tca::TCConfig::dbgSlc, debug, EncodeCTP(), util::end(), evt, FilldEdx(), FillGaps3D(), Find3DRecoRange(), FitSection(), for(), tca::TCEvent::global3V_UID, tca::Vtx3Store::ID, InsideTPC(), kAtKink, kCanSection, kEnvOverlap, kJunk3D, kNeedsUpdate, kOutFV, kSmallAngle, kTP3DBad, kTP3DGood, MakeBareTP(), MakeTP3Ds(), tca::TCSlice::mallTraj, tca::TCConfig::match3DCuts, MaxTjLen(), MCSMom(), tca::DebugStuff::MVI, tca::DebugStuff::MVI_Iter, tca::TCSlice::nPlanes, PDGCodeVote(), tca::TCSlice::pfps, PosAtEnd(), tca::Vtx3Store::Primary, PrintTP3Ds(), ReconcileTPs(), ReconcileVertices(), Recover(), ReSection(), tca::Vtx3Store::Score, SortSection(), StorePFP(), tcc, tca::TCSlice::tjs, tca::Vtx3Store::TPCID, geo::TPCID::TPCID(), tca::Vtx3Store::UID, ValidTwoPlaneMatch(), tca::TCSlice::vtx3s, tca::Vtx3Store::Vx2ID, tca::Vtx3Store::Wire, tca::Vtx3Store::X, tca::Vtx3Store::Y, and tca::Vtx3Store::Z.
Referenced by FindPFParticles().
void tca::MakePFPTjs | ( | TCSlice & | slc | ) |
Definition at line 508 of file PFPUtils.cxx.
References CloseEnd(), geo::CryostatID::Cryostat, tca::TCConfig::dbgPFP, DecodeCTP(), EncodeCTP(), util::end(), evt, kMakePFPTjs, kMat3D, kTP3DBad, MakeTrajectoryObsolete(), MCSMom(), tca::TCSlice::nPlanes, tca::TCSlice::pfps, geo::PlaneID::Plane, StoreTraj(), tcc, tca::TCSlice::tjs, geo::TPCID::TPC, tca::TCSlice::TPCID, tca::TCConfig::useAlg, tca::TCSlice::vtx3s, tca::TCSlice::vtxs, and tca::TCEvent::WorkID.
Referenced by tca::TrajClusterAlg::FinishEvent().
void tca::MakeShowerObsolete | ( | std::string | inFcnLabel, |
TCSlice & | slc, | ||
ShowerStruct3D & | ss3, | ||
bool | prt | ||
) |
Definition at line 3151 of file TCShower.cxx.
References tca::ShowerStruct3D::CotIDs, tca::TCSlice::cots, and tca::ShowerStruct3D::ID.
Referenced by CompleteIncompleteShower(), FindShowers3D(), MergeShowers(), Reconcile3D(), and RemoveTj().
void tca::MakeShowerObsolete | ( | std::string | inFcnLabel, |
TCSlice & | slc, | ||
ShowerStruct & | ss, | ||
bool | prt | ||
) |
Definition at line 3169 of file TCShower.cxx.
References tca::Trajectory::AlgMod, tca::ShowerStruct::ID, kKilled, kMergeNrShowers, kMergeOverlap, kMergeShChain, kMergeSubShowers, kShwrParent, MakeTrajectoryObsolete(), tca::TCSlice::showers, tca::ShowerStruct::ShowerTjID, tca::ShowerStruct::SS3ID, tca::Trajectory::SSID, tca::ShowerStruct::TjIDs, and tca::TCSlice::tjs.
bool tca::MakeSmallAnglePFP | ( | detinfo::DetectorPropertiesData const & | detProp, |
TCSlice & | slc, | ||
PFPStruct & | pfp, | ||
bool | prt | ||
) |
Definition at line 2189 of file PFPUtils.cxx.
References tca::PFPStruct::AlgMod, CreateTP3D(), util::end(), tca::PFPStruct::Flags, tca::PFPStruct::ID, if(), InsideTPC(), kCanSection, kSmallAngle, kTP3DBad, kTP3DGood, MakeTP3D(), NumPtsWithCharge(), PosSep(), tca::PFPStruct::SectionFits, SetMag(), SortSection(), tcc, tca::PFPStruct::TjIDs, tca::TCSlice::tjs, tca::PFPStruct::TjUIDs, tca::PFPStruct::TP3Ds, tca::PFPStruct::TPCID, tca::TCConfig::useAlg, and tca::detail::valsDecreasing().
Referenced by MakeTP3Ds().
TP3D tca::MakeTP3D | ( | detinfo::DetectorPropertiesData const & | detProp, |
const TrajPoint & | itp, | ||
const TrajPoint & | jtp | ||
) |
Definition at line 2435 of file PFPUtils.cxx.
References util::abs(), detinfo::DetectorPropertiesData::ConvertTicksToX(), detinfo::DetectorPropertiesData::ConvertXToTicks(), tca::TrajPoint::CTP, tca::TP3D::CTP, DecodeCTP(), den, tca::TrajPoint::Dir, tca::TP3D::Dir, tca::TP3D::Flags, kTP3DGood, geo::WireReadoutGeom::Plane(), tca::TrajPoint::Pos, tca::TP3D::Pos, PosSep(), tcc, tca::TP3D::TjID, tca::TP3D::TPIndex, tca::TP3D::TPX, tca::TP3D::TPXErr2, tca::TCConfig::unitsPerTick, tca::TP3D::Wire, geo::PlaneGeo::WireCoordinate(), and tca::TCConfig::wireReadoutGeom.
Referenced by MakeSmallAnglePFP().
bool tca::MakeTP3Ds | ( | detinfo::DetectorPropertiesData const & | detProp, |
TCSlice & | slc, | ||
PFPStruct & | pfp, | ||
bool | prt | ||
) |
Definition at line 2097 of file PFPUtils.cxx.
References util::abs(), tca::PFPStruct::AlgMod, CreateTP3D(), tca::PFPStruct::ID, kJunkTj, kSmallAngle, kTP3DBad, kTP3DGood, MakeSmallAnglePFP(), tca::PFPStruct::MVI, tca::PFPStruct::SectionFits, tca::PFPStruct::TjIDs, tca::TCSlice::tjs, tca::PFPStruct::TjUIDs, and tca::PFPStruct::TP3Ds.
Referenced by MakePFParticles().
void tca::MakeTrajectoryObsolete | ( | TCSlice & | slc, |
unsigned int | itj | ||
) |
Definition at line 2138 of file Utils.cxx.
References kKilled, tca::TCSlice::slHits, and tca::TCSlice::tjs.
Referenced by MakeHaloTj(), MakePFPTjs(), MakeShowerObsolete(), MergeAndStore(), and MergeShowersAndStore().
bool tca::MakeVertexObsolete | ( | std::string | fcnLabel, |
TCSlice & | slc, | ||
VtxStore & | vx2, | ||
bool | forceKill | ||
) |
Definition at line 2698 of file TCVertex.cxx.
References tca::VtxStore::CTP, tca::TCConfig::dbg2V, tca::TCConfig::dbg3V, DecodeCTP(), util::end(), tca::VtxStore::ID, tca::Vtx3Store::ID, kEnvOverlap, kHaloTj, kHiVx3Score, kKilled, kPhoton, kTjHiVx3Score, tca::TCSlice::nPlanes, tca::TCSlice::pfps, geo::PlaneID::Plane, tca::VtxStore::Pos, SetVx3Score(), tcc, tca::TCSlice::tjs, tca::TCConfig::vtx2DCuts, tca::TCSlice::vtx3s, tca::TCSlice::vtxs, tca::Vtx3Store::Vx2ID, tca::VtxStore::Vx3ID, and tca::Vtx3Store::Wire.
Referenced by BraggSplit(), CheckTrajBeginChg(), CompleteIncomplete3DVertices(), EndMerge(), FindHammerVertices(), FindHammerVertices2(), KillPoorVertices(), KillVerticesInShower(), LastEndMerge(), MakeVertexObsolete(), MergeAndStore(), Reconcile2VTs(), ReconcileVertices(), and SplitTrajCrossingVertices().
Definition at line 2789 of file TCVertex.cxx.
References tca::Vtx3Store::ID, MakeVertexObsolete(), tca::TCSlice::vtx3s, tca::TCSlice::vtxs, and tca::Vtx3Store::Vx2ID.
void tca::MaskBadTPs | ( | TCSlice & | slc, |
Trajectory & | tj, | ||
float const & | maxChi | ||
) |
Definition at line 2572 of file StepUtils.cxx.
References tca::Trajectory::AlgMod, tca::TrajPoint::Chg, tca::TCConfig::dbgAlg, tca::TCConfig::dbgStp, tca::TrajPoint::Delta, tca::TrajPoint::FitChi, FitTraj(), tca::Trajectory::IsGood, kMaskBadTPs, kRvPrp, tca::TrajPoint::NTPsFit, tca::Trajectory::Pts, tcc, UnsetUsedHits(), and tca::TCConfig::useAlg.
Referenced by UpdateTraj().
bool tca::MaskedHitsOK | ( | TCSlice & | slc, |
Trajectory & | tj | ||
) |
Definition at line 2619 of file StepUtils.cxx.
References tca::Trajectory::AlgMod, tca::TCEvent::allHits, tca::TCConfig::dbgStp, DefineHitPos(), tca::Trajectory::EndPt, evt, FitTraj(), tca::TrajPoint::Hits, tca::Trajectory::ID, kMaskHits, tca::TCConfig::minPtsFit, tca::TrajPoint::NTPsFit, tca::Trajectory::Pass, PrintTrajectory(), tca::Trajectory::Pts, SetEndPoints(), tca::TCSlice::slHits, tcc, UpdateTjChgProperties(), tca::TCConfig::useAlg, and tca::TrajPoint::UseHit.
Referenced by StepAway().
void tca::MaskTrajEndPoints | ( | TCSlice & | slc, |
Trajectory & | tj, | ||
unsigned short | nPts | ||
) |
Definition at line 3909 of file StepUtils.cxx.
References tca::TCConfig::dbgStp, tca::Trajectory::EndFlag, tca::Trajectory::EndPt, tca::Trajectory::ID, tca::Trajectory::IsGood, kAtKink, PointTrajDOCA(), PrintPos(), tca::Trajectory::Pts, SetEndPoints(), tcc, TrajPointSeparation(), and UnsetUsedHits().
void tca::Match2DShowers | ( | std::string | inFcnLabel, |
TCSlice & | slc, | ||
bool | prt | ||
) |
void tca::Match2Planes | ( | TCSlice & | slc, |
std::vector< MatchStruct > & | matVec | ||
) |
Definition at line 939 of file PFPUtils.cxx.
References geo::CryostatID::Cryostat, tca::detail::SortEntry::index, tca::TCSlice::mallTraj, tca::TCConfig::match3DCuts, NumPtsWithCharge(), tcc, tca::TCSlice::tjs, geo::TPCID::TPC, tca::TCSlice::TPCID, tca::detail::SortEntry::val, tca::detail::valsDecreasing(), geo::WireReadoutGeom::WireIDsIntersect(), and tca::TCConfig::wireReadoutGeom.
Referenced by FindPFParticles().
float tca::Match3DFOM | ( | detinfo::DetectorPropertiesData const & | detProp, |
std::string | inFcnLabel, | ||
TCSlice & | slc, | ||
ShowerStruct3D & | ss3, | ||
bool | prt | ||
) |
Definition at line 1198 of file TCShower.cxx.
References tca::ShowerStruct3D::CotIDs.
Referenced by Match3DFOM().
float tca::Match3DFOM | ( | detinfo::DetectorPropertiesData const & | detProp, |
std::string | inFcnLabel, | ||
TCSlice & | slc, | ||
int | icid, | ||
int | jcid, | ||
int | kcid, | ||
bool | prt | ||
) |
Definition at line 1219 of file TCShower.cxx.
References tca::TCSlice::cots, and Match3DFOM().
float tca::Match3DFOM | ( | detinfo::DetectorPropertiesData const & | detProp, |
std::string | inFcnLabel, | ||
TCSlice & | slc, | ||
int | icid, | ||
int | jcid, | ||
bool | prt | ||
) |
Definition at line 1239 of file TCShower.cxx.
References util::abs(), detinfo::DetectorPropertiesData::ConvertTicksToX(), tca::TCSlice::cots, DecodeCTP(), tcc, tca::TCSlice::tjs, and tca::TCConfig::unitsPerTick.
void tca::Match3Planes | ( | TCSlice & | slc, |
std::vector< MatchStruct > & | matVec | ||
) |
Definition at line 809 of file PFPUtils.cxx.
References util::abs(), evt, tca::detail::SortEntry::index, evd::kPlane, evd::kWire, tca::TCSlice::mallTraj, tca::TCConfig::match3DCuts, Match3PlanesSpt(), tca::TCSlice::nPlanes, NumPtsWithCharge(), tca::TCEvent::sptHits, tcc, TCIntersectionPoint(), tca::TCSlice::tjs, tca::detail::SortEntry::val, tca::detail::valsDecreasing(), and tca::TCConfig::wirePitch.
Referenced by FindPFParticles().
void tca::Match3PlanesSpt | ( | TCSlice & | slc, |
std::vector< MatchStruct > & | matVec | ||
) |
Definition at line 698 of file PFPUtils.cxx.
References tca::TCEvent::allHits, evt, tca::detail::SortEntry::index, tca::TCConfig::match3DCuts, NumPtsWithCharge(), tca::TCSlice::slHits, tca::TCEvent::sptHits, SptInTPC(), tcc, tca::TCSlice::tjs, geo::TPCID::TPC, tca::TCSlice::TPCID, tca::detail::SortEntry::val, and tca::detail::valsDecreasing().
Referenced by Match3Planes().
float tca::MaxChargeAsymmetry | ( | TCSlice & | slc, |
std::vector< int > const & | tjIDs | ||
) |
Definition at line 378 of file Utils.cxx.
References util::abs(), DecodeCTP(), tca::TCSlice::nPlanes, geo::PlaneID::Plane, tca::TCSlice::tjs, and UpdateTjChgProperties().
float tca::MaxHitDelta | ( | TCSlice & | slc, |
Trajectory & | tj | ||
) |
Definition at line 3202 of file Utils.cxx.
References PointTrajDOCA(), and tca::Trajectory::Pts.
Referenced by CheckHiMultUnusedHits(), and FillGaps().
float tca::MaxTjLen | ( | const TCSlice & | slc, |
std::vector< int > & | tjIDs | ||
) |
Definition at line 2567 of file Utils.cxx.
References PosSep2(), and tca::TCSlice::tjs.
Referenced by MakePFParticles().
short tca::MCSMom | ( | const TCSlice & | slc, |
const std::vector< int > & | tjIDs | ||
) |
Definition at line 3381 of file Utils.cxx.
References tca::TCSlice::tjs.
Referenced by CheckTraj(), DotProd(), FillGaps(), FindHammerVertices2(), FindParent(), Forecast(), IsGhost(), MakePFParticles(), MakePFPTjs(), MCSMom(), MergeNearby2DShowers(), MergeSubShowersTj(), PDGCodeVote(), PrintP(), PrintPFP(), SplitTraj(), UpdateStiffEl(), and UpdateTraj().
short tca::MCSMom | ( | const TCSlice & | slc, |
const Trajectory & | tj | ||
) |
Definition at line 3397 of file Utils.cxx.
References tca::Trajectory::EndPt, and MCSMom().
short tca::MCSMom | ( | const TCSlice & | slc, |
const Trajectory & | tj, | ||
unsigned short | firstPt, | ||
unsigned short | lastPt | ||
) |
Definition at line 3403 of file Utils.cxx.
References tca::Trajectory::AlgMod, tca::Trajectory::EndPt, kJunkTj, MCSThetaRMS(), NearestPtWithChg(), NumPtsWithCharge(), tca::Trajectory::Pts, and TrajPointSeparation().
float tca::MCSThetaRMS | ( | const Trajectory & | tj | ) |
Definition at line 3453 of file Utils.cxx.
References tca::Trajectory::EndPt, tca::Trajectory::Pts, and TrajPointSeparation().
Referenced by DotProd(), and MCSMom().
double tca::MCSThetaRMS | ( | const Trajectory & | tj, |
unsigned short | firstPt, | ||
unsigned short | lastPt | ||
) |
Definition at line 3467 of file Utils.cxx.
References tca::Trajectory::EndPt, NearestPtWithChg(), tca::Trajectory::Pts, TjDeltaRMS(), and TrajPointSeparation().
bool tca::MergeAndStore | ( | TCSlice & | slc, |
unsigned int | itj1, | ||
unsigned int | itj2, | ||
bool | doPrt | ||
) |
Not allowed
Definition at line 4521 of file Utils.cxx.
References tca::Trajectory::AlgMod, AttachAnyVertexToTraj(), tca::Trajectory::EndFlag, tca::Trajectory::EndPt, GetPFPIndex(), HasDuplicateHits(), tca::Trajectory::ID, kBragg, kDeltaRay, kHaloTj, kKilled, kMichel, kShowerTj, MakeTrajectoryObsolete(), MakeVertexObsolete(), MergeShowerTjsAndStore(), tca::Trajectory::NeedsUpdate, tca::Trajectory::ParentID, PosSep2(), PrintPos(), tca::Trajectory::Pts, ReverseTraj(), SetEndPoints(), SetPDGCode(), tca::Trajectory::StepDir, StoreTraj(), tca::TCSlice::tjs, TrajPointTrajDOCA(), tca::Trajectory::VtxID, tca::TCSlice::vtxs, and tca::Trajectory::WorkID.
Referenced by DotProd(), EndMerge(), LastEndMerge(), and MergeTjIntoPFP().
Definition at line 2172 of file Utils.cxx.
References kAllHits, kHaloTj, kKilled, kMrgGhost, PutTrajHitsInVector(), tca::TCSlice::slHits, tcc, tca::TCSlice::tjs, and tca::TCConfig::useAlg.
void tca::MergeNearby2DShowers | ( | std::string | inFcnLabel, |
TCSlice & | slc, | ||
const CTP_t & | inCTP, | ||
bool | prt | ||
) |
Definition at line 2279 of file TCShower.cxx.
References AddTj(), tca::Trajectory::AlgMod, ChkAssns(), tca::TCSlice::cots, tca::ShowerStruct::CTP, DontCluster(), GetAssns(), tca::ShowerStruct::ID, tca::TCSlice::ID, kMat3D, kMergeNrShowers, MCSMom(), MergeShowersAndStore(), tca::ShowerStruct::NearTjIDs, tca::TCSlice::pfps, SetIntersection(), tca::ShowerStruct::ShowerTjID, tcc, tca::ShowerStruct::TjIDs, tca::TCSlice::tjs, and tca::TCConfig::useAlg.
Referenced by FindShowers3D().
Definition at line 2371 of file TCShower.cxx.
References tca::Trajectory::AlgMod, ChkAssns(), close(), tca::TCSlice::cots, DontCluster(), DotProd(), tca::TCSlice::ID, kMergeOverlap, MergeShowersAndStore(), PointInsideEnvelope(), PosSep(), PosSep2(), tca::TCConfig::showerTag, tcc, tca::TCSlice::tjs, and tca::TCConfig::useAlg.
Referenced by cluster::ClusterCrawlerAlg::ClusterLoop(), and FindShowers3D().
Definition at line 2491 of file TCShower.cxx.
References ChkAssns(), tca::TCSlice::cots, tca::ShowerStruct::CTP, DontCluster(), tca::ShowerStruct::Energy, tca::ShowerStruct::ID, kMergeShChain, MakeBareTrajPoint(), MergeShowers(), PointTrajDOCA(), PosSep(), PrintPos(), tca::ShowerStruct::ShowerTjID, tcc, tca::ShowerStruct::TjIDs, tca::TCSlice::tjs, tca::TCConfig::useAlg, and tca::detail::valsDecreasing().
Referenced by FindShowers3D().
int tca::MergeShowers | ( | std::string | inFcnLabel, |
TCSlice & | slc, | ||
std::vector< int > | ssIDs, | ||
bool | prt | ||
) |
Definition at line 2847 of file TCShower.cxx.
References tca::TCSlice::cots, CreateSS(), kKilled, MakeShowerObsolete(), StoreShower(), tca::TCSlice::tjs, and UpdateShower().
Referenced by MergeShowerChain().
bool tca::MergeShowersAndStore | ( | std::string | inFcnLabel, |
TCSlice & | slc, | ||
int | icotID, | ||
int | jcotID, | ||
bool | prt | ||
) |
Definition at line 2908 of file TCShower.cxx.
References tca::TCSlice::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::TCSlice::tjs, tca::ShowerStruct::TruParentID, and UpdateShower().
Referenced by MergeNearby2DShowers(), MergeOverlap(), MergeShowerTjsAndStore(), and MergeSubShowers().
bool tca::MergeShowerTjsAndStore | ( | TCSlice & | slc, |
unsigned short | istj, | ||
unsigned short | jstj, | ||
bool | prt | ||
) |
Definition at line 2978 of file TCShower.cxx.
References tca::Trajectory::AlgMod, tca::TCSlice::cots, GetCotID(), tca::Trajectory::ID, tca::ShowerStruct::ID, kShowerTj, MergeShowersAndStore(), tca::ShowerStruct::TjIDs, and tca::TCSlice::tjs.
Referenced by MergeAndStore().
Definition at line 2731 of file TCShower.cxx.
References tca::Trajectory::AlgMod, tca::ShowerStruct::AspectRatio, ChkAssns(), tca::TCSlice::cots, tca::TrajPoint::Dir, DontCluster(), tca::ShowerStruct::Energy, FindAlongTrans(), tca::ShowerStruct::ID, tca::detail::SortEntry::index, InShowerProbLong(), InShowerProbTrans(), kMergeSubShowers, MergeShowersAndStore(), PointTrajDOCA(), tca::TrajPoint::Pos, PosSep(), ShowerParams(), tca::TCConfig::showerTag, tca::ShowerStruct::ShowerTjID, tcc, tca::ShowerStruct::TjIDs, tca::TCSlice::tjs, tca::TCConfig::useAlg, tca::detail::SortEntry::val, tca::detail::valsIncreasing(), and tca::TCConfig::wirePitch.
Referenced by FindShowers3D().
void tca::MergeSubShowersTj | ( | std::string | inFcnLabel, |
TCSlice & | slc, | ||
const CTP_t & | inCTP, | ||
bool | prt | ||
) |
Definition at line 2620 of file TCShower.cxx.
References AddTj(), ChgToMeV(), ChkAssns(), tca::TCSlice::cots, DontCluster(), FarEnd(), kHaloTj, kKilled, kMergeSubShowersTj, mat, MCSMom(), NumPtsWithCharge(), PointTrajDOCA(), PosSep(), tca::TCConfig::showerTag, tcc, tca::TCSlice::tjs, and tca::TCConfig::useAlg.
Referenced by FindShowers3D().
Definition at line 512 of file Utils.cxx.
References MergeAndStore(), tca::PFPStruct::TjIDs, and tca::TCSlice::tjs.
void tca::MergeTjList | ( | std::vector< std::vector< int >> & | tjList | ) |
Definition at line 1287 of file TCShower.cxx.
References util::empty().
void tca::MergeTjList2 | ( | std::string | inFcnLabel, |
TCSlice & | slc, | ||
std::vector< std::vector< int >> & | tjList, | ||
bool | prt | ||
) |
Definition at line 433 of file TCVertex.cxx.
References tca::VtxStore::ChiDOF, CloseEnd(), tca::VtxStore::CTP, tca::TCConfig::dbgSlc, tca::TCConfig::dbgVxMerge, util::end(), FitVertex(), GetVtxTjIDs(), tca::VtxStore::ID, kFixed, kHaloTj, kKilled, kVxMerge, kVxMerged, NearestPtWithChg(), NumPtsWithCharge(), tca::VtxStore::Pos, tca::VtxStore::PosErr, PrintPos(), SetVx2Score(), tca::VtxStore::Stat, tcc, tca::TCSlice::tjs, tmp, tca::TCConfig::useAlg, tca::detail::valsDecreasing(), and tca::TCSlice::vtxs.
Referenced by Find2DVertices().
void tca::MoveTPToWire | ( | TrajPoint & | tp, |
float | wire | ||
) |
Definition at line 2763 of file Utils.cxx.
References util::abs(), tca::TrajPoint::Dir, and tca::TrajPoint::Pos.
Referenced by AddHits(), AddPointsInRange(), Find2DVertices(), FindCloseTjs(), FindHammerVertices2(), FitTraj(), Forecast(), IsGhost(), and ReversePropagate().
unsigned short tca::NearbyCleanPt | ( | const Trajectory & | tj, |
unsigned short | end | ||
) |
Definition at line 2888 of file Utils.cxx.
References dir, util::end(), tca::Trajectory::EndPt, kEnvOverlap, and tca::Trajectory::Pts.
Referenced by Reconcile2VTs().
bool tca::NearbySrcHit | ( | geo::PlaneID | plnID, |
unsigned int | wire, | ||
float | loTick, | ||
float | hiTick | ||
) |
Definition at line 2030 of file Utils.cxx.
References evt, geo::PlaneID::Plane, geo::WireReadoutGeom::PlaneWireToChannel(), tca::TCEvent::srcHits, tcc, geo::TPCID::TPC, tca::TCEvent::tpcSrcHitRange, and tca::TCConfig::wireReadoutGeom.
Referenced by AddHits(), and SignalAtTp().
unsigned short tca::NearestPtWithChg | ( | const Trajectory & | tj, |
unsigned short | thePt | ||
) |
Definition at line 3435 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 TCSlice & | slc, |
const Trajectory & | tj | ||
) |
Definition at line 446 of file Utils.cxx.
References tca::Trajectory::AlgMod, util::end(), kHaloTj, kKilled, tca::Trajectory::ParentID, PrimaryID(), tca::TCSlice::tjs, tca::TCSlice::vtx3s, and tca::TCSlice::vtxs.
Referenced by AddTjsInsideEnvelope(), PrintAllTraj(), and PrintT().
unsigned short tca::NumHitsInTP | ( | const TrajPoint & | tp, |
HitStatus_t | hitRequest | ||
) |
Definition at line 4198 of file Utils.cxx.
References tca::TrajPoint::Hits, kAllHits, kUsedHits, and tca::TrajPoint::UseHit.
Referenced by AddHits(), CheckHiMultUnusedHits(), and DotProd().
unsigned short tca::NumPtsWithCharge | ( | const TCSlice & | slc, |
const Trajectory & | tj, | ||
bool | includeDeadWires | ||
) |
Definition at line 2072 of file Utils.cxx.
References tca::Trajectory::EndPt.
Referenced by BraggSplit(), CheckHiMultUnusedHits(), CheckStiffEl(), CheckTraj(), ChkBegin(), CompleteIncomplete3DVertices(), ElectronLikelihood(), EndMerge(), FillGaps(), FindHammerVertices2(), FindPFParticles(), FitTraj(), FixBegin(), Forecast(), GottaKink(), KinkSignificance(), MakeSmallAnglePFP(), Match2Planes(), Match3Planes(), Match3PlanesSpt(), MCSMom(), MergeSubShowersTj(), MergeWithVertex(), ReconcileTPs(), tca::TrajClusterAlg::ReconstructAllTraj(), SetPDGCode(), SetStrategy(), SplitTrajCrossingVertices(), StepAway(), StopShort(), TagShowerLike(), TrimEndPts(), TrimHiChgEndPts(), and UpdateTraj().
unsigned short tca::NumPtsWithCharge | ( | const TCSlice & | slc, |
const Trajectory & | tj, | ||
bool | includeDeadWires, | ||
unsigned short | firstPt, | ||
unsigned short | lastPt | ||
) |
Definition at line 2080 of file Utils.cxx.
References DeadWireCount(), and tca::Trajectory::Pts.
float tca::OverlapFraction | ( | const Trajectory & | tj1, |
const Trajectory & | tj2 | ||
) |
Definition at line 707 of file Utils.cxx.
References tca::Trajectory::Pts, and util::span().
Referenced by CompatibleMerge(), and EndMerge().
float tca::ParentFOM | ( | std::string | inFcnLabel, |
TCSlice & | slc, | ||
PFPStruct & | pfp, | ||
ShowerStruct3D & | ss3, | ||
bool | prt | ||
) |
Definition at line 2051 of file TCShower.cxx.
References tca::ShowerStruct3D::CotIDs, tca::TCSlice::cots, FarEnd(), tca::PFPStruct::ID, tca::ShowerStruct3D::ID, PosSep2(), sum, tca::PFPStruct::TjIDs, and tca::TCSlice::tjs.
Referenced by SetParent().
float tca::ParentFOM | ( | std::string | inFcnLabel, |
TCSlice & | slc, | ||
Trajectory & | tj, | ||
unsigned short & | tjEnd, | ||
ShowerStruct & | ss, | ||
float & | tp1Sep, | ||
float & | vx2Score, | ||
bool | prt | ||
) |
Definition at line 2101 of file TCShower.cxx.
References util::abs(), 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, tcc, tca::ShowerStruct::TjIDs, tca::TCSlice::tjs, tca::Trajectory::VtxID, tca::TCSlice::vtxs, and tca::TCConfig::wirePitch.
unsigned short tca::PDGCodeIndex | ( | int | PDGCode | ) |
Definition at line 2126 of file Utils.cxx.
References util::abs().
int tca::PDGCodeVote | ( | const TCSlice & | slc, |
const std::vector< int > & | tjIDs | ||
) |
int tca::PDGCodeVote | ( | detinfo::DetectorClocksData const & | clockData, |
detinfo::DetectorPropertiesData const & | detProp, | ||
const TCSlice & | slc, | ||
PFPStruct & | pfp | ||
) |
Definition at line 3312 of file PFPUtils.cxx.
References Average_dEdX(), ElectronLikelihood(), Length(), MCSMom(), tca::PFPStruct::TjIDs, tca::TCSlice::tjs, and tca::PFPStruct::TP3Ds.
Referenced by DotProd(), and MakePFParticles().
void tca::PFPVertexCheck | ( | TCSlice & | slc | ) |
Definition at line 2822 of file PFPUtils.cxx.
References evt, tca::TCEvent::global3V_UID, tca::Vtx3Store::ID, tca::TCSlice::isValid, tca::TCSlice::nPlanes, tca::TCSlice::pfps, tca::Vtx3Store::Primary, tca::Vtx3Store::TPCID, geo::TPCID::TPCID(), tca::Vtx3Store::UID, tca::TCSlice::vtx3s, tca::Vtx3Store::Vx2ID, tca::Vtx3Store::Wire, tca::Vtx3Store::X, tca::Vtx3Store::Y, and tca::Vtx3Store::Z.
Referenced by DotProd(), and tca::TrajClusterAlg::FinishEvent().
Definition at line 2538 of file PFPUtils.cxx.
Referenced by AttachToAnyVertex(), ChgFracBetween(), DotProd(), FindAlongTrans(), FindParent(), MakeBareTrajPoint(), 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 3083 of file PFPUtils.cxx.
References LineLineIntersect().
Referenced by DotProd().
Definition at line 3246 of file Utils.cxx.
References util::abs(), and DeltaAngle().
Referenced by AddLooseHits(), AddTjsInsideEnvelope(), FindNearbyTjs(), KillVerticesInShower(), and MergeOverlap().
float tca::PointPull | ( | Point2_t | pos, |
float | chg, | ||
const Trajectory & | tj | ||
) |
Definition at line 544 of file Utils.cxx.
References util::abs(), tca::Trajectory::AlgMod, tca::Trajectory::AveChg, tca::Trajectory::ChgRMS, close(), tca::Trajectory::EndPt, kKilled, PointTrajDOCA(), PosSep2(), and tca::Trajectory::Pts.
float tca::PointPull | ( | const TP3D & | tp3d | ) |
Definition at line 2794 of file PFPUtils.cxx.
References util::abs(), tca::TP3D::Pos, tca::TP3D::TPX, and tca::TP3D::TPXErr2.
Referenced by AddPointsInRange(), CountBadPoints(), DotProd(), and PrintTP3Ds().
Definition at line 2514 of file Utils.cxx.
References tca::TCEvent::allHits, evt, PointTrajDOCA2(), tca::TCSlice::slHits, tcc, and tca::TCConfig::unitsPerTick.
Referenced by AddHits(), CheckHiMultUnusedHits(), CompatibleMerge(), CompleteIncomplete3DVerticesInGaps(), EndMerge(), FillGaps(), FindCloseHits(), FindHammerVertices2(), FindNearbyTjs(), FindUseHits(), FixBegin(), Forecast(), LastEndMerge(), MakeHaloTj(), MaskTrajEndPoints(), MaxHitDelta(), MergeShowerChain(), MergeSubShowers(), MergeSubShowersTj(), PointPull(), SplitTrajCrossingVertices(), TrajPointVertexPull(), UpdateDeltaRMS(), UpdateStiffEl(), and UpdateTraj().
float tca::PointTrajDOCA | ( | float | wire, |
float | time, | ||
TrajPoint const & | tp | ||
) |
Definition at line 2524 of file Utils.cxx.
References PointTrajDOCA2().
float tca::PointTrajDOCA2 | ( | float | wire, |
float | time, | ||
TrajPoint const & | tp | ||
) |
Definition at line 2530 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 2506 of file Utils.cxx.
References tca::TrajPoint::Pos.
Definition at line 3257 of file PFPUtils.cxx.
References if(), tca::PFPStruct::SectionFits, and tca::PFPStruct::TP3Ds.
Referenced by AttachToAnyVertex(), ChgFracNearEnd(), DotProd(), FilldEdx(), FindParent(), MakePFParticles(), PrintP(), PrintPFP(), cluster::TrajCluster::produce(), Reconcile3D(), SetParent(), StitchPFPs(), and UpdateShower().
void tca::PosInPlane | ( | detinfo::DetectorPropertiesData const & | detProp, |
const Vtx3Store & | vx3, | ||
unsigned short | plane, | ||
Point2_t & | pos | ||
) |
Definition at line 2847 of file TCVertex.cxx.
References detinfo::DetectorPropertiesData::ConvertXToTicks(), geo::WireReadoutGeom::Plane(), tcc, tca::Vtx3Store::TPCID, tca::TCConfig::unitsPerTick, geo::PlaneGeo::WireCoordinate(), tca::TCConfig::wireReadoutGeom, tca::Vtx3Store::X, tca::Vtx3Store::Y, and tca::Vtx3Store::Z.
Referenced by Print3V(), and PrintAllTraj().
Definition at line 2554 of file PFPUtils.cxx.
References PosSep2().
Referenced by AttachAnyTrajToVertex(), AttachAnyVertexToTraj(), AttachToAnyVertex(), ChgFracBetween(), CompatibleMerge(), DefineEnvelope(), DotProd(), EndMerge(), Find2DVertices(), FindAlongTrans(), FindHammerVertices2(), FindParent(), FindShowerStart(), InShowerProb(), LastEndMerge(), Length(), LineLineIntersect(), MakeJunkVertices(), MakeSmallAnglePFP(), MakeTP3D(), MergeOverlap(), MergeShowerChain(), MergeSubShowers(), MergeSubShowersTj(), ParentFOM(), PrintTP3Ds(), Reconcile3D(), and UpdateShower().
Definition at line 2560 of file PFPUtils.cxx.
Referenced by AttachTrajToVertex(), CloseEnd(), DotProd(), EndMerge(), FarEnd(), FilldEdx(), Find2DVertices(), FindParent(), MaxTjLen(), MergeAndStore(), MergeOverlap(), ParentFOM(), PointPull(), PosSep(), StepAway(), StitchPFPs(), TrajPointVertexPull(), and UpdateShower().
int tca::PrimaryID | ( | const TCSlice & | slc, |
const Trajectory & | tj | ||
) |
Definition at line 468 of file Utils.cxx.
References tca::Trajectory::AlgMod, tca::Trajectory::ID, kHaloTj, kKilled, tca::Trajectory::ParentID, and tca::TCSlice::tjs.
Referenced by NeutrinoPrimaryTjID(), PrintAllTraj(), and PrintT().
int tca::PrimaryUID | ( | const PFPStruct & | pfp | ) |
Definition at line 487 of file Utils.cxx.
References GetSliceIndex(), tca::PFPStruct::ID, tca::PFPStruct::ParentUID, slices, and tca::PFPStruct::UID.
Referenced by PrintPFP().
void tca::Print2DShowers | ( | std::string | someText, |
TCSlice const & | slc, | ||
CTP_t | inCTP, | ||
bool | printKilledShowers | ||
) |
Definition at line 4192 of file TCShower.cxx.
References tca::TCSlice::cots, tca::TCSlice::dontCluster, DontCluster(), nlines, PrintShower(), tcc, util::to_string(), and tca::TCConfig::unitsPerTick.
Referenced by FindShowers3D(), and Reconcile3D().
void tca::Print2V | ( | mf::LogVerbatim & | myprt, |
VtxStore const & | vx2, | ||
bool & | printHeader | ||
) |
Definition at line 5613 of file Utils.cxx.
References tca::VtxStore::ChiDOF, tca::DebugStuff::CTP, tca::VtxStore::CTP, debug, util::end(), GetSliceIndex(), tca::VtxStore::ID, kKilled, tca::VtxStore::NTraj, tca::VtxStore::Pass, tca::VtxStore::Pos, tca::VtxStore::PosErr, art::right(), tca::VtxStore::Score, slices, tca::VtxStore::Stat, tcc, tca::VtxStore::TjChgFrac, util::to_string(), tca::VtxStore::Topo, tca::VtxStore::UID, tca::TCConfig::unitsPerTick, VtxBitNames, and tca::VtxStore::Vx3ID.
Referenced by DotProd(), PrintAll(), and SetVx2Score().
void tca::Print3S | ( | detinfo::DetectorPropertiesData const & | detProp, |
mf::LogVerbatim & | myprt, | ||
ShowerStruct3D const & | ss3 | ||
) |
Definition at line 5663 of file Utils.cxx.
References tca::ShowerStruct3D::ChgPos, tca::ShowerStruct3D::CotIDs, geo::CryostatID::Cryostat, tca::ShowerStruct3D::Dir, EncodeCTP(), GetSliceIndex(), tca::ShowerStruct3D::ID, MakeBareTP(), tca::ShowerStruct3D::NeedsUpdate, PrintPos(), slices, util::to_string(), geo::TPCID::TPC, tca::ShowerStruct3D::TPCID, tca::ShowerStruct3D::UID, and tca::ShowerStruct3D::Vx3ID.
Referenced by DotProd(), and PrintAll().
void tca::Print3V | ( | detinfo::DetectorPropertiesData const & | detProp, |
mf::LogVerbatim & | myprt, | ||
Vtx3Store const & | vx3, | ||
bool & | printHeader | ||
) |
Definition at line 5538 of file Utils.cxx.
References geo::CryostatID::Cryostat, util::end(), GetAssns(), GetSliceIndex(), tca::Vtx3Store::ID, kVxTruMatch, tca::Vtx3Store::Neutrino, PosInPlane(), tca::Vtx3Store::Primary, PrintPos(), art::right(), tca::Vtx3Store::Score, slices, util::to_string(), geo::TPCID::TPC, tca::Vtx3Store::TPCID, tca::Vtx3Store::UID, tca::Vtx3Store::Vx2ID, tca::Vtx3Store::Wire, tca::Vtx3Store::X, tca::Vtx3Store::Y, and tca::Vtx3Store::Z.
Referenced by DotProd(), and PrintAll().
void tca::PrintAll | ( | detinfo::DetectorPropertiesData const & | detProp, |
std::string | someText | ||
) |
Definition at line 5370 of file Utils.cxx.
References debug, Print2V(), Print3S(), Print3V(), PrintP(), PrintT(), tca::DebugStuff::Slice, and slices.
Referenced by DotProd(), export_G4VSensitiveDetector(), and cluster::TrajCluster::produce().
void tca::PrintAllTraj | ( | detinfo::DetectorPropertiesData const & | detProp, |
std::string | someText, | ||
TCSlice const & | slc, | ||
unsigned short | itj, | ||
unsigned short | ipt, | ||
bool | prtVtx | ||
) |
Definition at line 5793 of file Utils.cxx.
References AlgBitNames, geo::CryostatID::Cryostat, tca::DebugStuff::CTP, debug, DecodeCTP(), util::end(), GetAssns(), tca::Vtx3Store::ID, kAtKink, kAtTj, kAtVtx, kBragg, kKilled, kVxTruMatch, tca::Vtx3Store::Neutrino, NeutrinoPrimaryTjID(), tca::TCSlice::nPlanes, tca::TCSlice::pfps, tca::DebugStuff::Plane, geo::PlaneID::Plane, PosInPlane(), tca::Vtx3Store::Primary, PrimaryID(), PrintPos(), PrintTP(), PrintTPHeader(), art::right(), tca::Vtx3Store::Score, tcc, tca::TCSlice::tjs, tmp, util::to_string(), geo::TPCID::TPC, tca::Vtx3Store::TPCID, tca::TCConfig::unitsPerTick, tca::TCSlice::vtx3s, VtxBitNames, tca::TCSlice::vtxs, 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(), and FindShowers3D().
void tca::PrintClusters | ( | ) |
void tca::PrintDebugMode | ( | ) |
Definition at line 5300 of file Utils.cxx.
References AlgBitNames, tca::DebugStuff::Cryostat, tca::DebugStuff::CTP, tca::TCConfig::dbg2S, tca::TCConfig::dbg2V, tca::TCConfig::dbg3V, tca::TCConfig::dbgDeltaRayTag, tca::TCConfig::dbgDump, tca::TCConfig::dbgMrg, tca::TCConfig::dbgMuonTag, tca::TCConfig::dbgPFP, tca::TCConfig::dbgSlc, tca::TCConfig::dbgStitch, tca::TCConfig::dbgStp, tca::TCConfig::dbgSummary, tca::TCConfig::dbgVxJunk, tca::TCConfig::dbgVxMerge, tca::TCConfig::dbgVxNeutral, debug, tca::DebugStuff::Hit, kKilled, tca::DebugStuff::Plane, tca::DebugStuff::Slice, tcc, tca::DebugStuff::Tick, tca::DebugStuff::TPC, tca::TCConfig::useAlg, tca::DebugStuff::Wire, and tca::DebugStuff::WorkID.
Referenced by DotProd(), and tca::TrajClusterAlg::SetInputHits().
std::string tca::PrintEndFlag | ( | const PFPStruct & | pfp, |
unsigned short | end | ||
) |
Definition at line 6297 of file Utils.cxx.
References tca::PFPStruct::EndFlag, EndFlagNames, tmp, and util::to_string().
Referenced by DotProd(), FixBegin(), and PrintTrajectory().
std::string tca::PrintEndFlag | ( | const Trajectory & | tj, |
unsigned short | end | ||
) |
Definition at line 6318 of file Utils.cxx.
References tca::Trajectory::EndFlag, EndFlagNames, tmp, and util::to_string().
std::string tca::PrintHit | ( | const TCHit & | tch | ) |
Definition at line 6347 of file Utils.cxx.
References tca::TCEvent::allHits, tca::TCHit::allHitsIndex, evt, tca::TCHit::InTraj, and util::to_string().
Referenced by cluster::ClusterCrawlerAlg::AddHit(), AddHits(), cluster::ClusterCrawlerAlg::AddLAHit(), AddLAHits(), CheckHiMultUnusedHits(), tca::TrajClusterAlg::ChkInTraj(), ChkStopEndPts(), cluster::ClusterCrawlerAlg::ClusterLoop(), DotProd(), FillGaps(), Find3DVertices(), tca::TrajClusterAlg::FindJunkTraj(), FindUseHits(), HasDuplicateHits(), InTrajOK(), cluster::ClusterCrawlerAlg::MergeOverlap(), tca::TrajClusterAlg::ReconstructAllTraj(), ReversePropagate(), and StoreTraj().
std::string tca::PrintHitShort | ( | const TCHit & | tch | ) |
Definition at line 6338 of file Utils.cxx.
References tca::TCEvent::allHits, tca::TCHit::allHitsIndex, evt, and util::to_string().
Referenced by DotProd().
void tca::PrintP | ( | mf::LogVerbatim & | myprt, |
PFPStruct const & | pfp, | ||
bool & | printHeader | ||
) |
Definition at line 5453 of file Utils.cxx.
References tca::PFPStruct::dEdx, dir, DirAtEnd(), tca::PFPStruct::DtrUIDs, util::end(), GetSliceIndex(), tca::PFPStruct::ID, InsideFV(), IsShowerLike(), Length(), MCSMom(), tca::PFPStruct::MVI, tca::PFPStruct::ParentUID, tca::PFPStruct::PDGCode, PosAtEnd(), art::right(), tca::PFPStruct::SectionFits, slices, tca::PFPStruct::TjIDs, tca::PFPStruct::TjUIDs, util::to_string(), tca::PFPStruct::TP3Ds, tca::PFPStruct::UID, and tca::PFPStruct::Vx3ID.
Referenced by DotProd(), PrintAll(), and StitchPFPs().
void tca::PrintPFP | ( | std::string | someText, |
TCSlice const & | slc, | ||
const PFPStruct & | pfp, | ||
bool | printHeader | ||
) |
Definition at line 6209 of file Utils.cxx.
References tca::PFPStruct::dEdx, dir, DirAtEnd(), tca::PFPStruct::DtrUIDs, util::end(), tca::PFPStruct::EndFlag, tca::PFPStruct::ID, IsShowerLike(), kBragg, kOutFV, Length(), MCSMom(), tca::PFPStruct::ParentUID, tca::PFPStruct::PDGCode, PosAtEnd(), PrimaryUID(), art::right(), tca::PFPStruct::TjIDs, util::to_string(), tca::PFPStruct::TP3Ds, and tca::PFPStruct::Vx3ID.
Referenced by DotProd(), and PrintPFPs().
void tca::PrintPFPs | ( | std::string | someText, |
TCSlice const & | slc | ||
) |
Definition at line 6279 of file Utils.cxx.
References tca::TCSlice::pfps, and PrintPFP().
Referenced by DotProd(), and FindShowers3D().
std::string tca::PrintPos | ( | const TrajPoint & | tp | ) |
Definition at line 6356 of file Utils.cxx.
References tca::TrajPoint::CTP, DecodeCTP(), geo::PlaneID::Plane, tca::TrajPoint::Pos, and util::to_string().
Referenced by AddLAHits(), AddPointsInRange(), BraggSplit(), CheckTrajBeginChg(), ChkBegin(), ChkEndKink(), ChkStopEndPts(), CompleteIncomplete3DVertices(), DotProd(), EndMerge(), FillGaps(), Find2DVertices(), FindHammerVertices(), FindHammerVertices2(), FixBegin(), Forecast(), GottaKink(), KinkSignificance(), LastEndMerge(), MaskTrajEndPoints(), MergeAndStore(), MergeShowerChain(), MergeWithVertex(), ParentFOM(), Print3S(), Print3V(), PrintAllTraj(), PrintShower(), PrintShowers(), PrintTP3Ds(), tca::TrajClusterAlg::ReconstructAllTraj(), RefineVtxPosition(), ReversePropagate(), SplitTraj(), StepAway(), StopShort(), TrimHiChgEndPts(), UpdateShower(), and UpdateVxEnvironment().
std::string tca::PrintPos | ( | const Point2_t & | pos | ) |
Definition at line 6362 of file Utils.cxx.
References tcc, util::to_string(), and tca::TCConfig::unitsPerTick.
void tca::PrintShower | ( | std::string | someText, |
TCSlice const & | slc, | ||
const ShowerStruct & | ss, | ||
bool | printHeader, | ||
bool | printExtras | ||
) |
Definition at line 4283 of file TCShower.cxx.
References 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::TCSlice::pfps, PrintPos(), tca::TCSlice::showers, tca::ShowerStruct::ShowerTjID, tca::ShowerStruct::SS3ID, tcc, tca::ShowerStruct::TjIDs, tca::TCSlice::tjs, util::to_string(), tca::ShowerStruct::TruParentID, and tca::TCConfig::unitsPerTick.
Referenced by Print2DShowers().
void tca::PrintShowers | ( | detinfo::DetectorPropertiesData const & | detProp, |
std::string | fcnLabel, | ||
TCSlice const & | slc | ||
) |
Definition at line 4150 of file TCShower.cxx.
References tca::TCSlice::cots, EncodeCTP(), MakeBareTP(), tca::TCSlice::nPlanes, PrintPos(), tca::TCSlice::showers, and tca::TCSlice::tjs.
void tca::PrintT | ( | mf::LogVerbatim & | myprt, |
Trajectory const & | tj, | ||
bool & | printHeader | ||
) |
Definition at line 5702 of file Utils.cxx.
References AlgBitNames, tca::Trajectory::AlgMod, tca::Trajectory::ChgRMS, tca::DebugStuff::CTP, tca::Trajectory::CTP, debug, ElectronLikelihood(), tca::Trajectory::EndFlag, tca::Trajectory::EndPt, GetSliceIndex(), tca::Trajectory::ID, kAtKink, kAtTj, kAtVtx, kBragg, tca::Trajectory::MCSMom, NeutrinoPrimaryTjID(), tca::Trajectory::ParentID, tca::Trajectory::Pass, tca::Trajectory::PDGCode, PrimaryID(), tca::Trajectory::Pts, slices, tca::Trajectory::Strategy, StrategyBitNames, tcc, util::to_string(), tca::Trajectory::TotChg, tca::Trajectory::UID, tca::TCConfig::unitsPerTick, tca::Trajectory::VtxID, and tca::Trajectory::WorkID.
Referenced by DotProd(), and PrintAll().
void tca::PrintTP | ( | std::string | someText, |
const TCSlice & | slc, | ||
unsigned short | ipt, | ||
short | dir, | ||
unsigned short | pass, | ||
const TrajPoint & | tp | ||
) |
Definition at line 6134 of file Utils.cxx.
References tca::TCEvent::allHits, 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::TrajPoint::Environment, evt, tca::TrajPoint::FitChi, tca::TrajPoint::Hits, tca::TrajPoint::InPFP, tca::TrajPoint::KinkSig, tca::TrajPoint::NTPsFit, tca::TCSlice::slHits, tca::TrajPoint::Step, TPEnvString(), and tca::TrajPoint::UseHit.
Referenced by DotProd(), FillGaps(), FitVertex(), PrintAllTraj(), PrintTrajectory(), SplitTrajCrossingVertices(), and StepAway().
void tca::PrintTP3Ds | ( | detinfo::DetectorClocksData const & | clockData, |
detinfo::DetectorPropertiesData const & | detProp, | ||
std::string | someText, | ||
const TCSlice & | slc, | ||
const PFPStruct & | pfp, | ||
short | printPts | ||
) |
Definition at line 3356 of file PFPUtils.cxx.
References AlgBitNames, tca::PFPStruct::AlgMod, geo::CryostatID::Cryostat, dEdx(), EncodeCTP(), util::end(), tca::PFPStruct::Flags, tca::PFPStruct::ID, kCanSection, kNeedsUpdate, kTP3DBad, kTP3DGood, MakeBareTP(), tca::PFPStruct::MVI, tca::TCSlice::nPlanes, pAlgModSize, PointPull(), PosSep(), PrintPos(), tca::PFPStruct::SectionFits, SectionStartEnd(), SignalAtTp(), tca::PFPStruct::TjIDs, tca::TCSlice::tjs, tca::PFPStruct::TP3Ds, geo::TPCID::TPC, tca::PFPStruct::TPCID, and TPEnvString().
Referenced by DotProd(), FindPFParticles(), and MakePFParticles().
void tca::PrintTPHeader | ( | std::string | someText | ) |
Definition at line 6126 of file Utils.cxx.
Referenced by DotProd(), FitVertex(), PrintAllTraj(), and PrintTrajectory().
void tca::PrintTrajectory | ( | std::string | someText, |
const TCSlice & | slc, | ||
const Trajectory & | tj, | ||
unsigned short | tPoint | ||
) |
Definition at line 6035 of file Utils.cxx.
References AlgBitNames, tca::Trajectory::AlgMod, tca::ShowerStruct::Angle, tca::ShowerStruct::AngleErr, tca::ShowerStruct::AspectRatio, tca::ShowerStruct::ChgDensity, tca::TCSlice::cots, tca::Trajectory::CTP, tca::ShowerStruct::DirectionFOM, tca::Trajectory::EndPt, tca::ShowerStruct::Energy, tca::ShowerStruct::Envelope, tca::ShowerStruct::EnvelopeArea, for(), tca::Trajectory::ID, tca::TCSlice::ID, kShowerTj, tca::Trajectory::MCSMom, tca::ShowerStruct::NearTjIDs, tca::ShowerStruct::NeedsUpdate, tca::ShowerStruct::ParentFOM, tca::ShowerStruct::ParentID, tca::Trajectory::Pass, tca::Trajectory::PDGCode, PrintEndFlag(), PrintTP(), PrintTPHeader(), tca::Trajectory::Pts, tca::ShowerStruct::SS3ID, tca::Trajectory::StepDir, tcc, tca::ShowerStruct::TjIDs, tca::ShowerStruct::TruParentID, tca::Trajectory::UID, tca::TCConfig::unitsPerTick, tca::Trajectory::VtxID, and tca::Trajectory::WorkID.
Referenced by CheckHiMultUnusedHits(), ChkChgAsymmetry(), tca::TrajClusterAlg::ChkInTraj(), DotProd(), InTrajOK(), IsGhost(), MakeHaloTj(), MakeJunkTraj(), MaskedHitsOK(), tca::TrajClusterAlg::ReconstructAllTraj(), StepAway(), StopShort(), and TrimEndPts().
std::vector< unsigned int > tca::PutHitsInVector | ( | const TCSlice & | slc, |
PFPStruct const & | pfp, | ||
HitStatus_t | hitRequest | ||
) |
Definition at line 2665 of file Utils.cxx.
References kAllHits, kTP3DBad, kUnusedHits, kUsedHits, tca::TCSlice::tjs, and tca::PFPStruct::TP3Ds.
std::vector< unsigned int > tca::PutTrajHitsInVector | ( | const Trajectory & | tj, |
HitStatus_t | hitRequest | ||
) |
Definition at line 2689 of file Utils.cxx.
References tca::Trajectory::AlgMod, kAllHits, kShowerTj, kUnusedHits, kUsedHits, and tca::Trajectory::Pts.
Referenced by AddLAHits(), CheckHiMultUnusedHits(), tca::TrajClusterAlg::ChkInTraj(), Finish3DShowers(), HasDuplicateHits(), InTrajOK(), MergeGhostTjs(), and TransferTjHits().
void tca::Reconcile2Vs | ( | TCSlice & | slc | ) |
Definition at line 1059 of file TCVertex.cxx.
References util::abs(), tca::TCConfig::dbg2V, tca::TCConfig::dbgSlc, DecodeCTP(), kReconcile2Vs, kVxEnvOK, tca::TCSlice::nPlanes, geo::PlaneID::Plane, Reconcile2VTs(), tcc, UpdateVxEnvironment(), tca::TCConfig::useAlg, and tca::TCSlice::vtxs.
Referenced by tca::TrajClusterAlg::RunTrajClusterAlg().
bool tca::Reconcile2VTs | ( | TCSlice & | slc, |
std::vector< int > & | vx2cls, | ||
bool | prt | ||
) |
Definition at line 1154 of file TCVertex.cxx.
References tca::VtxStore::ChiDOF, tca::VtxStore::CTP, util::end(), FarEnd(), FitVertex(), GetAssns(), tca::TCSlice::ID, kEnvOverlap, kVxEnvOK, MakeVertexObsolete(), NearbyCleanPt(), tca::VtxStore::Pos, tca::VtxStore::PosErr, tca::TCSlice::tjs, TrajPointVertexPull(), and tca::TCSlice::vtxs.
Referenced by Reconcile2Vs().
bool tca::Reconcile3D | ( | std::string | inFcnLabel, |
TCSlice & | slc, | ||
bool | parentSearchDone, | ||
bool | prt | ||
) |
Definition at line 424 of file TCShower.cxx.
References AddPFP(), ChkAssns(), tca::TCSlice::cots, util::end(), GetAssns(), GetSliceIndex(), tca::TCSlice::ID, InShowerProb(), kMat3D, MakeShowerObsolete(), tca::TCSlice::pfps, Print2DShowers(), RemovePFP(), SetIntersection(), ShowerEnergy(), tca::TCSlice::showers, slices, tca::TCSlice::tjs, and UpdateShower().
Referenced by FindShowers3D().
bool tca::Reconcile3D | ( | std::string | inFcnLabel, |
TCSlice & | slc, | ||
ShowerStruct3D & | ss3, | ||
bool | prt | ||
) |
Definition at line 571 of file TCShower.cxx.
References AddPFP(), util::begin(), tca::ShowerStruct3D::ChgPos, ChkAssns(), tca::ShowerStruct3D::CotIDs, tca::TCSlice::cots, util::end(), FarEnd(), GetAssns(), tca::ShowerStruct3D::ID, tca::TCSlice::ID, InShowerProb(), tca::TCSlice::pfps, PosAtEnd(), PosSep(), Print2DShowers(), RemovePFP(), SetDifference(), and UpdateShower().
Definition at line 424 of file PFPUtils.cxx.
References tca::PFPStruct::Flags, tca::PFPStruct::ID, kRTPs3D, kSmallAngle, kTP3DBad, NumPtsWithCharge(), tcc, tca::PFPStruct::TjIDs, tca::TCSlice::tjs, tca::PFPStruct::TP3Ds, and tca::TCConfig::useAlg.
Referenced by MakePFParticles().
void tca::ReconcileTPs | ( | TCSlice & | slc | ) |
Definition at line 470 of file PFPUtils.cxx.
References kEnvOverlap, kRTPs3D, kSmallAngle, kTP3DBad, kTP3DGood, tca::TCSlice::pfps, tcc, tca::TCSlice::tjs, and tca::TCConfig::useAlg.
Definition at line 1626 of file PFPUtils.cxx.
References AttachToAnyVertex(), util::end(), tca::PFPStruct::Flags, tca::PFPStruct::ID, kJunk3D, kSmallAngle, kTP3DGood, MakeVertexObsolete(), tca::TCSlice::pfps, Reverse(), tcc, tca::TCSlice::tjs, tca::PFPStruct::TP3Ds, tca::TCConfig::vtx3DCuts, tca::TCSlice::vtxs, and tca::PFPStruct::Vx3ID.
Referenced by MakePFParticles().
void tca::Recover | ( | detinfo::DetectorPropertiesData const & | detProp, |
TCSlice & | slc, | ||
PFPStruct & | pfp, | ||
bool | prt | ||
) |
Definition at line 2059 of file PFPUtils.cxx.
References tca::PFPStruct::AlgMod, CanSection(), Find3DRecoRange(), FitSection(), tca::PFPStruct::ID, kSmallAngle, tca::PFPStruct::SectionFits, and tca::PFPStruct::TP3Ds.
Referenced by MakePFParticles().
bool tca::RefineVtxPosition | ( | const Trajectory & | tj, |
unsigned short & | nearPt, | ||
short | nPtsToChk, | ||
bool | prt | ||
) |
Definition at line 2668 of file TCVertex.cxx.
References tca::Trajectory::EndPt, PrintPos(), and tca::Trajectory::Pts.
Referenced by CompleteIncomplete3DVertices().
void tca::ReleaseHits | ( | TCSlice & | slc, |
Trajectory const & | tj | ||
) |
Definition at line 1049 of file Utils.cxx.
References tca::Trajectory::ID, tca::Trajectory::Pts, and tca::TCSlice::slHits.
Referenced by tca::TrajClusterAlg::ReconstructAllTraj(), and StoreTraj().
bool tca::RemovePFP | ( | std::string | inFcnLabel, |
TCSlice & | slc, | ||
int | pID, | ||
ShowerStruct3D & | ss3, | ||
bool | doUpdate, | ||
bool | prt | ||
) |
bool tca::RemovePFP | ( | std::string | inFcnLabel, |
TCSlice & | slc, | ||
PFPStruct & | pfp, | ||
ShowerStruct3D & | ss3, | ||
bool | doUpdate, | ||
bool | prt | ||
) |
Definition at line 1340 of file TCShower.cxx.
References tca::ShowerStruct3D::CotIDs, tca::TCSlice::cots, tca::PFPStruct::ID, tca::ShowerStruct3D::ID, tca::ShowerStruct3D::NeedsUpdate, RemoveTj(), tca::PFPStruct::TjIDs, and UpdateShower().
Referenced by Reconcile3D().
bool tca::RemoveTj | ( | std::string | inFcnLabel, |
TCSlice & | slc, | ||
int | TjID, | ||
ShowerStruct & | ss, | ||
bool | doUpdate, | ||
bool | prt | ||
) |
Definition at line 1506 of file TCShower.cxx.
References tca::Trajectory::AlgMod, tca::ShowerStruct::ID, kShwrParent, MakeShowerObsolete(), tca::ShowerStruct::NeedsUpdate, tca::ShowerStruct::ParentID, tca::ShowerStruct::ShPts, tca::Trajectory::SSID, tca::ShowerStruct::TjIDs, tca::TCSlice::tjs, and UpdateShower().
Referenced by RemovePFP().
bool tca::ReSection | ( | detinfo::DetectorPropertiesData const & | detProp, |
const TCSlice & | slc, | ||
PFPStruct & | pfp, | ||
bool | prt | ||
) |
Definition at line 1097 of file PFPUtils.cxx.
References debug, Find3DRecoRange(), FitSection(), FitTP3Ds(), tca::PFPStruct::Flags, tca::PFPStruct::ID, if(), kCanSection, kNeedsUpdate, kSmallAngle, kTP3DGood, tca::TCConfig::match3DCuts, tca::DebugStuff::MVI, tca::PFPStruct::MVI, tca::PFPStruct::SectionFits, SortSection(), tcc, tca::PFPStruct::TP3Ds, and Update().
Referenced by MakePFParticles().
void tca::RestoreObsoleteTrajectory | ( | TCSlice & | slc, |
unsigned int | itj | ||
) |
Definition at line 2150 of file Utils.cxx.
References kKilled, tca::TCSlice::slHits, and tca::TCSlice::tjs.
void tca::Reverse | ( | PFPStruct & | pfp | ) |
Definition at line 2348 of file PFPUtils.cxx.
References tca::PFPStruct::dEdx, tca::PFPStruct::dEdxErr, tca::PFPStruct::EndFlag, Reverse(), tca::PFPStruct::SectionFits, tca::PFPStruct::TP3Ds, and tca::PFPStruct::Vx3ID.
Referenced by ReconcileVertices(), and Reverse().
void tca::ReversePropagate | ( | TCSlice & | slc, |
Trajectory & | tj | ||
) |
Definition at line 1417 of file StepUtils.cxx.
References tca::Trajectory::AlgMod, ChkStop(), ChkStopEndPts(), tca::Trajectory::CTP, tca::TCConfig::dbgAlg, tca::TCConfig::dbgStp, DecodeCTP(), tca::Trajectory::EndPt, evt, FindCloseHits(), tca::TCSlice::firstWire, tca::TCEvent::goodWire, tca::TrajPoint::Hits, tca::Trajectory::ID, tca::Trajectory::IsGood, kNormal, kRvPrp, kUnusedHits, tca::TCSlice::lastWire, MoveTPToWire(), geo::PlaneID::Plane, PrintHit(), PrintPos(), tca::Trajectory::Pts, ReverseTraj(), SetEndPoints(), tca::TCSlice::slHits, StepAway(), tca::Trajectory::StepDir, tca::Trajectory::Strategy, tcc, tca::TCConfig::useAlg, and tca::TrajPoint::UseHit.
Referenced by ChkBegin().
void tca::ReverseShower | ( | std::string | inFcnLabel, |
TCSlice & | slc, | ||
ShowerStruct & | ss, | ||
bool | prt | ||
) |
Definition at line 3112 of file TCShower.cxx.
References tca::ShowerStruct::Angle, DefineEnvelope(), tca::ShowerStruct::DirectionFOM, tca::ShowerStruct::ID, ReverseTraj(), tca::ShowerStruct::ShowerTjID, tca::ShowerStruct::ShPts, tca::ShowerStruct::TjIDs, and tca::TCSlice::tjs.
Referenced by FindShowerStart(), ReverseShower(), and UpdateShower().
void tca::ReverseShower | ( | std::string | inFcnLabel, |
TCSlice & | slc, | ||
int | cotID, | ||
bool | prt | ||
) |
Definition at line 3140 of file TCShower.cxx.
References tca::TCSlice::cots, tca::ShowerStruct::ID, and ReverseShower().
void tca::ReverseTraj | ( | Trajectory & | tj | ) |
Definition at line 3219 of file Utils.cxx.
References tca::Trajectory::dEdx, tca::Trajectory::EndFlag, tca::Trajectory::Pts, SetEndPoints(), tca::Trajectory::StartEnd, tca::Trajectory::StepDir, and tca::Trajectory::VtxID.
Referenced by DefineTjParents(), EndMerge(), MergeAndStore(), ReversePropagate(), and ReverseShower().
Definition at line 179 of file TCShTree.cxx.
References tca::TCSlice::cots, kSaveShowerTree, tca::TCConfig::modes, SaveTjInfo(), and tcc.
Referenced by FindShowers3D().
void tca::SaveAllCots | ( | TCSlice & | slc, |
std::string | someText | ||
) |
Definition at line 190 of file TCShTree.cxx.
References tca::TCSlice::cots, kSaveShowerTree, tca::TCConfig::modes, SaveTjInfo(), and tcc.
void tca::SaveCRInfo | ( | detinfo::DetectorClocksData const & | clockData, |
TCSlice & | slc, | ||
PFPStruct & | pfp, | ||
bool | fIsRealData | ||
) |
Definition at line 26 of file TCCR.cxx.
References util::abs(), tca::PFPStruct::CosmicScore, tca::CRTreeVars::cr_origin, tca::CRTreeVars::cr_pfpxmax, tca::CRTreeVars::cr_pfpxmin, tca::CRTreeVars::cr_pfpyzmindis, tca::TCSlice::crt, tca::TCConfig::geom, GetOrigin(), kSaveCRTree, geo::BoxBoundedGeo::MaxY(), geo::BoxBoundedGeo::MaxZ(), geo::BoxBoundedGeo::MinY(), geo::BoxBoundedGeo::MinZ(), tca::TCConfig::modes, tcc, tca::PFPStruct::TP3Ds, and geo::GeometryCore::TPC().
void tca::SaveTjInfo | ( | TCSlice & | slc, |
std::vector< std::vector< int >> & | tjList, | ||
std::string | stageName | ||
) |
Definition at line 14 of file TCShTree.cxx.
References tca::Trajectory::AlgMod, tca::Trajectory::CTP, tca::ShowerTreeVars::Envelope, tca::ShowerTreeVars::EnvPlane, tca::ShowerTreeVars::EnvShowerID, tca::ShowerTreeVars::EnvStage, GetStageNum(), tca::Trajectory::ID, kKilled, kSaveShowerTree, tca::TCConfig::modes, SaveTjInfoStuff(), tca::ShowerTreeVars::ShowerID, stv, tcc, and tca::TCSlice::tjs.
Referenced by FindShowers3D(), and SaveAllCots().
void tca::SaveTjInfo | ( | TCSlice & | slc, |
const ShowerStruct & | ss, | ||
std::string | stageName | ||
) |
Definition at line 56 of file TCShTree.cxx.
References tca::Trajectory::AlgMod, 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, kSaveShowerTree, kShowerTj, tca::TCConfig::modes, tca::ShowerStruct::ParentID, geo::PlaneID::Plane, tca::ShowerTreeVars::PlaneNum, SaveTjInfoStuff(), tca::ShowerTreeVars::ShowerID, tca::ShowerStruct::ShowerTjID, tca::ShowerTreeVars::StageNum, stv, tcc, tca::ShowerTreeVars::TjID, tca::ShowerStruct::TjIDs, tca::TCSlice::tjs, and tca::TCConfig::unitsPerTick.
void tca::SaveTjInfoStuff | ( | TCSlice & | slc, |
Trajectory & | tj, | ||
int | stageNum | ||
) |
Definition at line 144 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, kSaveShowerTree, tca::Trajectory::MCSMom, tca::ShowerTreeVars::MCSMom, tca::TCConfig::modes, tca::ShowerTreeVars::nPlanes, tca::TCSlice::nPlanes, tca::ShowerTreeVars::nStages, geo::PlaneID::Plane, tca::ShowerTreeVars::PlaneNum, tca::TrajPoint::Pos, tca::Trajectory::Pts, tca::ShowerTreeVars::ShowerID, tca::ShowerTreeVars::StageNum, stv, tcc, tca::ShowerTreeVars::TjID, tca::TCConfig::unitsPerTick, and tca::Trajectory::VtxID.
Referenced by SaveTjInfo().
void tca::ScoreVertices | ( | TCSlice & | slc | ) |
Definition at line 2132 of file TCVertex.cxx.
References kHaloTj, kHiVx3Score, kKilled, kTjHiVx3Score, SetVx2Score(), SetVx3Score(), tca::TCSlice::tjs, tca::TCSlice::vtx3s, and tca::TCSlice::vtxs.
Referenced by tca::TrajClusterAlg::RunTrajClusterAlg().
bool tca::SectionStartEnd | ( | const PFPStruct & | pfp, |
unsigned short | sfIndex, | ||
unsigned short & | startPt, | ||
unsigned short & | endPt | ||
) |
Definition at line 3274 of file PFPUtils.cxx.
References tca::PFPStruct::SectionFits, and tca::PFPStruct::TP3Ds.
Referenced by DotProd(), and PrintTP3Ds().
void tca::SetAngleCode | ( | TrajPoint & | tp | ) |
Definition at line 765 of file Utils.cxx.
References tca::TrajPoint::Ang, tca::TrajPoint::AngleCode, AngleRange(), tca::TCConfig::angleRanges, and tcc.
Referenced by AddPointsInRange(), FitTraj(), StartTraj(), and UpdateTraj().
std::vector< T > tca::SetDifference | ( | const std::vector< T > & | set1, |
const std::vector< T > & | set2 | ||
) |
void tca::SetEndPoints | ( | Trajectory & | tj | ) |
Definition at line 3330 of file Utils.cxx.
References tca::Trajectory::AlgMod, tca::Trajectory::EndPt, kHaloTj, kShowerTj, and tca::Trajectory::Pts.
Referenced by AddHits(), AddLAHits(), CheckHiMultEndHits(), CheckHiMultUnusedHits(), CheckTraj(), ChkBegin(), ChkChgAsymmetry(), ChkStopEndPts(), DotProd(), FixBegin(), Forecast(), GottaKink(), IsGhost(), MaskedHitsOK(), MaskTrajEndPoints(), MergeAndStore(), ReversePropagate(), ReverseTraj(), SplitTraj(), StepAway(), StopShort(), StoreTraj(), TrimEndPts(), and UpdateTraj().
Definition at line 2177 of file TCVertex.cxx.
References util::end(), GetVtxTjIDs(), tca::VtxStore::ID, tca::Vtx3Store::ID, kHiVx3Score, kTjHiVx3Score, tca::TCSlice::nPlanes, tca::VtxStore::Stat, tca::TCSlice::tjs, tmp, tca::TCSlice::vtxs, 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 385 of file Utils.h.
Referenced by CompleteIncompleteShower(), DotProd(), GetAssns(), MergeNearby2DShowers(), and Reconcile3D().
bool tca::SetMag | ( | Vector3_t & | v1, |
double | mag | ||
) |
Definition at line 2570 of file PFPUtils.cxx.
References den.
Referenced by DotProd(), FindAlongTrans(), MakeSmallAnglePFP(), PointDirection(), and UpdateShower().
bool tca::SetMag | ( | Vector2_t & | v1, |
double | mag | ||
) |
bool tca::SetParent | ( | detinfo::DetectorPropertiesData const & | detProp, |
std::string | inFcnLabel, | ||
TCSlice & | slc, | ||
PFPStruct & | pfp, | ||
ShowerStruct3D & | ss3, | ||
bool | prt | ||
) |
Definition at line 1815 of file TCShower.cxx.
References AddTj(), tca::ShowerStruct3D::ChgPos, tca::ShowerStruct3D::CotIDs, tca::TCSlice::cots, dir, DirAtEnd(), util::end(), FarEnd(), GetAssns(), tca::PFPStruct::ID, tca::ShowerStruct3D::ID, tca::TCSlice::ID, kShwrParent, MakeBareTP(), ParentFOM(), tca::ShowerStruct3D::ParentID, PosAtEnd(), tca::PFPStruct::TjIDs, tca::TCSlice::tjs, UpdateShower(), tca::TCSlice::vtx3s, tca::PFPStruct::Vx3ID, and tca::ShowerStruct3D::Vx3ID.
Referenced by FindParent().
void tca::SetPDGCode | ( | TCSlice & | slc, |
unsigned short | itj | ||
) |
Definition at line 4219 of file Utils.cxx.
References tca::TCSlice::tjs.
Referenced by CompleteIncomplete3DVertices(), DotProd(), FindHammerVertices(), FindHammerVertices2(), MergeAndStore(), SplitTraj(), and StepAway().
void tca::SetPDGCode | ( | TCSlice const & | slc, |
Trajectory & | tj | ||
) |
Definition at line 4226 of file Utils.cxx.
References ElectronLikelihood(), kStiffEl, kStiffMu, tca::Trajectory::MCSMom, tca::TCConfig::muonTag, NumPtsWithCharge(), tca::Trajectory::PDGCode, tca::TCConfig::showerTag, tca::Trajectory::Strategy, and tcc.
bool tca::SetSection | ( | detinfo::DetectorPropertiesData const & | detProp, |
PFPStruct & | pfp, | ||
TP3D & | tp3d | ||
) |
Definition at line 2752 of file PFPUtils.cxx.
References util::abs(), tca::TP3D::along, tca::TP3D::CTP, DecodeCTP(), tca::TP3D::Flags, tca::PFPStruct::Flags, kSmallAngle, kTP3DGood, MakeBareTP(), geo::WireReadoutGeom::Plane(), tca::TP3D::Pos, tca::PFPStruct::SectionFits, tca::TP3D::SFIndex, tcc, tca::TP3D::Wire, geo::PlaneGeo::WireCoordinate(), and tca::TCConfig::wireReadoutGeom.
Referenced by AddPointsInRange(), DotProd(), and Update().
void tca::SetStrategy | ( | TCSlice & | slc, |
Trajectory & | tj | ||
) |
Definition at line 352 of file StepUtils.cxx.
References tca::TCConfig::dbgStp, tca::Trajectory::EndPt, kSlowing, kStiffEl, kStiffMu, tca::Trajectory::MCSMom, NumPtsWithCharge(), tca::Trajectory::Pts, tca::Trajectory::StartEnd, tca::Trajectory::Strategy, tcc, and tjfs.
Referenced by StepAway().
Definition at line 3531 of file Utils.cxx.
References DecodeCTP(), FindCloseHits(), kAllHits, kEnvNearMuon, kKilled, geo::PlaneID::Plane, tca::TCSlice::slHits, and tca::TCSlice::tjs.
Referenced by DotProd(), and tca::TrajClusterAlg::ReconstructAllTraj().
void tca::SetVx2Score | ( | TCSlice & | slc | ) |
Definition at line 2246 of file TCVertex.cxx.
References tca::TCSlice::vtxs.
Referenced by AttachTrajToVertex(), BraggSplit(), CheckTrajBeginChg(), CompleteIncomplete3DVertices(), CompleteIncomplete3DVerticesInGaps(), EndMerge(), Find2DVertices(), Find3DVertices(), FindHammerVertices(), FindHammerVertices2(), MergeWithVertex(), and ScoreVertices().
Definition at line 2255 of file TCVertex.cxx.
References tca::Trajectory::AlgMod, ChgFracNearPos(), tca::Trajectory::ChgRMS, tca::DebugStuff::CTP, tca::VtxStore::CTP, tca::TCConfig::dbg2V, tca::TCConfig::dbgSlc, debug, DeltaAngle(), tca::Trajectory::EndFlag, tca::Trajectory::EndPt, GetVtxTjIDs(), tca::VtxStore::ID, if(), kBragg, kJunkTj, kShowerLike, kShowerTj, tca::Trajectory::MCSMom, tca::Trajectory::PDGCode, tca::VtxStore::Pos, tca::VtxStore::PosErr, Print2V(), tca::Trajectory::Pts, tca::VtxStore::Score, sum, tcc, tca::VtxStore::TjChgFrac, tca::TCSlice::tjs, tca::VtxStore::Topo, tca::TCConfig::vtx2DCuts, tca::TCSlice::vtx3s, tca::Trajectory::VtxID, tca::TCConfig::vtxScoreWeights, and tca::VtxStore::Vx3ID.
Definition at line 2225 of file TCVertex.cxx.
References tca::Vtx3Store::ID, if(), tca::TCSlice::nPlanes, tca::VtxStore::Score, tca::Vtx3Store::Score, SetHighScoreBits(), tcc, tca::TCConfig::vtx2DCuts, tca::TCSlice::vtxs, and tca::Vtx3Store::Vx2ID.
Referenced by Find3DVertices(), MakeVertexObsolete(), and ScoreVertices().
double tca::ShowerEnergy | ( | const ShowerStruct3D & | ss3 | ) |
Definition at line 3899 of file TCShower.cxx.
References e, tca::ShowerStruct3D::Energy, and tca::ShowerStruct3D::ID.
Referenced by CompleteIncompleteShower(), FindParent(), FindShowers3D(), reco::shower::LArPandoraModularShowerCreation::produce(), Reconcile3D(), and showerreco::ShowerCalo::~ShowerCalo().
float tca::ShowerEnergy | ( | TCSlice & | slc, |
const std::vector< int > | tjIDs | ||
) |
void tca::ShowerParams | ( | double | showerEnergy, |
double & | shMaxAlong, | ||
double & | along95 | ||
) |
Definition at line 1904 of file TCShower.cxx.
References scale.
Referenced by FindParent(), InShowerProbLong(), MergeSubShowers(), ParentFOM(), and ShowerParamTransRMS().
double tca::ShowerParamTransRMS | ( | double | showerEnergy, |
double | along | ||
) |
Definition at line 1923 of file TCShower.cxx.
References ShowerParams().
Referenced by InShowerProbTrans().
bool tca::SignalAtTp | ( | TrajPoint & | tp | ) |
Definition at line 1964 of file Utils.cxx.
References util::abs(), tca::TCEvent::allHits, geo::CryostatID::Cryostat, tca::TrajPoint::CTP, DecodeCTP(), tca::TrajPoint::Dir, tca::TrajPoint::Environment, evt, tca::TCEvent::goodWire, kEnvNearSrcHit, NearbySrcHit(), geo::PlaneID::Plane, tca::TrajPoint::Pos, SignalAtTpInSlc(), slices, tca::TCEvent::srcHits, tcc, geo::TPCID::TPC, tca::TCConfig::unitsPerTick, and tca::TCEvent::wireHitRange.
Referenced by ChgFracBetween(), FindHammerVertices2(), PrintTP3Ds(), SignalBetween(), and StepAway().
Definition at line 1923 of file Utils.cxx.
References util::abs(), tca::TCEvent::allHits, tca::TrajPoint::CTP, DecodeCTP(), tca::TrajPoint::Dir, evt, tca::TCEvent::goodWire, geo::PlaneID::Plane, tca::TrajPoint::Pos, tca::TCSlice::slHits, tcc, tca::TCConfig::unitsPerTick, and tca::TCSlice::wireHitRange.
Referenced by SignalAtTp().
bool tca::SignalBetween | ( | const TrajPoint & | tp1, |
const TrajPoint & | tp2, | ||
const float | MinWireSignalFraction | ||
) |
Definition at line 1779 of file Utils.cxx.
References MakeBareTrajPoint(), tca::TrajPoint::Pos, and SignalAtTp().
Referenced by AttachTrajToVertex(), EndMerge(), Find2DVertices(), and MakeJunkVertices().
bool tca::SignalBetween | ( | TrajPoint | tp, |
float | toPos0, | ||
const float | MinWireSignalFraction | ||
) |
Definition at line 1801 of file Utils.cxx.
References ChgFracBetween().
bool tca::SortSection | ( | PFPStruct & | pfp, |
unsigned short | sfIndex | ||
) |
Definition at line 1999 of file PFPUtils.cxx.
References tca::PFPStruct::SectionFits, tca::PFPStruct::TP3Ds, and tca::detail::valsIncreasing().
Referenced by FitTP3Ds(), MakePFParticles(), MakeSmallAnglePFP(), ReSection(), and Update().
bool tca::SplitTraj | ( | detinfo::DetectorPropertiesData const & | detProp, |
TCSlice & | slc, | ||
unsigned short | itj, | ||
float | XPos, | ||
bool | makeVx2, | ||
bool | prt | ||
) |
Definition at line 2223 of file Utils.cxx.
References detinfo::DetectorPropertiesData::ConvertXToTicks(), tca::VtxStore::CTP, DecodeCTP(), tca::VtxStore::NTraj, tca::VtxStore::Pos, StoreVertex(), tcc, tca::TCSlice::tjs, tca::VtxStore::Topo, tca::TCConfig::unitsPerTick, and tca::TCSlice::vtxs.
Referenced by BraggSplit(), CheckTrajBeginChg(), CompleteIncomplete3DVertices(), FindHammerVertices(), FindHammerVertices2(), and SplitTrajCrossingVertices().
bool tca::SplitTraj | ( | TCSlice & | slc, |
unsigned short | itj, | ||
unsigned short | pos, | ||
unsigned short | ivx, | ||
bool | prt | ||
) |
Definition at line 2269 of file Utils.cxx.
References tca::Trajectory::AlgMod, tca::Trajectory::EndPt, evt, tca::TCEvent::globalT_UID, tca::Trajectory::ID, if(), kSplit, tca::Trajectory::MCSMom, MCSMom(), tca::Trajectory::ParentID, tca::Trajectory::PDGCode, PrintPos(), tca::Trajectory::Pts, SetEndPoints(), SetPDGCode(), tca::TCSlice::slHits, tca::TCSlice::tjs, tca::Trajectory::UID, UpdateTjChgProperties(), tca::Trajectory::VtxID, and tca::TCSlice::vtxs.
Definition at line 916 of file TCVertex.cxx.
References tca::TCConfig::dbgAlg, tca::TCConfig::dbgSlc, DecodeCTP(), DeltaAngle(), util::end(), FitVertex(), GetVtxTjIDs(), kDebug, kDeltaRay, kHaloTj, kJunkTj, kKilled, kOnDeadWire, kSplitTjCVx, MakeVertexObsolete(), tca::TCConfig::modes, NumPtsWithCharge(), geo::PlaneID::Plane, PointTrajDOCA(), PrintTP(), SplitTraj(), tcc, tca::TCSlice::tjs, TrajClosestApproach(), tca::TCConfig::useAlg, tca::TCConfig::vtx2DCuts, and tca::TCSlice::vtxs.
Referenced by tca::TrajClusterAlg::ReconstructAllTraj().
bool tca::SptInTPC | ( | const std::array< unsigned int, 3 > & | sptHits, |
unsigned int | tpc | ||
) |
Definition at line 789 of file PFPUtils.cxx.
References tca::TCEvent::allHits, and evt.
Referenced by Match3PlanesSpt().
std::vector< float > tca::StartChgVec | ( | TCSlice & | slc, |
int | cotID | ||
) |
Definition at line 3774 of file TCShower.cxx.
References util::abs(), tca::TCEvent::allHits, tca::ShowerStruct::Angle, tca::TCSlice::cots, evt, tca::ShowerStruct::ID, tca::ShowerStruct::ParentID, tca::TrajPoint::Pos, tca::ShowerStruct::ShowerTjID, tca::ShowerStruct::ShPts, tca::TCSlice::slHits, sn, tcc, tca::ShowerStruct::TjIDs, tca::TCSlice::tjs, and tca::TCConfig::unitsPerTick.
Referenced by FindStartChg().
bool tca::StartTraj | ( | TCSlice const & | slc, |
Trajectory & | tj, | ||
unsigned int | fromhit, | ||
unsigned int | tohit, | ||
unsigned short | pass | ||
) |
Definition at line 4858 of file Utils.cxx.
References tca::TCEvent::allHits, tca::TCConfig::dbgDump, tca::TCConfig::dbgSlc, tca::TCConfig::dbgStp, debug, EncodeCTP(), evt, ExpectedHitsRMS(), tca::Trajectory::ID, kDebug, tca::TCConfig::modes, tca::Trajectory::Pts, tca::TCSlice::slHits, tca::Trajectory::StepDir, tcc, and tca::DebugStuff::WorkID.
Referenced by DotProd(), MakeJunkTraj(), and tca::TrajClusterAlg::ReconstructAllTraj().
bool tca::StartTraj | ( | Trajectory & | tj, |
float | fromWire, | ||
float | fromTick, | ||
float | toWire, | ||
float | toTick, | ||
CTP_t & | tCTP, | ||
unsigned short | pass | ||
) |
Definition at line 4890 of file Utils.cxx.
References tca::TrajPoint::Ang, tca::TrajPoint::AngErr, tca::TrajPoint::AngleCode, tca::Trajectory::CTP, tca::TCConfig::dbgDump, tca::TCConfig::dbgSlc, tca::TCConfig::dbgStp, debug, tca::TrajPoint::Dir, evt, ExpectedHitsRMS(), tca::Trajectory::ID, kDebug, kNormal, MakeBareTrajPoint(), tca::TCConfig::modes, tca::Trajectory::ParentID, tca::Trajectory::Pass, tca::Trajectory::Pts, SetAngleCode(), tca::Trajectory::StepDir, tca::Trajectory::Strategy, tcc, tca::DebugStuff::WorkID, and tca::TCEvent::WorkID.
void tca::StepAway | ( | TCSlice & | slc, |
Trajectory & | tj | ||
) |
Definition at line 30 of file StepUtils.cxx.
References util::abs(), AddHits(), tca::Trajectory::AlgMod, tca::TrajPoint::AngleCode, tca::TrajPoint::Chg, tca::TrajPoint::CTP, tca::Trajectory::CTP, tca::TCConfig::dbgStp, DeadWireCount(), DecodeCTP(), DefineHitPos(), DeltaAngle(), tca::TrajPoint::Dir, tca::TCConfig::doForecast, tca::Trajectory::EndFlag, tca::Trajectory::EndPt, tca::TrajPoint::Environment, evt, tca::TrajPoint::FitChi, Forecast(), tca::TCEvent::goodWire, GottaKink(), tca::TrajPoint::Hits, tca::Trajectory::ID, if(), tca::Trajectory::IsGood, kAtKink, kAtTj, kEnvNearSrcHit, kEnvNotGoodWire, kRvPrp, kSlowing, kStopBadFits, MaskedHitsOK(), tca::Trajectory::MaskedLastTP, tca::TCConfig::maxAngleCode, tca::TCConfig::maxChi, tca::TCConfig::maxPos0, tca::TCConfig::maxPos1, tca::TCConfig::maxWireSkipNoSignal, tca::TCConfig::maxWireSkipWithSignal, tca::TCConfig::minPtsFit, tca::Trajectory::NeedsUpdate, NumPtsWithCharge(), tca::Trajectory::Pass, tca::Trajectory::PDGCode, geo::PlaneID::Plane, tca::TrajPoint::Pos, PosSep2(), PrintPos(), PrintTP(), PrintTrajectory(), tca::Trajectory::Pts, SetEndPoints(), SetPDGCode(), SetStrategy(), SignalAtTp(), tca::TCSlice::slHits, tca::TrajPoint::Step, tca::Trajectory::StepDir, StopIfBadFits(), StopShort(), tca::Trajectory::Strategy, StrategyBitNames, tcc, tjfs, TrajPointSeparation(), UnsetUsedHits(), UpdateTraj(), tca::TCConfig::useAlg, tca::TrajPoint::UseHit, and tca::TCConfig::VLAStepSize.
Referenced by tca::TrajClusterAlg::ReconstructAllTraj(), and ReversePropagate().
void tca::StitchPFPs | ( | ) |
Definition at line 42 of file PFPUtils.cxx.
References util::abs(), tca::TCConfig::dbgStitch, debug, DirAtEnd(), DotProd(), util::end(), tca::TCConfig::geom, GetSliceIndex(), InsideFV(), geo::GeometryCore::NTPC(), tca::TCConfig::pfpStitchCuts, PosAtEnd(), PosSep2(), PrintP(), tca::DebugStuff::Slice, slices, tcc, and tmp.
Referenced by tca::TrajClusterAlg::FinishEvent().
bool tca::StopIfBadFits | ( | Trajectory & | tj | ) |
Definition at line 2729 of file StepUtils.cxx.
References tca::TCConfig::dbgStp, tca::Trajectory::EndPt, tca::Trajectory::MCSMom, tca::Trajectory::PDGCode, tca::Trajectory::Pts, and tcc.
Referenced by StepAway().
bool tca::StopShort | ( | TCSlice & | slc, |
Trajectory & | tj, | ||
bool | prt | ||
) |
Definition at line 288 of file StepUtils.cxx.
References tca::Trajectory::AlgMod, tca::ParFit::ChiDOF, tca::Trajectory::EndPt, FitPar(), kRvPrp, kStopShort, NumPtsWithCharge(), tca::ParFit::Par0, tca::ParFit::ParErr, tca::ParFit::ParSlp, tca::ParFit::ParSlpErr, PrintPos(), PrintTrajectory(), tca::Trajectory::Pts, SetEndPoints(), tcc, UnsetUsedHits(), UpdateTjChgProperties(), and tca::TCConfig::useAlg.
Referenced by StepAway().
Definition at line 2979 of file PFPUtils.cxx.
References evt, tca::PFPStruct::Flags, tca::TCEvent::globalP_UID, tca::PFPStruct::ID, kMat3D, kSmallAngle, kTP3DBad, tca::PFPStruct::PDGCode, tca::TCSlice::pfps, tca::PFPStruct::TjIDs, tca::TCSlice::tjs, tca::PFPStruct::TP3Ds, and tca::PFPStruct::UID.
Referenced by DefineTjParents(), DotProd(), and MakePFParticles().
bool tca::StoreShower | ( | std::string | inFcnLabel, |
TCSlice & | slc, | ||
ShowerStruct3D & | ss3 | ||
) |
Definition at line 3933 of file TCShower.cxx.
References tca::ShowerStruct3D::CotIDs, tca::TCSlice::cots, evt, tca::TCEvent::global3S_UID, tca::ShowerStruct3D::ID, tca::TCSlice::showers, and tca::ShowerStruct3D::UID.
Referenced by CompleteIncompleteShower(), FindShowers3D(), and MergeShowers().
bool tca::StoreShower | ( | std::string | inFcnLabel, |
TCSlice & | slc, | ||
ShowerStruct & | ss | ||
) |
Definition at line 3983 of file TCShower.cxx.
References tca::Trajectory::AlgMod, tca::TCSlice::cots, evt, tca::TCEvent::global2S_UID, tca::Trajectory::ID, tca::ShowerStruct::ID, kShwrParent, tca::ShowerStruct::ParentID, tca::Trajectory::SSID, tca::ShowerStruct::TjIDs, tca::TCSlice::tjs, and tca::ShowerStruct::UID.
bool tca::StoreTraj | ( | TCSlice & | slc, |
Trajectory & | tj | ||
) |
Definition at line 1074 of file Utils.cxx.
References tca::Trajectory::AlgMod, tca::TCConfig::dbgSlc, debug, tca::Trajectory::EndPt, evt, tca::TCEvent::globalT_UID, tca::DebugStuff::Hit, tca::Trajectory::ID, kDebug, tca::TCConfig::kinkCuts, KinkSignificance(), kJunkTj, tca::TCConfig::modes, tca::Trajectory::NeedsUpdate, tca::Trajectory::ParentID, PrintHit(), tca::Trajectory::Pts, ReleaseHits(), SetEndPoints(), tca::TCSlice::slHits, sum, tcc, tca::TCSlice::tjs, tca::Trajectory::UID, UpdateTjChgProperties(), and tca::Trajectory::WorkID.
Referenced by MakeJunkTraj(), MakePFPTjs(), MergeAndStore(), and tca::TrajClusterAlg::ReconstructAllTraj().
Definition at line 1908 of file TCVertex.cxx.
References tca::VtxStore::CTP, evt, tca::TCEvent::global2V_UID, tca::VtxStore::ID, kKilled, tca::VtxStore::NTraj, tca::TCSlice::tjs, tca::VtxStore::Topo, tca::VtxStore::UID, and tca::TCSlice::vtxs.
Referenced by BraggSplit(), CheckTrajBeginChg(), CompleteIncomplete3DVertices(), CompleteIncomplete3DVerticesInGaps(), EndMerge(), Find2DVertices(), FindHammerVertices(), FindHammerVertices2(), MakeJunkVertices(), and SplitTraj().
void tca::TagJunkTj | ( | Trajectory & | tj, |
bool | prt | ||
) |
Definition at line 2716 of file Utils.cxx.
References tca::Trajectory::AlgMod, tca::Trajectory::ID, kJunkTj, tca::Trajectory::PDGCode, and tca::Trajectory::Pts.
Referenced by CheckTraj().
Definition at line 3232 of file TCShower.cxx.
References util::begin(), tca::TCConfig::chargeCuts, tca::DebugStuff::CTP, tca::TCConfig::dbg2S, tca::TCConfig::dbgSlc, debug, util::end(), tca::Trajectory::ID, kBragg, kHaloTj, kKilled, kShowerLike, kShowerTj, NumPtsWithCharge(), tca::TCConfig::showerTag, tcc, tca::TCSlice::tjs, and TrajTrajDOCA().
Referenced by tca::TrajClusterAlg::ReconstructAllTraj().
bool tca::TCIntersectionPoint | ( | unsigned int | wir1, |
unsigned int | wir2, | ||
unsigned int | pln1, | ||
unsigned int | pln2, | ||
float & | y, | ||
float & | z | ||
) |
Definition at line 667 of file PFPUtils.cxx.
References evt, and tca::TCEvent::wireIntersections.
Referenced by Match3Planes().
void tca::TjDeltaRMS | ( | const Trajectory & | tj, |
unsigned short | firstPt, | ||
unsigned short | lastPt, | ||
double & | rms, | ||
unsigned short & | cnt | ||
) |
Definition at line 3491 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(), ElectronLikelihood(), and MCSThetaRMS().
std::string tca::TPEnvString | ( | const TrajPoint & | tp | ) |
Definition at line 6190 of file Utils.cxx.
References tca::TrajPoint::Environment, kEnvFlag, kEnvNearMuon, kEnvNearShower, kEnvNearSrcHit, kEnvNotGoodWire, kEnvOverlap, and kEnvUnusedHits.
Referenced by DotProd(), PrintTP(), and PrintTP3Ds().
float tca::TPHitsRMSTick | ( | const TCSlice & | slc, |
const TrajPoint & | tp, | ||
HitStatus_t | hitRequest | ||
) |
Definition at line 4098 of file Utils.cxx.
References tca::TCEvent::allHits, evt, tca::TrajPoint::Hits, kAllHits, kUnusedHits, kUsedHits, tca::TCSlice::slHits, and tca::TrajPoint::UseHit.
Referenced by DotProd(), FindUseHits(), and TPHitsRMSTime().
float tca::TPHitsRMSTime | ( | const TCSlice & | slc, |
const TrajPoint & | tp, | ||
HitStatus_t | hitRequest | ||
) |
Definition at line 4092 of file Utils.cxx.
References tcc, TPHitsRMSTick(), and tca::TCConfig::unitsPerTick.
Referenced by CreateTP3D(), and DotProd().
Definition at line 1566 of file TCVertex.cxx.
References util::abs(), tca::TrajPoint::CTP, tca::TrajPoint::Pos, and tca::TCSlice::vtxs.
Definition at line 2061 of file Utils.cxx.
References tca::TCEvent::allHits, evt, tca::TrajPoint::Hits, tca::TCSlice::slHits, and tca::TrajPoint::UseHit.
bool tca::TrajClosestApproach | ( | Trajectory const & | tj, |
float | x, | ||
float | y, | ||
unsigned short & | closePt, | ||
float & | DOCA | ||
) |
Definition at line 2622 of file Utils.cxx.
References util::abs(), tca::Trajectory::EndPt, tca::Trajectory::Pts, x, and y.
Referenced by AttachTrajToVertex(), CompatibleMerge(), Find2DVertices(), FindHammerVertices(), FindHammerVertices2(), and SplitTrajCrossingVertices().
bool tca::TrajHitsOK | ( | TCSlice const & | slc, |
const std::vector< unsigned int > & | iHitsInMultiplet, | ||
const std::vector< unsigned int > & | jHitsInMultiplet | ||
) |
Definition at line 1839 of file Utils.cxx.
References tca::TCEvent::allHits, evt, HitsPosTick(), kAllHits, tca::TCSlice::slHits, and sum.
Referenced by tca::TrajClusterAlg::FindJunkTraj(), and tca::TrajClusterAlg::ReconstructAllTraj().
bool tca::TrajHitsOK | ( | TCSlice const & | slc, |
const unsigned int | iht, | ||
const unsigned int | jht | ||
) |
Definition at line 1886 of file Utils.cxx.
References util::abs(), tca::TCEvent::allHits, evt, and tca::TCSlice::slHits.
Definition at line 2543 of file Utils.cxx.
Referenced by EndMerge(), Find2DVertices(), FindHammerVertices(), and FindHammerVertices2().
bool tca::TrajIsClean | ( | Trajectory const & | tj, |
bool | prt | ||
) |
Definition at line 3358 of file Utils.cxx.
References tca::Trajectory::EndPt, tca::TrajPoint::Hits, tca::Trajectory::Pts, and tca::TrajPoint::UseHit.
Referenced by DotProd(), and UpdateTraj().
float tca::TrajLength | ( | const Trajectory & | tj | ) |
Definition at line 2582 of file Utils.cxx.
References tca::Trajectory::EndPt, and tca::Trajectory::Pts.
Referenced by AttachTrajToVertex(), EndMerge(), Find2DVertices(), MakeJunkVertices(), and PDGCodeVote().
Definition at line 2613 of file Utils.cxx.
References tca::TrajPoint::Pos.
Referenced by MaskTrajEndPoints(), MCSMom(), MCSThetaRMS(), and StepAway().
void tca::TrajPointTrajDOCA | ( | TrajPoint const & | tp, |
Trajectory const & | tj, | ||
unsigned short & | closePt, | ||
float & | minSep | ||
) |
Definition at line 2384 of file Utils.cxx.
References tca::Trajectory::EndPt, tca::TrajPoint::Pos, and tca::Trajectory::Pts.
Referenced by CompleteIncomplete3DVertices(), FindHammerVertices(), FindHammerVertices2(), and MergeAndStore().
Definition at line 1844 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 AttachAnyTrajToVertex(), AttachAnyVertexToTraj(), AttachTrajToVertex(), FitVertex(), and Reconcile2VTs().
bool tca::TrajTrajDOCA | ( | const TCSlice & | slc, |
const Trajectory & | tj1, | ||
const Trajectory & | tj2, | ||
unsigned short & | ipt1, | ||
unsigned short & | ipt2, | ||
float & | minSep | ||
) |
Definition at line 2407 of file Utils.cxx.
Referenced by DefineTjParents(), EndMerge(), Find2DVertices(), FindNearbyTjs(), InShowerProb(), LastEndMerge(), and TagShowerLike().
bool tca::TrajTrajDOCA | ( | const TCSlice & | slc, |
const Trajectory & | tj1, | ||
const Trajectory & | tj2, | ||
unsigned short & | ipt1, | ||
unsigned short & | ipt2, | ||
float & | minSep, | ||
bool | considerDeadWires | ||
) |
Definition at line 2418 of file Utils.cxx.
References util::abs(), DeadWireCount(), tca::Trajectory::EndPt, and tca::Trajectory::Pts.
bool tca::TransferTjHits | ( | TCSlice & | slc, |
bool | prt | ||
) |
Definition at line 3845 of file TCShower.cxx.
References tca::TCSlice::cots, tca::Trajectory::ID, kKilled, kShowerTj, kUsedHits, tca::Trajectory::Pts, PutTrajHitsInVector(), tca::TCSlice::slHits, and tca::TCSlice::tjs.
Referenced by Finish3DShowers().
void tca::TrimEndPts | ( | std::string | fcnLabel, |
TCSlice & | slc, | ||
Trajectory & | tj, | ||
const std::vector< float > & | fQualityCuts, | ||
bool | prt | ||
) |
Definition at line 1576 of file Utils.cxx.
References util::abs(), tca::Trajectory::AlgMod, tca::Trajectory::CTP, DecodeCTP(), tca::Trajectory::EndFlag, tca::Trajectory::EndPt, evt, tca::TCEvent::goodWire, tca::Trajectory::ID, kAtKink, kTEP, NumPtsWithCharge(), tca::TCSlice::nWires, tca::Trajectory::PDGCode, geo::PlaneID::Plane, PrintTrajectory(), tca::Trajectory::Pts, SetEndPoints(), tca::Trajectory::StepDir, tcc, UnsetUsedHits(), and tca::TCConfig::useAlg.
Referenced by CheckTraj(), ChkBegin(), and IsGhost().
void tca::TrimHiChgEndPts | ( | TCSlice & | slc, |
Trajectory & | tj, | ||
bool | prt | ||
) |
Definition at line 1534 of file Utils.cxx.
References tca::Trajectory::AlgMod, tca::Trajectory::EndFlag, tca::Trajectory::EndPt, kBragg, tca::TCConfig::kinkCuts, kTHCEP, NumPtsWithCharge(), tca::Trajectory::PDGCode, PrintPos(), tca::Trajectory::Pts, tcc, UnsetUsedHits(), and tca::TCConfig::useAlg.
Referenced by CheckTraj().
Definition at line 2656 of file Utils.cxx.
References tca::TrajPoint::Pos.
Definition at line 1061 of file Utils.cxx.
References tca::TrajPoint::Chg, tca::TrajPoint::Hits, tca::TCSlice::slHits, and tca::TrajPoint::UseHit.
Referenced by CheckHiMultEndHits(), CheckHiMultUnusedHits(), ChkBegin(), ChkChgAsymmetry(), ChkStopEndPts(), FillGaps(), FixBegin(), GottaKink(), IsGhost(), MaskBadTPs(), MaskTrajEndPoints(), StepAway(), StopShort(), TrimEndPts(), TrimHiChgEndPts(), and UpdateTraj().
bool tca::Update | ( | detinfo::DetectorPropertiesData const & | detProp, |
const TCSlice & | slc, | ||
PFPStruct & | pfp | ||
) |
Definition at line 1048 of file PFPUtils.cxx.
References tca::PFPStruct::AlgMod, FitSection(), tca::PFPStruct::Flags, kNeedsUpdate, kSmallAngle, tca::PFPStruct::SectionFits, SetSection(), SortSection(), and tca::PFPStruct::TP3Ds.
Referenced by evd::details::RawDigitCacheDataClass::empty(), FillGaps3D(), ReSection(), and lariov::SIOVChannelStatusProvider::Status().
void tca::UpdateDeltaRMS | ( | Trajectory & | tj | ) |
Definition at line 2542 of file StepUtils.cxx.
References tca::TrajPoint::Chg, tca::TrajPoint::DeltaRMS, tca::Trajectory::EndPt, tca::TrajPoint::NTPsFit, PointTrajDOCA(), tca::Trajectory::Pts, and sum.
Referenced by UpdateStiffEl(), and UpdateTraj().
bool tca::UpdateShower | ( | std::string | inFcnLabel, |
TCSlice & | slc, | ||
ShowerStruct & | ss, | ||
bool | prt | ||
) |
Definition at line 904 of file TCShower.cxx.
References util::abs(), tca::TCEvent::allHits, AnalyzeRotPos(), tca::ShowerStruct::Angle, tca::ShowerStruct::AspectRatio, tca::ShowerPoint::Chg, ChgToMeV(), tca::ShowerStruct::CTP, DefineEnvelope(), tca::ShowerStruct::DirectionFOM, tca::ShowerStruct::Energy, evt, FarEnd(), tca::ShowerPoint::HitIndex, tca::TrajPoint::Hits, tca::ShowerStruct::ID, if(), kShowerTj, tca::ShowerStruct::NeedsUpdate, tca::ShowerStruct::ParentID, PointDirection(), tca::ShowerPoint::Pos, PosSep2(), PrintPos(), ReverseShower(), tca::ShowerStruct::ShowerTjID, tca::ShowerStruct::ShPts, tca::TCSlice::slHits, sn, sum, tcc, tca::ShowerPoint::TID, tca::ShowerStruct::TjIDs, tca::TCSlice::tjs, tca::TCConfig::unitsPerTick, tca::TrajPoint::UseHit, tca::detail::valsDecreasing(), and xx.
Referenced by AddPFP(), AddTj(), AddTjsInsideEnvelope(), CompleteIncompleteShower(), FindParent(), FindShowers3D(), MergeShowers(), MergeShowersAndStore(), Reconcile3D(), RemovePFP(), RemoveTj(), SetParent(), and UpdateShower().
bool tca::UpdateShower | ( | std::string | inFcnLabel, |
TCSlice & | slc, | ||
ShowerStruct3D & | ss3, | ||
bool | prt | ||
) |
Definition at line 1106 of file TCShower.cxx.
References tca::ShowerStruct3D::ChgPos, tca::ShowerStruct3D::CotIDs, tca::TCSlice::cots, DecodeCTP(), tca::ShowerStruct3D::dEdx, tca::ShowerStruct3D::dEdxErr, dir, tca::ShowerStruct3D::Dir, tca::ShowerStruct3D::End, tca::ShowerStruct3D::Energy, tca::ShowerStruct3D::EnergyErr, FarEnd(), tca::ShowerStruct3D::ID, tca::ShowerStruct3D::Len, tca::ShowerStruct3D::MIPEnergy, tca::ShowerStruct3D::MIPEnergyErr, tca::ShowerStruct3D::NeedsUpdate, tca::ShowerStruct3D::ParentID, tca::TCSlice::pfps, geo::PlaneID::Plane, PosAtEnd(), PosSep(), SetMag(), tca::ShowerStruct3D::Start, tca::TCSlice::tjs, UpdateShower(), and tca::ShowerStruct3D::Vx3ID.
void tca::UpdateStiffEl | ( | TCSlice const & | slc, |
Trajectory & | tj | ||
) |
Definition at line 682 of file StepUtils.cxx.
References tca::TrajPoint::AngleCode, tca::TCConfig::dbgStp, tca::TrajPoint::Delta, tca::Trajectory::EndPt, tca::TrajPoint::FitChi, FitTraj(), tca::TrajPoint::HitPos, kStiffEl, tca::Trajectory::MCSMom, MCSMom(), tca::Trajectory::NeedsUpdate, tca::TrajPoint::NTPsFit, tca::Trajectory::PDGCode, PointTrajDOCA(), tca::Trajectory::Pts, tca::Trajectory::Strategy, tcc, UpdateDeltaRMS(), and UpdateTjChgProperties().
Referenced by UpdateTraj().
void tca::UpdateTjChgProperties | ( | std::string | inFcnLabel, |
TCSlice const & | slc, | ||
Trajectory & | tj, | ||
bool | prt | ||
) |
Definition at line 3577 of file Utils.cxx.
References util::abs(), tca::Trajectory::AlgMod, tca::TCEvent::allHits, tca::Trajectory::AveChg, tca::Trajectory::ChgRMS, util::end(), tca::Trajectory::EndPt, evt, for(), kEnvOverlap, kEnvUnusedHits, kHaloTj, kKilled, kPhoton, tca::Trajectory::NeedsUpdate, tca::TCConfig::nPtsAve, tca::Trajectory::Pts, tca::TCSlice::slHits, sum, tcc, tca::Trajectory::TotChg, tca::Trajectory::VtxID, and tca::TCSlice::vtxs.
Referenced by AddLAHits(), ChkStopEndPts(), DotProd(), Forecast(), MaskedHitsOK(), MaxChargeAsymmetry(), SplitTraj(), StopShort(), StoreTraj(), UpdateStiffEl(), UpdateTraj(), and UpdateVxEnvironment().
void tca::UpdateTraj | ( | TCSlice & | slc, |
Trajectory & | tj | ||
) |
Definition at line 705 of file StepUtils.cxx.
References tca::Trajectory::AlgMod, tca::TrajPoint::AngErr, tca::TrajPoint::AngleCode, tca::TrajPoint::Chg, tca::Trajectory::CTP, tca::TCConfig::dbgStp, DeadWireCount(), DefineHitPos(), tca::TrajPoint::Delta, tca::TrajPoint::Dir, tca::Trajectory::EndPt, tca::TrajPoint::Environment, tca::TrajPoint::FitChi, FitTraj(), tca::TrajPoint::HitPos, tca::TrajPoint::Hits, kEnvNearSrcHit, kRvPrp, kSlowing, kStiffEl, kStiffMu, MaskBadTPs(), tca::Trajectory::MaskedLastTP, tca::TCConfig::maxChi, tca::Trajectory::MCSMom, MCSMom(), tca::TCConfig::minPtsFit, tca::TCConfig::muonTag, tca::Trajectory::NeedsUpdate, tca::TrajPoint::NTPsFit, NumPtsWithCharge(), tca::Trajectory::Pass, tca::Trajectory::PDGCode, PointTrajDOCA(), tca::TrajPoint::Pos, tca::Trajectory::Pts, SetAngleCode(), SetEndPoints(), tca::Trajectory::Strategy, tcc, TrajIsClean(), UnsetUsedHits(), UpdateDeltaRMS(), UpdateStiffEl(), and UpdateTjChgProperties().
Referenced by CheckHiMultUnusedHits(), MakeJunkTraj(), and StepAway().
void tca::UpdateVxEnvironment | ( | TCSlice & | slc | ) |
Definition at line 3765 of file Utils.cxx.
References kEnvOverlap, kKilled, tca::TCSlice::tjs, and tca::TCSlice::vtxs.
Referenced by DotProd(), Reconcile2Vs(), and tca::TrajClusterAlg::ReconstructAllTraj().
Definition at line 3787 of file Utils.cxx.
References util::abs(), tca::TrajPoint::Chg, tca::VtxStore::CTP, tca::TrajPoint::Dir, util::end(), tca::VtxStore::ID, if(), kEnvOverlap, kHaloTj, kKilled, kOnDeadWire, kPhoton, MakeBareTrajPoint(), tca::VtxStore::Pos, tca::TrajPoint::Pos, PrintPos(), tca::VtxStore::Stat, tca::TCSlice::tjs, and UpdateTjChgProperties().
bool tca::ValidTwoPlaneMatch | ( | detinfo::DetectorPropertiesData const & | detProp, |
const TCSlice & | slc, | ||
const PFPStruct & | pfp | ||
) |
Definition at line 1771 of file PFPUtils.cxx.
References geo::CryostatID::Cryostat, DecodeCTP(), EncodeCTP(), evt, tca::TCEvent::goodWire, MakeBareTP(), tca::TCSlice::nPlanes, tca::TCSlice::nWires, geo::PlaneID::Plane, tca::PFPStruct::TjIDs, tca::TCSlice::tjs, tca::PFPStruct::TP3Ds, geo::TPCID::TPC, and tca::TCSlice::TPCID.
Referenced by MakePFParticles().
Definition at line 1879 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 1895 of file TCVertex.cxx.
References tca::VtxStore::Pos, and tca::VtxStore::PosErr.
Definition at line 4511 of file Utils.cxx.
References geo::CryostatID::Cryostat, DecodeCTP(), geo::TPCID::TPC, and tca::TCSlice::TPCID.
Referenced by DotProd(), and FindCloseHits().
bool tca::WrongSplitTj | ( | std::string | inFcnLabel, |
TCSlice & | slc, | ||
Trajectory & | tj, | ||
unsigned short | tjEnd, | ||
bool | prt | ||
) |
Definition at line 2239 of file TCShower.cxx.
References tca::Trajectory::AlgMod, tca::Trajectory::ID, kComp3DVx, tca::Trajectory::VtxID, and tca::TCSlice::vtxs.
const std::vector< std::string > tca::AlgBitNames |
Definition at line 16 of file DataStructs.cxx.
Referenced by tca::TrajClusterAlg::ChkInTraj(), tca::TrajClusterAlg::GetAlgBitNames(), InTrajOK(), PrintAllTraj(), PrintDebugMode(), PrintT(), PrintTP3Ds(), PrintTrajectory(), tca::TrajClusterAlg::RunTrajClusterAlg(), and tca::TrajClusterAlg::TrajClusterAlg().
constexpr unsigned int tca::Cpad = 10000 |
Definition at line 47 of file DataStructs.h.
Referenced by DecodeCTP().
DebugStuff tca::debug |
Definition at line 4 of file DebugStruct.cxx.
Referenced by tca::TrajClusterAlg::CreateSlice(), DecodeDebugString(), DumpTj(), EndMerge(), FillGaps3D(), FillWireHitRange(), Find2DVertices(), tca::TrajClusterAlg::FindJunkTraj(), FindPFParticles(), FindShowers3D(), main(), MakeJunkTraj(), MakePFParticles(), trkf::SpacePointAlg::makeSpacePoints(), Print2V(), PrintAll(), PrintAllTraj(), PrintDebugMode(), PrintT(), cluster::TrajCluster::produce(), tca::TrajClusterAlg::ReconstructAllTraj(), ReSection(), cmtool::CBAlgoPolyOverlap::SetDebug(), cmtool::CFAlgoTimeOverlap::SetDebug(), LoaderToolBase::setDebugAndPlanes(), DecoderToolBase::setDebugAndPlanes(), SetVx2Score(), StartTraj(), StitchPFPs(), StoreTraj(), TagShowerLike(), and detinfo::DetectorPropertiesStandard::ValidateAndConfigure().
const std::vector< std::string > tca::EndFlagNames {"Signal", "AtKink", "AtVtx", "Bragg", "AtTj", "OutFV", "NoFitVx"} |
Definition at line 87 of file DataStructs.cxx.
Referenced by PrintEndFlag(), and tca::TrajClusterAlg::TrajClusterAlg().
TCEvent tca::evt |
Definition at line 8 of file DataStructs.cxx.
Referenced by AddHits(), AddLooseHits(), AddTj(), AnalyzeHits(), cheat::BackTracker::CanRun(), cluster::HoughBaseAlg::ChargeInfo_t::ChargeInfo_t(), ChgFracNearPos(), ChkBegin(), tca::TrajClusterAlg::ClearResults(), lar_pandora::LArPandoraHelper::CollectPFParticles(), anab::FVectorReader< T, N >::create(), art::PtrMaker< T >::create(), util::CreateAssn(), tca::TrajClusterAlg::CreateSlice(), DeadWireCount(), DECLARE_ART_SERVICE_INTERFACE_IMPL(), dEdx(), DefineHitPos(), tca::TrajClusterAlg::DefineShTree(), evd::MCBriefPad::Draw(), evd::Display3DPad::Draw(), evd::CalorPad::Draw(), evd::TQPad::Draw(), evd::TWireProjPad::Draw(), evd::Ortho3DPad::Draw(), evd::RecoBaseDrawer::DrawShower3D(), evd::RecoBaseDrawer::DrawShowerOrtho(), evd::RecoBaseDrawer::DrawTrack3D(), evd::RecoBaseDrawer::DrawTrackOrtho(), evd::RecoBaseDrawer::DrawTrackVertexAssns2D(), DumpTj(), evd::details::RawDigitCacheDataClass::empty(), ExpectedHitsRMS(), tca::TrajClusterAlg::ExpectSlicedHits(), FillGaps(), FillWireHitRange(), FillWireIntersections(), Find3DVertices(), FindCloseHits(), FindCloseTjs(), FindPFParticles(), FindUseHits(), Forecast(), GetHitMultiplet(), cluster::ClusterMergeHelper::GetManager(), GetOrigin(), lar_cluster3d::StandardHit3DBuilder::getTimeToExecute(), lar_cluster3d::SnippetHit3DBuilder::getTimeToExecute(), evdb::ButtonBar::GoTo(), evd::HeaderDrawer::Header(), HitSep2(), HitsPosTick(), HitsRMSTick(), HitTimeErr(), trkf::PMAlgTrackMaker::init(), lar_pandora::LArPandoraEventDump::PandoraData::LoadAssociation(), main(), MakeBareTrajPoint(), MakeHaloTj(), MakeJunkTraj(), MakePFParticles(), MakePFPTjs(), MaskedHitsOK(), Match3Planes(), Match3PlanesSpt(), tca::TrajClusterAlg::MergeTPHits(), tca::TrajClusterAlg::MergeTPHitsOnWire(), NearbySrcHit(), evdb::DisplayWindow::OpenWindow(), mvapid::MVAAlg::SumDistance2::operator()(), PFPVertexCheck(), PointTrajDOCA(), PrintHit(), PrintHitShort(), PrintTP(), cheat::BackTrackerService::priv_PrepEvent(), MCReco::produce(), reco::shower::LArPandoraModularShowerCreation::produce(), trkf::TrackStitcher::produce(), cluster::TrajCluster::produce(), trkf::PMAlgTrackMaker::produce(), evd::RecoBaseDrawer::Prong2D(), cheat::PhotonBackTrackerService::provider(), cheat::ParticleInventoryService::provider(), cheat::BackTrackerService::provider(), art::PtrMaker< T >::PtrMaker(), tca::TrajClusterAlg::ReconstructAllTraj(), evdb::ScanFrame::Record(), ReversePropagate(), tca::TrajClusterAlg::RunTrajClusterAlg(), evd::TWireProjPad::SaveHitList(), evd::TWireProjPad::SaveSeedList(), rndm::NuRandomService::seedEngine(), evd::TWireProjPad::SelectOneHit(), util::EventChangeTracker_t::set(), anab::FVectorWriter< 4 >::setDataTag(), evdb::EventHolder::SetEvent(), tca::TrajClusterAlg::SetInputHits(), tca::TrajClusterAlg::SetInputSpts(), cluster::ClusterMatchAlg::SetMCTruthModName(), tca::TrajClusterAlg::SetSourceHits(), SignalAtTp(), SignalAtTpInSlc(), SplitTraj(), SptInTPC(), StartChgVec(), StartTraj(), StepAway(), StorePFP(), StoreShower(), StoreTraj(), StoreVertex(), TCIntersectionPoint(), TPHitsRMSTick(), TpSumHitChg(), tca::TrajClusterAlg::TrajClusterAlg(), TrajHitsOK(), TrimEndPts(), UpdateShower(), UpdateTjChgProperties(), ValidTwoPlaneMatch(), and evgen::Decay0Gen::~Decay0Gen().
constexpr unsigned int tca::pAlgModSize = 6 |
Definition at line 275 of file DataStructs.h.
Referenced by PrintTP3Ds().
std::vector< TrajPoint > tca::seeds |
Definition at line 14 of file DataStructs.cxx.
Referenced by ChkBegin(), rndm::NuRandomService::defineEngineID(), cluster::DBScan3DAlg::expand(), cluster::DBScanAlg::ExpandCluster(), pyRandomize::f_getTheSeeds(), rndm::NuRandomService::freezeSeed(), rndm::NuRandomService::getCurrentSeed(), rndm::NuRandomService::getGlobalCurrentSeed(), trkf::Track3DKalmanHit::getPFParticleStuff(), main(), trkf::Track3DKalmanHitAlg::makeTracks(), rndm::NuRandomService::preProcessEvent(), rndm::NuRandomService::print(), trkf::SeedFinderModule::produce(), trkf::FeatureTracker::produce(), TrackProducerFromPFParticle::produce(), rndm::NuRandomService::querySeed(), tca::TrajClusterAlg::ReconstructAllTraj(), rndm::NuRandomService::registerEngineIdAndSeeder(), rndm::NuRandomService::reseedGlobal(), rndm::NuRandomService::reseedInstance(), rndm::NuRandomService::reseedModule(), tss::Segmentation2D::run(), tca::TrajClusterAlg::RunTrajClusterAlg(), evd::RecoBaseDrawer::Seed2D(), evd::RecoBaseDrawer::Seed3D(), and evd::RecoBaseDrawer::SeedOrtho().
std::vector< TCSlice > tca::slices |
Definition at line 13 of file DataStructs.cxx.
Referenced by tca::TrajClusterAlg::ClearResults(), tca::TrajClusterAlg::CreateSlice(), DumpTj(), EndMerge(), FillWireHitRange(), Finish3DShowers(), tca::TrajClusterAlg::FinishEvent(), tca::TrajClusterAlg::GetSlice(), GetSliceIndex(), tca::TrajClusterAlg::GetSlicesSize(), LastEndMerge(), MakeHaloTj(), PrimaryUID(), Print2V(), Print3S(), Print3V(), PrintAll(), PrintP(), lar_pandora::LArPandoraEventDump::PrintParticle(), PrintT(), lar_pandora::LArPandoraExternalEventBuilding::produce(), cluster::TrajCluster::produce(), Reconcile3D(), tca::TrajClusterAlg::ReconstructAllTraj(), tca::TrajClusterAlg::RunTrajClusterAlg(), SignalAtTp(), evd::RecoBaseDrawer::Slice2D(), evd::RecoBaseDrawer::Slice3D(), and StitchPFPs().
const std::vector< std::string > tca::StrategyBitNames {"Normal", "StiffEl", "StiffMu", "Slowing"} |
Definition at line 98 of file DataStructs.cxx.
Referenced by PrintT(), and StepAway().
ShowerTreeVars tca::stv |
Definition at line 11 of file DataStructs.cxx.
Referenced by tca::TrajClusterAlg::DefineShTree(), tca::TrajClusterAlg::RunTrajClusterAlg(), SaveTjInfo(), and SaveTjInfoStuff().
TCConfig tca::tcc |
Definition at line 9 of file DataStructs.cxx.
Referenced by AddCloseTjsToList(), AddHits(), AddLAHits(), AddLooseHits(), AddTj(), AnalyzeHits(), AngleRange(), AttachAnyTrajToVertex(), AttachAnyVertexToTraj(), AttachTrajToVertex(), BraggSplit(), CheckHiMultEndHits(), CheckHiMultUnusedHits(), CheckStiffEl(), CheckTraj(), CheckTrajBeginChg(), ChgFracBetween(), ChgFracNearEnd(), ChkBegin(), ChkChgAsymmetry(), ChkEndKink(), tca::TrajClusterAlg::ChkInTraj(), ChkMichel(), ChkStop(), ChkStopEndPts(), CompatibleMerge(), CompleteIncomplete3DVertices(), CompleteIncomplete3DVerticesInGaps(), CompleteIncompleteShower(), CountBadPoints(), tca::TrajClusterAlg::CreateSlice(), CreateTP3D(), DecodeDebugString(), dEdx(), DefineEnvelope(), DefineHitPos(), DefinePFPParents(), DefineTjParents(), DumpTj(), EndMerge(), ExpectedHitsRMS(), FilldEdx(), FillGaps(), FillGaps3D(), FillmAllTraj(), FillWireHitRange(), FillWireIntersections(), Find2DVertices(), Find3DVertices(), FindCloseHits(), FindCloseTjs(), FindHammerVertices(), FindHammerVertices2(), tca::TrajClusterAlg::FindJunkTraj(), FindParent(), FindPFParticles(), FindShowers3D(), FindShowerStart(), FindStartChg(), FindUseHits(), FitTP3Ds(), FixBegin(), Forecast(), GetHitMultiplet(), GetOrigin(), GottaKink(), HitSep2(), HitsPosTime(), HitsRMSTime(), HitsTimeErr2(), HitTimeErr(), InsideTPC(), IsCloseToVertex(), IsGhost(), KillPoorVertices(), KillVerticesInShower(), LastEndMerge(), MakeBareTP(), MakeBareTrajPoint(), MakeHaloTj(), MakeJunkTraj(), MakeJunkVertices(), MakePFParticles(), MakePFPTjs(), MakeSmallAnglePFP(), MakeTP3D(), MakeVertexObsolete(), MaskBadTPs(), MaskedHitsOK(), MaskTrajEndPoints(), Match2Planes(), Match3DFOM(), Match3Planes(), Match3PlanesSpt(), MergeGhostTjs(), MergeNearby2DShowers(), MergeOverlap(), MergeShowerChain(), MergeSubShowers(), MergeSubShowersTj(), MergeWithVertex(), NearbySrcHit(), ParentFOM(), PointTrajDOCA(), PosInPlane(), Print2DShowers(), Print2V(), PrintAllTraj(), PrintDebugMode(), PrintPos(), PrintShower(), PrintT(), PrintTrajectory(), cluster::TrajCluster::produce(), Reconcile2Vs(), ReconcileTPs(), ReconcileVertices(), tca::TrajClusterAlg::ReconstructAllTraj(), ReSection(), ReversePropagate(), tca::TrajClusterAlg::RunTrajClusterAlg(), SaveAllCots(), SaveCRInfo(), SaveTjInfo(), SaveTjInfoStuff(), SetAngleCode(), tca::TrajClusterAlg::SetInputHits(), SetPDGCode(), SetSection(), tca::TrajClusterAlg::SetSourceHits(), SetStrategy(), SetVx2Score(), SetVx3Score(), SignalAtTp(), SignalAtTpInSlc(), SplitTraj(), SplitTrajCrossingVertices(), StartChgVec(), StartTraj(), StepAway(), StitchPFPs(), StopIfBadFits(), StopShort(), StoreTraj(), TagShowerLike(), TPHitsRMSTime(), tca::TrajClusterAlg::TrajClusterAlg(), TrimEndPts(), TrimHiChgEndPts(), UpdateShower(), UpdateStiffEl(), UpdateTjChgProperties(), and UpdateTraj().
std::vector< TjForecast > tca::tjfs |
Definition at line 10 of file DataStructs.cxx.
Referenced by Forecast(), SetStrategy(), and StepAway().
constexpr unsigned int tca::Tpad = 10 |
Definition at line 46 of file DataStructs.h.
Referenced by DecodeCTP().
const std::vector< std::string > tca::VtxBitNames |
Definition at line 89 of file DataStructs.cxx.
Referenced by Print2V(), and PrintAllTraj().