Fit the LDF and the universe. More...
#include <LDFFinderOG/LDFFinder.h>
Classes | |
struct | CurvatureFitInterface |
struct | LDFFitInterface |
struct | Stage0 |
struct | Stage1 |
struct | Stage2 |
struct | Stage3 |
Public Types | |
enum | CoreType { eMC, eHybrid, eFit } |
enum | ResultFlag { eSuccess, eFailure, eBreakLoop, eContinueLoop } |
Flag returned by module methods to the RunController. More... | |
enum | VersionInfoType { eFilename = 1, eRevisionNumber = 2, eDate = 3, eTime = 4, eLastEditor = 5 } |
Different types of version info that can be retrieved from GetVersionInfo. More... | |
Public Member Functions | |
fwk::VModule::ResultFlag | Finish () |
Finish: invoked at end of the run (NOT end of the event) More... | |
utl::Stopwatch & | GetStopwatch () |
const utl::Stopwatch & | GetStopwatch () const |
std::string | GetVersionInfo (const VersionInfoType v) const |
Retrieve different sorts of module version info. More... | |
fwk::VModule::ResultFlag | Init () |
Initialize: invoked at beginning of run (NOT beginning of event) More... | |
void | InitTiming () |
REGISTER_MODULE ("LDFFinderOG", LDFFinder) | |
fwk::VModule::ResultFlag | Run (evt::Event &event) |
Run: invoked once per event. More... | |
ResultFlag | RunWithTiming (evt::Event &event) |
Static Public Member Functions | |
static std::string | GetResultFlagByName (const ResultFlag flag) |
Static Public Attributes | |
static LDFFunctionType | fgLDFType |
Private Types | |
enum | InfoLevel { eNone = 0, eFinal = 1, eIntermediate = 2, eObscure = 3, eMinuit = 4 } |
Private Member Functions | |
double | EstimateChi2 (const LDFFitInterface &fi) const |
Estimate Chi2 using Minuit. More... | |
bool | EstimateCurvature (CurvatureFitInterface &fi) const |
void | EstimateEnergy (LDFFitInterface &fi) const |
void | EstimateLDF (LDFFitInterface &fi, const utl::Point &core) const |
void | EstimateLDFbySeedStations (LDFFitInterface &fi, const utl::Point &core) const |
double | EstimateNStationsInFit (const LDFFitInterface &fi) const |
void | EstimateS1000 (LDFFitInterface &fi) const |
First guess of S1000 to give a starting point. More... | |
double | FitCurvatureDriver (CurvatureFitInterface &fi) const |
bool | FitLDF (LDFFitInterface &fi, const int nStations) const |
double | FitLDFDriver (LDFFitInterface &fi) const |
Fit using Minuit. More... | |
bool | FixBeta (const LDFFitInterface &fi) const |
bool | FixCore (const evt::Event &event, Point &core, TimeStamp &coreTime, Vector &axis) const |
bool | FixGamma (const LDFFitInterface &fi) const |
void | OutputResults (const evt::Event &event) const |
void | OutputStations (const LDFFitInterface &fi) const |
double | ParameterizedRc (const LDFFitInterface &fi) const |
void | SetRecData (evt::Event &event, const LDFFitInterface &lfi, const CurvatureFitInterface &cfi) const |
Static Private Member Functions | |
static void | CurvatureFitFnc (int &nPar, double *const grad, double &value, double *const par, const int iFlag) |
static void | LDFFitChi2Fnc (int &nPar, double *const grad, double &value, double *const par, const int iFlag) |
static void | LDFFitMaxLikeFnc (int &nPar, double *const grad, double &value, double *const par, const int iFlag) |
Likelihood function to minimize. More... | |
Private Attributes | |
int | fCoreType |
EnergyConversion | fEnergyConversion |
int | fInfoLevel |
double | fMaxBaryToCoreDistance |
double | fMaxChi2 |
double | fMaxTheta |
bool | fMinuitOutput |
utl::RandomEngine * | fRandomEngine |
int | fRoptN |
double | fSilentRadiusTransition |
struct LDFFinderOG::LDFFinder::Stage0 | fStage0 |
struct LDFFinderOG::LDFFinder::Stage1 | fStage1 |
struct LDFFinderOG::LDFFinder::Stage2 | fStage2 |
struct LDFFinderOG::LDFFinder::Stage3 | fStage3 |
bool | fUseMaxLike |
bool | fUseSilentStations |
Static Private Attributes | |
static utl::Point | fgBarycenter |
static utl::TimeStamp | fgBaryTime |
static const sevt::SEvent * | fgCurrentSEvent |
static bool | fgFixLDF |
static utl::CoordinateSystemPtr | fgLocalCS |
static bool | fgLowerLimit |
static double | fgNKGFermiMu |
static double | fgNKGFermiTau |
static double | fgNoRecovery |
static utl::Vector | fgShowerAxis |
static double | fgSilentMaxRadius |
static double | fgSilentRadiusTransition |
static double | fgSilentSignalThreshold |
static bool | fgUseSilentStations |
Fit the LDF and the universe.
Fit is performed in several stages:
Stage 0: (no actual minimization)
Estimate LDF slope from the shower zenith angle
.
Estimate from the station closest to 1000m distance to core (or barycenter).
Definition at line 62 of file ZombieGraveyard/LDFFinderOG/LDFFinder.h.
Enumerator | |
---|---|
eMC | |
eHybrid | |
eFit |
Definition at line 208 of file ZombieGraveyard/LDFFinderOG/LDFFinder.h.
|
private |
Enumerator | |
---|---|
eNone | |
eFinal | |
eIntermediate | |
eObscure | |
eMinuit |
Definition at line 196 of file ZombieGraveyard/LDFFinderOG/LDFFinder.h.
|
inherited |
Flag returned by module methods to the RunController.
Enumerator | |
---|---|
eSuccess |
Report success to RunController. |
eFailure |
Report failure to RunController, causing RunController to terminate execution. |
eBreakLoop |
Break current loop. It works for nested loops too! |
eContinueLoop |
Skip remaining modules in the current loop and continue with next iteration of the loop. |
|
inherited |
|
staticprivate |
Definition at line 1957 of file ZombieGraveyard/LDFFinderOG/LDFFinder.cc.
References sevt::SEvent::CandidateStationsBegin(), sevt::SEvent::CandidateStationsEnd(), LDFFinderOG::complexWCounter, LDFFinderOG::complexWMessage, fgBaryTime, fgCurrentSEvent, fgLocalCS, LDFFinderOG::gCore, utl::Vector::GetMag(), sdet::Station::GetPosition(), sevt::StationRecData::GetSignalStartTime(), sdet::SDetector::GetStation(), sevt::StationRecData::GetT50(), sdet::STimeVariance::GetTimeSigma2(), sevt::StationRecData::GetTotalSignal(), utl::BasicVector< HepVector >::GetZ(), utl::kSpeedOfLight, LDFFinderOG::RPerp2(), utl::Sqr(), sqrt(), and WARNING.
Referenced by FitCurvatureDriver().
|
private |
Estimate Chi2 using Minuit.
Definition at line 1387 of file ZombieGraveyard/LDFFinderOG/LDFFinder.cc.
References eObscure, LDFFinderOG::LDFFinder::LDFFitInterface::fBeta, LDFFinderOG::LDFFinder::LDFFitInterface::fCore, LDFFinderOG::LDFFinder::LDFFitInterface::fGamma, fgLocalCS, fgUseSilentStations, fMinuitOutput, LDFFinderOG::LDFFinder::LDFFitInterface::fS1000, utl::BasicVector< HepVector >::GetX(), utl::BasicVector< HepVector >::GetY(), LDFFitChi2Fnc(), and OUT.
Referenced by FitLDF().
|
private |
Definition at line 1697 of file ZombieGraveyard/LDFFinderOG/LDFFinder.cc.
References sevt::SEvent::CandidateStationsBegin(), sevt::SEvent::CandidateStationsEnd(), LDFFinderOG::LDFFinder::CurvatureFitInterface::fAxis, LDFFinderOG::LDFFinder::CurvatureFitInterface::fCore, LDFFinderOG::LDFFinder::CurvatureFitInterface::fct0, LDFFinderOG::LDFFinder::CurvatureFitInterface::fct0Err, fgBaryTime, fgCurrentSEvent, fgLocalCS, LDFFinderOG::LDFFinder::CurvatureFitInterface::fRc, LDFFinderOG::LDFFinder::CurvatureFitInterface::fRcErr, LDFFinderOG::LDFFinder::CurvatureFitInterface::fSigmaU2, LDFFinderOG::LDFFinder::CurvatureFitInterface::fSigmaUV, LDFFinderOG::LDFFinder::CurvatureFitInterface::fSigmaV2, utl::Vector::GetMag2(), sdet::Station::GetPosition(), sdet::SDetector::GetStation(), utl::BasicVector< HepVector >::GetX(), utl::BasicVector< HepVector >::GetY(), utl::kSpeedOfLight, utl::Vector::Normalize(), G4StationSimulatorOG::p, utl::Sqr(), and sqrt().
|
private |
Definition at line 1082 of file ZombieGraveyard/LDFFinderOG/LDFFinder.cc.
References LDFFinderOG::LDFFinder::LDFFitInterface::fEnergy, fEnergyConversion, LDFFinderOG::LDFFinder::LDFFitInterface::fEnergyErr, fgLocalCS, fgShowerAxis, LDFFinderOG::LDFFinder::LDFFitInterface::fS1000, LDFFinderOG::LDFFinder::LDFFitInterface::fS1000Err, utl::BasicVector< HepVector >::GetCosTheta(), and LDFFinderOG::EnergyConversion::GetEnergy().
Referenced by EstimateLDF(), and FitLDF().
|
inlineprivate |
Definition at line 352 of file ZombieGraveyard/LDFFinderOG/LDFFinder.cc.
References galactic::EeV, eIntermediate, LDFFinderOG::EstimateBetaGamma(), EstimateEnergy(), EstimateS1000(), LDFFinderOG::LDFFinder::LDFFitInterface::fBeta, LDFFinderOG::LDFFinder::LDFFitInterface::fCore, LDFFinderOG::LDFFinder::LDFFitInterface::fEnergy, LDFFinderOG::LDFFinder::LDFFitInterface::fGamma, fgBarycenter, fgLDFType, fgLocalCS, fgShowerAxis, LDFFinderOG::LDFFinder::LDFFitInterface::fS1000, fStage0, LDFFinderOG::LDFFinder::Stage0::fUseCorePosition, utl::BasicVector< HepVector >::GetCosTheta(), OUT, and LDFFinderOG::ToString().
Referenced by Run().
|
private |
|
private |
Definition at line 1056 of file ZombieGraveyard/LDFFinderOG/LDFFinder.cc.
References LDFFinderOG::LDFFinder::LDFFitInterface::fCore, utl::Fermi(), fgCurrentSEvent, fgShowerAxis, fgSilentMaxRadius, fgSilentRadiusTransition, fgUseSilentStations, sdet::Station::GetPosition(), sdet::SDetector::GetStation(), LDFFinderOG::RPerp(), sevt::SEvent::StationsBegin(), and sevt::SEvent::StationsEnd().
|
private |
First guess of S1000 to give a starting point.
Definition at line 1026 of file ZombieGraveyard/LDFFinderOG/LDFFinder.cc.
References utl::abs(), sevt::SEvent::CandidateStationsBegin(), sevt::SEvent::CandidateStationsEnd(), LDFFinderOG::LDFFinder::LDFFitInterface::fBeta, LDFFinderOG::LDFFinder::LDFFitInterface::fGamma, fgBarycenter, fgCurrentSEvent, fgLDFType, fgNKGFermiMu, fgNKGFermiTau, fgShowerAxis, LDFFinderOG::LDFFinder::LDFFitInterface::fS1000, sdet::Station::GetPosition(), sdet::SDetector::GetStation(), LDFFinderOG::LDFFunction(), galactic::meter, and LDFFinderOG::RPerp().
Referenced by EstimateLDF().
|
virtual |
Finish: invoked at end of the run (NOT end of the event)
This method is for things that should be done at the end of the run (for example, closing files or writing out histograms) {You must override this method in your concrete module}
Implements fwk::VModule.
Definition at line 1282 of file ZombieGraveyard/LDFFinderOG/LDFFinder.cc.
References fwk::VModule::eSuccess.
|
private |
Definition at line 1837 of file ZombieGraveyard/LDFFinderOG/LDFFinder.cc.
References LDFFinderOG::complexWCounter, LDFFinderOG::complexWMessage, CurvatureFitFnc(), eIntermediate, eObscure, LDFFinderOG::LDFFinder::CurvatureFitInterface::fAxis, LDFFinderOG::LDFFinder::CurvatureFitInterface::fAxisErr, LDFFinderOG::LDFFinder::CurvatureFitInterface::fCore, LDFFinderOG::LDFFinder::CurvatureFitInterface::fct0, LDFFinderOG::LDFFinder::CurvatureFitInterface::fct0Err, LDFFinderOG::LDFFinder::CurvatureFitInterface::fFixedAxis, LDFFinderOG::LDFFinder::CurvatureFitInterface::fFixedRc, fgLocalCS, fMinuitOutput, LDFFinderOG::LDFFinder::CurvatureFitInterface::fRc, LDFFinderOG::LDFFinder::CurvatureFitInterface::fRcErr, LDFFinderOG::LDFFinder::CurvatureFitInterface::fSigmaU2, LDFFinderOG::LDFFinder::CurvatureFitInterface::fSigmaUV, LDFFinderOG::LDFFinder::CurvatureFitInterface::fSigmaV2, LDFFinderOG::gCore, utl::BasicVector< HepVector >::GetX(), utl::BasicVector< HepVector >::GetY(), utl::kilometer, utl::kSpeedOfLight, galactic::meter, OUT, utl::Sqr(), sqrt(), and WARNING.
Referenced by Run().
|
inlineprivate |
Definition at line 381 of file ZombieGraveyard/LDFFinderOG/LDFFinder.cc.
References galactic::EeV, eFit, eIntermediate, EstimateChi2(), EstimateEnergy(), LDFFinderOG::LDFFinder::LDFFitInterface::fBeta, LDFFinderOG::LDFFinder::LDFFitInterface::fBetaErr, LDFFinderOG::LDFFinder::LDFFitInterface::fChi2, LDFFinderOG::LDFFinder::LDFFitInterface::fCore, LDFFinderOG::LDFFinder::LDFFitInterface::fCoreErr, fCoreType, LDFFinderOG::LDFFinder::LDFFitInterface::fEnergy, LDFFinderOG::LDFFinder::LDFFitInterface::fEnergyErr, LDFFinderOG::LDFFinder::LDFFitInterface::fFixedBeta, LDFFinderOG::LDFFinder::LDFFitInterface::fFixedGamma, LDFFinderOG::LDFFinder::LDFFitInterface::fGamma, LDFFinderOG::LDFFinder::LDFFitInterface::fGammaErr, fgBarycenter, fgLocalCS, fgUseSilentStations, FitLDFDriver(), LDFFinderOG::LDFFinder::LDFFitInterface::fLikelihood, fMaxBaryToCoreDistance, LDFFinderOG::LDFFinder::LDFFitInterface::fMaxChi2, LDFFinderOG::LDFFinder::LDFFitInterface::fNdof, LDFFinderOG::LDFFinder::LDFFitInterface::fS1000, LDFFinderOG::LDFFinder::LDFFitInterface::fS1000Err, fUseMaxLike, LDFFinderOG::LDFFinder::LDFFitInterface::fUseSilents, det::if(), km, OUT, and LDFFinderOG::ToString().
Referenced by Run().
|
private |
Fit using Minuit.
Definition at line 1290 of file ZombieGraveyard/LDFFinderOG/LDFFinder.cc.
References eFit, eObscure, ERROR, LDFFinderOG::EstimateBetaGamma(), LDFFinderOG::LDFFinder::LDFFitInterface::fBeta, LDFFinderOG::LDFFinder::LDFFitInterface::fBetaErr, LDFFinderOG::LDFFinder::LDFFitInterface::fCore, LDFFinderOG::LDFFinder::LDFFitInterface::fCoreErr, fCoreType, LDFFinderOG::LDFFinder::LDFFitInterface::fErrMatrix, LDFFinderOG::LDFFinder::LDFFitInterface::fFixedBeta, LDFFinderOG::LDFFinder::LDFFitInterface::fFixedGamma, LDFFinderOG::LDFFinder::LDFFitInterface::fGamma, LDFFinderOG::LDFFinder::LDFFitInterface::fGammaErr, fgLDFType, fgLocalCS, fgShowerAxis, fMinuitOutput, LDFFinderOG::LDFFinder::LDFFitInterface::fS1000, LDFFinderOG::LDFFinder::LDFFitInterface::fS1000Err, fUseMaxLike, utl::BasicVector< HepVector >::GetCosTheta(), utl::BasicVector< HepVector >::GetX(), utl::BasicVector< HepVector >::GetY(), LDFFitChi2Fnc(), LDFFitMaxLikeFnc(), galactic::meter, and OUT.
Referenced by FitLDF().
|
private |
Definition at line 904 of file ZombieGraveyard/LDFFinderOG/LDFFinder.cc.
References sevt::SEvent::CandidateStationsBegin(), sevt::SEvent::CandidateStationsEnd(), eIntermediate, LDFFinderOG::LDFFinder::LDFFitInterface::fCore, fgCurrentSEvent, fgShowerAxis, sdet::Station::GetPosition(), sdet::SDetector::GetStation(), galactic::meter, OUT, and LDFFinderOG::RPerp().
Referenced by Run().
|
private |
Definition at line 773 of file ZombieGraveyard/LDFFinderOG/LDFFinder.cc.
References Angle(), utl::CosAngle(), eHybrid, eMC, ERROR, fevt::FEvent::EyesBegin(), fevt::FEvent::EyesEnd(), fCoreType, fgBarycenter, fgLocalCS, fMaxBaryToCoreDistance, evt::ShowerFRecData::GetAxis(), fevt::EyeRecData::GetChiZero(), fevt::EyeRecData::GetChiZeroError(), evt::ShowerFRecData::GetCorePosition(), evt::ShowerSimData::GetDirection(), fdet::Eye::GetEyeCoordinateSystem(), fevt::EyeRecData::GetFRecShower(), utl::Vector::GetMag(), fdet::Eye::GetPosition(), evt::ShowerSimData::GetPosition(), fevt::EyeRecData::GetRp(), fevt::EyeRecData::GetRpChi0Correlation(), fevt::EyeRecData::GetRpError(), fevt::EyeRecData::GetSDPFitNDof(), fevt::EyeRecData::GetSDPPhiError(), fevt::EyeRecData::GetTimeFitNDof(), evt::ShowerSimData::GetTimeStamp(), fevt::EyeRecData::GetTZero(), evt::Event::HasFEvent(), fevt::EyeRecData::HasFRecShower(), evt::Event::HasSimShower(), utl::kilometer, utl::kPi, utl::kSpeedOfLight, ns, utl::Sqr(), and sqrt().
Referenced by Run().
|
private |
Definition at line 965 of file ZombieGraveyard/LDFFinderOG/LDFFinder.cc.
References sevt::SEvent::CandidateStationsBegin(), sevt::SEvent::CandidateStationsEnd(), eIntermediate, LDFFinderOG::LDFFinder::LDFFitInterface::fCore, fgCurrentSEvent, fgShowerAxis, sdet::Station::GetPosition(), sdet::SDetector::GetStation(), galactic::meter, OUT, and LDFFinderOG::RPerp().
Referenced by Run().
|
staticinherited |
Definition at line 8 of file VModule.cc.
References fwk::VModule::eBreakLoop, fwk::VModule::eContinueLoop, fwk::VModule::eFailure, and fwk::VModule::eSuccess.
Referenced by fwk::RunController::DoNextInSequence(), fwk::RunController::FinishBranch(), and fwk::RunController::InitBranch().
|
inlineinherited |
Definition at line 106 of file VModule.h.
References fwk::VModule::fStopwatch.
|
inlineinherited |
Definition at line 107 of file VModule.h.
References fwk::VModule::fStopwatch.
|
inherited |
Retrieve different sorts of module version info.
Definition at line 26 of file VModule.cc.
Referenced by fwk::CentralConfig::GetConfig(), ThresholdCalculatorKG::ThresholdCalculator::Init(), fdDoubleBumpFinder::FdDoubleBumpFinder::Init(), LaserGeneratorNA::LaserGenerator::Init(), LaserLightSimulatorNA::LaserLightSimulator::Init(), FdElectronicsSimulatorOG::FdElectronicsSimulator::Init(), TelescopeSimulatorKG::TelescopeSimulator::Init(), TelescopeSimulatorKG2::TelescopeSimulator::Init(), SdSimpleSimKG::SdSimpleSim::Init(), ShowerPhotonGeneratorOG::ShowerPhotonGenerator::Init(), and testRunController::testModuleVersionInfo().
|
virtual |
Initialize: invoked at beginning of run (NOT beginning of event)
This method is for things that should be done once at the beginning of a run (for example, booking histograms, performing calculations that need to be done only once, initializing parameters) {You must override this method in your concrete module}
Implements fwk::VModule.
Definition at line 235 of file ZombieGraveyard/LDFFinderOG/LDFFinder.cc.
References degree, fwk::VModule::eFailure, eFit, eHybrid, eMC, eMinuit, LDFFinderOG::eNKG, LDFFinderOG::eNKGFermi, eNone, LDFFinderOG::ePL, ERROR, fwk::VModule::eSuccess, LDFFinderOG::EnergyConversion::fAttenuationPar1, LDFFinderOG::EnergyConversion::fAttenuationPar2, LDFFinderOG::EnergyConversion::fAttenuationPar3, fCoreType, fEnergyConversion, LDFFinderOG::EnergyConversion::fEnergyS38Const, LDFFinderOG::EnergyConversion::fEnergyS38Slope, fgLDFType, fgNKGFermiMu, fgNKGFermiTau, fgNoRecovery, fgSilentMaxRadius, fgSilentRadiusTransition, fgSilentSignalThreshold, fInfoLevel, LDFFinderOG::LDFFinder::Stage3::fMaxAxisAngleDifference, fMaxBaryToCoreDistance, fMaxChi2, LDFFinderOG::LDFFinder::Stage1::fMaxChi2, fMaxTheta, LDFFinderOG::LDFFinder::Stage3::fMinNumberForFullCurvatureFit, LDFFinderOG::LDFFinder::Stage0::fMinNumberOfStations, LDFFinderOG::LDFFinder::Stage1::fMinNumberOfStations, LDFFinderOG::LDFFinder::Stage3::fMinNumberOfStations, LDFFinderOG::LDFFinder::Stage2::fMinNumberRelaxBeta, LDFFinderOG::LDFFinder::Stage2::fMinNumberRelaxGamma, fMinuitOutput, fRoptN, fStage0, fStage1, fStage2, fStage3, LDFFinderOG::LDFFinder::Stage0::fUseCorePosition, fUseMaxLike, fUseSilentStations, utl::Branch::GetChild(), utl::Branch::GetData(), fwk::CentralConfig::GetTopBranch(), and INFO.
|
inlineinherited |
Definition at line 95 of file VModule.h.
References fwk::VModule::fStopwatch, and utl::Stopwatch::Reset().
|
staticprivate |
Definition at line 1591 of file ZombieGraveyard/LDFFinderOG/LDFFinder.cc.
References dev, utl::wcd::eGAP2012_012, LDFFinderOG::EstimateBetaGamma(), utl::Fermi(), fgCurrentSEvent, fgFixLDF, fgLDFType, fgLocalCS, fgNKGFermiMu, fgNKGFermiTau, fgNoRecovery, fgShowerAxis, fgSilentMaxRadius, fgSilentRadiusTransition, fgSilentSignalThreshold, fgUseSilentStations, utl::BasicVector< HepVector >::GetCosTheta(), sdet::Station::GetPosition(), sdet::SDetector::GetStation(), LDFFinderOG::LDFFunction(), LDFFinderOG::LDFFunctionSecondDerivative(), max, std::pow(), LDFFinderOG::RPerp(), utl::wcd::SignalUncertaintyFactor(), utl::Sqr(), sqrt(), sevt::SEvent::StationsBegin(), and sevt::SEvent::StationsEnd().
Referenced by EstimateChi2(), and FitLDFDriver().
|
staticprivate |
Likelihood function to minimize.
Definition at line 1432 of file ZombieGraveyard/LDFFinderOG/LDFFinder.cc.
References utl::wcd::eGAP2012_012, LDFFinderOG::EstimateBetaGamma(), fgCurrentSEvent, fgFixLDF, fgLDFType, fgLocalCS, fgLowerLimit, fgNKGFermiMu, fgNKGFermiTau, fgNoRecovery, fgShowerAxis, fgUseSilentStations, utl::BasicVector< HepVector >::GetCosTheta(), sdet::Station::GetPosition(), sdet::SDetector::GetStation(), LDFFinderOG::LDFFunction(), LDFFinderOG::LDFFunctionSecondDerivative(), utl::LogarithmOfNormalComplementCDF(), utl::LogarithmOfNormalPDF(), max, LDFFinderOG::RPerp(), utl::wcd::SignalUncertaintyFactor(), utl::Sqr(), sqrt(), sevt::SEvent::StationsBegin(), and sevt::SEvent::StationsEnd().
Referenced by FitLDFDriver().
|
private |
Definition at line 189 of file ZombieGraveyard/LDFFinderOG/LDFFinder.cc.
References degree, galactic::EeV, eFinal, fgLocalCS, evt::ShowerSRecData::GetAngleChi2(), evt::ShowerSRecData::GetAngleNdof(), evt::ShowerSRecData::GetAxis(), evt::ShowerSRecData::GetBeta(), evt::ShowerSRecData::GetBetaError(), evt::ShowerSRecData::GetCoreError(), evt::ShowerSRecData::GetCorePosition(), evt::ShowerSRecData::GetCorrelationThetaPhi(), evt::ShowerSRecData::GetCorrelationXY(), evt::ShowerSRecData::GetCurvature(), evt::ShowerSRecData::GetCurvatureError(), evt::ShowerSRecData::GetEnergy(), evt::ShowerSRecData::GetEnergyError(), evt::ShowerSRecData::GetGamma(), evt::ShowerSRecData::GetGammaError(), evt::ShowerSRecData::GetLDFOptimumDistance(), evt::ShowerSRecData::GetLDFRecStage(), utl::BasicVector< HepVector >::GetPhi(), evt::ShowerSRecData::GetPhiError(), evt::ShowerSRecData::GetShowerSize(), evt::ShowerSRecData::GetShowerSizeError(), utl::BasicVector< HepVector >::GetTheta(), evt::ShowerSRecData::GetThetaError(), evt::ShowerSRecData::GetTimeResidualMean(), evt::ShowerSRecData::GetTimeResidualSpread(), km, galactic::meter, utl::nanosecond, OUT, and LDFFinderOG::ToString().
Referenced by Run().
|
private |
Definition at line 160 of file ZombieGraveyard/LDFFinderOG/LDFFinder.cc.
References LDFFinderOG::LDFFinder::LDFFitInterface::fBeta, LDFFinderOG::LDFFinder::LDFFitInterface::fGamma, fgBarycenter, fgCurrentSEvent, fgLDFType, fgNKGFermiMu, fgNKGFermiTau, fgShowerAxis, LDFFinderOG::LDFFinder::LDFFitInterface::fS1000, sdet::Station::GetPosition(), sdet::SDetector::GetStation(), LDFFinderOG::LDFFunction(), LDFFinderOG::RPerp(), sevt::SEvent::StationsBegin(), and sevt::SEvent::StationsEnd().
|
private |
Definition at line 1091 of file ZombieGraveyard/LDFFinderOG/LDFFinder.cc.
References fgLocalCS, fgShowerAxis, LDFFinderOG::LDFFinder::LDFFitInterface::fS1000, utl::BasicVector< HepVector >::GetCosTheta(), utl::kilometer, utl::s, and utl::Sqr().
Referenced by Run().
LDFFinderOG::LDFFinder::REGISTER_MODULE | ( | "LDFFinderOG" | , |
LDFFinder | |||
) |
|
virtual |
Run: invoked once per event.
This method is for things that should be done once per event {You must override this method in your concrete module}
Implements fwk::VModule.
Definition at line 440 of file ZombieGraveyard/LDFFinderOG/LDFFinder.cc.
References degree, fwk::VModule::eContinueLoop, eFinal, eFit, eIntermediate, eObscure, LDFFinderOG::EstimateBetaGamma(), EstimateLDF(), fwk::VModule::eSuccess, LDFFinderOG::LDFFinder::CurvatureFitInterface::fAxis, LDFFinderOG::LDFFinder::LDFFitInterface::fBeta, LDFFinderOG::LDFFinder::LDFFitInterface::fCore, LDFFinderOG::LDFFinder::CurvatureFitInterface::fCore, fCoreType, LDFFinderOG::LDFFinder::CurvatureFitInterface::fct0, LDFFinderOG::LDFFinder::CurvatureFitInterface::fct0Err, LDFFinderOG::LDFFinder::LDFFitInterface::fFixedBeta, LDFFinderOG::LDFFinder::LDFFitInterface::fFixedGamma, LDFFinderOG::LDFFinder::CurvatureFitInterface::fFixedRc, LDFFinderOG::LDFFinder::LDFFitInterface::fGamma, fgBarycenter, fgBaryTime, fgCurrentSEvent, fgFixLDF, fgLDFType, fgLocalCS, fgLowerLimit, fgShowerAxis, fgUseSilentStations, LDFFinderOG::RoptFit::Fit(), FitCurvatureDriver(), FitLDF(), FixBeta(), FixCore(), FixGamma(), LDFFinderOG::LDFFinder::Stage3::fMaxAxisAngleDifference, LDFFinderOG::LDFFinder::LDFFitInterface::fMaxChi2, fMaxChi2, LDFFinderOG::LDFFinder::Stage1::fMaxChi2, fMaxTheta, LDFFinderOG::LDFFinder::Stage3::fMinNumberForFullCurvatureFit, LDFFinderOG::LDFFinder::Stage0::fMinNumberOfStations, LDFFinderOG::LDFFinder::Stage1::fMinNumberOfStations, LDFFinderOG::LDFFinder::Stage3::fMinNumberOfStations, LDFFinderOG::LDFFinder::Stage2::fMinNumberRelaxBeta, LDFFinderOG::LDFFinder::Stage2::fMinNumberRelaxGamma, fMinuitOutput, LDFFinderOG::LDFFinder::CurvatureFitInterface::fRc, LDFFinderOG::LDFFinder::CurvatureFitInterface::fRcErr, LDFFinderOG::LDFFinder::LDFFitInterface::fRecStage, fRoptN, LDFFinderOG::LDFFinder::LDFFitInterface::fS1000, fStage0, fStage1, fStage2, fStage3, LDFFinderOG::LDFFinder::LDFFitInterface::fUseSilents, fUseSilentStations, evt::ShowerSRecData::GetAxis(), evt::ShowerSRecData::GetBarycenter(), evt::ShowerSRecData::GetBarycenterCoordinateSystem(), evt::ShowerSRecData::GetBarytime(), evt::ShowerSRecData::GetCorePosition(), utl::BasicVector< HepVector >::GetCosTheta(), utl::Vector::GetMag(), utl::BasicVector< HepVector >::GetPhi(), utl::BasicVector< HepVector >::GetTheta(), sevt::EventTrigger::GetTime(), sevt::SEvent::GetTrigger(), evt::Event::HasSEvent(), INFO, utl::InverseNormalCDF(), utl::kilometer, galactic::meter, utl::nanosecond, utl::NormalCDF(), OUT, OutputResults(), G4StationSimulatorOG::p, ParameterizedRc(), evt::ShowerSRecData::SetAngleErrors(), evt::ShowerSRecData::SetAxis(), evt::ShowerSRecData::SetBetaSystematics(), evt::ShowerSRecData::SetCorePosition(), evt::ShowerSRecData::SetCoreTime(), evt::ShowerSRecData::SetCurvature(), evt::ShowerSRecData::SetLDFOptimumDistance(), SetRecData(), evt::ShowerSRecData::SetShowerSizeSystematics(), LDFFinderOG::SigmaForFixedBeta(), sevt::SEvent::StationsBegin(), sevt::SEvent::StationsEnd(), and LDFFinderOG::ToString().
|
inlineinherited |
Definition at line 98 of file VModule.h.
References fwk::VModule::fStopwatch, fwk::VModule::Run(), utl::Stopwatch::Start(), and utl::Stopwatch::Stop().
Referenced by fwk::RunController::DoNextInSequence().
|
private |
Definition at line 1108 of file ZombieGraveyard/LDFFinderOG/LDFFinder.cc.
References utl::TabulatedFunctionErrors::Clear(), eFit, utl::wcd::eGAP2012_012, LDFFinderOG::LDFFinder::CurvatureFitInterface::fAxis, LDFFinderOG::LDFFinder::LDFFitInterface::fBeta, LDFFinderOG::LDFFinder::LDFFitInterface::fBetaErr, LDFFinderOG::LDFFinder::LDFFitInterface::fChi2, LDFFinderOG::LDFFinder::LDFFitInterface::fCore, LDFFinderOG::LDFFinder::LDFFitInterface::fCoreErr, fCoreType, LDFFinderOG::LDFFinder::CurvatureFitInterface::fct0, LDFFinderOG::LDFFinder::CurvatureFitInterface::fct0Err, fEnergyConversion, LDFFinderOG::LDFFinder::LDFFitInterface::fErrMatrix, LDFFinderOG::LDFFinder::CurvatureFitInterface::fFixedAxis, LDFFinderOG::LDFFinder::CurvatureFitInterface::fFixedRc, LDFFinderOG::LDFFinder::LDFFitInterface::fGamma, LDFFinderOG::LDFFinder::LDFFitInterface::fGammaErr, fgBaryTime, fgLDFType, fgLocalCS, fgLowerLimit, fgNKGFermiMu, fgNKGFermiTau, fgShowerAxis, LDFFinderOG::LDFFinder::LDFFitInterface::fLikelihood, LDFFinderOG::LDFFinder::LDFFitInterface::fNdof, LDFFinderOG::LDFFinder::CurvatureFitInterface::fRc, LDFFinderOG::LDFFinder::CurvatureFitInterface::fRcErr, LDFFinderOG::LDFFinder::LDFFitInterface::fRecStage, LDFFinderOG::LDFFinder::LDFFitInterface::fS1000, LDFFinderOG::LDFFinder::LDFFitInterface::fS1000Err, LDFFinderOG::LDFFinder::CurvatureFitInterface::fSigmaU2, LDFFinderOG::LDFFinder::CurvatureFitInterface::fSigmaUV, LDFFinderOG::LDFFinder::CurvatureFitInterface::fSigmaV2, utl::Accumulator::Average::GetAverage(), evt::ShowerSRecData::GetAxis(), evt::ShowerSRecData::GetCorePosition(), evt::ShowerSRecData::GetCoreTime(), evt::ShowerSRecData::GetCoreTimeError(), utl::BasicVector< HepVector >::GetCosTheta(), LDFFinderOG::EnergyConversion::GetEnergy(), evt::ShowerSRecData::GetLDF(), utl::Vector::GetMag(), utl::Accumulator::Max< T >::GetMax(), utl::Accumulator::Min< T >::GetMin(), utl::Accumulator::Average::GetN(), utl::BasicVector< HepVector >::GetPhi(), sdet::Station::GetPosition(), sevt::StationRecData::GetSignalStartTime(), utl::Accumulator::SampleStandardDeviation::GetStandardDeviation(), sdet::SDetector::GetStation(), utl::Accumulator::SampleVariance::GetSumOfSquares(), sevt::StationRecData::GetT50(), utl::BasicVector< HepVector >::GetTheta(), sdet::STimeVariance::GetTimeSigma2(), sevt::StationRecData::GetTotalSignal(), utl::BasicVector< HepVector >::GetX(), utl::BasicVector< HepVector >::GetY(), utl::BasicVector< HepVector >::GetZ(), evt::ShowerSRecData::HasLDF(), utl::kilometer, utl::kSpeedOfLight, LDFFinderOG::LDFFunction(), evt::ShowerSRecData::MakeLDF(), galactic::meter, utl::TabulatedFunctionErrors::PushBack(), utl::TransformerConstructor< Policy >::RotationY(), utl::TransformerConstructor< Policy >::RotationZ(), LDFFinderOG::RPerp2(), evt::ShowerSRecData::SetAngleChi2(), evt::ShowerSRecData::SetAngleErrors(), evt::ShowerSRecData::SetAxis(), sevt::StationRecData::SetAzimuthShowerPlane(), evt::ShowerSRecData::SetBeta(), evt::ShowerSRecData::SetCoreError(), evt::ShowerSRecData::SetCorePosition(), evt::ShowerSRecData::SetCoreTime(), evt::ShowerSRecData::SetCorrelationXY(), evt::ShowerSRecData::SetCurvature(), evt::ShowerSRecData::SetEnergy(), evt::ShowerSRecData::SetGamma(), evt::ShowerSRecData::SetLDFChi2(), evt::ShowerSRecData::SetLDFLikelihood(), evt::ShowerSRecData::SetLDFRecStage(), sevt::StationRecData::SetLDFResidual(), evt::ShowerSRecData::SetNKGFermiParameters(), evt::ShowerSRecData::SetNumberOfActiveStations(), sevt::StationRecData::SetResidual(), evt::ShowerSRecData::SetShowerSize(), evt::ShowerSRecData::SetShowerSizeType(), sevt::StationRecData::SetSPDistance(), evt::ShowerSRecData::SetTimeResidualMean(), evt::ShowerSRecData::SetTimeResidualSpread(), sevt::StationRecData::SetTotalSignal(), utl::wcd::SignalUncertaintyFactor(), utl::Sqr(), sqrt(), sevt::SEvent::StationsBegin(), and sevt::SEvent::StationsEnd().
Referenced by Run().
|
private |
Definition at line 163 of file ZombieGraveyard/LDFFinderOG/LDFFinder.h.
Referenced by FitLDF(), FitLDFDriver(), FixCore(), Init(), Run(), and SetRecData().
|
private |
Definition at line 194 of file ZombieGraveyard/LDFFinderOG/LDFFinder.h.
Referenced by EstimateEnergy(), Init(), and SetRecData().
|
staticprivate |
Definition at line 147 of file ZombieGraveyard/LDFFinderOG/LDFFinder.h.
Referenced by EstimateLDF(), EstimateS1000(), FitLDF(), FixCore(), OutputStations(), and Run().
|
staticprivate |
Definition at line 148 of file ZombieGraveyard/LDFFinderOG/LDFFinder.h.
Referenced by CurvatureFitFnc(), EstimateCurvature(), Run(), and SetRecData().
|
staticprivate |
Definition at line 146 of file ZombieGraveyard/LDFFinderOG/LDFFinder.h.
Referenced by CurvatureFitFnc(), EstimateCurvature(), EstimateNStationsInFit(), EstimateS1000(), FixBeta(), FixGamma(), LDFFitChi2Fnc(), LDFFitMaxLikeFnc(), OutputStations(), and Run().
|
staticprivate |
Definition at line 155 of file ZombieGraveyard/LDFFinderOG/LDFFinder.h.
Referenced by LDFFitChi2Fnc(), LDFFitMaxLikeFnc(), and Run().
|
static |
Definition at line 206 of file ZombieGraveyard/LDFFinderOG/LDFFinder.h.
Referenced by EstimateLDF(), EstimateS1000(), FitLDFDriver(), Init(), LDFFitChi2Fnc(), LDFFitMaxLikeFnc(), OutputStations(), Run(), and SetRecData().
|
staticprivate |
Definition at line 150 of file ZombieGraveyard/LDFFinderOG/LDFFinder.h.
Referenced by CurvatureFitFnc(), EstimateChi2(), EstimateCurvature(), EstimateEnergy(), EstimateLDF(), FitCurvatureDriver(), FitLDF(), FitLDFDriver(), FixCore(), LDFFitChi2Fnc(), LDFFitMaxLikeFnc(), OutputResults(), ParameterizedRc(), Run(), and SetRecData().
|
staticprivate |
Definition at line 157 of file ZombieGraveyard/LDFFinderOG/LDFFinder.h.
Referenced by LDFFitMaxLikeFnc(), Run(), and SetRecData().
|
staticprivate |
Definition at line 158 of file ZombieGraveyard/LDFFinderOG/LDFFinder.h.
Referenced by EstimateS1000(), Init(), LDFFitChi2Fnc(), LDFFitMaxLikeFnc(), OutputStations(), and SetRecData().
|
staticprivate |
Definition at line 159 of file ZombieGraveyard/LDFFinderOG/LDFFinder.h.
Referenced by EstimateS1000(), Init(), LDFFitChi2Fnc(), LDFFitMaxLikeFnc(), OutputStations(), and SetRecData().
|
staticprivate |
Definition at line 156 of file ZombieGraveyard/LDFFinderOG/LDFFinder.h.
Referenced by Init(), LDFFitChi2Fnc(), and LDFFitMaxLikeFnc().
|
staticprivate |
Definition at line 149 of file ZombieGraveyard/LDFFinderOG/LDFFinder.h.
Referenced by EstimateEnergy(), EstimateLDF(), EstimateNStationsInFit(), EstimateS1000(), FitLDFDriver(), FixBeta(), FixGamma(), LDFFitChi2Fnc(), LDFFitMaxLikeFnc(), OutputStations(), ParameterizedRc(), Run(), and SetRecData().
|
staticprivate |
Definition at line 152 of file ZombieGraveyard/LDFFinderOG/LDFFinder.h.
Referenced by EstimateNStationsInFit(), Init(), and LDFFitChi2Fnc().
|
staticprivate |
Definition at line 153 of file ZombieGraveyard/LDFFinderOG/LDFFinder.h.
Referenced by EstimateNStationsInFit(), Init(), and LDFFitChi2Fnc().
|
staticprivate |
Definition at line 154 of file ZombieGraveyard/LDFFinderOG/LDFFinder.h.
Referenced by Init(), and LDFFitChi2Fnc().
|
staticprivate |
Definition at line 151 of file ZombieGraveyard/LDFFinderOG/LDFFinder.h.
Referenced by EstimateChi2(), EstimateNStationsInFit(), FitLDF(), LDFFitChi2Fnc(), LDFFitMaxLikeFnc(), and Run().
|
private |
Definition at line 161 of file ZombieGraveyard/LDFFinderOG/LDFFinder.h.
Referenced by Init().
|
private |
Definition at line 167 of file ZombieGraveyard/LDFFinderOG/LDFFinder.h.
|
private |
Definition at line 166 of file ZombieGraveyard/LDFFinderOG/LDFFinder.h.
|
private |
Definition at line 164 of file ZombieGraveyard/LDFFinderOG/LDFFinder.h.
|
private |
Definition at line 162 of file ZombieGraveyard/LDFFinderOG/LDFFinder.h.
Referenced by EstimateChi2(), FitCurvatureDriver(), FitLDFDriver(), Init(), and Run().
|
private |
Definition at line 172 of file ZombieGraveyard/LDFFinderOG/LDFFinder.h.
|
private |
Definition at line 171 of file ZombieGraveyard/LDFFinderOG/LDFFinder.h.
|
private |
Definition at line 169 of file ZombieGraveyard/LDFFinderOG/LDFFinder.h.
|
private |
Referenced by EstimateLDF(), Init(), and Run().
|
private |
|
private |
|
private |
|
private |
Definition at line 165 of file ZombieGraveyard/LDFFinderOG/LDFFinder.h.
Referenced by FitLDF(), FitLDFDriver(), and Init().
|
private |
Definition at line 168 of file ZombieGraveyard/LDFFinderOG/LDFFinder.h.