LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
#include "TrajClusterAlg.h"
Public Member Functions | |
TrajClusterAlg (fhicl::ParameterSet const &pset) | |
bool | SetInputHits (std::vector< recob::Hit > const &inputHits, unsigned int run, unsigned int event) |
void | SetInputSpts (std::vector< recob::SpacePoint > const &sptHandle) |
void | SetSourceHits (std::vector< recob::Hit > const &srcHits) |
void | ExpectSlicedHits () |
void | RunTrajClusterAlg (detinfo::DetectorClocksData const &clockData, detinfo::DetectorPropertiesData const &detProp, std::vector< unsigned int > &hitsInSlice, int sliceID) |
bool | CreateSlice (detinfo::DetectorClocksData const &clockData, detinfo::DetectorPropertiesData const &detProp, std::vector< unsigned int > &hitsInSlice, int sliceID) |
void | FinishEvent () |
void | DefineShTree (TTree *t) |
unsigned short | GetSlicesSize () const |
TCSlice const & | GetSlice (unsigned short sliceIndex) const |
void | MergeTPHits (std::vector< unsigned int > &tpHits, std::vector< recob::Hit > &newHitCol, std::vector< unsigned int > &newHitAssns) const |
std::vector< unsigned int > const & | GetAlgModCount () const |
std::vector< std::string > const & | GetAlgBitNames () const |
void | ClearResults () |
Deletes all the results. More... | |
Private Member Functions | |
recob::Hit | MergeTPHitsOnWire (std::vector< unsigned int > &tpHits) const |
void | ReconstructAllTraj (detinfo::DetectorPropertiesData const &detProp, TCSlice &slc, CTP_t inCTP) |
void | FindJunkTraj (TCSlice &slc, CTP_t inCTP) |
void | ChkInTraj (std::string someText, TCSlice &slc) |
Private Attributes | |
TTree * | showertree |
calo::CalorimetryAlg | fCaloAlg |
TMVA::Reader | fMVAReader |
std::vector< unsigned int > | fAlgModCount |
Definition at line 37 of file TrajClusterAlg.h.
|
explicit |
Definition at line 35 of file TrajClusterAlg.cxx.
References tca::AlgBitNames, tca::TCConfig::angleRanges, tca::TCEvent::aveHitRMS, tca::TCEvent::aveHitRMSValid, tca::TCConfig::caloAlg, tca::TCConfig::chargeCuts, tca::TCConfig::chkStopCuts, art::errors::Configuration, tca::ConfigureMVA(), tca::TCConfig::dbgAlg, tca::DecodeDebugString(), tca::TCConfig::deltaRayTag, tca::TCConfig::doForecast, tca::TCConfig::electronTag, tca::EndFlagNames, tca::TCEvent::eventsProcessed, tca::evt, fAlgModCount, fCaloAlg, fMVAReader, for(), fhicl::ParameterSet::get(), fhicl::ParameterSet::get_if_present(), fhicl::ParameterSet::has_key(), tca::TCConfig::hitErrFac, tca::TCConfig::JTMaxHitSep2, tca::kAlgBitSize, tca::kChkInTraj, tca::kDebug, tca::kFlagBitSize, tca::TCConfig::kinkCuts, tca::kSaveCRTree, tca::kSaveShowerTree, tca::kStepDir, tca::kStudy1, tca::kStudy2, tca::kStudy3, tca::kStudy4, tca::kTagCosmics, tca::kTestBeam, tca::TCConfig::match3DCuts, tca::TCConfig::maxAngleCode, tca::TCConfig::maxChi, tca::TCConfig::maxWireSkipNoSignal, tca::TCConfig::maxWireSkipWithSignal, tca::TCConfig::minMCSMom, tca::TCConfig::minPts, tca::TCConfig::minPtsFit, tca::TCConfig::modes, tca::TCConfig::multHitSep, tca::TCConfig::muonTag, tca::TCConfig::neutralVxCuts, tca::TCConfig::nPtsAve, tca::TCConfig::pfpStitchCuts, tca::TCConfig::projectionErrFactor, tca::TCConfig::qualityCuts, tca::TCConfig::showerParentReader, tca::TCConfig::showerTag, tca::tcc, tca::TCConfig::useAlg, tca::TCConfig::useChannelStatus, tca::TCConfig::VLAStepSize, tca::TCConfig::vtx2DCuts, tca::TCConfig::vtx3DCuts, and tca::TCConfig::vtxScoreWeights.
|
private |
Definition at line 888 of file TrajClusterAlg.cxx.
References tca::AlgBitNames, util::end(), fAlgModCount, tca::TCSlice::isValid, tca::kChkInTraj, tca::kKilled, tca::kUsedHits, tca::PrintHit(), tca::PrintTrajectory(), tca::PutTrajHitsInVector(), tca::TCSlice::slHits, tca::tcc, tca::TCSlice::tjs, tca::TCConfig::useAlg, and tca::TCSlice::vtxs.
|
inline |
Deletes all the results.
Definition at line 72 of file TrajClusterAlg.h.
References tca::evt, tca::slices, tca::TCEvent::sptHits, and tca::TCEvent::wireHitRange.
Referenced by cluster::TrajCluster::produce(), and SetInputHits().
bool tca::TrajClusterAlg::CreateSlice | ( | detinfo::DetectorClocksData const & | clockData, |
detinfo::DetectorPropertiesData const & | detProp, | ||
std::vector< unsigned int > & | hitsInSlice, | ||
int | sliceID | ||
) |
Definition at line 1213 of file TrajClusterAlg.cxx.
References tca::TCEvent::allHits, tca::DebugStuff::Cryostat, tca::DebugStuff::CTP, tca::TCConfig::dbgSlc, tca::debug, tca::EncodeCTP(), tca::evt, tca::FillWireHitRange(), tca::TCConfig::geom, tca::TCSlice::ID, tca::TCSlice::isValid, tca::kDebug, tca::TCConfig::modes, geo::GeometryCore::Nplanes(), tca::DebugStuff::Plane, util::size(), tca::TCSlice::slHits, tca::DebugStuff::Slice, tca::slices, tca::tcc, tca::DebugStuff::TPC, and tca::TCSlice::TPCID.
Referenced by RunTrajClusterAlg().
void tca::TrajClusterAlg::DefineShTree | ( | TTree * | t | ) |
Definition at line 1172 of file TrajClusterAlg.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::TCEvent::event, tca::evt, tca::ShowerTreeVars::IsShowerParent, tca::ShowerTreeVars::IsShowerTj, tca::ShowerTreeVars::MCSMom, tca::ShowerTreeVars::nPlanes, tca::ShowerTreeVars::nStages, tca::ShowerTreeVars::PlaneNum, tca::TCEvent::run, tca::ShowerTreeVars::ShowerID, showertree, tca::ShowerTreeVars::StageName, tca::ShowerTreeVars::StageNum, tca::stv, tca::TCEvent::subRun, and tca::ShowerTreeVars::TjID.
Referenced by cluster::TrajCluster::beginJob().
|
inline |
Definition at line 49 of file TrajClusterAlg.h.
References tca::evt, and tca::TCEvent::expectSlicedHits.
Referenced by cluster::TrajCluster::produce().
Definition at line 766 of file TrajClusterAlg.cxx.
References tca::debug, tca::DecodeCTP(), tca::TCSlice::firstWire, tca::GetHitMultiplet(), tca::DebugStuff::Hit, tca::HitSep2(), tca::IsGhost(), tca::TCConfig::JTMaxHitSep2, tca::kDebug, tca::kJunkTj, tca::TCSlice::lastWire, tca::MakeJunkTraj(), tca::TCConfig::modes, tca::TCSlice::nWires, geo::PlaneID::Plane, tca::PrintHit(), tca::TCSlice::slHits, tca::tcc, tca::TrajHitsOK(), tca::TCConfig::useAlg, and tca::TCSlice::wireHitRange.
Referenced by ReconstructAllTraj().
void tca::TrajClusterAlg::FinishEvent | ( | ) |
Definition at line 1278 of file TrajClusterAlg.cxx.
References tca::MakePFPTjs(), tca::PFPVertexCheck(), tca::slices, and tca::StitchPFPs().
Referenced by cluster::TrajCluster::produce().
|
inline |
Definition at line 69 of file TrajClusterAlg.h.
References tca::AlgBitNames.
Referenced by cluster::TrajCluster::endJob().
|
inline |
Definition at line 68 of file TrajClusterAlg.h.
Referenced by cluster::TrajCluster::endJob().
|
inline |
Definition at line 63 of file TrajClusterAlg.h.
References tca::slices.
Referenced by cluster::TrajCluster::produce().
|
inline |
Definition at line 62 of file TrajClusterAlg.h.
References tca::slices.
Referenced by cluster::TrajCluster::produce().
void tca::TrajClusterAlg::MergeTPHits | ( | std::vector< unsigned int > & | tpHits, |
std::vector< recob::Hit > & | newHitCol, | ||
std::vector< unsigned int > & | newHitAssns | ||
) | const |
Definition at line 984 of file TrajClusterAlg.cxx.
References tca::TCEvent::allHits, tca::evt, MergeTPHitsOnWire(), util::size(), and tmp.
Referenced by cluster::TrajCluster::produce().
|
private |
Definition at line 1039 of file TrajClusterAlg.cxx.
References tca::TCEvent::allHits, tca::evt, and util::size().
Referenced by MergeTPHits().
|
private |
Definition at line 432 of file TrajClusterAlg.cxx.
References tca::AddHits(), tca::Trajectory::AlgMod, tca::TCEvent::allHits, tca::AttachAnyTrajToVertex(), tca::Trajectory::AveChg, tca::TCEvent::aveHitRMS, tca::BraggSplit(), tca::CheckTraj(), tca::CheckTrajBeginChg(), tca::ChkVtxAssociations(), tca::Trajectory::CTP, tca::TCConfig::dbg2V, tca::TCConfig::dbgSlc, tca::TCConfig::dbgStp, tca::debug, tca::DecodeCTP(), tca::EndMerge(), tca::Trajectory::EndPt, tca::TCEvent::eventsProcessed, tca::evt, tca::Find2DVertices(), FindJunkTraj(), tca::TCSlice::firstWire, tca::GetHitMultiplet(), tca::DebugStuff::Hit, tca::TCConfig::hitErrFac, tca::HitsPosTick(), tca::HitsRMSTick(), tca::Trajectory::ID, if(), tca::InTrajOK(), tca::Trajectory::IsGood, tca::TCSlice::isValid, tca::kDebug, tca::kKilled, tca::kLastEndMerge, tca::kNormal, tca::kRvPrp, tca::kStepDir, tca::kUnusedHits, tca::LastEndMerge(), tca::TCSlice::lastWire, tca::LongPulseHit(), tca::MakeHaloTj(), tca::MakeJunkVertices(), tca::TCConfig::minPts, tca::TCConfig::minPtsFit, tca::TCConfig::modes, tca::TCConfig::muonTag, tca::NumPtsWithCharge(), tca::TCSlice::nWires, tca::Trajectory::ParentID, tca::Trajectory::Pass, geo::PlaneID::Plane, tca::PrintHit(), tca::PrintPos(), tca::PrintTrajectory(), tca::Trajectory::Pts, tca::ReleaseHits(), tca::seeds, tca::SetTPEnvironment(), tca::TCConfig::showerTag, tca::TCSlice::slHits, tca::slices, tca::SplitTrajCrossingVertices(), tca::StartTraj(), tca::StepAway(), tca::Trajectory::StepDir, tca::StoreTraj(), tca::Trajectory::Strategy, tca::TagShowerLike(), tca::tcc, tca::TCSlice::tjs, tca::TrajHitsOK(), tca::TCConfig::unitsPerTick, tca::UpdateVxEnvironment(), tca::TCConfig::useAlg, tca::TCSlice::vtxs, tca::TCSlice::wireHitRange, and tca::TCEvent::WorkID.
Referenced by RunTrajClusterAlg().
void tca::TrajClusterAlg::RunTrajClusterAlg | ( | detinfo::DetectorClocksData const & | clockData, |
detinfo::DetectorPropertiesData const & | detProp, | ||
std::vector< unsigned int > & | hitsInSlice, | ||
int | sliceID | ||
) |
Definition at line 349 of file TrajClusterAlg.cxx.
References tca::AlgBitNames, tca::TCEvent::aveHitRMS, tca::ChkVtxAssociations(), art::errors::Configuration, CreateSlice(), tca::TCConfig::dbgDump, tca::DefinePFPParents(), tca::DefineTjParents(), tca::DumpTj(), tca::EncodeCTP(), tca::TCEvent::eventsProcessed, tca::evt, fAlgModCount, tca::Find3DVertices(), tca::FindPFParticles(), tca::FindShowers3D(), tca::Finish3DShowers(), if(), tca::kDebug, tca::KillPoorVertices(), tca::kSaveShowerTree, tca::TCConfig::match3DCuts, tca::TCConfig::modes, tca::Reconcile2Vs(), ReconstructAllTraj(), tca::TCConfig::recoSlice, tca::TCConfig::recoTPC, tca::ScoreVertices(), tca::seeds, tca::TCConfig::showerTag, showertree, tca::slices, tca::ShowerTreeVars::StageNum, tca::stv, and tca::tcc.
Referenced by cluster::TrajCluster::produce().
bool tca::TrajClusterAlg::SetInputHits | ( | std::vector< recob::Hit > const & | inputHits, |
unsigned int | run, | ||
unsigned int | event | ||
) |
Definition at line 305 of file TrajClusterAlg.cxx.
References tca::TCEvent::allHits, tca::AnalyzeHits(), ClearResults(), tca::TCEvent::event, tca::TCEvent::eventsProcessed, tca::evt, tca::TCConfig::geom, tca::TCEvent::global2S_UID, tca::TCEvent::global2V_UID, tca::TCEvent::global3S_UID, tca::TCEvent::global3V_UID, tca::TCEvent::globalP_UID, tca::TCEvent::globalT_UID, tca::kDebug, tca::TCConfig::modes, tca::PrintDebugMode(), tca::TCEvent::run, tca::tcc, and tca::TCEvent::WorkID.
Referenced by cluster::TrajCluster::produce().
|
inline |
Definition at line 44 of file TrajClusterAlg.h.
References tca::evt, and tca::TCEvent::sptHandle.
Referenced by cluster::TrajCluster::produce().
void tca::TrajClusterAlg::SetSourceHits | ( | std::vector< recob::Hit > const & | srcHits | ) |
Definition at line 333 of file TrajClusterAlg.cxx.
References tca::evt, tca::TCConfig::geom, geo::GeometryCore::NTPC(), util::size(), tca::TCEvent::srcHits, tca::tcc, and tca::TCEvent::tpcSrcHitRange.
Referenced by cluster::TrajCluster::produce().
|
private |
Definition at line 88 of file TrajClusterAlg.h.
Referenced by ChkInTraj(), RunTrajClusterAlg(), and TrajClusterAlg().
|
private |
Definition at line 85 of file TrajClusterAlg.h.
Referenced by TrajClusterAlg().
|
private |
Definition at line 86 of file TrajClusterAlg.h.
Referenced by TrajClusterAlg().
|
private |
Definition at line 83 of file TrajClusterAlg.h.
Referenced by DefineShTree(), and RunTrajClusterAlg().