|
LDMX Software
|
Public Member Functions | |
| HcalGeometryProvider (const std::string &name, const std::string &tagname, const framework::config::Parameters ¶meters, framework::Process &process) | |
| Class constructor. | |
| virtual | ~HcalGeometryProvider () |
| Destructor. | |
| virtual std::pair< const framework::ConditionsObject *, framework::ConditionsIOV > | getCondition (const ldmx::EventHeader &context) |
| Provides access to the HcalGeometry. | |
| virtual void | releaseConditionsObject (const framework::ConditionsObject *co) |
| Take no action on release, as the object is permanently owned by the Provider. | |
| virtual void | onNewRun (ldmx::RunHeader &rh) |
| Callback for the ConditionsObjectProvider to take any necessary action when the processing of events starts for a given run. | |
Public Member Functions inherited from framework::ConditionsObjectProvider | |
| DECLARE_FACTORY (ConditionsObjectProvider, std::shared_ptr< ConditionsObjectProvider >, const std::string &, const std::string &, const framework::config::Parameters &, Process &) | |
| declare that we have a factory for these types of classes | |
| ConditionsObjectProvider (const std::string &objname, const std::string &tagname, const framework::config::Parameters ¶meters, Process &process) | |
| Class constructor. | |
| virtual | ~ConditionsObjectProvider ()=default |
| Class destructor. | |
| virtual void | onProcessStart () |
| Callback for the ConditionsObjectProvider to take any necessary action when the processing of events starts. | |
| virtual void | onProcessEnd () |
| Callback for the ConditionsObjectProvider to take any necessary action when the processing of events finishes, such as closing database connections. | |
| const std::string & | getConditionObjectName () const |
| Get the list of conditions objects available from this provider. | |
| const std::string & | getTagName () const |
| Access the tag name. | |
Private Attributes | |
| framework::config::Parameters | params_ |
| Handle to the parameters, needed for future use during get condition. | |
| std::string | detector_geometry_ |
| Geometry as last used. | |
| ldmx::HcalGeometry * | hcal_geometry_ |
Additional Inherited Members | |
Protected Member Functions inherited from framework::ConditionsObjectProvider | |
| std::pair< const ConditionsObject *, ConditionsIOV > | requestParentCondition (const std::string &name, const ldmx::EventHeader &context) |
| Request another condition needed to construct this condition. | |
| const Process & | process () const |
| Get the process handle. | |
Protected Attributes inherited from framework::ConditionsObjectProvider | |
| logging::logger | the_log_ |
| The logger for this ConditionsObjectProvider. | |
Definition at line 18 of file HcalGeometryProvider.cxx.
| hcal::HcalGeometryProvider::HcalGeometryProvider | ( | const std::string & | name, |
| const std::string & | tagname, | ||
| const framework::config::Parameters & | parameters, | ||
| framework::Process & | process ) |
Class constructor.
| parameters | – uses the "HcalGeometry" section to configure the HcalGeometry |
Definition at line 73 of file HcalGeometryProvider.cxx.
|
virtual |
Destructor.
Definition at line 84 of file HcalGeometryProvider.cxx.
|
virtual |
Provides access to the HcalGeometry.
Implements framework::ConditionsObjectProvider.
Definition at line 90 of file HcalGeometryProvider.cxx.
References detector_geometry_, framework::config::Parameters::exists(), framework::config::Parameters::get(), ldmx::EventHeader::getRun(), framework::config::Parameters::keys(), and params_.
|
inlinevirtual |
Callback for the ConditionsObjectProvider to take any necessary action when the processing of events starts for a given run.
Reimplemented from framework::ConditionsObjectProvider.
Definition at line 48 of file HcalGeometryProvider.cxx.
References detector_geometry_, and ldmx::RunHeader::getDetectorName().
|
inlinevirtual |
Take no action on release, as the object is permanently owned by the Provider.
Reimplemented from framework::ConditionsObjectProvider.
Definition at line 46 of file HcalGeometryProvider.cxx.
|
private |
Geometry as last used.
Definition at line 69 of file HcalGeometryProvider.cxx.
Referenced by getCondition(), and onNewRun().
|
private |
Definition at line 70 of file HcalGeometryProvider.cxx.
|
private |
Handle to the parameters, needed for future use during get condition.
Definition at line 67 of file HcalGeometryProvider.cxx.
Referenced by getCondition().