7 #include <fwk/VModule.h>
std::vector< std::map< int, std::pair< double, double > > > fReferencePhases
Internal storage of reference phases: VectorCounter:,nBeaconFreq, Key: StationID, Value: RefPhase...
std::map< int, int > fEventsPerStation
Number of events read in for each station.
Interface class to access to the Radio part of an event.
int fReferenceStation
ID of reference station.
std::map< int, std::pair< double, double > > calculateReferencePhases(std::map< int, std::vector< double > >)
Method for calculation of reference phase difference and the corresponding RMS for each station...
double fConvergenceLimit
Convergence limit for iterative calculation of reference phases.
std::string fDBServer
Name of the mysql db server.
REGISTER_MODULE("CalcBeaconRefPhase", CalcBeaconRefPhase)
void writeReferencePhasesFile(void)
Write reference phases into ASCII file.
fwk::VModule::ResultFlag Init()
Initialize: invoked at beginning of run (NOT beginning of event)
void matchStationTimeStamps(revt::REvent &) const
Calculate the reference phases.
unsigned int fMaxNumberEvents
maximum number of events, after which module sequence is stopped, and reference phases are calculated...
std::set< unsigned int > fExistingStationIDs
Set of all station IDs present in the reference phases.
std::map< double,std::map< int,std::vector< double > > > fPhaseDifferences
phase differences: BeaconFreq, Station, vector of individual phase differences (one per event) ...
virtual ~CalcBeaconRefPhase()
std::string fOutputRefPhaseFile
Name of file for ASCII output of phases (not needed for normal analysis)
int fReferenceChannel
Reference channel (ususally 1 = NS, high gain)
std::vector< double > fBeaconFrequencies
Vector of frequencies emitted by the beacon.
fwk::VModule::ResultFlag Finish()
Finish: invoked at end of the run (NOT end of the event)
ResultFlag
Flag returned by module methods to the RunController.
int fInfoLevel
xml settings: info level (verbosity)
unsigned int fEventCounter
Counts "successfull" events usable for reference phases.
Class that holds the data associated to an individual radio channel.
unsigned int fStationWithZeroPhase
Station which is set to a reference phase of 0 (exploits freedom of global constant) ...
fwk::VModule::ResultFlag Run(evt::Event &)
Run: invoked once per event.
void writeFileForDatabase(void)
Write script to transfer reference phases into database.