List of all members | Public Types | Public Member Functions | Static Public Member Functions | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes
SdPlaneFitOG::SdPlaneFit Class Reference

#include "Modules/SdPlaneFitOG/SdPlaneFit.h"

Inheritance diagram for SdPlaneFitOG::SdPlaneFit:
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 () override
 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 () 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)
 

Private Types

enum  InfoLevel {
  eNone = 0, eFinal = 1, eIntermediate = 2, eObscure = 3,
  eMinuit = 4
}
 

Private Member Functions

void CalculateTimeResidual3D (const utl::Vector &axis, const double ct0, double &mean, double &spread, double &chi2) const
 
fwk::VModule::ResultFlag LinearFit (FitParameters &fit, const bool reuseFit=false) const
 
fwk::VModule::ResultFlag PlaneFit3DDriver (FitParameters &fit) const
 
 REGISTER_MODULE ("SdPlaneFitOG", SdPlaneFit)
 

Static Private Member Functions

static void PlaneFit3DFnc (int &nPar, double *const grad, double &value, double *const par, const int flag)
 

Private Attributes

int fInfoLevel = 0
 
int fMinNumberOfStations = 0
 
bool fMinuitOutput = false
 

Static Private Attributes

static utl::Point fgBarycenter
 
static utl::CoordinateSystemPtr fgBarycenterCS
 
static utl::TimeStamp fgBaryTime
 
static sevt::SEventfgCurrentSEvent = nullptr
 

Detailed Description

Author
Markus Roth
Darko Veberic
Date
06 Apr 2004
10 Dec 2004 DV rewrite
20 Apr 2005 DV added 3d fit

Definition at line 42 of file SdPlaneFit.h.

Member Enumeration Documentation

Enumerator
eNone 
eFinal 
eIntermediate 
eObscure 
eMinuit 

Definition at line 59 of file SdPlaneFit.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.

Member Function Documentation

void SdPlaneFitOG::SdPlaneFit::CalculateTimeResidual3D ( const utl::Vector axis,
const double  ct0,
double &  mean,
double &  spread,
double &  chi2 
) const
private
fwk::VModule::ResultFlag SdPlaneFitOG::SdPlaneFit::Finish ( )
inlineoverridevirtual

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 47 of file SdPlaneFit.h.

References fwk::VModule::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 SdPlaneFitOG::SdPlaneFit::Init ( )
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 71 of file SdPlaneFit.cc.

References io::eSuccess, and INFO.

void fwk::VModule::InitTiming ( )
inlineinherited

Definition at line 95 of file VModule.h.

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

VModule::ResultFlag SdPlaneFitOG::SdPlaneFit::LinearFit ( FitParameters fit,
const bool  reuseFit = false 
) const
private
VModule::ResultFlag SdPlaneFitOG::SdPlaneFit::PlaneFit3DDriver ( FitParameters fit) const
private
void SdPlaneFitOG::SdPlaneFit::PlaneFit3DFnc ( int &  nPar,
double *const  grad,
double &  value,
double *const  par,
const int  flag 
)
staticprivate
SdPlaneFitOG::SdPlaneFit::REGISTER_MODULE ( "SdPlaneFitOG"  ,
SdPlaneFit   
)
private
VModule::ResultFlag SdPlaneFitOG::SdPlaneFit::Run ( evt::Event event)
overridevirtual
ResultFlag fwk::VModule::RunWithTiming ( evt::Event event)
inlineinherited

Member Data Documentation

Point SdPlaneFit::fgBarycenter
staticprivate

Definition at line 74 of file SdPlaneFit.h.

CoordinateSystemPtr SdPlaneFit::fgBarycenterCS
staticprivate

Definition at line 76 of file SdPlaneFit.h.

TimeStamp SdPlaneFit::fgBaryTime
staticprivate

Definition at line 75 of file SdPlaneFit.h.

SEvent * SdPlaneFit::fgCurrentSEvent = nullptr
staticprivate

Definition at line 73 of file SdPlaneFit.h.

int SdPlaneFitOG::SdPlaneFit::fInfoLevel = 0
private

Definition at line 68 of file SdPlaneFit.h.

int SdPlaneFitOG::SdPlaneFit::fMinNumberOfStations = 0
private

Definition at line 70 of file SdPlaneFit.h.

bool SdPlaneFitOG::SdPlaneFit::fMinuitOutput = false
private

Definition at line 69 of file SdPlaneFit.h.


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

, generated on Tue Sep 26 2023.