9 #ifndef TRAJCLUSTERALG_H 10 #define TRAJCLUSTERALG_H 218 bool MakeJunkTraj(std::vector<unsigned int> tHits,
bool prt);
222 bool StartTraj(
Trajectory& tj,
const unsigned int& fromHit,
const unsigned int& toHit,
const unsigned short& pass);
223 bool StartTraj(
Trajectory& tj,
const float& fromWire,
const float& fromTick,
const float& toWire,
const float& toTick,
const CTP_t& tCTP,
const unsigned short& pass);
224 void GetHitMultiplet(
unsigned int theHit, std::vector<unsigned int>& hitsInMultiplet);
225 void GetHitMultiplet(
unsigned int theHit, std::vector<unsigned int>& hitsInMultiplet,
unsigned short& localIndex);
229 float HitsTimeErr2(
const std::vector<unsigned int>& hitVec);
238 void FindHit(std::string someText,
unsigned int iht);
278 bool IsGhost(std::vector<unsigned int>& tHits,
unsigned short& ofTraj);
283 bool EraseHit(
const unsigned int& delHit);
305 #endif // ifndef TRAJCLUSTERALG_H TH1F * fNuVtx_dy
label of module producing input hits
bool fMakeNewHits
label of module producing input hits
void ClearResults()
Deletes all the results.
void UpdateDeltaRMS(Trajectory &tj)
label of module producing input hits
float fMaxChi
label of module producing input hits
TH1F * fVx3_Score
label of module producing input hits
float fHitErrFac
hit time error = fHitErrFac * hit RMS used for cluster fit
void ChkInTraj(std::string someText)
label of module producing input hits
void MergeTPHits()
label of module producing input hits
ShowerStruct3D const & GetShowerStruct(unsigned short ish)
label of module producing input hits
void CheckTrajEnd()
label of module producing input hits
void ChkStopEndPts(Trajectory &tj, bool prt)
label of module producing input hits
TH1F * fdWire[5]
label of module producing input hits
float fMaxWireSkipNoSignal
max number of wires to skip w/o a signal on them
struct of temporary 2D vertices (end points)
const std::vector< std::string > AlgBitNames
std::vector< unsigned short > fMinPtsFit
StepCrawl mode (0 = turn off)
void ChkStop(Trajectory &tj)
label of module producing input hits
bool ChkMichel(Trajectory &tj, unsigned short &lastGoodPt)
label of module producing input hits
void PrepareForNextPass(Trajectory &tj)
label of module producing input hits
void ChkHiChgHits(CTP_t inCTP)
label of module producing input hits
TjStuff tjs
label of module producing input hits
art::InputTag const & GetHitFinderModuleLabel()
label of module producing input hits
void MakeAllTrajClusters()
label of module producing input hits
void FindVtxTraj(VtxStore &theVtx)
label of module producing input hits
TruthMatcher tm
label of module producing input hits
void FindJunkTraj(CTP_t inCTP)
label of module producing input hits
void DefineHitPos(TrajPoint &tp)
label of module producing input hits
unsigned short fAllowNoHitWire
label of module producing input hits
bool mrgPrt
label of module producing input hits
art::InputTag fHitFinderModuleLabel
label of module producing input hits
std::vector< PFPStruct > pfps
float fProjectionErrFactor
label of module producing input hits
void UpdateTraj(Trajectory &tj)
label of module producing input hits
float HitsTimeErr2(const std::vector< unsigned int > &hitVec)
label of module producing input hits
bool fTagAllTraj
Max hit separation for making junk trajectories. < 0 to turn off.
calo::CalorimetryAlg fCaloAlg
label of module producing input hits
void FindHit(std::string someText, unsigned int iht)
label of module producing input hits
void CheckHiMultUnusedHits(Trajectory &tj)
label of module producing input hits
std::vector< float > fChkStopCuts
[Min Chg ratio, Chg slope pull cut, Chg fit chi cut]
float fMaxTrajSep
max trajectory point separation for making showers
std::vector< ShowerStruct3D > showers
void AddHits(Trajectory &tj, unsigned short ipt, bool &sigOK)
label of module producing input hits
std::vector< unsigned short > fMinPts
min number of Pts required to make a trajectory
TH2F * fMCSMom_TruMom_mu
label of module producing input hits
short fMode
label of module producing input hits
std::vector< std::string > const & GetAlgBitNames() const
label of module producing input hits
void GetHitMultiplet(unsigned int theHit, std::vector< unsigned int > &hitsInMultiplet)
label of module producing input hits
TH2F * fMCSMom_TruMom_p
label of module producing input hits
float fVLAStepSize
label of module producing input hits
void CheckTraj(Trajectory &tj)
label of module producing input hits
void FindSoftKink(Trajectory &tj)
label of module producing input hits
bool StartTraj(Trajectory &tj, const unsigned int &fromHit, const unsigned int &toHit, const unsigned short &pass)
label of module producing input hits
float fLAClusSlopeCut
label of module producing input hits
void FillGaps(Trajectory &tj)
label of module producing input hits
unsigned short nTruPrimaryOK
label of module producing input hits
bool fUseOldBackTracker
label of module producing input hits
void CheckNearLA()
label of module producing input hits
std::vector< unsigned int > fAlgModCount
label of module producing input hits
void DefineShTree(TTree *t)
label of module producing input hits
static bool SortByMultiplet(TCHit const &a, TCHit const &b)
label of module producing input hits
void HiEndDelta(Trajectory &tj)
label of module producing input hits
unsigned short GetShowerStructSize()
label of module producing input hits
bool StopIfBadFits(Trajectory &tj)
label of module producing input hits
void FindUseHits(Trajectory &tj, unsigned short ipt, float maxDelta, bool useChg)
label of module producing input hits
void GetHitCollection(const art::Event &evt)
label of module producing input hits
void RunTrajClusterAlg(const art::Event &evt)
label of module producing input hits
std::vector< VtxStore > vtx
2D vertices
bool MakeJunkTraj(std::vector< unsigned int > tHits, bool prt)
label of module producing input hits
unsigned int CreateHit(TCHit tcHit)
label of module producing input hits
std::vector< short > fMinMCSMom
Min MCSMom for each pass.
std::vector< unsigned short > fMaxAngleCode
max allowed angle code for each pass
float fSourceParticleEnergy
label of module producing input hits
TH2F * fMCSMomEP_TruMom_e
label of module producing input hits
std::vector< Trajectory > allTraj
vector of all trajectories in each plane
void StepCrawl(Trajectory &tj)
label of module producing input hits
void DefineCRTree(TTree *t)
label of module producing input hits
float HitTimeErr(const unsigned int iht)
label of module producing input hits
virtual void reconfigure(fhicl::ParameterSet const &pset)
label of module producing input hits
std::vector< recob::Hit > YieldHits()
Returns (and loses) the art::Ptr collection of previously reconstructed hits (e.g. gaushit)
trkf::LinFitAlg fLinFitAlg
label of module producing input hits
TjStuff const & GetTJS() const
label of module producing input hits
bool fStudyMode
study cuts
std::vector< float > fQualityCuts
Min points/wire, min consecutive pts after a gap.
void AddLAHits(Trajectory &tj, unsigned short ipt, bool &sigOK)
label of module producing input hits
void ReconstructAllTraj(CTP_t inCTP)
label of module producing input hits
TMVA::Reader fMVAReader
label of module producing input hits
The data type to uniquely identify a TPC.
std::string fhitsModuleLabel
label of module producing input hits
TProfile * fEP_T[5]
label of module producing input hits
bool fIsRealData
label of module producing input hits
std::vector< Vtx3Store > const & GetVertices() const
Returns a constant reference to the 3D vertices found.
TH1F * fNuVtx_dz
label of module producing input hits
bool fQuitAlg
label of module producing input hits
bool didPrt
label of module producing input hits
void MaskTrajEndPoints(Trajectory &tj, unsigned short nPts)
label of module producing input hits
std::vector< Vtx3Store > vtx3
3D vertices
void CheckHiMultEndHits(Trajectory &tj)
label of module producing input hits
void DefineHit(TCHit &tcHit, CTP_t &hitCTP, unsigned int &hitWire)
label of module producing input hits
void EndMerge(CTP_t inCTP, bool lastPass)
label of module producing input hits
float fMinAmp
min amplitude required for declaring a wire signal is present
TH2F * fMCSMom_TruMom_e
label of module producing input hits
void ReversePropagate(Trajectory &tj)
label of module producing input hits
void SplitHiChgHits(Trajectory &tj)
label of module producing input hits
TH1F * fVx2_Score
label of module producing input hits
void FixTrajBegin(Trajectory &tj)
label of module producing input hits
unsigned int GetTjClusterIndex(unsigned int TjID)
label of module producing input hits
bool fMaskedLastTP
label of module producing input hits
bool fTryWithNextPass
label of module producing input hits
bool fGoodTraj
label of module producing input hits
unsigned short nTruPrimaryVtxReco
label of module producing input hits
TH2F * fMCSMom_TruMom_pi
label of module producing input hits
int TJPrt
label of module producing input hits
TTree * showertree
label of module producing input hits
std::vector< PFPStruct > const & GetPFParticles() const
label of module producing input hits
void FindMissedVxTjs(const geo::TPCID &tpcid)
label of module producing input hits
TrajClusterAlg(fhicl::ParameterSet const &pset)
label of module producing input hits
bool prt
label of module producing input hits
float fNeutrinoEnergy
label of module producing input hits
TH1F * fNuVtx_Score
label of module producing input hits
std::vector< ClusterStore > tcl
the clusters we are creating
HistStuff hist
label of module producing input hits
unsigned short nTruPrimary
label of module producing input hits
float fMultHitSep
preferentially "merge" hits with < this separation
bool EraseHit(const unsigned int &delHit)
label of module producing input hits
void MaskBadTPs(Trajectory &tj, float const &maxChi)
label of module producing input hits
void RunStepCrawl()
label of module producing input hits
void FixTrajEnd(Trajectory &tj, unsigned short atPt)
label of module producing input hits
std::vector< VtxStore > const & GetEndPoints() const
Returns a constant reference to the 2D end points found.
TProfile * fNuVtx_Enu_Score_p
label of module producing input hits
float fJTMaxHitSep2
label of module producing input hits
TH1F * fNuVtx_dx
label of module producing input hits
bool MaskedHitsOK(Trajectory &tj)
label of module producing input hits
void GottaKink(Trajectory &tj, unsigned short &killPts)
label of module producing input hits
void FindVtxTjs(CTP_t inCTP)
label of module producing input hits
float fMaxWireSkipWithSignal
max number of wires to skip with a signal on them
void UseUnusedHits()
label of module producing input hits
unsigned short nTruPrimaryVtxOK
label of module producing input hits
art::InputTag fHitTruthModuleLabel
label of module producing MCParticle -> hit associations
TTree * crtree
label of module producing input hits
bool IsGhost(std::vector< unsigned int > &tHits, unsigned short &ofTraj)
label of module producing input hits
std::vector< ClusterStore > const & GetClusters() const
Returns a constant reference to the clusters found.
std::vector< unsigned int > const & GetAlgModCount() const
label of module producing input hits
int fWorkID
label of module producing input hits