Manager to retrieve station positions from the raw event. More...
#include <EventStationPositionsManager.h>
Public Types | |
typedef std::map< std::string, std::string > | IndexMap |
enum | Status { eFound, eNotFound } |
Specifies success or (eventually) various possible failure modes. More... | |
Public Member Functions | |
virtual Status | GetData (double &returnData, const std::string &componentProperty, const std::string &componentName, const IndexMap &componentIndex) const =0 |
virtual Status | GetData (int &returnData, const std::string &componentProperty, const std::string &componentName, const IndexMap &componentIndex) const =0 |
virtual Status | GetData (bool &, const std::string &componentProperty, const std::string &componentName, const VManager::IndexMap &) const |
virtual Status | GetData (std::string &returnData, const std::string &componentProperty, const std::string &componentName, const IndexMap &componentIndex) const =0 |
virtual Status | GetData (std::vector< double > &returnData, const std::string &componentProperty, const std::string &componentName, const IndexMap &componentIndex) const =0 |
virtual Status | GetData (std::vector< int > &returnData, const std::string &componentProperty, const std::string &componentName, const IndexMap &componentIndex) const =0 |
virtual Status | GetData (std::vector< std::string > &returnData, const std::string &componentProperty, const std::string &componentName, const IndexMap &componentIndex) const =0 |
virtual Status | GetData (std::vector< bool > &returnData, const std::string &componentProperty, const std::string &componentName, const IndexMap &componentIndex) const =0 |
virtual Status | GetData (std::list< double > &returnData, const std::string &componentProperty, const std::string &componentName, const IndexMap &componentIndex) const =0 |
virtual Status | GetData (std::list< int > &returnData, const std::string &componentProperty, const std::string &componentName, const IndexMap &componentIndex) const =0 |
virtual Status | GetData (std::list< std::string > &returnData, const std::string &componentProperty, const std::string &componentName, const IndexMap &componentIndex) const =0 |
virtual Status | GetData (std::list< std::pair< int, int >> &returnData, const std::string &componentProperty, const std::string &componentName, const IndexMap &componentIndex) const =0 |
virtual Status | GetData (utl::TabulatedFunction &returnData, const std::string &componentProperty, const std::string &componentName, const IndexMap &componentIndex) const =0 |
virtual Status | GetData (std::map< int, utl::TabulatedFunction > &returnData, const std::string &componentProperty, const std::string &componentName, const IndexMap &componentIndex) const =0 |
virtual Status | GetData (utl::TabulatedFunctionComplexLgAmpPhase &returnData, const std::string &componentProperty, const std::string &componentName, const IndexMap &componentIndex) const =0 |
virtual Status | GetData (std::map< std::string, double > &returnData, const std::string &componentProperty, const std::string &componentName, const IndexMap &componentIndex) const =0 |
virtual Status | GetData (std::vector< std::vector< int >> &, const std::string &componentProperty, const std::string &componentName, const VManager::IndexMap &) const |
virtual Status | GetData (std::map< unsigned int, int > &, const std::string &componentProperty, const std::string &componentName, const VManager::IndexMap &) const |
Status | GetData (Handle &returnData, const std::string &component, const std::string &property, const IndexMap &index=IndexMap()) const |
new data accessor More... | |
const std::string & | GetName () const |
template<> | |
VManager::Status | GetStationData (int &returnData, const string &componentProperty, const string &componentName, const IndexMap &componentIndex) const |
template<> | |
VManager::Status | GetStationData (double &returnData, const string &componentProperty, const string &componentName, const IndexMap &componentIndex) const |
template<> | |
VManager::Status | GetStationData (string &returnData, const string &componentProperty, const string &componentName, const IndexMap &componentIndex) const |
template<> | |
VManager::Status | GetStationData (vector< int > &returnData, const string &componentProperty, const string &componentName, const IndexMap &) const |
template<> | |
VManager::Status | GetStationData (vector< bool > &returnData, const string &componentProperty, const string &componentName, const IndexMap &componentIndex) const |
virtual void | Init (const std::string &configLink) |
Manager Initialization. configLink is the CentralConfig hook for the configuration file. More... | |
bool | IsInitialized () const |
void | SetName (const std::string &name) |
void | SetReportingErrors (const bool flag=true) |
Generic data accessors. More... | |
virtual | ~EventStationPositionsManager ()=default |
Static Public Member Functions | |
template<typename T > | |
static T | FindComponent (const std::string &componentName, const IndexMap &componentIndex) |
template<typename T , typename U > | |
static T | FindComponent (const std::string &componentName, const U &defaultValue, const IndexMap &componentIndex) |
static std::string | QueryInfoMessage (const Handle &returnData, const std::string &component) |
static std::string | QueryInfoMessage (const Handle &returnData, const std::string &component, const std::string &property, const IndexMap &index) |
static std::string | QueryInfoMessage (const std::string &componentProperty, const std::string &componentName) |
static std::string | QueryInfoMessage (const std::string &componentProperty, const std::string &componentName, const IndexMap &componentIndex) |
Protected Member Functions | |
template<typename T > | |
void | AddAvailability (const std::string &component) |
void | FindConfig (const std::string &configLink) |
Locate the configuration file in CentralConfig and make a Reader for it. More... | |
bool | IsReportingErrors () const |
std::string | NotImplementedMessage (const std::string &type, const std::string &componentProperty, const std::string &componentName) const |
Protected Attributes | |
std::set< std::string > | fAvailableComponents |
utl::Branch | fBranch |
bool | fIsInitialized = false |
bool | fReportingErrors = false |
Private Member Functions | |
template<typename T > | |
Status | CheckGetData (T &returnData, const std::string &componentProperty, const std::string &componentName, const IndexMap &componentIndex) const |
const IoSdStation * | FindStation (const int id) const |
const IoSdStation * | FindStation (const IndexMap &componentIndex) const |
template<typename T > | |
Status | GetStationData (T &returnData, const std::string &componentProperty, const std::string &componentName, const IndexMap &componentIndex) const |
Private Attributes | |
VMANAGER_GETDATA_HANDLE_DENIED std::string | fBand |
std::string | fCommission |
std::string | fCommissionUUB |
std::string | fDecommission |
std::string | fEllipsoid |
int | fIsUUB = 0 |
int | fZone = 0 |
Manager to retrieve station positions from the raw event.
This manager takes the station position information directly from the CDAS file. This can be useful when reading new data files which may contain stations which have not yet been entered into the PMS database.
Definition at line 28 of file EventStationPositionsManager.h.
|
inherited |
Definition at line 133 of file VManager.h.
|
inherited |
Specifies success or (eventually) various possible failure modes.
Various failure modes to be specified (for example, failure to connect to db, faiure to find db record, failure to find table name, etc
Enumerator | |
---|---|
eFound | |
eNotFound |
Definition at line 127 of file VManager.h.
|
virtualdefault |
|
inlineprotectedinherited |
Definition at line 347 of file VManager.h.
|
inlineprivate |
Definition at line 59 of file EventStationPositionsManager.h.
References det::VManager::eNotFound, and GetStationData().
|
inlinestaticinherited |
Definition at line 307 of file VManager.h.
References ERROR.
|
inlinestaticinherited |
Definition at line 322 of file VManager.h.
|
protectedinherited |
Locate the configuration file in CentralConfig and make a Reader for it.
Definition at line 25 of file VManager.cc.
|
private |
Definition at line 326 of file EventStationPositionsManager.cc.
Referenced by FindStation().
|
inlineprivate |
Definition at line 80 of file EventStationPositionsManager.h.
References FindStation().
|
pure virtualinherited |
Implemented in det::ManagerRegister, fdet::FdUpTimeFileManager, fdet::FdUpTimeSQLManager, and fwk::TestSQLManager.
Referenced by atm::AerosolDB::AerosolDB(), atm::MolecularZone::CacheLayers(), fdet::Telescope::CachePixelCloudData(), atm::VZone::CacheSlices(), atm::AerosolDB::CacheZones(), atm::LidarDB::CacheZones(), atm::MolecularDB::CacheZones(), cdet::CDetector::FetchStationGroups(), atm::GOESDB::GetAllCloudProbabilities(), rdet::AntennaType::GetAntennaData(), fdet::Camera::GetCameraChannelData(), fdet::Camera::GetCameraData(), fdet::Camera::GetCameraDataDiaphragm(), fdet::Camera::GetCameraPixelData(), fdet::Channel::GetChannelData(), rdet::Channel::GetChannelData(), atm::LidarZone::GetCloudData(), fdet::Corrector::GetCorrectorData(), rdet::RDetector::GetDetectorData(), fdet::Diaphragm::GetDiaphragmData(), fdet::Eye::GetEyeData(), fdet::FDetector::GetFDetectorData(), fdet::Filter::GetFilterData(), fdet::FDetector::GetFullEyeList(), rdet::RDetector::GetFullStationList(), cdet::CDetector::GetFullStationList(), atm::VZoneSlice::GetLambdaSliceData(), atm::MolecularLayer::GetLayerData(), fdet::Mirror::GetMirrorData(), fdet::MirrorSegment::GetMirrorSegmentData(), fdet::Pixel::GetPixelData(), fdet::Pixel::GetPixelDataDiaphragm(), cdet::Station::GetRPCData(), sdet::Scintillator::GetScintillatorData(), atm::VZoneSlice::GetSliceData(), rdet::RSimulationStationListManager::GetSourceType(), cdet::CDetector::GetStation(), rdet::Station::GetStationData(), cdet::Station::GetStationData(), fdet::Telescope::GetTelescopeData(), atm::GOESDB::HasData(), atm::LidarDB::LidarDB(), atm::LidarZone::LidarZone(), atm::MolecularDB::MolecularDB(), atm::MolecularZone::MolecularZone(), rdet::Station::SetListOfChannelIds(), and det::ComponentGroup< P, C, Creator, ManagerProvider >::Update().
|
pure virtualinherited |
Implemented in det::ManagerRegister, fdet::FdUpTimeFileManager, and fwk::TestSQLManager.
|
inlinevirtualinherited |
Definition at line 241 of file VManager.h.
|
pure virtualinherited |
Implemented in det::ManagerRegister, and fwk::TestSQLManager.
|
pure virtualinherited |
Implemented in det::ManagerRegister, and fwk::TestSQLManager.
|
pure virtualinherited |
Implemented in det::ManagerRegister, and fwk::TestSQLManager.
|
pure virtualinherited |
Implemented in det::ManagerRegister, and fwk::TestSQLManager.
|
pure virtualinherited |
Implemented in det::ManagerRegister, and fwk::TestSQLManager.
|
pure virtualinherited |
Implemented in det::ManagerRegister, and fwk::TestSQLManager.
|
pure virtualinherited |
Implemented in det::ManagerRegister, and fwk::TestSQLManager.
|
pure virtualinherited |
Implemented in det::ManagerRegister, and fwk::TestSQLManager.
|
pure virtualinherited |
|
pure virtualinherited |
|
pure virtualinherited |
Implemented in det::ManagerRegister, and fwk::TestSQLManager.
|
pure virtualinherited |
Implemented in det::ManagerRegister, and fwk::TestSQLManager.
|
pure virtualinherited |
Implemented in det::ManagerRegister, and fwk::TestSQLManager.
|
inlinevirtualinherited |
Definition at line 255 of file VManager.h.
|
inlinevirtualinherited |
Definition at line 256 of file VManager.h.
|
inlineinherited |
new data accessor
Any property of the detector is supposed to be accessible through this interface. Interface specifies the name of the property and the component to which it belongs, together with a map of (index name, index value) identifying the specific instance of the component. For example, to request the quantum efficiency of PMT 3 in station 57, one would have
Definition at line 275 of file VManager.h.
References det::VManager::CheckedGetData().
|
inlineinherited |
Definition at line 330 of file VManager.h.
References det::VManager::fName.
Referenced by det::VManager::CheckedGetData(), det::ManagerRegister::GenericGetData(), det::ManagerRegister::GetManagerData(), and det::ManagerBuilderRegisterEntry::ManagerBuilderRegisterEntry().
|
private |
Referenced by CheckGetData().
VManager::Status sdet::EventStationPositionsManager::GetStationData | ( | int & | returnData, |
const string & | componentProperty, | ||
const string & | componentName, | ||
const IndexMap & | componentIndex | ||
) | const |
Definition at line 80 of file EventStationPositionsManager.cc.
References sdet::UTMToAxes(), and WARNING.
VManager::Status sdet::EventStationPositionsManager::GetStationData | ( | double & | returnData, |
const string & | componentProperty, | ||
const string & | componentName, | ||
const IndexMap & | componentIndex | ||
) | const |
Definition at line 136 of file EventStationPositionsManager.cc.
References ERROR, sdet::outdatedMessage, and WARNING.
VManager::Status sdet::EventStationPositionsManager::GetStationData | ( | string & | returnData, |
const string & | componentProperty, | ||
const string & | componentName, | ||
const IndexMap & | componentIndex | ||
) | const |
Definition at line 185 of file EventStationPositionsManager.cc.
References ERROR, sdet::outdatedMessage, and WARNING.
VManager::Status sdet::EventStationPositionsManager::GetStationData | ( | vector< int > & | returnData, |
const string & | componentProperty, | ||
const string & | componentName, | ||
const IndexMap & | |||
) | const |
Definition at line 247 of file EventStationPositionsManager.cc.
References WARNING.
VManager::Status sdet::EventStationPositionsManager::GetStationData | ( | vector< bool > & | returnData, |
const string & | componentProperty, | ||
const string & | componentName, | ||
const IndexMap & | componentIndex | ||
) | const |
Definition at line 270 of file EventStationPositionsManager.cc.
References cdet::CDetectorConstants::eInfill433, cdet::CDetectorConstants::eInfill750, cdet::CDetectorConstants::eStandard, cdet::CDetectorConstants::kGridIndexSize, galactic::meter, utl::s, and WARNING.
|
virtual |
Manager Initialization. configLink is the CentralConfig hook for the configuration file.
This method instructs the manager to initialize itself. In the case of a manager which fetches data from an XML file, configuration involves getting the link to the appropriate configuration file from the CentralConfig and parsing the file to create a DOM or some other representation of the data in memory. For a manager which uses a MySQL database, configuration involves getting the link to the appropriate configuration file from the CentralConfig, then using the instructions in that file to establish a connection to the relevant database.
Note that one might initially think it makes more sense to just initialize managers automatically in their constructors so that developers don't need to remember to explicitly invoke the Init() method. (In fact it worked like this in an earlier version.) The rationale for not having automatic configuration via the constructors is that the configuration can now be delayed until the time that the user specifically requests a particular manager, rather than doing it at the time that the Detector object constructs the Managers. For example, when the user declares his set of desired managers in the ManagerRegister configuration, only those particular Managers will get initialized (though all available Managers will be constructed!). Consider someone who wants to test only the Fluorescence portion of the detector. By requiring explicit invocation of Init() one avoids providing hooks to all the SD related configuration files and databases which aren't even going to be used. Though the SD Managers will be constructed, no attempt will be made to Initialize them until the user specifically requests them by, for example, specifying them in the configuration file for the appropriate ManagerRegister.
Reimplemented from det::VManager.
Definition at line 34 of file EventStationPositionsManager.cc.
References fwk::CoordinateSystemRegistry::Init().
|
inlineinherited |
Definition at line 214 of file VManager.h.
References det::VManager::fIsInitialized.
Referenced by det::ManagerRegister::InterpretXML().
|
inlineprotectedinherited |
Definition at line 338 of file VManager.h.
References det::VManager::fReportingErrors.
Referenced by det::VManager::CheckedGetData(), det::XXMLManager< Info >::FindModelBranch(), det::XXMLManager< Info >::GetDataInternal(), and det::if().
|
protectedinherited |
Definition at line 47 of file VManager.cc.
|
staticinherited |
Definition at line 108 of file VManager.cc.
References det::VManager::Handle::GetTypeIdName().
Referenced by det::VManager::CheckedGetData(), det::ManagerRegister::GenericGetData(), atm::AAerosolSQLManager::GetDBResFundamental(), atm::AAerosolSQLManager::GetDBResVector(), det::ManagerRegister::GetManagerData(), fdet::Pixel::GetPixelData(), fdet::Pixel::GetPixelDataDiaphragm(), and det::if().
|
staticinherited |
Definition at line 119 of file VManager.cc.
|
inlinestaticinherited |
Definition at line 294 of file VManager.h.
|
staticinherited |
Definition at line 58 of file VManager.cc.
|
inlineinherited |
Definition at line 332 of file VManager.h.
References det::VManager::fName.
Referenced by det::ManagerRegister::InterpretXML().
|
inlineinherited |
Generic data accessors.
Any property of the detector is supposed to be accessible through this interface. Interface specifies the name of the property and the component to which it belongs, together with a map of (index name, index value) identifying the specific instance of the component. For example, to request the quantum efficiency of PMT 3 in station 57, one would have
Definition at line 231 of file VManager.h.
References det::VManager::fReportingErrors.
|
protectedinherited |
Definition at line 362 of file VManager.h.
Referenced by atm::AAerosolSQLManager::AAerosolSQLManager(), atm::ACloudSQLManager::ACloudSQLManager(), atm::ALidarSQLManager::ALidarSQLManager(), atm::ACloudSQLManager::GetDBResFundamental(), atm::ALidarSQLManager::GetDBResFundamental(), atm::AAerosolSQLManager::GetDBResFundamental(), atm::ALidarSQLManager::GetDBResVector(), and atm::AAerosolSQLManager::GetDBResVector().
|
private |
Definition at line 85 of file EventStationPositionsManager.h.
|
protectedinherited |
Definition at line 360 of file VManager.h.
Referenced by det::XXMLManager< Info >::FindRoot(), det::XXMLManager< Info >::ConfigHandler< AllowMultiConfig, dummy >::for(), and det::XXMLManager< Info >::ConfigHandler< false, dummy >::Handle().
|
private |
Definition at line 87 of file EventStationPositionsManager.h.
|
private |
Definition at line 88 of file EventStationPositionsManager.h.
|
private |
Definition at line 89 of file EventStationPositionsManager.h.
|
private |
Definition at line 86 of file EventStationPositionsManager.h.
|
mutableprotectedinherited |
Definition at line 354 of file VManager.h.
Referenced by det::VManager::IsInitialized().
|
private |
Definition at line 91 of file EventStationPositionsManager.h.
|
protectedinherited |
Definition at line 356 of file VManager.h.
Referenced by det::VManager::IsReportingErrors(), and det::VManager::SetReportingErrors().
|
private |
Definition at line 90 of file EventStationPositionsManager.h.