List of all members | Public Types | Public Member Functions | Static Public Member Functions | Protected Types | Protected Attributes | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes
RdHyperbolicWavefrontFit::RdHyperbolicWavefrontFit Class Reference

#include <RdHyperbolicWavefrontFit.h>

Inheritance diagram for RdHyperbolicWavefrontFit::RdHyperbolicWavefrontFit:
Inheritance graph
[legend]

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 ()
 Finish: invoked at end of the run (NOT end of the event) More...
 
utl::StopwatchGetStopwatch ()
 
const utl::StopwatchGetStopwatch () 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 ()
 
 RdHyperbolicWavefrontFit ()
 
fwk::VModule::ResultFlag Run (evt::Event &event)
 Run: invoked once per event. More...
 
ResultFlag RunWithTiming (evt::Event &event)
 
virtual ~RdHyperbolicWavefrontFit ()
 

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 gamma, const double t0) const
 
 REGISTER_MODULE ("RdHyperbolicWavefrontFit", RdHyperbolicWavefrontFit)
 

Static Private Member Functions

static void RdDirectionReco (int &nPar, double *const grad, double &value, double *const par, const int flag)
 
static void RdHyperbolicWavefrontFnc (int &nPar, double *const grad, double &value, double *const par, const int flag)
 
static void RdHyperbolicWavefrontFncFull (int &nPar, double *const grad, double &value, double *const par, const int flag)
 

Private Attributes

bool fDoCoreSearch = false
 
std::string fUsedCore
 

Static Private Attributes

static evt::Event fgCurrentEvent
 
static revt::REventfgCurrentREvent = nullptr
 
static utl::CoordinateSystemPtr fgLocalCS
 
static utl::Point gCore
 
static double gMaxAmplitude
 
static utl::Vector gSAxis
 
static unsigned int gStation0Id = 0
 
static double gTime0 = 0
 
static double gTimeOffset
 
static unsigned int nPar = 0
 

Detailed Description

Definition at line 56 of file RdHyperbolicWavefrontFit.h.

Member Enumeration Documentation

enum fwk::VModule::InfoLevel
protectedinherited
Enumerator
eInfoNone 
eInfoFinal 
eInfoIntermediate 
eInfoDebug 

Definition at line 125 of file VModule.h.

enum fwk::VModule::ResultFlag
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.

Definition at line 60 of file VModule.h.

Different types of version info that can be retrieved from GetVersionInfo.

Enumerator
eFilename 
eRevisionNumber 
eDate 
eTime 
eLastEditor 

Definition at line 110 of file VModule.h.

Constructor & Destructor Documentation

RdHyperbolicWavefrontFit::RdHyperbolicWavefrontFit::RdHyperbolicWavefrontFit ( )
inline

Definition at line 59 of file RdHyperbolicWavefrontFit.h.

virtual RdHyperbolicWavefrontFit::RdHyperbolicWavefrontFit::~RdHyperbolicWavefrontFit ( )
inlinevirtual

Definition at line 60 of file RdHyperbolicWavefrontFit.h.

Member Function Documentation

void RdHyperbolicWavefrontFit::RdHyperbolicWavefrontFit::CalculateTimeResidual ( const utl::Vector axis,
const double  gamma,
const double  t0 
) const
private
VModule::ResultFlag RdHyperbolicWavefrontFit::RdHyperbolicWavefrontFit::Finish ( )
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 345 of file RdHyperbolicWavefrontFit.cc.

References io::eSuccess.

std::string fwk::VModule::GetResultFlagByName ( const ResultFlag  flag)
staticinherited
utl::Stopwatch& fwk::VModule::GetStopwatch ( )
inlineinherited

Definition at line 106 of file VModule.h.

References fwk::VModule::fStopwatch.

const utl::Stopwatch& fwk::VModule::GetStopwatch ( ) const
inlineinherited

Definition at line 107 of file VModule.h.

References fwk::VModule::fStopwatch.

std::string fwk::VModule::GetVersionInfo ( const VersionInfoType  v) const
inherited
VModule::ResultFlag RdHyperbolicWavefrontFit::RdHyperbolicWavefrontFit::Init ( )
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 57 of file RdHyperbolicWavefrontFit.cc.

References io::eSuccess, utl::Branch::GetChild(), utl::Branch::GetData(), utl::Branch::GetTopBranch(), and INFODebug.

void fwk::VModule::InitTiming ( )
inlineinherited

Definition at line 95 of file VModule.h.

References fwk::VModule::fStopwatch, and utl::Stopwatch::Reset().

static void RdHyperbolicWavefrontFit::RdHyperbolicWavefrontFit::RdDirectionReco ( int &  nPar,
double *const  grad,
double &  value,
double *const  par,
const int  flag 
)
staticprivate
void RdHyperbolicWavefrontFit::RdHyperbolicWavefrontFit::RdHyperbolicWavefrontFnc ( int &  nPar,
double *const  grad,
double &  value,
double *const  par,
const int  flag 
)
staticprivate
static void RdHyperbolicWavefrontFit::RdHyperbolicWavefrontFit::RdHyperbolicWavefrontFncFull ( int &  nPar,
double *const  grad,
double &  value,
double *const  par,
const int  flag 
)
staticprivate
RdHyperbolicWavefrontFit::RdHyperbolicWavefrontFit::REGISTER_MODULE ( "RdHyperbolicWavefrontFit"  ,
RdHyperbolicWavefrontFit   
)
private
VModule::ResultFlag RdHyperbolicWavefrontFit::RdHyperbolicWavefrontFit::Run ( evt::Event event)
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 85 of file RdHyperbolicWavefrontFit.cc.

