Module to create a trigger signal for a Shoot-the-Shower (Lidar) The selection is mainly done by fitting 2 Gaisser-Hillas functions and look for improvements in Chi² More...
#include "FdDoubleBumpFinder/FdDoubleBumpFinder.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 | |
FdDoubleBumpFinder () | |
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) |
~FdDoubleBumpFinder () | |
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 | |
bool | FillRecData (evt::Event &event, fevt::Eye &eye) |
bool | Fit (fevt::Eye &eye) |
bool | IsPreselected (evt::Event &event, fevt::Eye &eye) const |
bool | IsSelected (fevt::Eye &eye) const |
REGISTER_MODULE ("FdDoubleBumpFinderKG", FdDoubleBumpFinder) | |
bool | Scan (const std::vector< double > &depth, const std::vector< double > &dEdX, const std::vector< double > &dEdXError, double &xMax1, double &xMax2, double &dEdXMax1, double &dEdXMax2) |
Private Attributes | |
double | fConstraintLambda |
double | fConstraintXFirst |
double | fConstraintXFirstMinusXMax |
double | fCutValue |
double | fdEdXMax1 |
double | fdEdXMax2 |
double | fDGHChi2 |
unsigned int | fDGHNdf |
double | fGHChi2 |
double | fLambda1 |
double | fLambda2 |
double | fMaxCoreTankDist |
double | fMaxZenith |
unsigned int | fMinAxisPixels |
bool | fPreSelectEvents |
profileFit::ProfileFitter | fProfileFitter |
int | fVerbosity |
double | fXFirst1 |
double | fXFirst2 |
double | fXMax1 |
double | fXMax2 |
Module to create a trigger signal for a Shoot-the-Shower (Lidar) The selection is mainly done by fitting 2 Gaisser-Hillas functions and look for improvements in Chi²
Definition at line 27 of file FdDoubleBumpFinder.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 |
FdDoubleBumpFinder::FdDoubleBumpFinder | ( | ) |
Definition at line 72 of file FdDoubleBumpFinder.cc.
|
inline |
Definition at line 31 of file FdDoubleBumpFinder.h.
|
private |
Definition at line 722 of file FdDoubleBumpFinder.cc.
References evt::MultipleGaisserHillasParameters::Add(), utl::cm2, evt::gh::eLambda, evt::gh::eX0, fdEdXMax1, fdEdXMax2, fDGHChi2, fDGHNdf, fGHChi2, fLambda1, fLambda2, fVerbosity, fXFirst1, fXFirst2, fXMax1, fXMax2, utl::g, fevt::EyeRecData::GetFRecShower(), fevt::Eye::GetRecData(), INFO, evt::VGaisserHillasParameter::SetChiSquare(), and WARNING.
Referenced by Run().
|
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 786 of file FdDoubleBumpFinder.cc.
References fwk::VModule::eSuccess, fVerbosity, and INFO.
|
private |
Definition at line 306 of file FdDoubleBumpFinder.cc.
References utl::cm, utl::cm2, profileFit::eDGHLambda1, profileFit::eDGHLambda2, profileFit::eDGHnMax1, profileFit::eDGHnMax2, profileFit::eDGHX01, profileFit::eDGHX02, profileFit::eDGHXmax1, profileFit::eDGHXmax2, profileFit::eDoubleGaisserHillas, profileFit::eGaisserHillas, profileFit::eGHLambda, profileFit::eGHnMax, profileFit::eGHX0, profileFit::eGHXmax, evt::gh::eLambda, profileFit::eNDGHpars, profileFit::eNGHpars, evt::gh::eX0, fConstraintLambda, fConstraintXFirst, fConstraintXFirstMinusXMax, fdEdXMax1, fdEdXMax2, fDGHChi2, fDGHNdf, fGHChi2, profileFit::ProfileFitter::Fit(), fLambda1, fLambda2, fProfileFitter, fVerbosity, fXFirst1, fXFirst2, fXMax1, fXMax2, utl::g, profileFit::ProfileFitter::GetChi2(), evt::ShowerFRecData::GetEnergyDeposit(), profileFit::ProfileFitter::GetFitParameters(), fevt::EyeRecData::GetFRecShower(), evt::ShowerFRecData::GetGHParameters(), profileFit::ProfileFitter::GetNdf(), evt::VGaisserHillasParameter::GetNMax(), utl::TabulatedFunction::GetNPoints(), fevt::Eye::GetRecData(), evt::GaisserHillas4Parameter::GetShapeParameter(), profileFit::ProfileFitter::GetStatus(), evt::VGaisserHillasParameter::GetXMax(), evt::ShowerFRecData::HasEnergyDeposit(), fevt::EyeRecData::HasFRecShower(), evt::ShowerFRecData::HasGHParameters(), fevt::Eye::HasRecData(), PeV, Scan(), profileFit::ProfileFitter::SetData(), profileFit::ProfileFitter::SetFunctionType(), profileFit::ProfileFitter::SetStartParameters(), profileFit::ProfileFitter::SetThreshold(), profileFit::ProfileFitter::SetVerbosity(), WARNING, utl::TabulatedFunction::XBegin(), utl::TabulatedFunction::XEnd(), utl::TabulatedFunction::YBegin(), utl::TabulatedFunction::YEnd(), utl::TabulatedFunctionErrors::YErrBegin(), and utl::TabulatedFunctionErrors::YErrEnd().
Referenced by Run().
|
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(), 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 77 of file FdDoubleBumpFinder.cc.
References utl::cm, degree, fwk::VModule::eFailure, ERROR, fwk::VModule::eSuccess, fConstraintLambda, fConstraintXFirst, fConstraintXFirstMinusXMax, fCutValue, fMaxCoreTankDist, fMaxZenith, fMinAxisPixels, fPreSelectEvents, fVerbosity, utl::g, utl::Branch::GetChild(), utl::Branch::GetData(), fwk::CentralConfig::GetTopBranch(), fwk::VModule::GetVersionInfo(), INFO, and utl::m.
|
inlineinherited |
Definition at line 95 of file VModule.h.
References fwk::VModule::fStopwatch, and utl::Stopwatch::Reset().
|
private |
Definition at line 491 of file FdDoubleBumpFinder.cc.
References utl::cross(), degree, fMaxCoreTankDist, fMaxZenith, fMinAxisPixels, fVerbosity, evt::ShowerFRecData::GetAxis(), fevt::EyeRecData::GetChiZero(), evt::ShowerFRecData::GetCorePosition(), fdet::FDetector::GetEye(), det::Detector::GetFDetector(), fevt::EyeRecData::GetFRecShower(), fevt::Eye::GetId(), utl::Vector::GetMag(), fevt::EyeRecData::GetNTimeFitPixels(), sdet::Station::GetPosition(), fevt::Eye::GetRecData(), fevt::EyeRecData::GetRp(), det::Detector::GetSDetector(), fevt::EyeRecData::GetSDP(), fevt::EyeRecData::GetSDPFitNDof(), sdet::SDetector::GetStation(), evt::ShowerFRecData::GetStationIds(), utl::BasicVector< HepVector >::GetTheta(), fevt::EyeRecData::GetTimeFitNDof(), sevt::StationRecData::GetTotalSignal(), utl::BasicVector< HepVector >::GetX(), utl::BasicVector< HepVector >::GetY(), utl::BasicVector< HepVector >::GetZ(), fevt::EyeRecData::HasFRecShower(), evt::ShowerFRecData::HasGHParameters(), fevt::Eye::HasRecData(), evt::Event::HasSEvent(), INFO, utl::kPi, utl::AxialVector::Normalize(), utl::Vector::Normalize(), sevt::SEvent::StationsBegin(), sevt::SEvent::StationsEnd(), fevt::Eye::TelescopesBegin(), and fevt::Eye::TelescopesEnd().
Referenced by Run().
|
private |
Definition at line 672 of file FdDoubleBumpFinder.cc.
References utl::cm2, fCutValue, fDGHChi2, fGHChi2, fVerbosity, utl::g, fevt::EyeRecData::GetFRecShower(), evt::ShowerFRecData::GetLongitudinalProfile(), utl::TabulatedFunction::GetNPoints(), fevt::Eye::GetRecData(), fevt::EyeRecData::HasFRecShower(), fevt::Eye::HasRecData(), INFO, utl::TabulatedFunction::XBegin(), and utl::TabulatedFunction::XEnd().
|
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 177 of file FdDoubleBumpFinder.cc.
References fwk::VModule::eContinueLoop, fwk::VModule::eSuccess, fevt::FEvent::EyesBegin(), fevt::FEvent::EyesEnd(), FillRecData(), Fit(), fPreSelectEvents, fVerbosity, evt::Event::HasFEvent(), INFO, IsPreselected(), and WARNING.
|
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 224 of file FdDoubleBumpFinder.cc.
References utl::cm, profileFit::DoubleGHFunction(), fConstraintLambda, fConstraintXFirst, fConstraintXFirstMinusXMax, fVerbosity, utl::g, INFO, std::pow(), and WARNING.
Referenced by Fit().
|
private |
Definition at line 53 of file FdDoubleBumpFinder.h.
|
private |
Definition at line 54 of file FdDoubleBumpFinder.h.
|
private |
Definition at line 55 of file FdDoubleBumpFinder.h.
|
private |
Definition at line 52 of file FdDoubleBumpFinder.h.
Referenced by Init(), and IsSelected().
|
private |
Definition at line 63 of file FdDoubleBumpFinder.h.
Referenced by FillRecData(), and Fit().
|
private |
Definition at line 64 of file FdDoubleBumpFinder.h.
Referenced by FillRecData(), and Fit().
|
private |
Definition at line 65 of file FdDoubleBumpFinder.h.
Referenced by FillRecData(), Fit(), and IsSelected().
|
private |
Definition at line 66 of file FdDoubleBumpFinder.h.
Referenced by FillRecData(), and Fit().
|
private |
Definition at line 67 of file FdDoubleBumpFinder.h.
Referenced by FillRecData(), Fit(), and IsSelected().
|
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 |
Definition at line 59 of file FdDoubleBumpFinder.h.
Referenced by FillRecData(), and Fit().
|
private |
Definition at line 60 of file FdDoubleBumpFinder.h.
Referenced by FillRecData(), and Fit().
|
private |
Definition at line 50 of file FdDoubleBumpFinder.h.
Referenced by Init(), and IsPreselected().
|
private |
Definition at line 51 of file FdDoubleBumpFinder.h.
Referenced by Init(), and IsPreselected().
|
private |
Definition at line 47 of file FdDoubleBumpFinder.h.
Referenced by Init(), and IsPreselected().
|
private |
Definition at line 49 of file FdDoubleBumpFinder.h.
|
private |
Definition at line 45 of file FdDoubleBumpFinder.h.
Referenced by Fit().
|
private |
Definition at line 48 of file FdDoubleBumpFinder.h.
Referenced by FillRecData(), Finish(), Fit(), Init(), IsPreselected(), IsSelected(), Run(), and Scan().
|
private |
Definition at line 61 of file FdDoubleBumpFinder.h.
Referenced by FillRecData(), and Fit().
|
private |
Definition at line 62 of file FdDoubleBumpFinder.h.
Referenced by FillRecData(), and Fit().
|
private |
Definition at line 57 of file FdDoubleBumpFinder.h.
Referenced by FillRecData(), and Fit().
|
private |
Definition at line 58 of file FdDoubleBumpFinder.h.
Referenced by FillRecData(), and Fit().