#include <RdStationPolarizationRejector.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... | |
void | GetCovarianceMatrix (const evt::Event &event, double covarianceMatrix[3], const evt::ShowerRRecData &rShower, const utl::CoordinateSystemPtr &cs) |
void | GetLocalPolMaxima (double &pol1, double &pol2, const double angleToMagneticField, double maxChargeExcess) |
double | GetProbability () |
TVector3 | GetStationPositionvxBvxvxB (const utl::Point stationPosition, const utl::Point &corePosition, const utl::RadioGeometryUtilities &) |
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) |
void | SetMaxChargeExcess (double aMax) |
void | SetMinChargeExcess (double aMin) |
void | SetProbability (double prob) |
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 Member Functions | |
bool | CheckZenith (const double zenith, const double azimuth) |
void | GetCoreErrorEllipse (utl::Point &semiMajorAxis, utl::Point &semiMinorAxis, const utl::Point &corePosition, const double covarianceMatrix[3], const utl::CoordinateSystemPtr &cs) |
void | GetCoreErrorEllipsevxBvxvxB (TVector3 &semiMajorAxisvxBvxvxB, TVector3 &semiMinorAxisvxBvxvxB, double &rotationAngleInVxB, const utl::Point &semiMajorAxis, const utl::Point &semiMinorAxis, const utl::Point &corePosition, const utl::RadioGeometryUtilities &rdGeometryUtilities) |
TVector3 | GetEfieldInShowerPlane (const utl::Vector &efield, const utl::CoordinateSystemPtr &cs, const utl::RadioGeometryUtilities &rdGeometryUtilities) |
void | GetErrorEllipseTangentPoints (TVector3 &ellipseTangentPoint1, TVector3 &ellipseTangentPoint2, const TVector3 &stationPositionvxBvxvxB, const TVector3 &semiMajorAxisVxB, const TVector3 &semiMinorAxisVxB, const double rotationAngle) |
double | GetMaxChargeExcess (const double zenith, const double distToAxis, const double semiMajorAxisLength) |
double | GetMinChargeExcess (const double zenith, const double distToAxis, const double semiMajorAxisLength) |
double | GetPolAngleUncertainty (const double signalToNoise, const TVector3 efield, const double noiseVxB, const double noiseVxVxB) |
double | GetTangentPol (const TVector3 &stationPositionvxBvxvxB, const TVector3 &tangentPoint, const double chargeExcess, const double angleToMagneticField) |
bool | IsStationInErrorEllipse (const TVector3 &stationPositionvxBvxvxB, const TVector3 &semiMajorAxisVxB, const TVector3 &semiMinorAxisVxB, const double rotationAngle) |
REGISTER_MODULE ("RdStationPolarizationRejector", RdStationPolarizationRejector) | |
Private Attributes | |
double | fChiSquared = 0 |
bool | fConstantChargeExcess = false |
double | fMaxBeta = 0 |
double | fMaxChargeExcess = 0 |
double | fMaxChargeExcess30 [20] |
double | fMaxChargeExcess40 [20] |
double | fMaxChargeExcess50 [20] |
double | fMaxChargeExcess60 [20] |
double | fMaxSigmaBeta = 0 |
double | fMaxZenith [12] |
double | fMinChargeExcess = 0 |
double | fMinChargeExcess30 [20] |
double | fMinChargeExcess40 [20] |
double | fMinChargeExcess50 [20] |
double | fMinChargeExcess60 [20] |
int | fNoiseErrorModel = 0 |
double | fProbability = 0 |
bool | fZenithCut = false |
Definition at line 28 of file RdStationPolarizationRejector.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 373 of file RdStationPolarizationRejector.cc.
References utl::degree.
|
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 681 of file RdStationPolarizationRejector.cc.
References io::eSuccess.
|
private |
Definition at line 419 of file RdStationPolarizationRejector.cc.
References utl::abs(), utl::BasicVector< HepVector >::GetX(), utl::BasicVector< HepVector >::GetY(), utl::BasicVector< HepVector >::GetZ(), and sqrt().
|
private |
Definition at line 484 of file RdStationPolarizationRejector.cc.
References utl::RadioGeometryUtilities::GetVectorInShowerPlaneVxB(), utl::kPi, and sqrt().
void RdStationPolarizationRejector::RdStationPolarizationRejector::GetCovarianceMatrix | ( | const evt::Event & | event, |
double | covarianceMatrix[3], | ||
const evt::ShowerRRecData & | rShower, | ||
const utl::CoordinateSystemPtr & | cs | ||
) |
|
private |
Definition at line 646 of file RdStationPolarizationRejector.cc.
References utl::RadioGeometryUtilities::GetVectorInShowerPlaneVxB(), utl::BasicVector< HepVector >::GetX(), utl::BasicVector< HepVector >::GetY(), and utl::BasicVector< HepVector >::GetZ().
|
private |
Definition at line 583 of file RdStationPolarizationRejector.cc.
References std::pow(), and sqrt().
void RdStationPolarizationRejector::RdStationPolarizationRejector::GetLocalPolMaxima | ( | double & | pol1, |
double & | pol2, | ||
const double | angleToMagneticField, | ||
double | maxChargeExcess | ||
) |
Definition at line 618 of file RdStationPolarizationRejector.cc.
|
private |
Definition at line 274 of file RdStationPolarizationRejector.cc.
References utl::degree.
|
private |
Definition at line 323 of file RdStationPolarizationRejector.cc.
References utl::degree.
|
private |
Definition at line 660 of file RdStationPolarizationRejector.cc.
References utl::deg, utl::degree, INFODebug, std::pow(), and sqrt().
|
inline |
Definition at line 39 of file RdStationPolarizationRejector.h.
References fProbability.
|
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().
TVector3 RdStationPolarizationRejector::RdStationPolarizationRejector::GetStationPositionvxBvxvxB | ( | const utl::Point | stationPosition, |
const utl::Point & | corePosition, | ||
const utl::RadioGeometryUtilities & | rdGeometryUtilities | ||
) |
Definition at line 546 of file RdStationPolarizationRejector.cc.
References utl::RadioGeometryUtilities::GetVectorInShowerPlaneVxB().
|
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.
|
private |
Definition at line 631 of file RdStationPolarizationRejector.cc.
References sqrt().
|
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().
|
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 35 of file RdStationPolarizationRejector.cc.
References io::eSuccess, utl::Branch::GetChild(), utl::Branch::GetData(), fwk::CentralConfig::GetInstance(), fwk::CentralConfig::GetTopBranch(), and INFODebug.
|
inlineinherited |
Definition at line 95 of file VModule.h.
References fwk::VModule::fStopwatch, and utl::Stopwatch::Reset().
|
private |
Definition at line 561 of file RdStationPolarizationRejector.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 53 of file RdStationPolarizationRejector.cc.
References utl::Angle(), fwk::LocalCoordinateSystemConstructor< Policy >::Create(), utl::deg, utl::degree, revt::ePolarizationDeselected, io::eSuccess, utl::RadioGeometryUtilities::GetAngleToEFieldExpectation(), utl::RadioGeometryUtilities::GetDistanceToAxis(), revt::Station::GetId(), fwk::MagneticFieldModel::GetMagneticFieldVector(), revt::StationRecData::GetParameter(), utl::BasicVector< HepVector >::GetPhi(), rdet::Station::GetPosition(), det::Detector::GetRDetector(), revt::Station::GetRecData(), evt::ShowerRRecData::GetReferenceAxis(), det::Detector::GetReferenceCoordinateSystem(), evt::ShowerRRecData::GetReferenceCorePosition(), rdet::RDetector::GetStation(), utl::BasicVector< HepVector >::GetTheta(), utl::BasicVector< HepVector >::GetX(), utl::BasicVector< HepVector >::GetY(), evt::Event::HasRecShower(), evt::Event::HasREvent(), revt::Station::HasSignal(), INFODebug, INFOFinal, fwk::MagneticFieldModel::instance(), revt::Station::IsSaturated(), utl::kPi, max, utl::radian, revt::Station::SetRejectedReason(), revt::REvent::SignalStationsBegin(), revt::REvent::SignalStationsEnd(), utl::Sqr(), sqrt(), and WARNING.
|
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().
|
inline |
Definition at line 36 of file RdStationPolarizationRejector.h.
References fMaxChargeExcess.
|
inline |
Definition at line 37 of file RdStationPolarizationRejector.h.
References fMinChargeExcess.
void RdStationPolarizationRejector::RdStationPolarizationRejector::SetProbability | ( | double | prob | ) |
Definition at line 410 of file RdStationPolarizationRejector.cc.
|
private |
Definition at line 54 of file RdStationPolarizationRejector.h.
|
private |
Definition at line 50 of file RdStationPolarizationRejector.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 55 of file RdStationPolarizationRejector.h.
|
private |
Definition at line 51 of file RdStationPolarizationRejector.h.
Referenced by SetMaxChargeExcess().
|
private |
Definition at line 61 of file RdStationPolarizationRejector.h.
|
private |
Definition at line 65 of file RdStationPolarizationRejector.h.
|
private |
Definition at line 69 of file RdStationPolarizationRejector.h.
|
private |
Definition at line 73 of file RdStationPolarizationRejector.h.
|
private |
Definition at line 56 of file RdStationPolarizationRejector.h.
|
private |
Definition at line 77 of file RdStationPolarizationRejector.h.
|
private |
Definition at line 52 of file RdStationPolarizationRejector.h.
Referenced by SetMinChargeExcess().
|
private |
Definition at line 63 of file RdStationPolarizationRejector.h.
|
private |
Definition at line 67 of file RdStationPolarizationRejector.h.
|
private |
Definition at line 71 of file RdStationPolarizationRejector.h.
|
private |
Definition at line 75 of file RdStationPolarizationRejector.h.
|
private |
Definition at line 58 of file RdStationPolarizationRejector.h.
|
private |
Definition at line 53 of file RdStationPolarizationRejector.h.
Referenced by GetProbability().
|
private |
Definition at line 57 of file RdStationPolarizationRejector.h.