#include <RdREASSimPreparatorNG.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 | |
fwk::VModule::ResultFlag | Finish () override |
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 () override |
Initialize: invoked at beginning of run (NOT beginning of event) More... | |
void | InitTiming () |
fwk::VModule::ResultFlag | Run (evt::Event &event) override |
Run: invoked once per event. More... | |
ResultFlag | RunWithTiming (evt::Event &event) |
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 Types | |
enum | eTypeOfCreatedSimulations { undefinied, event, random, discrete } |
Private Member Functions | |
std::string | AddZero (const int runID, const int numberofdigit) |
std::pair< double, double > | CherenkovRadius (const utl::Point &theCore, const utl::Vector &theAxis, const double depth=750 *utl::g/utl::cm2, const bool useParamCorrection=false) |
std::string | CreateBashContent (const std::string &inpfilename) |
std::string | CreateCoREASContent (const utl::Point &thecore, const utl::Vector &theAxis, const float energy, const std::string &corsikaparameterfile, const utl::TimeStamp theTime, const std::string eventId, const int rEventId, const int runId) |
std::string | CreateCoREASListContent (const utl::Point &core, const utl::Vector &axis, const EPrimary primary) |
std::string | CreateCORSIKAContent (const utl::Vector &theAxis, const float energy, const utl::Point &core, const EPrimary primary) |
void | CreateSimulationInput (const SimulationInput &input) |
bool | EventHitsAERA (const utl::Point &core, const utl::Vector &axis, const unsigned int nStation, const unsigned int nCherenkov) |
SimulationInput | FillEventInput (SimulationInput &input, const evt::Event &theEvent) |
SimulationInput | FillGenericRandomInput (SimulationInput &input) |
void | GenerateCoreAroundRandomSDStation (utl::Point &theCore) |
void | GenerateCoreAroundStation (const utl::Point ¢er, const std::vector< utl::Point > &crownStations, utl::Point &theCore) |
void | GenerateCoreForAERA (utl::Point &theCore, const double zenith, const double azimuth) |
utl::Point | GetCore (const double zenith=std::nan("1"), const double azimuth=std::nan("1")) |
double | GetEarlyLateCorrectedAxisDistance (const utl::Point &core, const utl::Vector &axis, const utl::Point &position, const double distanceToApex) |
std::string | GetEventNumber (const std::string &eventid) |
Extract Event Number from the Event ID string. More... | |
std::vector< Option > | GetOptionSet (const std::string &SetName) |
float | GetSeaLevelRefractiveIndex () |
bool | HasOptionSet (const std::string &SetName) |
bool | IsStationToFarAway (const utl::Point &core, const utl::Vector &axis, const utl::Point &position, const double maxRadius, const double distanceToApex) |
double | PowerLaw (const double min, const double max, const double index) const |
void | RecordFile (const std::string &filename, const std::string &buffer) |
REGISTER_MODULE ("RdREASSimPreparatorNG", RdREASSimPreparatorNG) | |
Definition at line 87 of file RdREASSimPreparatorNG.h.
|
private |
Enumerator | |
---|---|
undefinied | |
event | |
random | |
discrete |
Definition at line 168 of file RdREASSimPreparatorNG.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 |
|
private |
Definition at line 876 of file RdREASSimPreparatorNG.cc.
|
private |
Definition at line 1055 of file RdREASSimPreparatorNG.cc.
References utl::abs(), utl::cm2, atm::Atmosphere::EvaluateDensityVsHeight(), atm::Atmosphere::EvaluateDistanceVsSlantDepth(), atm::Atmosphere::EvaluateHeightVsDistance(), utl::g, atm::Atmosphere::InitSlantProfileModel(), utl::kg, utl::m3, std::pow(), and atm::ProfileResult::Y().
|
private |
Definition at line 836 of file RdREASSimPreparatorNG.cc.
|
private |
Definition at line 628 of file RdREASSimPreparatorNG.cc.
References utl::cm, fwk::LocalCoordinateSystemConstructor< Policy >::Create(), degree, galactic::eV, fwk::CoordinateSystemRegistry::Get(), utl::TimeStamp::GetGPSNanoSecond(), utl::TimeStamp::GetGPSSecond(), utl::UTMPoint::GetHeight(), utl::UTCDateTime::GetInXMLFormat(), utl::BasicVector< HepVector >::GetPhi(), utl::BasicVector< HepVector >::GetTheta(), utl::BasicVector< HepVector >::GetX(), utl::BasicVector< HepVector >::GetY(), utl::BasicVector< HepVector >::GetZ(), galactic::meter, and utl::NormalizeAngleZero2Pi().
|
private |
Definition at line 743 of file RdREASSimPreparatorNG.cc.
References utl::cm, utl::cm2, fwk::LocalCoordinateSystemConstructor< Policy >::Create(), cdet::CDetectorConstants::eAny, utl::g, utl::UTMPoint::GetHeight(), det::Detector::GetRDetector(), det::Detector::GetSDetector(), utl::BasicVector< HepVector >::GetX(), INFODebug, and max.
|
private |
Definition at line 482 of file RdREASSimPreparatorNG.cc.
References utl::cm, utl::cm2, fwk::LocalCoordinateSystemConstructor< Policy >::Create(), degree, cevt::StationConstants::ePhoton, utl::g, utl::BasicVector< HepVector >::GetPhi(), utl::BasicVector< HepVector >::GetTheta(), utl::GeV, INFO, INFODebug, INFOIntermediate, utl::micro, utl::NormalizeAngleZero2Pi(), and galactic::tesla.
|
private |
Definition at line 397 of file RdREASSimPreparatorNG.cc.
References RdREASSimPreparatorNG::SimulationInput::axis, RdREASSimPreparatorNG::SimulationInput::core, fwk::LocalCoordinateSystemConstructor< Policy >::Create(), utl::deg, galactic::EeV, RdREASSimPreparatorNG::SimulationInput::energy, RdREASSimPreparatorNG::SimulationInput::eventId, fwk::MagneticFieldModel::GetDeclination(), fwk::MagneticFieldModel::GetMagneticFieldVector(), utl::BasicVector< HepVector >::GetPhi(), utl::BasicVector< HepVector >::GetTheta(), utl::BasicVector< HepVector >::GetX(), utl::BasicVector< HepVector >::GetY(), utl::BasicVector< HepVector >::GetZ(), INFODebug, fwk::MagneticFieldModel::instance(), RdREASSimPreparatorNG::SimulationInput::primary, RdREASSimPreparatorNG::SimulationInput::rEventId, RdREASSimPreparatorNG::SimulationInput::runId, utl::Sqr(), sqrt(), and RdREASSimPreparatorNG::SimulationInput::time.
|
private |
Definition at line 1088 of file RdREASSimPreparatorNG.cc.
|
private |
Definition at line 346 of file RdREASSimPreparatorNG.cc.
References RdREASSimPreparatorNG::SimulationInput::axis, RdREASSimPreparatorNG::SimulationInput::core, RdREASSimPreparatorNG::SimulationInput::energy, RdREASSimPreparatorNG::SimulationInput::eventId, evt::ShowerSRecData::GetAxis(), evt::ShowerRRecData::GetAxis(), evt::ShowerSRecData::GetCorePosition(), evt::ShowerRRecData::GetCorePosition(), evt::ShowerSRecData::GetEnergy(), evt::Event::GetHeader(), revt::REvent::GetHeader(), revt::Header::GetId(), evt::Header::GetId(), evt::ShowerRRecData::GetParameter(), evt::Event::GetRecShower(), evt::Event::GetREvent(), evt::ShowerRecData::GetRRecShower(), revt::Header::GetRunNumber(), evt::ShowerRecData::GetSRecShower(), evt::Header::GetTime(), evt::ShowerRRecData::HasCorePosition(), RdREASSimPreparatorNG::SimulationInput::rEventId, RdREASSimPreparatorNG::SimulationInput::runId, and RdREASSimPreparatorNG::SimulationInput::time.
|
private |
Definition at line 312 of file RdREASSimPreparatorNG.cc.
References RdREASSimPreparatorNG::SimulationInput::axis, RdREASSimPreparatorNG::SimulationInput::core, RdREASSimPreparatorNG::SimulationInput::energy, utl::eV, UnivRecNS::high, utl::BasicVector< HepVector >::kSpherical, UnivRecNS::low, std::pow(), and sqrt().
|
overridevirtual |
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 284 of file RdREASSimPreparatorNG.cc.
References io::eSuccess, and INFO.
|
private |
Definition at line 971 of file RdREASSimPreparatorNG.cc.
References cdet::CDetectorConstants::eInfill750, cdet::CDetectorConstants::eStandard, sdet::Station::GetCrown(), RdREASSimPreparatorNG::GetInfillCrown(), sdet::Station::GetPosition(), and sdet::SDetector::GetStation().
|
private |
Definition at line 916 of file RdREASSimPreparatorNG.cc.
References utl::UTMPoint::GetBand(), utl::BasicVector< HepVector >::GetCoordinateSystem(), utl::UTMPoint::GetEasting(), utl::UTMPoint::GetHeight(), utl::UTMPoint::GetNorthing(), utl::UTMPoint::GetZone(), and galactic::meter.
|
private |
Definition at line 1017 of file RdREASSimPreparatorNG.cc.
References utl::BasicVector< HepVector >::kSpherical.
|
private |
Definition at line 295 of file RdREASSimPreparatorNG.cc.
|
private |
Definition at line 694 of file RdREASSimPreparatorNG.cc.
References fwk::LocalCoordinateSystemConstructor< Policy >::Create(), utl::RadioGeometryUtilities::GetEarlyLateCorrectionFactor(), fwk::MagneticFieldModel::GetMagneticFieldVector(), utl::RadioGeometryUtilities::GetVectorInShowerPlaneVxB(), fwk::MagneticFieldModel::instance(), max, utl::Sqr(), and sqrt().
|
private |
Extract Event Number from the Event ID string.
Definition at line 862 of file RdREASSimPreparatorNG.cc.
|
private |
Definition at line 886 of file RdREASSimPreparatorNG.cc.
|
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().
|
private |
Definition at line 1036 of file RdREASSimPreparatorNG.cc.
|
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().
|
private |
Definition at line 901 of file RdREASSimPreparatorNG.cc.
|
overridevirtual |
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 63 of file RdREASSimPreparatorNG.cc.
References io::eSuccess, RdREASSimPreparatorNG::Option::fComment, RdREASSimPreparatorNG::Option::fContent, RdREASSimPreparatorNG::Option::fName, RdREASSimPreparatorNG::OptionSet::fName, RdREASSimPreparatorNG::Set::fNumberOfCards, RdREASSimPreparatorNG::OptionSet::fOptions, RdREASSimPreparatorNG::Set::fPrimary, utl::Branch::Get(), utl::Branch::GetChild(), utl::Branch::GetData(), utl::Branch::GetFirstChild(), utl::Branch::GetNextSibling(), and utl::Branch::GetTopBranch().
|
inlineinherited |
Definition at line 95 of file VModule.h.
References fwk::VModule::fStopwatch, and utl::Stopwatch::Reset().
|
private |
Definition at line 717 of file RdREASSimPreparatorNG.cc.
References fwk::LocalCoordinateSystemConstructor< Policy >::Create(), and utl::BasicVector< HepVector >::GetR().
|
private |
Definition at line 452 of file RdREASSimPreparatorNG.cc.
References INFO, and std::pow().
|
private |
Definition at line 473 of file RdREASSimPreparatorNG.cc.
|
private |
|
overridevirtual |
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 186 of file RdREASSimPreparatorNG.cc.
References RdREASSimPreparatorNG::SimulationInput::axis, RdREASSimPreparatorNG::SimulationInput::core, RdREASSimPreparatorNG::SimulationInput::energy, io::eSuccess, RdREASSimPreparatorNG::SimulationInput::eventId, INFO, utl::BasicVector< HepVector >::kSpherical, RdREASSimPreparatorNG::SimulationInput::primary, RdREASSimPreparatorNG::SimulationInput::rEventId, RdREASSimPreparatorNG::SimulationInput::runId, RdREASSimPreparatorNG::SimulationInput::time, det::Detector::Update(), and utl::AugerException::what().
|
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 182 of file RdREASSimPreparatorNG.h.
|
private |
Definition at line 181 of file RdREASSimPreparatorNG.h.
|
private |
Definition at line 232 of file RdREASSimPreparatorNG.h.
|
private |
Definition at line 211 of file RdREASSimPreparatorNG.h.
|
private |
Definition at line 210 of file RdREASSimPreparatorNG.h.
|
private |
Definition at line 207 of file RdREASSimPreparatorNG.h.
|
private |
Definition at line 188 of file RdREASSimPreparatorNG.h.
|
private |
Definition at line 189 of file RdREASSimPreparatorNG.h.
|
private |
Definition at line 187 of file RdREASSimPreparatorNG.h.
|
private |
Definition at line 231 of file RdREASSimPreparatorNG.h.
|
private |
Definition at line 184 of file RdREASSimPreparatorNG.h.
|
private |
Definition at line 183 of file RdREASSimPreparatorNG.h.
|
private |
Definition at line 185 of file RdREASSimPreparatorNG.h.
|
private |
Definition at line 192 of file RdREASSimPreparatorNG.h.
|
private |
Definition at line 212 of file RdREASSimPreparatorNG.h.
|
private |
Definition at line 193 of file RdREASSimPreparatorNG.h.
|
private |
Definition at line 206 of file RdREASSimPreparatorNG.h.
|
private |
Definition at line 209 of file RdREASSimPreparatorNG.h.
|
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 203 of file RdREASSimPreparatorNG.h.
|
private |
Definition at line 220 of file RdREASSimPreparatorNG.h.
|
private |
Definition at line 221 of file RdREASSimPreparatorNG.h.
|
private |
Definition at line 222 of file RdREASSimPreparatorNG.h.
|
private |
Definition at line 228 of file RdREASSimPreparatorNG.h.
|
private |
Definition at line 233 of file RdREASSimPreparatorNG.h.
|
private |
Definition at line 235 of file RdREASSimPreparatorNG.h.
|
private |
Definition at line 219 of file RdREASSimPreparatorNG.h.
|
private |
Definition at line 236 of file RdREASSimPreparatorNG.h.
|
private |
Definition at line 201 of file RdREASSimPreparatorNG.h.
|
private |
Definition at line 200 of file RdREASSimPreparatorNG.h.
|
private |
Definition at line 199 of file RdREASSimPreparatorNG.h.
|
private |
Definition at line 202 of file RdREASSimPreparatorNG.h.
|
private |
Definition at line 196 of file RdREASSimPreparatorNG.h.
|
private |
Definition at line 241 of file RdREASSimPreparatorNG.h.
|
private |
Definition at line 238 of file RdREASSimPreparatorNG.h.
|
private |
Definition at line 217 of file RdREASSimPreparatorNG.h.
|
private |
Definition at line 166 of file RdREASSimPreparatorNG.h.
|
private |
Definition at line 194 of file RdREASSimPreparatorNG.h.
|
private |
Definition at line 216 of file RdREASSimPreparatorNG.h.
|
private |
Definition at line 176 of file RdREASSimPreparatorNG.h.
|
private |
Definition at line 239 of file RdREASSimPreparatorNG.h.
|
private |
Definition at line 230 of file RdREASSimPreparatorNG.h.
|
private |
Definition at line 224 of file RdREASSimPreparatorNG.h.
|
private |
Definition at line 178 of file RdREASSimPreparatorNG.h.
|
private |
Definition at line 175 of file RdREASSimPreparatorNG.h.
|
private |
Definition at line 197 of file RdREASSimPreparatorNG.h.
|
private |
Definition at line 227 of file RdREASSimPreparatorNG.h.
|
private |
Definition at line 214 of file RdREASSimPreparatorNG.h.
|
private |
Definition at line 213 of file RdREASSimPreparatorNG.h.
|
private |
Definition at line 208 of file RdREASSimPreparatorNG.h.
|
private |
Definition at line 198 of file RdREASSimPreparatorNG.h.
|
private |
Definition at line 190 of file RdREASSimPreparatorNG.h.
|
private |
Definition at line 205 of file RdREASSimPreparatorNG.h.
|
private |
Definition at line 225 of file RdREASSimPreparatorNG.h.
|
private |
Definition at line 226 of file RdREASSimPreparatorNG.h.
|
private |
Definition at line 180 of file RdREASSimPreparatorNG.h.
|
private |
Definition at line 179 of file RdREASSimPreparatorNG.h.