List of all members | Public Types | Public Member Functions | Static Public Member Functions | Private Types | Private Member Functions | Private Attributes
RdStationInterpolatorStarShape::RdStationInterpolatorStarShape Class Reference

#include <RdStationInterpolatorStarShape.h>

Inheritance diagram for RdStationInterpolatorStarShape::RdStationInterpolatorStarShape:
Inheritance graph
[legend]

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::StopwatchGetStopwatch ()
 
const utl::StopwatchGetStopwatch () const
 
std::string GetVersionInfo (const VersionInfoType v) const
 Retrieve different sorts of module version info. More...
 
VModule::ResultFlag Init ()
 Initialize: invoked at beginning of run (NOT beginning of event) More...
 
void InitTiming ()
 
 RdStationInterpolatorStarShape ()
 
VModule::ResultFlag Run (evt::Event &theevent)
 Run: invoked once per event. More...
 
ResultFlag RunWithTiming (evt::Event &event)
 
 ~RdStationInterpolatorStarShape ()
 

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 BuildSimShower (evt::ShowerSimData &theshower, const utl::CoordinateSystemPtr &coord)
 BuildSimShower-----------------------------------------------------------------------------------------------------—. More...
 
revt::StationFFTDataContainer Interpolate (const revt::StationFFTDataContainer &simData1, const revt::StationFFTDataContainer &simData2, double x1, double x2, double x, double designlowerfreq, double designupperfreq)
 interpolation between two pulses More...
 
revt::StationTimeSeries PadTimeSeries (const evt::SimRadioPulse &simtimeseries)
 padding of zeros to the end of the simtimeseries More...
 
 REGISTER_MODULE ("RdStationInterpolatorStarShape", RdStationInterpolatorStarShape)
 

Private Attributes

unsigned int fEventcounter
 
double fEventRate
 
utl::TimeInterval fEventTimeOffset
 
std::vector< int > fExcludedStationIds
 
utl::TimeStamp fFirstEventTime
 
std::vector< int > fIncludedStationIds
 
int fInfoLevel
 
double fMaximumDistance
 
double fMinimumTraceLength
 
double fTracePaddingAtFront
 
bool fUseRateTiming
 

Detailed Description

Definition at line 69 of file RdStationInterpolatorStarShape.h.

Member Enumeration Documentation

enum RdStationInterpolatorStarShape::RdStationInterpolatorStarShape::InfoLevel
private
Enumerator
eNone 
eFinal 
eIntermediate 
eObscure 
eMinuit 

Definition at line 100 of file RdStationInterpolatorStarShape.h.

enum fwk::VModule::ResultFlag
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.

Definition at line 60 of file VModule.h.

Different types of version info that can be retrieved from GetVersionInfo.

Enumerator
eFilename 
eRevisionNumber 
eDate 
eTime 
eLastEditor 

Definition at line 110 of file VModule.h.

Constructor & Destructor Documentation

RdStationInterpolatorStarShape::RdStationInterpolatorStarShape::RdStationInterpolatorStarShape ( )

Definition at line 55 of file RdStationInterpolatorStarShape.cc.

RdStationInterpolatorStarShape::RdStationInterpolatorStarShape::~RdStationInterpolatorStarShape ( )

Definition at line 68 of file RdStationInterpolatorStarShape.cc.

Member Function Documentation

void RdStationInterpolatorStarShape::RdStationInterpolatorStarShape::BuildSimShower ( evt::ShowerSimData theshower,
const utl::CoordinateSystemPtr coord 
)
private

BuildSimShower-----------------------------------------------------------------------------------------------------—.

Definition at line 509 of file RdStationInterpolatorStarShape.cc.

References evt::ShowerSimData::HasPosition(), and evt::ShowerSimData::MakeGeometry().

Referenced by Run().

fwk::VModule::ResultFlag RdStationInterpolatorStarShape::RdStationInterpolatorStarShape::Finish ( )
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 377 of file RdStationInterpolatorStarShape.cc.

References eIntermediate, fwk::VModule::eSuccess, and OUT.

std::string fwk::VModule::GetResultFlagByName ( const ResultFlag  flag)
staticinherited
utl::Stopwatch& fwk::VModule::GetStopwatch ( )
inlineinherited

Definition at line 106 of file VModule.h.

References fwk::VModule::fStopwatch.

const utl::Stopwatch& fwk::VModule::GetStopwatch ( ) const
inlineinherited

Definition at line 107 of file VModule.h.

References fwk::VModule::fStopwatch.

std::string fwk::VModule::GetVersionInfo ( const VersionInfoType  v) const
inherited
fwk::VModule::ResultFlag RdStationInterpolatorStarShape::RdStationInterpolatorStarShape::Init ( )
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 72 of file RdStationInterpolatorStarShape.cc.

References eFinal, fwk::VModule::eSuccess, fEventRate, fExcludedStationIds, fFirstEventTime, fIncludedStationIds, fInfoLevel, fMaximumDistance, fMinimumTraceLength, fTracePaddingAtFront, fUseRateTiming, utl::Branch::GetChild(), utl::Branch::GetData(), utl::Branch::GetTopBranch(), utl::hertz, utl::nanosecond, OUT, and utl::StringEquivalent().

void fwk::VModule::InitTiming ( )
inlineinherited

Definition at line 95 of file VModule.h.

References fwk::VModule::fStopwatch, and utl::Stopwatch::Reset().

revt::StationFFTDataContainer RdStationInterpolatorStarShape::RdStationInterpolatorStarShape::Interpolate ( const revt::StationFFTDataContainer simData1,
const revt::StationFFTDataContainer simData2,
double  x1,
double  x2,
double  x,
double  designlowerfreq,
double  designupperfreq 
)
private
revt::StationTimeSeries RdStationInterpolatorStarShape::RdStationInterpolatorStarShape::PadTimeSeries ( const evt::SimRadioPulse simtimeseries)
private
RdStationInterpolatorStarShape::RdStationInterpolatorStarShape::REGISTER_MODULE ( "RdStationInterpolatorStarShape"  ,
RdStationInterpolatorStarShape   
)
private
fwk::VModule::ResultFlag RdStationInterpolatorStarShape::RdStationInterpolatorStarShape::Run ( evt::Event event)
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 106 of file RdStationInterpolatorStarShape.cc.

References utl::Trace< T >::Begin(), BuildSimShower(), utl::deg, fwk::VModule::eFailure, eIntermediate, utl::Trace< T >::End(), eObscure, fwk::VModule::eSuccess, fEventTimeOffset, fExcludedStationIds, fFirstEventTime, fIncludedStationIds, fTracePaddingAtFront, fUseRateTiming, utl::Trace< T >::GetBinning(), rdet::Channel::GetDesignLowerFreq(), rdet::Channel::GetDesignUpperFreq(), evt::ShowerSimData::GetDirection(), evt::RadioSimulation::GetEventNumber(), evt::RadioSimulation::GetEventTime(), revt::REvent::GetHeader(), evt::RadioSimulation::GetLocalCoordinateSystem(), evt::SimRadioPulse::GetLocation(), evt::RadioSimulation::GetNextSimRadioPulse(), utl::FFTDataContainer< C, T, F >::GetNyquistZone(), evt::ShowerSimData::GetPosition(), evt::ShowerSimData::GetRadioSimulation(), det::Detector::GetRDetector(), evt::Event::GetREvent(), evt::RadioSimulation::GetRunNumber(), evt::Event::GetSimShower(), utl::Trace< T >::GetSize(), rdet::RDetector::GetStation(), revt::REvent::GetStation(), revt::Station::GetStationTimeSeries(), revt::Header::GetTime(), utl::FFTDataContainer< C, T, F >::GetTimeSeries(), revt::REvent::GetTrigger(), utl::BasicVector< HepVector >::GetZ(), evt::RadioSimulation::GoToFirstSimRadioPulse(), evt::Event::HasREvent(), Interpolate(), revt::Station::MakeGPSData(), evt::Event::MakeREvent(), revt::Station::MakeSimData(), revt::REvent::MakeStation(), evt::ShowerSimData::MakeTimeStamp(), revt::REvent::MakeTrigger(), revt::Station::MakeTriggerData(), galactic::meter, ok(), OUT, PadTimeSeries(), utl::Trace< T >::PushBack(), utl::Trace< T >::SetBinning(), revt::EventTrigger::SetExternalTrigger(), revt::Header::SetId(), revt::Station::SetRawTraceStartTime(), revt::Header::SetRunNumber(), revt::Header::SetTime(), rdet::RDetector::StationsBegin(), rdet::RDetector::StationsEnd(), det::Detector::Update(), and WARNING.

ResultFlag fwk::VModule::RunWithTiming ( evt::Event event)
inlineinherited

Member Data Documentation

unsigned int RdStationInterpolatorStarShape::RdStationInterpolatorStarShape::fEventcounter
private

Definition at line 98 of file RdStationInterpolatorStarShape.h.

double RdStationInterpolatorStarShape::RdStationInterpolatorStarShape::fEventRate
private

Definition at line 91 of file RdStationInterpolatorStarShape.h.

Referenced by Init().

utl::TimeInterval RdStationInterpolatorStarShape::RdStationInterpolatorStarShape::fEventTimeOffset
private

Definition at line 92 of file RdStationInterpolatorStarShape.h.

Referenced by Run().

std::vector<int> RdStationInterpolatorStarShape::RdStationInterpolatorStarShape::fExcludedStationIds
private

Definition at line 96 of file RdStationInterpolatorStarShape.h.

Referenced by Init(), and Run().

utl::TimeStamp RdStationInterpolatorStarShape::RdStationInterpolatorStarShape::fFirstEventTime
private

Definition at line 93 of file RdStationInterpolatorStarShape.h.

Referenced by Init(), and Run().

std::vector<int> RdStationInterpolatorStarShape::RdStationInterpolatorStarShape::fIncludedStationIds
private

Definition at line 95 of file RdStationInterpolatorStarShape.h.

Referenced by Init(), and Run().

int RdStationInterpolatorStarShape::RdStationInterpolatorStarShape::fInfoLevel
private

Definition at line 97 of file RdStationInterpolatorStarShape.h.

Referenced by Init().

double RdStationInterpolatorStarShape::RdStationInterpolatorStarShape::fMaximumDistance
private

We want to have a complete shower so some more information will be written (Axis)

Definition at line 88 of file RdStationInterpolatorStarShape.h.

Referenced by Init().

double RdStationInterpolatorStarShape::RdStationInterpolatorStarShape::fMinimumTraceLength
private

Definition at line 90 of file RdStationInterpolatorStarShape.h.

Referenced by Init(), and PadTimeSeries().

double RdStationInterpolatorStarShape::RdStationInterpolatorStarShape::fTracePaddingAtFront
private

Definition at line 89 of file RdStationInterpolatorStarShape.h.

Referenced by Init(), PadTimeSeries(), and Run().

bool RdStationInterpolatorStarShape::RdStationInterpolatorStarShape::fUseRateTiming
private

Definition at line 94 of file RdStationInterpolatorStarShape.h.

Referenced by Init(), and Run().


The documentation for this class was generated from the following files:

, generated on Tue Sep 26 2023.