#include <RdBeamFormer.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 | |
utl::TraceD | crosscorr (std::vector< revt::StationFFTDataContainer > &stationData, int nStat, double binning, int start, int stop) |
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 () |
utl::TraceD | powertrace (std::vector< revt::StationFFTDataContainer > &stationData, int nStat, double binning, int start, int stop) |
RdBeamFormer () | |
fwk::VModule::ResultFlag | Run (evt::Event &event) |
Run: invoked once per event. More... | |
ResultFlag | RunWithTiming (evt::Event &event) |
double | shiftTraces (std::vector< revt::StationFFTDataContainer > &stationData, int &nStat, double &binning, int &start, int &stop, evt::Event &event) |
utl::TraceD | xtrace (utl::TraceD ccTrace, utl::TraceD ccNormal, utl::TraceD pwNormal) |
~RdBeamFormer () | |
Static Public Member Functions | |
static std::string | GetResultFlagByName (const ResultFlag flag) |
Protected Types | |
enum | InfoLevel { eInfoNone = 0, eInfoFinal = 1, eInfoIntermediate = 2, eInfoDebug = 3 } |
Protected Member Functions | |
evt::BeamPeak | findPeak (const utl::TraceD &trace, const double timeOffset) |
Protected Attributes | |
int | fInfoLevel = 0 |
enum gridtype_t | gridtype |
double | offsetfactor |
std::string | outfile |
int | startbin |
int | stopbin |
RdWaveModel * | waveModel |
std::string | waveModelConf |
Private Member Functions | |
void | efieldproduct (const revt::StationTimeSeries &in1, const revt::StationTimeSeries &in2, utl::TraceD &out, int start, int stop) |
void | efieldtopower (const revt::StationTimeSeries &in, utl::TraceD &out, int start, int stop) |
REGISTER_MODULE ("RdBeamFormer", RdBeamFormer) | |
void | WriteASCII (const utl::TraceD &cc, const utl::TraceD &power, const utl::TraceD &x, const evt::BeamPeak &ccPeak, const evt::BeamPeak &pwPeak, const evt::BeamPeak &xPeak, const evt::Event &event) const |
void | WritePeak (const evt::BeamPeak &Peak, const std::string &filename, const evt::ShowerRRecData &rrec) const |
void | WriteTrace (const utl::TraceD &trace, const evt::BeamPeak &Peak, const std::string &filename, const evt::ShowerRRecData &rrec) const |
Private Attributes | |
utl::CoordinateSystemPtr | coreCS |
long | fNumCalls |
Definition at line 60 of file RdBeamFormer.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 |
RdBeamFormer::RdBeamFormer::RdBeamFormer | ( | ) |
Definition at line 82 of file RdBeamFormer.cc.
RdBeamFormer::RdBeamFormer::~RdBeamFormer | ( | ) |
Definition at line 86 of file RdBeamFormer.cc.
TraceD RdBeamFormer::RdBeamFormer::crosscorr | ( | std::vector< revt::StationFFTDataContainer > & | stationData, |
int | nStat, | ||
double | binning, | ||
int | start, | ||
int | stop | ||
) |
|
inlineprivate |
Definition at line 499 of file RdBeamFormer.cc.
References utl::Trace< T >::Begin().
Referenced by crosscorr().
|
inlineprivate |
Definition at line 546 of file RdBeamFormer.cc.
References utl::Trace< T >::Begin().
Referenced by powertrace().
|
protected |
Definition at line 589 of file RdBeamFormer.cc.
References utl::Trace< T >::Begin(), utl::Trace< T >::End(), utl::Trace< T >::GetBinning(), utl::Trace< T >::GetStart(), utl::Trace< T >::GetStop(), max, utl::TraceAlgorithm::Mean(), and utl::TraceAlgorithm::RootMeanSquare().
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 1138 of file RdBeamFormer.cc.
References fwk::VModule::eSuccess, INFO, and waveModel.
|
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 91 of file RdBeamFormer.cc.
References RdBeamFormer::carthesian, fwk::VModule::eSuccess, utl::Branch::GetChild(), utl::Branch::GetData(), utl::Branch::GetTopBranch(), gridtype, INFO, RdBeamFormer::none, offsetfactor, outfile, RdBeamFormer::polar, startbin, stopbin, waveModel, and waveModelConf.
|
inlineinherited |
Definition at line 95 of file VModule.h.
References fwk::VModule::fStopwatch, and utl::Stopwatch::Reset().
TraceD RdBeamFormer::RdBeamFormer::powertrace | ( | std::vector< revt::StationFFTDataContainer > & | stationData, |
int | nStat, | ||
double | binning, | ||
int | start, | ||
int | stop | ||
) |
|
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 624 of file RdBeamFormer.cc.
References revt::REvent::CandidateStationsBegin(), revt::REvent::CandidateStationsEnd(), crosscorr(), DEBUGLOG, fwk::VModule::eContinueLoop, fwk::VModule::eSuccess, findPeak(), revt::REvent::GetHeader(), revt::Header::GetId(), revt::Header::GetTime(), evt::Event::HasRecShower(), evt::Event::HasREvent(), revt::Station::IsSaturated(), utl::power, powertrace(), PRINT, shiftTraces(), WARNING, WriteASCII(), and xtrace().
|
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().
double RdBeamFormer::RdBeamFormer::shiftTraces | ( | std::vector< revt::StationFFTDataContainer > & | stationData, |
int & | nStat, | ||
double & | binning, | ||
int & | start, | ||
int & | stop, | ||
evt::Event & | event | ||
) |
Definition at line 131 of file RdBeamFormer.cc.
References utl::abs(), revt::REvent::CandidateStationsBegin(), revt::REvent::CandidateStationsEnd(), coreCS, fwk::LocalCoordinateSystemConstructor< Policy >::Create(), RdBeamFormer::RdWaveModel::delay(), fwk::VModule::eFailure, eps, ERROR, evt::ShowerRRecData::GetAxis(), evt::ShowerRRecData::GetCorePosition(), revt::Station::GetFFTDataContainer(), revt::StationRecData::GetParameter(), rdet::Station::GetPosition(), rdet::RDetector::GetStation(), revt::StationRecData::HasParameter(), revt::Station::IsSaturated(), offsetfactor, RdBeamFormer::RdWaveModel::setOrigin(), RdBeamFormer::RdWaveModel::setSkyPos(), utl::FFTDataContainerAlgorithm::ShiftTimeSeries(), and waveModel.
Referenced by Run().
|
private |
Definition at line 1147 of file RdBeamFormer.cc.
References utl::abs(), RdGeoCeLDFFitter::b, coreCS, degree, eps, fNumCalls, evt::ShowerRRecData::GetAxis(), evt::ShowerRRecData::GetParameter(), km, ns, outfile, SSTR, waveModelConf, and WritePeak().
Referenced by Run().
|
private |
Definition at line 1306 of file RdBeamFormer.cc.
References RdBeamFormer::carthesian, coreCS, degree, fNumCalls, evt::ShowerRRecData::GetAxis(), evt::ShowerRRecData::GetParameter(), gridtype, km, ns, out, RdBeamFormer::polar, and waveModelConf.
Referenced by WriteASCII().
|
private |
Definition at line 1231 of file RdBeamFormer.cc.
References RdBeamFormer::carthesian, coreCS, degree, evt::ShowerRRecData::GetAxis(), utl::Trace< T >::GetBinning(), evt::ShowerRRecData::GetParameter(), utl::Trace< T >::GetSize(), gridtype, km, utl::nanosecond, ns, out, RdBeamFormer::polar, startbin, and waveModelConf.
TraceD RdBeamFormer::RdBeamFormer::xtrace | ( | utl::TraceD | ccTrace, |
utl::TraceD | ccNormal, | ||
utl::TraceD | pwNormal | ||
) |
Definition at line 577 of file RdBeamFormer.cc.
References utl::abs(), utl::Trace< T >::Begin(), utl::Trace< T >::End(), and result.
Referenced by Run().
|
private |
Definition at line 97 of file RdBeamFormer.h.
Referenced by shiftTraces(), WriteASCII(), WritePeak(), and WriteTrace().
|
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().
|
mutableprivate |
Definition at line 116 of file RdBeamFormer.h.
Referenced by WriteASCII(), and WritePeak().
|
protected |
Definition at line 90 of file RdBeamFormer.h.
Referenced by Init(), WritePeak(), and WriteTrace().
|
protected |
Definition at line 88 of file RdBeamFormer.h.
Referenced by Init(), and shiftTraces().
|
protected |
Definition at line 91 of file RdBeamFormer.h.
Referenced by Init(), and WriteASCII().
|
protected |
Definition at line 87 of file RdBeamFormer.h.
Referenced by Init(), and WriteTrace().
|
protected |
Definition at line 87 of file RdBeamFormer.h.
Referenced by Init().
|
protected |
Definition at line 84 of file RdBeamFormer.h.
Referenced by Finish(), Init(), and shiftTraces().
|
protected |
Definition at line 85 of file RdBeamFormer.h.
Referenced by Init(), WriteASCII(), WritePeak(), and WriteTrace().