References fwk::LocalCoordinateSystemConstructor< Policy >::Create(), SdHorizontalReconstructionNS::eCoreX, SdHorizontalReconstructionNS::eCoreY, io::eSuccess, RdHyperbolicWavefrontFit::FitParameters::gamma, RdHyperbolicWavefrontFit::FitParameters::gammaError, LDFFinderOG::gCore, evt::ShowerSRecData::GetAxis(), evt::ShowerRRecData::GetAxis(), evt::ShowerSRecData::GetCoreError(), evt::ShowerSRecData::GetCorePosition(), evt::ShowerRRecData::GetCorePosition(), evt::ShowerSimData::GetDirection(), utl::RadioGeometryUtilities::GetDistanceToAxis(), rdet::Station::GetPosition(), evt::ShowerSimData::GetPosition(), evt::Event::GetRecShower(), evt::Event::GetREvent(), rdet::RDetector::GetStation(), utl::BasicVector< HepVector >::GetX(), utl::BasicVector< HepVector >::GetY(), utl::BasicVector< HepVector >::GetZ(), evt::Event::HasRecShower(), evt::Event::HasREvent(), evt::ShowerRecData::HasRRecShower(), INFODebug, INFOIntermediate, RdHyperbolicWavefrontFit::FitParameters::minChi, RdHyperbolicWavefrontFit::FitParameters::NDF, GeomAsymNS::nPar, std::pow(), result, galactic::second, evt::ShowerRRecData::SetParameter(), evt::ShowerRRecData::SetParameterError(), RdHyperbolicWavefrontFit::Sorter(), RdHyperbolicWavefrontFit::SorterSt(), sqrt(), RdHyperbolicWavefrontFit::FitParameters::status, RdHyperbolicWavefrontFit::FitParameters::t0, RdHyperbolicWavefrontFit::FitParameters::t0Error, RdHyperbolicWavefrontFit::FitParameters::u, RdHyperbolicWavefrontFit::FitParameters::uError, RdHyperbolicWavefrontFit::FitParameters::v, RdHyperbolicWavefrontFit::FitParameters::vError, and WARNING.

ResultFlag fwk::VModule::RunWithTiming ( evt::Event event)
inlineinherited

Member Data Documentation

bool RdHyperbolicWavefrontFit::RdHyperbolicWavefrontFit::fDoCoreSearch = false
private

Definition at line 92 of file RdHyperbolicWavefrontFit.h.

Event RdHyperbolicWavefrontFit::RdHyperbolicWavefrontFit::fgCurrentEvent
staticprivate

Definition at line 80 of file RdHyperbolicWavefrontFit.h.

REvent * RdHyperbolicWavefrontFit::RdHyperbolicWavefrontFit::fgCurrentREvent = nullptr
staticprivate

Definition at line 79 of file RdHyperbolicWavefrontFit.h.

CoordinateSystemPtr RdHyperbolicWavefrontFit::RdHyperbolicWavefrontFit::fgLocalCS
staticprivate

Definition at line 81 of file RdHyperbolicWavefrontFit.h.

int fwk::VModule::fInfoLevel = 0
protectedinherited
std::string RdHyperbolicWavefrontFit::RdHyperbolicWavefrontFit::fUsedCore
private

Definition at line 91 of file RdHyperbolicWavefrontFit.h.

utl::Point RdHyperbolicWavefrontFit::RdHyperbolicWavefrontFit::gCore
staticprivate

Definition at line 83 of file RdHyperbolicWavefrontFit.h.

double RdHyperbolicWavefrontFit::RdHyperbolicWavefrontFit::gMaxAmplitude
staticprivate

Definition at line 88 of file RdHyperbolicWavefrontFit.h.

utl::Vector RdHyperbolicWavefrontFit::RdHyperbolicWavefrontFit::gSAxis
staticprivate

Definition at line 82 of file RdHyperbolicWavefrontFit.h.

unsigned int RdHyperbolicWavefrontFit::RdHyperbolicWavefrontFit::gStation0Id = 0
staticprivate

Definition at line 87 of file RdHyperbolicWavefrontFit.h.

double RdHyperbolicWavefrontFit::RdHyperbolicWavefrontFit::gTime0 = 0
staticprivate

Definition at line 86 of file RdHyperbolicWavefrontFit.h.

double RdHyperbolicWavefrontFit::RdHyperbolicWavefrontFit::gTimeOffset
staticprivate

Definition at line 84 of file RdHyperbolicWavefrontFit.h.

unsigned int RdHyperbolicWavefrontFit::RdHyperbolicWavefrontFit::nPar = 0
staticprivate

Definition at line 85 of file RdHyperbolicWavefrontFit.h.


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

, generated on Tue Sep 26 2023.