Pandora
Pandora source code navigator
Loading...
Searching...
No Matches
ShowerRecoTools::ShowerBayesianTrucatingdEdx Class Reference
Inheritance diagram for ShowerRecoTools::ShowerBayesianTrucatingdEdx:
Collaboration diagram for ShowerRecoTools::ShowerBayesianTrucatingdEdx:

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::LArPandoraShowerAlgGetLArPandoraShowerAlg () 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
 
reco::shower::ShowerProducedPtrsHolderUniquePtrs
 
shower::LArPandoraShowerAlg fLArPandoraShowerAlg
 
bool fRunEventDisplay
 
art::ProducesCollector * collectorPtr
 

Detailed Description

Definition at line 26 of file ShowerBayesianTrucatingdEdx_tool.cc.

Constructor & Destructor Documentation

◆ ShowerBayesianTrucatingdEdx()

ShowerRecoTools::ShowerBayesianTrucatingdEdx::ShowerBayesianTrucatingdEdx ( const fhicl::ParameterSet &  pset)

Definition at line 91 of file ShowerBayesianTrucatingdEdx_tool.cc.

Member Function Documentation

◆ AddAssociations()

virtual int ShowerRecoTools::IShowerTool::AddAssociations ( const art::Ptr< recob::PFParticle > &  pfpPtr,
art::Event &  Event,
reco::shower::ShowerElementHolder ShowerEleHolder 
)
inlinevirtualinherited

◆ AddSingle()

template<class T , class A , class B >
void ShowerRecoTools::IShowerTool::AddSingle ( A &  a,
B &  b,
std::string  Name 
)
inlineprotectedinherited

Definition at line 152 of file IShowerTool.h.

Here is the call graph for this function:

◆ CalculateElement()

int ShowerRecoTools::ShowerBayesianTrucatingdEdx::CalculateElement ( const art::Ptr< recob::PFParticle > &  pfparticle,
art::Event &  Event,
reco::shower::ShowerElementHolder ShowerEleHolder 
)
overridevirtual

Implements ShowerRecoTools::IShowerTool.

Definition at line 139 of file ShowerBayesianTrucatingdEdx_tool.cc.

Here is the call graph for this function:

◆ CalculatePosterior() [1/2]

double ShowerRecoTools::ShowerBayesianTrucatingdEdx::CalculatePosterior ( std::string  priorname,
std::vector< double > &  values 
)
private

Definition at line 233 of file ShowerBayesianTrucatingdEdx_tool.cc.

Here is the call graph for this function:

◆ CalculatePosterior() [2/2]

double ShowerRecoTools::ShowerBayesianTrucatingdEdx::CalculatePosterior ( std::string  priorname,
std::vector< double > &  values,
int &  minprob,
float &  mean,
float &  likelihood 
)
private

Definition at line 242 of file ShowerBayesianTrucatingdEdx_tool.cc.

Here is the caller graph for this function:

◆ CheckPoint()

bool ShowerRecoTools::ShowerBayesianTrucatingdEdx::CheckPoint ( std::string  priorname,
double &  value 
)
private

Definition at line 313 of file ShowerBayesianTrucatingdEdx_tool.cc.

Here is the caller graph for this function:

◆ ForceSeedToFit()

void ShowerRecoTools::ShowerBayesianTrucatingdEdx::ForceSeedToFit ( std::vector< double > &  SeedTrack,
std::string &  prior,
float &  mean,
double &  posterior 
)
private

Definition at line 392 of file ShowerBayesianTrucatingdEdx_tool.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetLArPandoraShowerAlg()

const shower::LArPandoraShowerAlg & ShowerRecoTools::IShowerTool::GetLArPandoraShowerAlg ( ) const
inlineprotectedinherited

Definition at line 82 of file IShowerTool.h.

Here is the caller graph for this function:

◆ GetLikelihooddEdxVec()

std::vector< double > ShowerRecoTools::ShowerBayesianTrucatingdEdx::GetLikelihooddEdxVec ( double &  electronprob,
double &  photonprob,
std::string  prior,
std::vector< double > &  dEdxVec 
)
private

Definition at line 339 of file ShowerBayesianTrucatingdEdx_tool.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetProducedElementPtr()

template<class T >
art::Ptr< T > ShowerRecoTools::IShowerTool::GetProducedElementPtr ( std::string  Name,
reco::shower::ShowerElementHolder ShowerEleHolder,
int  iter = -1 
)
inlineprotectedinherited

Definition at line 102 of file IShowerTool.h.

Here is the call graph for this function:

◆ GetVectorPtrSize()

int ShowerRecoTools::IShowerTool::GetVectorPtrSize ( std::string  Name)
inlineprotectedinherited

Definition at line 158 of file IShowerTool.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ InitaliseProducerPtr()

void ShowerRecoTools::IShowerTool::InitaliseProducerPtr ( reco::shower::ShowerProducedPtrsHolder uniqueproducerPtrs)
inlineinherited

Definition at line 68 of file IShowerTool.h.

◆ InitialiseProducers()

virtual void ShowerRecoTools::IShowerTool::InitialiseProducers ( )
inlinevirtualinherited

◆ InitialiseProduct()

template<class T >
void ShowerRecoTools::IShowerTool::InitialiseProduct ( std::string  Name,
std::string  InstanceName = "" 
)
inlineprotectedinherited

Definition at line 137 of file IShowerTool.h.

Here is the call graph for this function:

◆ isPosteriorProbabilityGood()

bool ShowerRecoTools::ShowerBayesianTrucatingdEdx::isPosteriorProbabilityGood ( double &  prob,
double &  old_posteior 
)
inlineprivate

