the shower axis finder More...
#include "HdAxisFinderUU/HdAxisFinder.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 | FillPoints (fevt::Eye &eye) |
void | FindAxis (fevt::Eye &eye) |
REGISTER_MODULE ("HdAxisFinderUU", HdAxisFinder) | |
Static Private Member Functions | |
static void | MinuitFitFunc (int &npar, double *gin, double &f, double *par, int iflag) |
Private Attributes | |
double | fChi0 |
double | fChi0Error |
double | fChi0First |
unsigned int | fMinPixels |
bool | fMinuitFailed |
flag failure of minuit More... | |
double | fRp |
double | fRpError |
double | fRpFirst |
double | fT0 |
double | fT0Error |
double | fT0First |
Static Private Attributes | |
static double | fChi2 = 0 |
static fevt::Eye * | fCurEye = 0 |
static sevt::SEvent * | fCurSEvent = 0 |
static double | fMyChiSquare = 0 |
static unsigned int | fNDof = 0 |
static utl::Vector | fSDP = utl::Vector() |
|
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 354 of file HdAxisFinder.cc.
References Angle(), utl::cross(), fSDP(), fevt::PixelRecData::GetCentroid(), fdet::FDetector::GetChannel(), fdet::Pixel::GetDirection(), fdet::FDetector::GetEye(), fdet::Eye::GetEyeCoordinateSystem(), fdet::Channel::GetFADCBinSize(), utl::BasicVector< HepVector >::GetPhi(), fdet::FDetector::GetPixel(), fevt::PixelRecData::GetPulseStart(), fevt::PixelRecData::GetPulseStop(), fevt::Pixel::GetRecData(), fevt::Eye::GetRecData(), fevt::PixelRecData::GetRMS(), fevt::Eye::GetTelescope(), fevt::Pixel::GetTelescopeId(), fevt::Telescope::GetTimeOffset(), fevt::PixelRecData::GetTotalCharge(), utl::kPi, utl::Vector::Normalize(), fevt::PixelRecData::SetChi_i(), fevt::PixelRecData::SetT_i(), fevt::EyeRecData::TimeFitPixelsBegin(), and fevt::EyeRecData::TimeFitPixelsEnd().
|
private |
Definition at line 295 of file HdAxisFinder.cc.
References ERROR, fRp(), fRpError(), and UnivRecNS::npar.
|
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 689 of file HdAxisFinder.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 66 of file HdAxisFinder.cc.
References ERROR, 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 442 of file HdAxisFinder.cc.
References Angle(), utl::cross(), fSDP(), fevt::PixelRecData::GetChi_i(), utl::TimeStamp::GetGPSNanoSecond(), utl::TimeInterval::GetInterval(), utl::Vector::GetMag(), utl::TimeInterval::GetNanoSecond(), fevt::EyeRecData::GetNTimeFitPixels(), utl::BasicVector< HepVector >::GetPhi(), sdet::Station::GetPosition(), fevt::Pixel::GetRecData(), sevt::Station::GetRecData(), sevt::StationRecData::GetSignalStartTime(), sdet::SDetector::GetStation(), fevt::PixelRecData::GetT_i(), fevt::PixelRecData::GetT_iError(), utl::BasicVector< HepVector >::GetTheta(), fevt::PixelRecData::GetTotalCharge(), sevt::StationRecData::GetTotalSignal(), utl::BasicVector< HepVector >::GetX(), utl::BasicVector< HepVector >::GetY(), utl::BasicVector< HepVector >::GetZ(), utl::kPi, utl::kSpeedOfLight, utl::m, utl::AxialVector::Normalize(), utl::Vector::Normalize(), std::pow(), sqrt(), 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 92 of file HdAxisFinder.cc.
References sevt::SEvent::CandidateStationsBegin(), sevt::SEvent::CandidateStationsEnd(), utl::cross(), io::eSuccess, fevt::FEvent::EyesBegin(), fevt::FEvent::EyesEnd(), fRp(), fRpError(), fSDP(), fevt::EyeRecData::GetChiZero(), fevt::EyeRecData::GetFRecShower(), fevt::EyeRecData::GetNTimeFitPixels(), utl::BasicVector< HepVector >::GetPhi(), sdet::Station::GetPosition(), fevt::Eye::GetRecData(), fevt::EyeRecData::GetRp(), fevt::EyeRecData::GetSDP(), sdet::SDetector::GetStation(), utl::BasicVector< HepVector >::GetTheta(), fevt::EyeRecData::GetTZero(), utl::BasicVector< HepVector >::GetZ(), fevt::EyeRecData::HasFRecShower(), utl::kPi, fevt::EyeRecData::MakeFRecShower(), utl::Vector::Normalize(), ns, evt::ShowerFRecData::SetAxis(), fevt::EyeRecData::SetChiZero(), evt::ShowerFRecData::SetCorePosition(), evt::ShowerFRecData::SetCoreTime(), fevt::EyeRecData::SetRp(), fevt::EyeRecData::SetTimeFitChiSquare(), and fevt::EyeRecData::SetTZero().
|
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 60 of file HdAxisFinder.h.
|
private |
Definition at line 61 of file HdAxisFinder.h.
|
private |
Definition at line 68 of file HdAxisFinder.h.
|
staticprivate |
Definition at line 56 of file HdAxisFinder.h.
|
staticprivate |
Definition at line 80 of file HdAxisFinder.h.
|
staticprivate |
Definition at line 81 of file HdAxisFinder.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 |
double fTolerance; double fResidueLimit; double fIsolationLimit; double fTrackBed; double fMinimumTimeExtension;
Definition at line 78 of file HdAxisFinder.h.
|
private |
flag failure of minuit
Definition at line 84 of file HdAxisFinder.h.
|
staticprivate |
Definition at line 57 of file HdAxisFinder.h.
|
staticprivate |
Definition at line 58 of file HdAxisFinder.h.
|
private |
Definition at line 64 of file HdAxisFinder.h.
|
private |
Definition at line 65 of file HdAxisFinder.h.
|
private |
Definition at line 69 of file HdAxisFinder.h.
|
staticprivate |
Definition at line 55 of file HdAxisFinder.h.
|
private |
Definition at line 62 of file HdAxisFinder.h.
|
private |
Definition at line 63 of file HdAxisFinder.h.
|
private |
Definition at line 67 of file HdAxisFinder.h.