Functor implementing LDF. More...
#include <MdLDFFinderAG/Likelihood.h>
Public Types | |
enum | FitParameter { eShowerSize = 0, eBeta = 1, eCoreX = 2, eCoreY = 3 } |
Public Member Functions | |
double | DistanceInShowerPlane (const utl::Vector v) const |
utl::Vector | GetAxis () const |
double | GetZcore () const |
Likelihood (const VLDFFunctor *const ldfFnc, const bool useSil, const unsigned int silLim, const bool useSat, const size_t satLim) | |
Creates a functor. More... | |
ROOT::Minuit2::FunctionMinimum | Minimize (std::vector< double > &par, std::vector< double > &epar, const std::vector< bool > &fpar) const |
double | operator() (const std::vector< double > &par) const |
Perform the actual count. More... | |
void | SetAxis (utl::Vector axis) |
void | SetCandidateCounterList (CounterList cl) |
void | SetSilentCounterList (CounterList cl) |
void | SetZcore (double z) |
double | Up () const |
Protected Member Functions | |
double | CalculateSilentLikelihood (const std::vector< double > &par) const |
Likelihood of silent counters. More... | |
Protected Attributes | |
double | cosTheta |
CounterList | fCandidateCounters |
const VLDFFunctor * | fLDFunction |
CounterList | fSilentCounters |
unsigned int | fSilentLimit |
bool | fUseSilent |
utl::Vector | rAxis |
utl::CoordinateSystemPtr | siteCS |
double | zcore |
Private Member Functions | |
double | CalculateCandidateLikelihood (const std::vector< double > &par) const |
Private Attributes | |
size_t | fSaturationLimit |
bool | fUseSaturated |
|
inherited |
Enumerator | |
---|---|
eShowerSize | |
eBeta | |
eCoreX | |
eCoreY |
Definition at line 57 of file VMinMethodFunctor.h.
MdLDFFinderAG::Likelihood::Likelihood | ( | const VLDFFunctor *const | ldfFnc, |
const bool | useSil, | ||
const unsigned int | silLim, | ||
const bool | useSat, | ||
const size_t | satLim | ||
) |
Creates a functor.
Definition at line 11 of file Likelihood.cc.
References MdLDFFinderAG::VMinMethodFunctor::fLDFunction, fSaturationLimit, MdLDFFinderAG::VMinMethodFunctor::fSilentLimit, fUseSaturated, MdLDFFinderAG::VMinMethodFunctor::fUseSilent, and MdLDFFinderAG::VMinMethodFunctor::siteCS.
|
private |
Definition at line 38 of file Likelihood.cc.
References MdLDFFinderAG::VMinMethodFunctor::cosTheta, MdLDFFinderAG::VMinMethodFunctor::DistanceInShowerPlane(), MdLDFFinderAG::VMinMethodFunctor::fCandidateCounters, mdet::MDetector::GetCounter(), mevt::Counter::GetId(), det::DetectorComponent< C, ManagerProvider >::GetId(), mdet::Counter::GetModule(), det::MPositionable< Config >::GetPosition(), utl::LogarithmOfNormalComplementCDF(), mevt::Counter::ModulesBegin(), mevt::Counter::ModulesEnd(), MdLDFFinderAG::VMinMethodFunctor::siteCS, sqrt(), and MdLDFFinderAG::VMinMethodFunctor::zcore.
Referenced by operator()().
|
protectedinherited |
Likelihood of silent counters.
Counters are triggered by a partner SD station. A counter is then silent because the signal in the SD station is "weak". We model this "weakness" as few muons.
Definition at line 130 of file VMinMethodFunctor.cc.
References MdLDFFinderAG::VMinMethodFunctor::DistanceInShowerPlane(), MdLDFFinderAG::VMinMethodFunctor::fSilentCounters, MdLDFFinderAG::VMinMethodFunctor::fSilentLimit, mdet::MDetector::GetCounter(), mevt::Counter::GetId(), det::MPositionable< Config >::GetPosition(), MdLDFFinderAG::VMinMethodFunctor::siteCS, and MdLDFFinderAG::VMinMethodFunctor::zcore.
Referenced by MdLDFFinderAG::Likelihood2::operator()(), MdLDFFinderAG::Likelihood3::operator()(), and operator()().
|
inlineinherited |
Definition at line 86 of file VMinMethodFunctor.h.
References utl::cross(), utl::AxialVector::GetMag(), and MdLDFFinderAG::VMinMethodFunctor::rAxis.
Referenced by MdLDFFinderAG::Likelihood2::CalculateCandidateLikelihood(), MdLDFFinderAG::Likelihood3::CalculateCandidateLikelihood(), CalculateCandidateLikelihood(), and MdLDFFinderAG::VMinMethodFunctor::CalculateSilentLikelihood().
|
inlineinherited |
Definition at line 84 of file VMinMethodFunctor.h.
References MdLDFFinderAG::VMinMethodFunctor::rAxis.
|
inlineinherited |
Definition at line 81 of file VMinMethodFunctor.h.
References MdLDFFinderAG::VMinMethodFunctor::zcore.
|
inherited |
mnpars.SetLowerLimit("Nmu", fSilentLimit);
Definition at line 17 of file VMinMethodFunctor.cc.
References DEBUGLOG, MdLDFFinderAG::VMinMethodFunctor::eBeta, MdLDFFinderAG::VMinMethodFunctor::eCoreX, MdLDFFinderAG::VMinMethodFunctor::eCoreY, MdLDFFinderAG::VMinMethodFunctor::eShowerSize, MdLDFFinderAG::VMinMethodFunctor::fCandidateCounters, MdLDFFinderAG::VMinMethodFunctor::fSilentCounters, and INFO.
|
virtual |
Perform the actual count.
samples | The trace to examine in order to detect the muons. |
recData | The data where to put the detected muon information. |
Implements MdLDFFinderAG::VMinMethodFunctor.
Definition at line 23 of file Likelihood.cc.
References CalculateCandidateLikelihood(), MdLDFFinderAG::VMinMethodFunctor::CalculateSilentLikelihood(), and MdLDFFinderAG::VMinMethodFunctor::fUseSilent.
|
inherited |
Definition at line 122 of file VMinMethodFunctor.cc.
References MdLDFFinderAG::VMinMethodFunctor::cosTheta, utl::BasicVector< HepVector >::GetCosTheta(), MdLDFFinderAG::VMinMethodFunctor::rAxis, and MdLDFFinderAG::VMinMethodFunctor::siteCS.
|
inlineinherited |
Definition at line 90 of file VMinMethodFunctor.h.
References MdLDFFinderAG::VMinMethodFunctor::fCandidateCounters.
|
inlineinherited |
Definition at line 91 of file VMinMethodFunctor.h.
References MdLDFFinderAG::VMinMethodFunctor::fSilentCounters.
|
inlineinherited |
Definition at line 80 of file VMinMethodFunctor.h.
References MdLDFFinderAG::VMinMethodFunctor::zcore.
|
inlinevirtual |
Implements MdLDFFinderAG::VMinMethodFunctor.
Definition at line 37 of file Likelihood.h.
|
protectedinherited |
Definition at line 97 of file VMinMethodFunctor.h.
Referenced by MdLDFFinderAG::Likelihood2::CalculateCandidateLikelihood(), MdLDFFinderAG::Likelihood3::CalculateCandidateLikelihood(), CalculateCandidateLikelihood(), and MdLDFFinderAG::VMinMethodFunctor::SetAxis().
|
protectedinherited |
Definition at line 104 of file VMinMethodFunctor.h.
Referenced by MdLDFFinderAG::Likelihood2::CalculateCandidateLikelihood(), MdLDFFinderAG::Likelihood3::CalculateCandidateLikelihood(), CalculateCandidateLikelihood(), MdLDFFinderAG::VMinMethodFunctor::Minimize(), and MdLDFFinderAG::VMinMethodFunctor::SetCandidateCounterList().
|
protectedinherited |
Definition at line 99 of file VMinMethodFunctor.h.
Referenced by Likelihood(), MdLDFFinderAG::Likelihood2::Likelihood2(), and MdLDFFinderAG::Likelihood3::Likelihood3().
|
private |
Definition at line 42 of file Likelihood.h.
Referenced by Likelihood().
|
protectedinherited |
Definition at line 105 of file VMinMethodFunctor.h.
Referenced by MdLDFFinderAG::VMinMethodFunctor::CalculateSilentLikelihood(), MdLDFFinderAG::VMinMethodFunctor::Minimize(), and MdLDFFinderAG::VMinMethodFunctor::SetSilentCounterList().
|
protectedinherited |
Definition at line 102 of file VMinMethodFunctor.h.
Referenced by MdLDFFinderAG::VMinMethodFunctor::CalculateSilentLikelihood(), Likelihood(), MdLDFFinderAG::Likelihood2::Likelihood2(), and MdLDFFinderAG::Likelihood3::Likelihood3().
|
private |
Definition at line 40 of file Likelihood.h.
Referenced by Likelihood().
|
protectedinherited |
Definition at line 101 of file VMinMethodFunctor.h.
Referenced by Likelihood(), MdLDFFinderAG::Likelihood2::Likelihood2(), MdLDFFinderAG::Likelihood3::Likelihood3(), MdLDFFinderAG::Likelihood2::operator()(), MdLDFFinderAG::Likelihood3::operator()(), and operator()().
|
protectedinherited |
Definition at line 96 of file VMinMethodFunctor.h.
Referenced by MdLDFFinderAG::VMinMethodFunctor::DistanceInShowerPlane(), MdLDFFinderAG::VMinMethodFunctor::GetAxis(), and MdLDFFinderAG::VMinMethodFunctor::SetAxis().
|
protectedinherited |
Definition at line 107 of file VMinMethodFunctor.h.
Referenced by MdLDFFinderAG::Likelihood2::CalculateCandidateLikelihood(), MdLDFFinderAG::Likelihood3::CalculateCandidateLikelihood(), CalculateCandidateLikelihood(), MdLDFFinderAG::VMinMethodFunctor::CalculateSilentLikelihood(), Likelihood(), MdLDFFinderAG::Likelihood2::Likelihood2(), MdLDFFinderAG::Likelihood3::Likelihood3(), and MdLDFFinderAG::VMinMethodFunctor::SetAxis().
|
protectedinherited |
Definition at line 95 of file VMinMethodFunctor.h.
Referenced by MdLDFFinderAG::Likelihood2::CalculateCandidateLikelihood(), MdLDFFinderAG::Likelihood3::CalculateCandidateLikelihood(), CalculateCandidateLikelihood(), MdLDFFinderAG::VMinMethodFunctor::CalculateSilentLikelihood(), MdLDFFinderAG::VMinMethodFunctor::GetZcore(), and MdLDFFinderAG::VMinMethodFunctor::SetZcore().