LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
Public Member Functions | |
ShowerBayesianTrucatingdEdx (const fhicl::ParameterSet &pset) | |
int | CalculateElement (const art::Ptr< recob::PFParticle > &pfparticle, art::Event &Event, reco::shower::ShowerElementHolder &ShowerEleHolder) override |
int | RunShowerTool (const art::Ptr< recob::PFParticle > &pfparticle, art::Event &Event, reco::shower::ShowerElementHolder &ShowerEleHolder, std::string evd_display_name_append="") |
virtual void | InitialiseProducers () |
void | SetPtr (art::ProducesCollector *collector) |
void | InitaliseProducerPtr (reco::shower::ShowerProducedPtrsHolder &uniqueproducerPtrs) |
virtual int | AddAssociations (const art::Ptr< recob::PFParticle > &pfpPtr, art::Event &Event, reco::shower::ShowerElementHolder &ShowerEleHolder) |
Protected Member Functions | |
const shower::LArPandoraShowerAlg & | GetLArPandoraShowerAlg () const |
template<class T > | |
art::Ptr< T > | GetProducedElementPtr (std::string Name, reco::shower::ShowerElementHolder &ShowerEleHolder, int iter=-1) |
template<class T > | |
void | InitialiseProduct (std::string Name, std::string InstanceName="") |
template<class T , class A , class B > | |
void | AddSingle (A &a, B &b, std::string Name) |
int | GetVectorPtrSize (std::string Name) |
void | PrintPtrs () |
void | PrintPtr (std::string Name) |
Private Member Functions | |
double | CalculatePosterior (std::string priorname, std::vector< double > &values, int &minprob, float &mean, float &likelihood) |
double | CalculatePosterior (std::string priorname, std::vector< double > &values) |
bool | isProbabilityGood (float &old_prob, float &new_prob) |
bool | isPosteriorProbabilityGood (double &prob, double &old_posteior) |
bool | CheckPoint (std::string priorname, double &value) |
std::vector< double > | GetLikelihooddEdxVec (double &electronprob, double &photonprob, std::string prior, std::vector< double > &dEdxVec) |
std::vector< double > | MakeSeed (std::vector< double > &dEdxVec) |
void | ForceSeedToFit (std::vector< double > &SeedTrack, std::string &prior, float &mean, double &posterior) |
void | RecurivelyAddHit (std::vector< double > &SeedTrack, std::vector< double > &dEdxVec, std::string &prior, int &SkippedHitsNum, float &old_mean, double &old_posteior) |
Private Attributes | |
TH1F * | electronpriorHist |
TH1F * | photonpriorHist |
int | fVerbose |
std::string | fdEdxInputLabel |
int | fNumSeedHits |
float | fProbSeedCut |
float | fProbPointCut |
float | fPostiorCut |
int | fnSkipHits |
std::string | fShowerdEdxOutputLabel |
bool | fDefineBestPlane |
std::string | fShowerBestPlaneOutputLabel |
Definition at line 26 of file ShowerBayesianTrucatingdEdx_tool.cc.
ShowerRecoTools::ShowerBayesianTrucatingdEdx::ShowerBayesianTrucatingdEdx | ( | const fhicl::ParameterSet & | pset | ) |
Definition at line 91 of file ShowerBayesianTrucatingdEdx_tool.cc.
References electronpriorHist, fin, fhicl::ParameterSet::get(), and photonpriorHist.
|
inlinevirtualinherited |
Reimplemented in ShowerRecoTools::ShowerPCADirection, ShowerRecoTools::ShowerPandoraSlidingFitTrackFinder, ShowerRecoTools::ShowerExampleTool, and ShowerRecoTools::ShowerSkeletonTool.
Definition at line 74 of file IShowerTool.h.
|
inlineprotectedinherited |
Definition at line 152 of file IShowerTool.h.
References reco::shower::ShowerProducedPtrsHolder::AddSingle().
|
overridevirtual |
Implements ShowerRecoTools::IShowerTool.
Definition at line 139 of file ShowerBayesianTrucatingdEdx_tool.cc.
References reco::shower::ShowerElementHolder::CheckElement(), fdEdxInputLabel, fDefineBestPlane, fShowerBestPlaneOutputLabel, fShowerdEdxOutputLabel, fVerbose, reco::shower::ShowerElementHolder::GetElement(), GetLikelihooddEdxVec(), reco::shower::ShowerElementHolder::SetElement(), and util::size().
|
private |
Definition at line 242 of file ShowerBayesianTrucatingdEdx_tool.cc.
References bin, electronpriorHist, photonpriorHist, value, and xaxis.
Referenced by CalculatePosterior(), ForceSeedToFit(), and GetLikelihooddEdxVec().
|
private |
Definition at line 233 of file ShowerBayesianTrucatingdEdx_tool.cc.
References CalculatePosterior(), and pmtana::mean().
|
private |
Definition at line 313 of file ShowerBayesianTrucatingdEdx_tool.cc.
References bin, electronpriorHist, fProbPointCut, photonpriorHist, and xaxis.
Referenced by isPosteriorProbabilityGood(), and RecurivelyAddHit().
|
private |
Definition at line 392 of file ShowerBayesianTrucatingdEdx_tool.cc.
References CalculatePosterior(), and fProbSeedCut.
Referenced by GetLikelihooddEdxVec(), and isPosteriorProbabilityGood().
|
inlineprotectedinherited |
Definition at line 82 of file IShowerTool.h.
Referenced by ShowerRecoTools::ShowerLengthPercentile::CalculateElement(), ShowerRecoTools::ShowerUnidirectiondEdx::CalculateElement(), ShowerRecoTools::Shower3DCylinderTrackHitFinder::CalculateElement(), ShowerRecoTools::ShowerPCAPropergationStartPosition::CalculateElement(), ShowerRecoTools::Shower2DLinearRegressionTrackHitFinder::CalculateElement(), ShowerRecoTools::ShowerPFPVertexStartPosition::CalculateElement(), ShowerRecoTools::ShowerDirectionCheater::CalculateElement(), ShowerRecoTools::ShowerPCADirection::CalculateElement(), ShowerRecoTools::ShowerIncrementalTrackHitFinder::CalculateElement(), ShowerRecoTools::ShowerTrajPointdEdx::CalculateElement(), ShowerRecoTools::ShowerPCADirection::CalculateShowerPCA(), ShowerRecoTools::Shower2DLinearRegressionTrackHitFinder::FindInitialTrackHits(), ShowerRecoTools::Shower3DCylinderTrackHitFinder::FindTrackSpacePoints(), ShowerRecoTools::ShowerIncrementalTrackHitFinder::FitSegmentAndCalculateResidual(), ShowerRecoTools::ShowerIncrementalTrackHitFinder::PruneFrontOfSPSPool(), ShowerRecoTools::ShowerIncrementalTrackHitFinder::PruneTrack(), ShowerRecoTools::ShowerIncrementalTrackHitFinder::RunTestOfIncrementalSpacePointFinder(), ShowerRecoTools::ShowerTrackPCADirection::ShowerPCAVector(), and ShowerRecoTools::ShowerIncrementalTrackHitFinder::ShowerPCAVector().
|
private |
Definition at line 339 of file ShowerBayesianTrucatingdEdx_tool.cc.
References CalculatePosterior(), ForceSeedToFit(), MakeSeed(), pmtana::mean(), and RecurivelyAddHit().
Referenced by CalculateElement(), and isPosteriorProbabilityGood().
|
inlineprotectedinherited |
Definition at line 102 of file IShowerTool.h.
References reco::shower::ShowerElementHolder::CheckElement(), reco::shower::ShowerProducedPtrsHolder::CheckUniqueProduerPtr(), reco::shower::ShowerProducedPtrsHolder::GetArtPtr(), and reco::shower::ShowerElementHolder::GetShowerNumber().
|
inlineprotectedinherited |
Definition at line 158 of file IShowerTool.h.
References reco::shower::ShowerProducedPtrsHolder::GetVectorPtrSize().
Referenced by ShowerRecoTools::ShowerExampleTool::AddAssociations(), ShowerRecoTools::ShowerPandoraSlidingFitTrackFinder::AddAssociations(), and ShowerRecoTools::ShowerPCADirection::AddAssociations().
|
inlineinherited |
Definition at line 68 of file IShowerTool.h.
|
inlinevirtualinherited |
Reimplemented in ShowerRecoTools::ShowerPCADirection, ShowerRecoTools::ShowerPandoraSlidingFitTrackFinder, and ShowerRecoTools::ShowerExampleTool.
Definition at line 62 of file IShowerTool.h.
|
inlineprotectedinherited |
Definition at line 137 of file IShowerTool.h.
References art::ProducesCollector::produces(), and reco::shower::ShowerProducedPtrsHolder::SetShowerUniqueProduerPtr().
|
inlineprivate |
Definition at line 49 of file ShowerBayesianTrucatingdEdx_tool.cc.
References CheckPoint(), ForceSeedToFit(), fPostiorCut, GetLikelihooddEdxVec(), MakeSeed(), RecurivelyAddHit(), and value.
|
inlineprivate |
Definition at line 44 of file ShowerBayesianTrucatingdEdx_tool.cc.
References fProbSeedCut.
|
private |
Definition at line 371 of file ShowerBayesianTrucatingdEdx_tool.cc.
References fNumSeedHits.
Referenced by GetLikelihooddEdxVec(), and isPosteriorProbabilityGood().
|
inlineprotectedinherited |
Definition at line 162 of file IShowerTool.h.
References reco::shower::ShowerProducedPtrsHolder::PrintPtr().
Referenced by ShowerRecoTools::ShowerExampleTool::CalculateElement().
|
inlineprotectedinherited |
Definition at line 160 of file IShowerTool.h.
References reco::shower::ShowerProducedPtrsHolder::PrintPtrs().
Referenced by ShowerRecoTools::ShowerExampleTool::CalculateElement().
|
private |
Definition at line 416 of file ShowerBayesianTrucatingdEdx_tool.cc.
References CheckPoint(), DEFINE_ART_CLASS_TOOL, and fnSkipHits.
Referenced by GetLikelihooddEdxVec(), and isPosteriorProbabilityGood().
|
inlineinherited |
Definition at line 46 of file IShowerTool.h.
|
inlineinherited |
Definition at line 65 of file IShowerTool.h.
|
private |
Definition at line 75 of file ShowerBayesianTrucatingdEdx_tool.cc.
Referenced by CalculatePosterior(), CheckPoint(), and ShowerBayesianTrucatingdEdx().
|
private |
Definition at line 80 of file ShowerBayesianTrucatingdEdx_tool.cc.
Referenced by CalculateElement().
|
private |
Definition at line 87 of file ShowerBayesianTrucatingdEdx_tool.cc.
Referenced by CalculateElement().
|
private |
Definition at line 85 of file ShowerBayesianTrucatingdEdx_tool.cc.
Referenced by RecurivelyAddHit().
|
private |
Definition at line 81 of file ShowerBayesianTrucatingdEdx_tool.cc.
Referenced by MakeSeed().
|
private |
Definition at line 84 of file ShowerBayesianTrucatingdEdx_tool.cc.
Referenced by isPosteriorProbabilityGood().
|
private |
Definition at line 83 of file ShowerBayesianTrucatingdEdx_tool.cc.
Referenced by CheckPoint().
|
private |
Definition at line 82 of file ShowerBayesianTrucatingdEdx_tool.cc.
Referenced by ForceSeedToFit(), and isProbabilityGood().
|
private |
Definition at line 88 of file ShowerBayesianTrucatingdEdx_tool.cc.
Referenced by CalculateElement().
|
private |
Definition at line 86 of file ShowerBayesianTrucatingdEdx_tool.cc.
Referenced by CalculateElement().
|
private |
Definition at line 79 of file ShowerBayesianTrucatingdEdx_tool.cc.
Referenced by CalculateElement().
|
private |
Definition at line 76 of file ShowerBayesianTrucatingdEdx_tool.cc.
Referenced by CalculatePosterior(), CheckPoint(), and ShowerBayesianTrucatingdEdx().