#include <RdPlaneFit.h>
Public Types | |
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 () override |
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 () override |
Initialize: invoked at beginning of run (NOT beginning of event) More... | |
void | InitTiming () |
fwk::VModule::ResultFlag | Run (evt::Event &event) override |
Run: invoked once per event. More... | |
ResultFlag | RunWithTiming (evt::Event &event) |
Static Public Member Functions | |
static std::string | GetResultFlagByName (const ResultFlag flag) |
Protected Types | |
enum | InfoLevel { eInfoNone = 0, eInfoFinal = 1, eInfoIntermediate = 2, eInfoDebug = 3 } |
Protected Attributes | |
int | fInfoLevel = 0 |
Private Member Functions | |
void | CalculateTimeResidual (const utl::Vector &axis, const double ct0, double &chi2) const |
fwk::VModule::ResultFlag | LinearFit (FitParameters &fit, const bool reuseFit=false) const |
performs a Linear fit, approximation that z= equal for all stations More... | |
fwk::VModule::ResultFlag | PlaneFit3DDriver (FitParameters &fit) const |
Setting up / Executing the minimalization routines. More... | |
REGISTER_MODULE ("RdPlaneFit", RdPlaneFit) | |
Static Private Member Functions | |
static void | PlaneFit3DFnc (int &nPar, double *const grad, double &value, double *const par, const int flag) |
Function to minimize the plane fit, z != equal for all stations. More... | |
static void | PlaneFit3DHorizonFnc (int &nPar, double *const grad, double &value, double *const par, const int flag) |
Private Attributes | |
bool | fAllowUnphysicalCosines |
bool | fLockParameterStorage |
int | fMinNumberOfStations |
bool | fMinuitOutput |
Static Private Attributes | |
static utl::Point | fgBarycenter |
static utl::TimeStamp | fgBaryTime |
static utl::Point | fgCoordinateOrigin |
static revt::REvent * | fgCurrentREvent |
static utl::CoordinateSystemPtr | fgLocalCS |
static double | fgMeanEventTime |
Definition at line 48 of file RdPlaneFit.h.
|
protectedinherited |
|
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 |
|
private |
Calculation of the time residual of the individual station. Also fills them in the StationRecData
Definition at line 625 of file RdPlaneFit.cc.
References revt::StationRecData::GetParameter(), revt::StationRecData::GetParameterError(), rdet::Station::GetPosition(), rdet::RDetector::GetStation(), utl::kSpeedOfLight, std::pow(), revt::StationRecData::SetParameter(), and revt::StationRecData::SetParameterError().
|
overridevirtual |
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 510 of file RdPlaneFit.cc.
References io::eSuccess, and INFODebug.
|
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().
|
overridevirtual |
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 68 of file RdPlaneFit.cc.
References io::eSuccess, utl::Branch::Get(), utl::Branch::GetChild(), utl::Branch::GetData(), and utl::Branch::GetTopBranch().
|
inlineinherited |
Definition at line 95 of file VModule.h.
References fwk::VModule::fStopwatch, and utl::Stopwatch::Reset().
|
private |
performs a Linear fit, approximation that z= equal for all stations
Definition at line 93 of file RdPlaneFit.cc.
References RdPlaneFit::FitParameters::ct0, io::eSuccess, revt::StationRecData::GetParameter(), revt::StationRecData::GetParameterError(), rdet::Station::GetPosition(), rdet::RDetector::GetStation(), utl::BasicVector< HepVector >::GetX(), utl::BasicVector< HepVector >::GetY(), INFO, utl::kSpeedOfLight, G4StationSimulatorOG::p, RdPlaneFit::FitParameters::sigmact02, RdPlaneFit::FitParameters::sigmaU2, RdPlaneFit::FitParameters::sigmaUV, RdPlaneFit::FitParameters::sigmaV2, utl::Sqr(), sqrt(), RdPlaneFit::FitParameters::u, RdPlaneFit::FitParameters::v, RdPlaneFit::FitParameters::w, and WARNING.
|
private |
Setting up / Executing the minimalization routines.
Definition at line 417 of file RdPlaneFit.cc.
References RdPlaneFit::FitParameters::ct0, io::eSuccess, INFOFinal, INFOIntermediate, galactic::meter, RdPlaneFit::FitParameters::sigmact02, RdPlaneFit::FitParameters::sigmaU2, RdPlaneFit::FitParameters::sigmaUV, RdPlaneFit::FitParameters::sigmaV2, utl::Sqr(), sqrt(), RdPlaneFit::FitParameters::u, RdPlaneFit::FitParameters::v, and RdPlaneFit::FitParameters::w.
|
staticprivate |
Function to minimize the plane fit, z != equal for all stations.
Definition at line 518 of file RdPlaneFit.cc.
References revt::StationRecData::GetParameter(), revt::StationRecData::GetParameterError(), rdet::Station::GetPosition(), rdet::RDetector::GetStation(), utl::kSpeedOfLight, utl::kSpeedOfLight2, utl::Sqr(), and sqrt().
|
staticprivate |
Function to minimize the plane fit, z != equal for all stations. To be used in the case of horizontal events
Definition at line 576 of file RdPlaneFit.cc.
References revt::StationRecData::GetParameter(), revt::StationRecData::GetParameterError(), rdet::Station::GetPosition(), rdet::RDetector::GetStation(), utl::kSpeedOfLight, utl::kSpeedOfLight2, and utl::Sqr().
|
private |
|
overridevirtual |
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 194 of file RdPlaneFit.cc.
References RdPlaneFit::FitParameters::ct0, degree, SdMonteCarloPropagatorKVI::eCoreTime, ERROR, io::eSuccess, evt::ShowerRRecData::GetAzimuthError(), evt::ShowerRRecData::GetCoordinateOrigin(), revt::REvent::GetHeader(), revt::StationRecData::GetParameter(), rdet::Station::GetPosition(), det::Detector::GetRDetector(), revt::Station::GetRecData(), evt::Event::GetRecShower(), det::Detector::GetReferenceCoordinateSystem(), det::Detector::GetSiteCoordinateSystem(), rdet::RDetector::GetStation(), revt::Header::GetTime(), utl::BasicVector< HepVector >::GetX(), utl::BasicVector< HepVector >::GetY(), utl::BasicVector< HepVector >::GetZ(), evt::ShowerRRecData::GetZenithError(), evt::Event::HasRecShower(), evt::Event::HasREvent(), evt::ShowerRecData::HasRRecShower(), INFO, INFOFinal, INFOIntermediate, utl::kSpeedOfLight, otoa::LinearFit(), evt::Event::MakeRecShower(), evt::ShowerRecData::MakeRRecShower(), galactic::meter, utl::nanosecond, utl::PropagateAxisErrors(), revt::StationRecData::SetParameter(), evt::ShowerRRecData::SetParameter(), evt::ShowerRRecData::SetParameterCovariance(), evt::ShowerRRecData::SetParameterError(), RdPlaneFit::FitParameters::sigmact02, RdPlaneFit::FitParameters::sigmaU2, RdPlaneFit::FitParameters::sigmaUV, RdPlaneFit::FitParameters::sigmaV2, sqrt(), RdPlaneFit::FitParameters::stage, ToString(), RdPlaneFit::FitParameters::u, RdPlaneFit::FitParameters::v, RdPlaneFit::FitParameters::w, and utl::AugerException::what().
|
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 79 of file RdPlaneFit.h.
|
staticprivate |
Definition at line 84 of file RdPlaneFit.h.
|
staticprivate |
Definition at line 85 of file RdPlaneFit.h.
|
staticprivate |
Definition at line 86 of file RdPlaneFit.h.
|
staticprivate |
Definition at line 83 of file RdPlaneFit.h.
|
staticprivate |
Definition at line 87 of file RdPlaneFit.h.
|
staticprivate |
Definition at line 88 of file RdPlaneFit.h.
|
protectedinherited |
Definition at line 123 of file VModule.h.
Referenced by RdChannelASCIINoiseImporterRD::RdChannelASCIINoiseImporterRD::Init(), Rd2dLDFFitter::Rd2dLDFFitter::Init(), RdChannelNoiseImporter_AERA::RdChannelNoiseImporter_AERA::Init(), and Rd2dLDFFitter::Rd2dLDFFitter::Run().
|
private |
Definition at line 80 of file RdPlaneFit.h.
|
private |
Definition at line 78 of file RdPlaneFit.h.
|
private |
Definition at line 77 of file RdPlaneFit.h.