Definition at line 49 of file ShowerBayesianTrucatingdEdx_tool.cc.

◆ isProbabilityGood()

bool ShowerRecoTools::ShowerBayesianTrucatingdEdx::isProbabilityGood ( float &  old_prob,
float &  new_prob 
)
inlineprivate

Definition at line 44 of file ShowerBayesianTrucatingdEdx_tool.cc.

◆ MakeSeed()

std::vector< double > ShowerRecoTools::ShowerBayesianTrucatingdEdx::MakeSeed ( std::vector< double > &  dEdxVec)
private

Definition at line 371 of file ShowerBayesianTrucatingdEdx_tool.cc.

Here is the caller graph for this function:

◆ PrintPtr()

void ShowerRecoTools::IShowerTool::PrintPtr ( std::string  Name)
inlineprotectedinherited

Definition at line 162 of file IShowerTool.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ PrintPtrs()

void ShowerRecoTools::IShowerTool::PrintPtrs ( )
inlineprotectedinherited

Definition at line 160 of file IShowerTool.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ RecurivelyAddHit()

void ShowerRecoTools::ShowerBayesianTrucatingdEdx::RecurivelyAddHit ( std::vector< double > &  SeedTrack,
std::vector< double > &  dEdxVec,
std::string &  prior,
int &  SkippedHitsNum,
float &  old_mean,
double &  old_posteior 
)
private

Definition at line 416 of file ShowerBayesianTrucatingdEdx_tool.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ RunShowerTool()

int ShowerRecoTools::IShowerTool::RunShowerTool ( const art::Ptr< recob::PFParticle > &  pfparticle,
art::Event &  Event,
reco::shower::ShowerElementHolder ShowerEleHolder,
std::string  evd_display_name_append = "" 
)
inlineinherited

Definition at line 46 of file IShowerTool.h.

Here is the call graph for this function:

◆ SetPtr()

void ShowerRecoTools::IShowerTool::SetPtr ( art::ProducesCollector *  collector)
inlineinherited

Definition at line 65 of file IShowerTool.h.

Member Data Documentation

◆ collectorPtr

art::ProducesCollector* ShowerRecoTools::IShowerTool::collectorPtr
privateinherited

Definition at line 97 of file IShowerTool.h.

◆ electronpriorHist

TH1F* ShowerRecoTools::ShowerBayesianTrucatingdEdx::electronpriorHist
private

Definition at line 75 of file ShowerBayesianTrucatingdEdx_tool.cc.

◆ fdEdxInputLabel

std::string ShowerRecoTools::ShowerBayesianTrucatingdEdx::fdEdxInputLabel
private

Definition at line 80 of file ShowerBayesianTrucatingdEdx_tool.cc.

◆ fDefineBestPlane

bool ShowerRecoTools::ShowerBayesianTrucatingdEdx::fDefineBestPlane
private

Definition at line 87 of file ShowerBayesianTrucatingdEdx_tool.cc.

◆ fLArPandoraShowerAlg

shower::LArPandoraShowerAlg ShowerRecoTools::IShowerTool::fLArPandoraShowerAlg
privateinherited

Definition at line 92 of file IShowerTool.h.

◆ fnSkipHits

int ShowerRecoTools::ShowerBayesianTrucatingdEdx::fnSkipHits
private

Definition at line 85 of file ShowerBayesianTrucatingdEdx_tool.cc.

◆ fNumSeedHits

int ShowerRecoTools::ShowerBayesianTrucatingdEdx::fNumSeedHits
private

Definition at line 81 of file ShowerBayesianTrucatingdEdx_tool.cc.

◆ fPostiorCut

float ShowerRecoTools::ShowerBayesianTrucatingdEdx::fPostiorCut
private

Definition at line 84 of file ShowerBayesianTrucatingdEdx_tool.cc.

◆ fProbPointCut

float ShowerRecoTools::ShowerBayesianTrucatingdEdx::fProbPointCut
private

Definition at line 83 of file ShowerBayesianTrucatingdEdx_tool.cc.

◆ fProbSeedCut

float ShowerRecoTools::ShowerBayesianTrucatingdEdx::fProbSeedCut
private

Definition at line 82 of file ShowerBayesianTrucatingdEdx_tool.cc.

◆ fRunEventDisplay

bool ShowerRecoTools::IShowerTool::fRunEventDisplay
privateinherited

Definition at line 95 of file IShowerTool.h.

◆ fShowerBestPlaneOutputLabel

std::string ShowerRecoTools::ShowerBayesianTrucatingdEdx::fShowerBestPlaneOutputLabel
private

Definition at line 88 of file ShowerBayesianTrucatingdEdx_tool.cc.

◆ fShowerdEdxOutputLabel

std::string ShowerRecoTools::ShowerBayesianTrucatingdEdx::fShowerdEdxOutputLabel
private

Definition at line 86 of file ShowerBayesianTrucatingdEdx_tool.cc.

◆ fVerbose

int ShowerRecoTools::ShowerBayesianTrucatingdEdx::fVerbose
private

Definition at line 79 of file ShowerBayesianTrucatingdEdx_tool.cc.

◆ photonpriorHist

TH1F* ShowerRecoTools::ShowerBayesianTrucatingdEdx::photonpriorHist
private

Definition at line 76 of file ShowerBayesianTrucatingdEdx_tool.cc.

◆ UniquePtrs

reco::shower::ShowerProducedPtrsHolder* ShowerRecoTools::IShowerTool::UniquePtrs
privateinherited

Definition at line 89 of file IShowerTool.h.


The documentation for this class was generated from the following file: