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

#include <RdGalacticDatasetMaker.h>

Inheritance diagram for RdGalacticDatasetMaker::RdGalacticDatasetMaker:
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...
 
fwk::VModule::ResultFlag Init ()
 Initialize: invoked at beginning of run (NOT beginning of event) More...
 
void InitTiming ()
 
 RdGalacticDatasetMaker ()
 
fwk::VModule::ResultFlag Run (evt::Event &event)
 Run: invoked once per event. More...
 
ResultFlag RunWithTiming (evt::Event &event)
 
virtual ~RdGalacticDatasetMaker ()
 

Static Public Member Functions

static std::string GetResultFlagByName (const ResultFlag flag)
 

Protected Types

enum  InfoLevel { eInfoNone = 0, eInfoFinal = 1, eInfoIntermediate = 2, eInfoDebug = 3 }
 

Private Member Functions

 REGISTER_MODULE ("RdGalacticDatasetMaker", RdGalacticDatasetMaker)
 

Static Private Member Functions

static int getChannelIndex (std::vector< int > vector, int element)
 
static double GetImpedanceAt (utl::Branch topBranch, int channelID, float frequencyMHz)
 
static double GPSSecToLSTHourAuger (const int gpsSec)
 
static float HHMMSS2hour (float ffHHMMSS)
 
static float onlineMean (float oldMean, float nextValue, int n)
 
static unsigned int TimeStamp2HHMMSS (const utl::TimeStamp &timest)
 

Private Attributes

std::vector< std::vector
< std::vector< std::vector
< float > > > > 
AllChannelsAndStationsDatasets
 
int fADCthreshold
 
std::vector< int > fchannels
 
int fCurChannelId
 
int fCurEventId
 
int fCurGPSSecond
 
int fCurRunId
 
int fCurStationId
 
float fCurUTChour
 
bool fdayStack
 
int fdebugData
 
bool ffilteredDebugData
 
double ffreqBinWidth
 
float fHHMMSS
 
bool fimpedanceFile
 
int fInfoLevel
 
double fMaxFrequency
 
double fMinFrequency
 
std::vector< float > freqBins
 
double fsamplingFrequency4Header
 
int fstartBin
 
std::vector< int > fStationIds
 
double fSTDthreshold
 
double ftimeBinWidth
 
int ftraceCutBinLength
 
utl::Branch impedanceTopBranch
 
std::vector< std::vector< float > > stationTraceCounter
 
std::vector< float > timeBins
 

Static Private Attributes

static revt::REventfgCurrentREvent
 

Detailed Description

Definition at line 40 of file RdGalacticDatasetMaker.h.

Member Enumeration Documentation

enum fwk::VModule::InfoLevel
protectedinherited
Enumerator
eInfoNone 
eInfoFinal 
eInfoIntermediate 
eInfoDebug 

Definition at line 125 of file VModule.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

RdGalacticDatasetMaker::RdGalacticDatasetMaker::RdGalacticDatasetMaker ( )

Definition at line 49 of file RdGalacticDatasetMaker.cc.

virtual RdGalacticDatasetMaker::RdGalacticDatasetMaker::~RdGalacticDatasetMaker ( )
inlinevirtual

Definition at line 44 of file RdGalacticDatasetMaker.h.

Member Function Documentation

VModule::ResultFlag RdGalacticDatasetMaker::RdGalacticDatasetMaker::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 540 of file RdGalacticDatasetMaker.cc.

References AllChannelsAndStationsDatasets, fwk::VModule::eSuccess, fchannels, fdayStack, freqBins, fStationIds, INFO, INFODebug, INFOIntermediate, out, stationTraceCounter, and timeBins.

int RdGalacticDatasetMaker::RdGalacticDatasetMaker::getChannelIndex ( std::vector< int >  vector,
int  element 
)
staticprivate

Definition at line 703 of file RdGalacticDatasetMaker.cc.

References fwk::VModule::eFailure, and ERROR.

Referenced by Run().

double RdGalacticDatasetMaker::RdGalacticDatasetMaker::GetImpedanceAt ( utl::Branch  topBranch,
int  channelID,
float  frequencyMHz 
)
staticprivate
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
double RdGalacticDatasetMaker::RdGalacticDatasetMaker::GPSSecToLSTHourAuger ( const int  gpsSec)
staticprivate

Definition at line 720 of file RdGalacticDatasetMaker.cc.

References RdGeoCeLDFFitter::a, RdGeoCeLDFFitter::b, utl::day, Dtohr, fd, utl::hour, J2000, and galactic::year.

Referenced by Run().

float RdGalacticDatasetMaker::RdGalacticDatasetMaker::HHMMSS2hour ( float  ffHHMMSS)
staticprivate

Definition at line 761 of file RdGalacticDatasetMaker.cc.

Referenced by Run().

VModule::ResultFlag RdGalacticDatasetMaker::RdGalacticDatasetMaker::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 RdGalacticDatasetMaker.cc.

References AllChannelsAndStationsDatasets, fwk::VModule::eSuccess, fADCthreshold, fchannels, fdayStack, fdebugData, ffilteredDebugData, ffreqBinWidth, fimpedanceFile, fInfoLevel, fMaxFrequency, fMinFrequency, freqBins, fsamplingFrequency4Header, fstartBin, fStationIds, fSTDthreshold, ftimeBinWidth, ftraceCutBinLength, utl::Branch::GetChild(), utl::Branch::GetData(), utl::Branch::GetFirstChild(), utl::Branch::GetNextSibling(), utl::Branch::GetTopBranch(), impedanceTopBranch, INFO, INFODebug, INFOFinal, out, utl::Branch::push_back(), stationTraceCounter, timeBins, and WARNING.

void fwk::VModule::InitTiming ( )
inlineinherited

Definition at line 95 of file VModule.h.

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

float RdGalacticDatasetMaker::RdGalacticDatasetMaker::onlineMean ( float  oldMean,
float  nextValue,
int  n 
)
staticprivate

Definition at line 697 of file RdGalacticDatasetMaker.cc.

Referenced by Run().

RdGalacticDatasetMaker::RdGalacticDatasetMaker::REGISTER_MODULE ( "RdGalacticDatasetMaker"  ,
RdGalacticDatasetMaker   
)
private
VModule::ResultFlag RdGalacticDatasetMaker::RdGalacticDatasetMaker::Run ( evt::Event event)
virtual
ResultFlag fwk::VModule::RunWithTiming ( evt::Event event)
inlineinherited
unsigned int RdGalacticDatasetMaker::RdGalacticDatasetMaker::TimeStamp2HHMMSS ( const utl::TimeStamp timest)
staticprivate

Member Data Documentation

std::vector<std::vector<std::vector<std::vector<float> > > > RdGalacticDatasetMaker::RdGalacticDatasetMaker::AllChannelsAndStationsDatasets
private

Definition at line 78 of file RdGalacticDatasetMaker.h.

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

int RdGalacticDatasetMaker::RdGalacticDatasetMaker::fADCthreshold
private

Definition at line 67 of file RdGalacticDatasetMaker.h.

Referenced by Init(), and Run().

std::vector<int> RdGalacticDatasetMaker::RdGalacticDatasetMaker::fchannels
private

Definition at line 74 of file RdGalacticDatasetMaker.h.

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

int RdGalacticDatasetMaker::RdGalacticDatasetMaker::fCurChannelId
private

Definition at line 61 of file RdGalacticDatasetMaker.h.

Referenced by Run().

int RdGalacticDatasetMaker::RdGalacticDatasetMaker::fCurEventId
private

Definition at line 59 of file RdGalacticDatasetMaker.h.

Referenced by Run().

int RdGalacticDatasetMaker::RdGalacticDatasetMaker::fCurGPSSecond
private

Definition at line 62 of file RdGalacticDatasetMaker.h.

Referenced by Run().

int RdGalacticDatasetMaker::RdGalacticDatasetMaker::fCurRunId
private

Definition at line 58 of file RdGalacticDatasetMaker.h.

Referenced by Run().

int RdGalacticDatasetMaker::RdGalacticDatasetMaker::fCurStationId
private

Definition at line 60 of file RdGalacticDatasetMaker.h.

Referenced by Run().

float RdGalacticDatasetMaker::RdGalacticDatasetMaker::fCurUTChour
private

Definition at line 63 of file RdGalacticDatasetMaker.h.

Referenced by Run().

bool RdGalacticDatasetMaker::RdGalacticDatasetMaker::fdayStack
private

Definition at line 72 of file RdGalacticDatasetMaker.h.

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

int RdGalacticDatasetMaker::RdGalacticDatasetMaker::fdebugData
private

Definition at line 71 of file RdGalacticDatasetMaker.h.

Referenced by Init(), and Run().

bool RdGalacticDatasetMaker::RdGalacticDatasetMaker::ffilteredDebugData
private

Definition at line 73 of file RdGalacticDatasetMaker.h.

Referenced by Init(), and Run().

double RdGalacticDatasetMaker::RdGalacticDatasetMaker::ffreqBinWidth
private

Definition at line 69 of file RdGalacticDatasetMaker.h.

Referenced by Init().

REvent * RdGalacticDatasetMaker::RdGalacticDatasetMaker::fgCurrentREvent
staticprivate

Definition at line 94 of file RdGalacticDatasetMaker.h.

Referenced by Run().

float RdGalacticDatasetMaker::RdGalacticDatasetMaker::fHHMMSS
private

Definition at line 64 of file RdGalacticDatasetMaker.h.

Referenced by Run().

bool RdGalacticDatasetMaker::RdGalacticDatasetMaker::fimpedanceFile
private

Definition at line 89 of file RdGalacticDatasetMaker.h.

Referenced by Init(), and Run().

int RdGalacticDatasetMaker::RdGalacticDatasetMaker::fInfoLevel
private

Definition at line 57 of file RdGalacticDatasetMaker.h.

Referenced by Init().

double RdGalacticDatasetMaker::RdGalacticDatasetMaker::fMaxFrequency
private

Definition at line 80 of file RdGalacticDatasetMaker.h.

Referenced by Init().

double RdGalacticDatasetMaker::RdGalacticDatasetMaker::fMinFrequency
private

Definition at line 79 of file RdGalacticDatasetMaker.h.

Referenced by Init().

std::vector<float> RdGalacticDatasetMaker::RdGalacticDatasetMaker::freqBins
private

Definition at line 76 of file RdGalacticDatasetMaker.h.

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

double RdGalacticDatasetMaker::RdGalacticDatasetMaker::fsamplingFrequency4Header
private

Definition at line 83 of file RdGalacticDatasetMaker.h.

Referenced by Init().

int RdGalacticDatasetMaker::RdGalacticDatasetMaker::fstartBin
private

Definition at line 81 of file RdGalacticDatasetMaker.h.

Referenced by Init(), and Run().

std::vector<int> RdGalacticDatasetMaker::RdGalacticDatasetMaker::fStationIds
private

Definition at line 75 of file RdGalacticDatasetMaker.h.

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

double RdGalacticDatasetMaker::RdGalacticDatasetMaker::fSTDthreshold
private

Definition at line 68 of file RdGalacticDatasetMaker.h.

Referenced by Init(), and Run().

double RdGalacticDatasetMaker::RdGalacticDatasetMaker::ftimeBinWidth
private

Definition at line 70 of file RdGalacticDatasetMaker.h.

Referenced by Init().

int RdGalacticDatasetMaker::RdGalacticDatasetMaker::ftraceCutBinLength
private

Definition at line 82 of file RdGalacticDatasetMaker.h.

Referenced by Init(), and Run().

utl::Branch RdGalacticDatasetMaker::RdGalacticDatasetMaker::impedanceTopBranch
private

Definition at line 90 of file RdGalacticDatasetMaker.h.

Referenced by Init(), and Run().

std::vector<std::vector<float> > RdGalacticDatasetMaker::RdGalacticDatasetMaker::stationTraceCounter
private

Definition at line 86 of file RdGalacticDatasetMaker.h.

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

std::vector<float> RdGalacticDatasetMaker::RdGalacticDatasetMaker::timeBins
private

Definition at line 77 of file RdGalacticDatasetMaker.h.

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


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

, generated on Tue Sep 26 2023.