A Module to perform multi-eye reconstruction. More...
#include "StereoGeometryFinderOG/StereoGeometryFinder.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) |
Protected Types | |
enum | InfoLevel { eInfoNone = 0, eInfoFinal = 1, eInfoIntermediate = 2, eInfoDebug = 3 } |
Protected Attributes | |
int | fInfoLevel = 0 |
Private Member Functions | |
void | FindAxisStereo (evt::Event &event) |
void | FindAxisStereoHybrid (evt::Event &event) |
REGISTER_MODULE ("StereoGeometryFinderOG", StereoGeometryFinder) | |
Static Private Member Functions | |
static void | MinuitFitFuncStereo (int &npar, double *gin, double &f, double *par, int iflag) |
static void | MinuitFitFuncStereoHybrid (int &npar, double *gin, double &f, double *par, int iflag) |
Private Attributes | |
double | fAxisPhi |
double | fAxisTheta |
double | fChi0 |
double | fChi0Error |
double | fEasting |
double | fNorthing |
double | fRp |
double | fRpError |
double | fT0 |
double | fTZero |
Static Private Attributes | |
static double | fCelesteDelay = 0 |
static double | fChi2SDP = 0 |
static double | fChi2TimeFit = 0 |
static evt::Event * | fCurEvent = 0 |
static int | fDebugging = 0 |
static std::set< int > | fExcludeEye |
static std::set< int > | fExcludeSDPEye |
static int | fHotStationId = 0 |
static int | fNDofSDP = 0 |
static int | fNDofTimeFit = 0 |
static utl::Vector | fSDP = utl::Vector() |
static int | fStereoHybrid = 0 |
A Module to perform multi-eye reconstruction.
Definition at line 36 of file StereoGeometryFinder.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 |
Definition at line 275 of file StereoGeometryFinder.cc.
References Angle(), fwk::LocalCoordinateSystemConstructor< Policy >::Create(), utl::cross(), degree, ERROR, fevt::FEvent::EyesBegin(), fevt::FEvent::EyesEnd(), fRp(), fRpError(), fTZero(), fevt::EyeRecData::GetChiZero(), fdet::Pixel::GetDirection(), utl::UTMPoint::GetEasting(), fdet::FDetector::GetEye(), fdet::Eye::GetEyeCoordinateSystem(), utl::TimeStamp::GetGPSNanoSecond(), fevt::Eye::GetHeader(), utl::UTMPoint::GetHeight(), fevt::Eye::GetId(), fdet::FDetector::GetLastEyeId(), fdet::Eye::GetLocalCoordinateSystem(), utl::Vector::GetMag(), utl::UTMPoint::GetNorthing(), fevt::EyeRecData::GetNSDPPixels(), utl::BasicVector< HepVector >::GetPhi(), fdet::FDetector::GetPixel(), utl::UTMPoint::GetPoint(), utl::BasicVector< HepVector >::GetR(), fevt::Pixel::GetRecData(), fevt::Eye::GetRecData(), fevt::EyeRecData::GetRp(), fevt::EyeRecData::GetSDP(), utl::BasicVector< HepVector >::GetTheta(), fevt::EyeHeader::GetTimeStamp(), fevt::EyeRecData::GetTZero(), utl::BasicVector< HepVector >::GetZ(), utl::kPi, utl::kSpeedOfLight, utl::Vector::Normalize(), UnivRecNS::npar, fevt::EyeRecData::PulsedPixelsBegin(), fevt::EyeRecData::PulsedPixelsEnd(), fevt::PixelRecData::SetChi_i(), fevt::EyeRecData::SetChiZero(), fevt::EyeRecData::SetRp(), fevt::EyeRecData::SetSDP(), fevt::EyeRecData::SetTZero(), and G4StationSimulatorOG::To().
|
private |
Definition at line 627 of file StereoGeometryFinder.cc.
References Angle(), fwk::LocalCoordinateSystemConstructor< Policy >::Create(), utl::cross(), degree, ERROR, fevt::FEvent::EyesBegin(), fevt::FEvent::EyesEnd(), fRp(), fRpError(), fTZero(), fdet::Pixel::GetDirection(), fdet::FDetector::GetEye(), fdet::Eye::GetEyeCoordinateSystem(), utl::TimeStamp::GetGPSNanoSecond(), fevt::Eye::GetHeader(), fevt::Eye::GetId(), fdet::FDetector::GetLastEyeId(), fdet::Eye::GetLocalCoordinateSystem(), fevt::EyeRecData::GetNSDPPixels(), fdet::FDetector::GetPixel(), utl::UTMPoint::GetPoint(), utl::BasicVector< HepVector >::GetR(), fevt::Pixel::GetRecData(), fevt::Eye::GetRecData(), utl::BasicVector< HepVector >::GetTheta(), fevt::EyeHeader::GetTimeStamp(), utl::BasicVector< HepVector >::GetZ(), utl::kPi, utl::kSpeedOfLight, UnivRecNS::npar, fevt::EyeRecData::PulsedPixelsBegin(), fevt::EyeRecData::PulsedPixelsEnd(), fevt::PixelRecData::SetChi_i(), fevt::EyeRecData::SetChiZero(), fevt::EyeRecData::SetRp(), fevt::EyeRecData::SetSDP(), fevt::EyeRecData::SetTZero(), and G4StationSimulatorOG::To().
|
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 1651 of file StereoGeometryFinder.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 102 of file StereoGeometryFinder.cc.
References io::eSuccess, utl::Branch::GetChild(), utl::Branch::GetData(), and fwk::CentralConfig::GetTopBranch().
|
inlineinherited |
Definition at line 95 of file VModule.h.
References fwk::VModule::fStopwatch, and utl::Stopwatch::Reset().
|
staticprivate |
Definition at line 1326 of file StereoGeometryFinder.cc.
References Angle(), fwk::LocalCoordinateSystemConstructor< Policy >::Create(), utl::cross(), degree, fevt::FEvent::EyesBegin(), fevt::FEvent::EyesEnd(), fevt::PixelRecData::GetChi_i(), fdet::Pixel::GetDirection(), fdet::FDetector::GetEye(), fdet::Eye::GetEyeCoordinateSystem(), utl::TimeStamp::GetGPSNanoSecond(), fevt::Eye::GetHeader(), fevt::Eye::GetId(), fdet::Pixel::GetId(), utl::TimeInterval::GetInterval(), fdet::FDetector::GetLastEyeId(), utl::TimeInterval::GetNanoSecond(), fevt::EyeRecData::GetNSDPPixels(), fevt::EyeRecData::GetNTimeFitPixels(), fdet::FDetector::GetPixel(), utl::UTMPoint::GetPoint(), utl::BasicVector< HepVector >::GetR(), fevt::Pixel::GetRecData(), fevt::Eye::GetRecData(), fevt::PixelRecData::GetT_i(), fevt::PixelRecData::GetT_iError(), utl::BasicVector< HepVector >::GetTheta(), fevt::EyeHeader::GetTimeStamp(), fevt::PixelRecData::GetTotalCharge(), utl::BasicVector< HepVector >::GetZ(), utl::kPi, utl::kPiOnTwo, utl::kSpeedOfLight, fevt::EyeRecData::SetSDPFitChiSquare(), fevt::EyeRecData::SetTimeFitChiSquare(), fevt::EyeRecData::TimeFitPixelsBegin(), and fevt::EyeRecData::TimeFitPixelsEnd().
|
staticprivate |
Definition at line 918 of file StereoGeometryFinder.cc.
References Angle(), fwk::LocalCoordinateSystemConstructor< Policy >::Create(), utl::cross(), degree, fevt::FEvent::EyesBegin(), fevt::FEvent::EyesEnd(), fevt::PixelRecData::GetChi_i(), utl::BasicVector< HepVector >::GetCosTheta(), fdet::Pixel::GetDirection(), fdet::FDetector::GetEye(), fdet::Eye::GetEyeCoordinateSystem(), utl::TimeStamp::GetGPSNanoSecond(), fevt::Eye::GetHeader(), utl::UTMPoint::GetHeight(), fevt::Eye::GetId(), sevt::Station::GetId(), fdet::Pixel::GetId(), utl::TimeInterval::GetInterval(), fdet::FDetector::GetLastEyeId(), utl::Vector::GetMag(), utl::TimeInterval::GetNanoSecond(), fevt::EyeRecData::GetNSDPPixels(), fevt::EyeRecData::GetNTimeFitPixels(), fdet::FDetector::GetPixel(), utl::UTMPoint::GetPoint(), sdet::Station::GetPosition(), utl::BasicVector< HepVector >::GetR(), fevt::Pixel::GetRecData(), fevt::Eye::GetRecData(), sevt::Station::GetRecData(), sevt::StationRecData::GetSignalStartTime(), fevt::PixelRecData::GetT_i(), fevt::PixelRecData::GetT_iError(), utl::BasicVector< HepVector >::GetTheta(), fevt::EyeHeader::GetTimeStamp(), fevt::PixelRecData::GetTotalCharge(), utl::BasicVector< HepVector >::GetZ(), utl::kPi, utl::kPiOnTwo, utl::kSpeedOfLight, utl::nanosecond, fevt::EyeRecData::SetSDPFitChiSquare(), fevt::EyeRecData::SetTimeFitChiSquare(), sqrt(), sevt::SEvent::StationsBegin(), sevt::SEvent::StationsEnd(), fevt::EyeRecData::TimeFitPixelsBegin(), and fevt::EyeRecData::TimeFitPixelsEnd().
|
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 131 of file StereoGeometryFinder.cc.
References utl::cross(), io::eSuccess, fevt::FEvent::EyesBegin(), fevt::FEvent::EyesEnd(), fRp(), fevt::EyeRecData::GetChi0TZeroCorrelation(), fevt::EyeRecData::GetChiZero(), fevt::EyeRecData::GetChiZeroError(), fevt::EyeRecData::GetFRecShower(), fevt::Eye::GetHeader(), fevt::EyeRecData::GetNSDPPixels(), fevt::Eye::GetRecData(), fevt::EyeRecData::GetRp(), fevt::EyeRecData::GetRpChi0Correlation(), fevt::EyeRecData::GetRpError(), fevt::EyeRecData::GetRpTZeroCorrelation(), fevt::EyeRecData::GetSDP(), fevt::EyeRecData::GetSDPCorrThetaPhi(), fevt::EyeRecData::GetSDPFitChiSquare(), fevt::EyeRecData::GetSDPFitNDof(), fevt::EyeRecData::GetSDPPhiError(), fevt::EyeRecData::GetSDPThetaError(), evt::ShowerFRecData::GetStationIds(), fevt::EyeRecData::GetTimeFitChiSquare(), fevt::EyeRecData::GetTimeFitNDof(), fevt::EyeHeader::GetTimeStamp(), fevt::EyeRecData::GetTZero(), fevt::EyeRecData::GetTZeroError(), evt::Event::HasFEvent(), fevt::EyeRecData::HasFRecShower(), fevt::Eye::HasRecData(), evt::Event::HasRecShower(), evt::Event::HasSEvent(), INFO, utl::kPi, fevt::EyeRecData::MakeFRecShower(), fevt::Eye::MakeRecData(), evt::Event::MakeRecShower(), utl::Vector::Normalize(), ns, evt::ShowerRecData::SetAxis(), evt::ShowerFRecData::SetAxis(), fevt::TelescopeRecData::SetChiZero(), evt::ShowerRecData::SetCorePosition(), evt::ShowerFRecData::SetCorePosition(), evt::ShowerFRecData::SetCoreTime(), fevt::TelescopeRecData::SetRp(), fevt::TelescopeRecData::SetSDP(), fevt::TelescopeRecData::SetSDPCorrThetaPhi(), fevt::TelescopeRecData::SetSDPFitChiSquare(), fevt::TelescopeRecData::SetSDPPhiError(), fevt::TelescopeRecData::SetSDPThetaError(), fevt::TelescopeRecData::SetTimeFitChiSquare(), fevt::TelescopeRecData::SetTimeFitCorrelations(), fevt::TelescopeRecData::SetTZero(), fevt::Eye::TelescopesBegin(), and fevt::Eye::TelescopesEnd().
|
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 76 of file StereoGeometryFinder.h.
|
private |
Definition at line 75 of file StereoGeometryFinder.h.
|
staticprivate |
Definition at line 84 of file StereoGeometryFinder.h.
|
private |
Definition at line 62 of file StereoGeometryFinder.h.
|
private |
Definition at line 63 of file StereoGeometryFinder.h.
|
staticprivate |
Definition at line 56 of file StereoGeometryFinder.h.
|
staticprivate |
Definition at line 59 of file StereoGeometryFinder.h.
|
staticprivate |
Definition at line 69 of file StereoGeometryFinder.h.
|
staticprivate |
Definition at line 81 of file StereoGeometryFinder.h.
|
private |
Definition at line 74 of file StereoGeometryFinder.h.
|
staticprivate |
Definition at line 79 of file StereoGeometryFinder.h.
|
staticprivate |
Definition at line 80 of file StereoGeometryFinder.h.
|
staticprivate |
Definition at line 83 of file StereoGeometryFinder.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().
|
staticprivate |
Definition at line 57 of file StereoGeometryFinder.h.
|
staticprivate |
Definition at line 60 of file StereoGeometryFinder.h.
|
private |
Definition at line 73 of file StereoGeometryFinder.h.
|
private |
Definition at line 66 of file StereoGeometryFinder.h.
|
private |
Definition at line 67 of file StereoGeometryFinder.h.
|
staticprivate |
Definition at line 55 of file StereoGeometryFinder.h.
|
staticprivate |
Definition at line 82 of file StereoGeometryFinder.h.
|
private |
Definition at line 64 of file StereoGeometryFinder.h.
|
private |
Definition at line 77 of file StereoGeometryFinder.h.