#include "Modules/MdGeometryFitterAG/MdGeometryFitter.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 () |
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 () |
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) |
Private Types | |
enum | InfoLevel { eNone = 0, eFinal = 1, eIntermediate = 2, eObscure = 3, eMinuit = 4 } |
Private Member Functions | |
void | FillCounter (mevt::MEvent *mEvent, const GeometryFitter &fitter) |
void | FillRecShower (evt::Event &event, const GeometryFitter &geometryFitter, utl::Point sdCorePosition, utl::TimeStamp sdCoreTime, TVector3 sdAxis) |
REGISTER_MODULE ("MdGeometryFitterAG", MdGeometryFitter) | |
void | SetTimeData (const mevt::MEvent *mEvent, utl::Point sdCorePosition, utl::TimeStamp fgSdCoreTime, const TVector3 &axis, GeometryFitter &fitter) |
Private Attributes | |
double | fCurvatureRadiusParameter1 |
double | fCurvatureRadiusParameter2 |
int | fInfoLevel |
int | fMinNumberForFullCurvatureFit |
int | fMinNumberOfStations |
bool | fMinuitOutput |
MD geometrical reconstruction. The t50 of the counter signals are fitted with a plane shower front. The axis direction and the impact time of the core are estimated.
Definition at line 41 of file MdGeometryFitter.h.
|
private |
Enumerator | |
---|---|
eNone | |
eFinal | |
eIntermediate | |
eObscure | |
eMinuit |
Definition at line 50 of file MdGeometryFitter.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 |
|
private |
Definition at line 296 of file MdGeometryFitter.cc.
References mevt::MEvent::CountersBegin(), mevt::MEvent::CountersEnd(), MdGeometryFitterAG::GeometryFitter::GetPlaneFrontDelay(), MdGeometryFitterAG::GeometryFitter::GetTimeError(), MdGeometryFitterAG::GeometryFitter::GetTimeResidual(), and MdGeometryFitterAG::GeometryFitter::HasDetector().
|
private |
Definition at line 233 of file MdGeometryFitter.cc.
References fwk::LocalCoordinateSystemConstructor< Policy >::Create(), MdGeometryFitterAG::GeometryFitter::GetAxis(), MdGeometryFitterAG::GeometryFitter::GetChi2(), MdGeometryFitterAG::GeometryFitter::GetCore(), MdGeometryFitterAG::GeometryFitter::GetCt0(), MdGeometryFitterAG::GeometryFitter::GetCt0Error(), MdGeometryFitterAG::GeometryFitter::GetMeanTimeResidual(), MdGeometryFitterAG::GeometryFitter::GetNdof(), MdGeometryFitterAG::GeometryFitter::GetPhiError(), MdGeometryFitterAG::GeometryFitter::GetRadius(), MdGeometryFitterAG::GeometryFitter::GetRadiusError(), evt::Event::GetRecShower(), MdGeometryFitterAG::GeometryFitter::GetThetaError(), MdGeometryFitterAG::GeometryFitter::GetTimeResidualSpread(), MdGeometryFitterAG::GeometryFitter::GetU(), MdGeometryFitterAG::GeometryFitter::GetV(), MdGeometryFitterAG::GeometryFitter::GetW(), evt::ShowerRecData::HasMRecShower(), evt::Event::HasRecShower(), MdGeometryFitterAG::GeometryFitter::IsCoreFix(), MdGeometryFitterAG::GeometryFitter::IsCurvatureFix(), utl::kSpeedOfLight, evt::ShowerMRecData::SetAngleChi2(), evt::ShowerMRecData::SetAxis(), evt::ShowerMRecData::SetCoreFixedGeo(), evt::ShowerMRecData::SetCorePosition(), evt::ShowerMRecData::SetCoreTime(), evt::ShowerMRecData::SetCurvature(), evt::ShowerMRecData::SetCurvatureFixed(), evt::ShowerMRecData::SetGeometryReconstructed(), evt::ShowerMRecData::SetMdSdAngle(), evt::ShowerMRecData::SetPhiError(), evt::ShowerMRecData::SetThetaError(), evt::ShowerMRecData::SetThetaPhiCorrelation(), evt::ShowerMRecData::SetTimeResidualMean(), and evt::ShowerMRecData::SetTimeResidualSpread().
|
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 191 of file MdGeometryFitter.cc.
References io::eSuccess.
|
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 56 of file MdGeometryFitter.cc.
References io::eSuccess, utl::Branch::GetChild(), utl::Branch::GetData(), fwk::CentralConfig::GetInstance(), fwk::CentralConfig::GetTopBranch(), and INFO.
|
inlineinherited |
Definition at line 95 of file VModule.h.
References fwk::VModule::fStopwatch, and utl::Stopwatch::Reset().
|
private |
|
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 88 of file MdGeometryFitter.cc.
References fwk::LocalCoordinateSystemConstructor< Policy >::Create(), utl::degree, io::eSuccess, MdGeometryFitterAG::GeometryFitter::Fit(), MdGeometryFitterAG::GeometryFitter::GetAxis(), evt::ShowerSRecData::GetAxis(), MdGeometryFitterAG::GeometryFitter::GetChi2(), evt::ShowerSRecData::GetCorePosition(), evt::ShowerSRecData::GetCoreTime(), MdGeometryFitterAG::GeometryFitter::GetCt0(), MdGeometryFitterAG::GeometryFitter::GetMeanTimeResidual(), MdGeometryFitterAG::GeometryFitter::GetNDetectors(), MdGeometryFitterAG::GeometryFitter::GetNdof(), MdGeometryFitterAG::GeometryFitter::GetPhi(), utl::BasicVector< HepVector >::GetPhi(), MdGeometryFitterAG::GeometryFitter::GetPhiError(), MdGeometryFitterAG::GeometryFitter::GetRadius(), MdGeometryFitterAG::GeometryFitter::GetRadiusError(), det::Detector::GetSiteCoordinateSystem(), MdGeometryFitterAG::GeometryFitter::GetTheta(), utl::BasicVector< HepVector >::GetTheta(), MdGeometryFitterAG::GeometryFitter::GetThetaError(), MdGeometryFitterAG::GeometryFitter::GetTimeResidualSpread(), MdGeometryFitterAG::GeometryFitter::GetU(), MdGeometryFitterAG::GeometryFitter::GetV(), MdGeometryFitterAG::GeometryFitter::GetW(), utl::BasicVector< HepVector >::GetX(), utl::BasicVector< HepVector >::GetY(), utl::BasicVector< HepVector >::GetZ(), evt::Event::HasMEvent(), evt::Event::HasRecShower(), INFO, utl::meter, OUT, MdGeometryFitterAG::GeometryFitter::SetCore(), MdGeometryFitterAG::GeometryFitter::SetCoreFix(), MdGeometryFitterAG::GeometryFitter::SetCurvatureFix(), MdGeometryFitterAG::GeometryFitter::SetCurvatureFree(), MdGeometryFitterAG::GeometryFitter::SetMinuitOutput(), and MdGeometryFitterAG::GeometryFitter::SetRadius().
|
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 197 of file MdGeometryFitter.cc.
References MdGeometryFitterAG::GeometryFitter::AddDetector(), mevt::MEvent::CountersBegin(), mevt::MEvent::CountersEnd(), fwk::LocalCoordinateSystemConstructor< Policy >::Create(), mdet::MDetector::GetCounter(), det::MPositionable< Config >::GetPosition(), mdet::MTimeVariance::GetTimeSigma2(), utl::BasicVector< HepVector >::GetX(), utl::BasicVector< HepVector >::GetY(), utl::BasicVector< HepVector >::GetZ(), MdGeometryFitterAG::GeometryFitter::RemoveDetectors(), RPerp(), and sqrt().
|
private |
Definition at line 66 of file MdGeometryFitter.h.
|
private |
Definition at line 66 of file MdGeometryFitter.h.
|
private |
Definition at line 59 of file MdGeometryFitter.h.
|
private |
Definition at line 62 of file MdGeometryFitter.h.
|
private |
Definition at line 61 of file MdGeometryFitter.h.
|
private |
Definition at line 60 of file MdGeometryFitter.h.