LDMX Software
|
a helpful interface for grabbing the parent conditions at once More...
Public Member Functions | |
HcalReconConditionsProvider (const std::string &name, const std::string &tagname, const framework::config::Parameters ¶meters, framework::Process &proc) | |
Retrieve the name of the parent conditions from the configuration. | |
virtual std::pair< const framework::ConditionsObject *, framework::ConditionsIOV > | getCondition (const ldmx::EventHeader &context) final override |
Get the wrapped condition. | |
Public Member Functions inherited from framework::ConditionsObjectProvider | |
ConditionsObjectProvider (const std::string &objname, const std::string &tagname, const framework::config::Parameters ¶meters, Process &process) | |
Class constructor. | |
virtual | ~ConditionsObjectProvider () |
Class destructor. | |
virtual void | releaseConditionsObject (const ConditionsObject *co) |
Called by conditions system when done with a conditions object, appropriate point for cleanup. | |
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. | |
virtual void | onNewRun (ldmx::RunHeader &) |
Callback for the ConditionsObjectProvider to take any necessary action when the processing of events starts for a given run. | |
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 | |
std::string | adc_gain_ |
name of condition object for hcal adc gains | |
std::string | adc_ped_ |
name of condition object for hcal adc pedestals | |
std::string | tot_calib_ |
name of condition object for hcal tot calibrations | |
std::string | toa_calib_ |
name of condition object for hcal toa calibrations | |
Additional Inherited Members | |
Static Public Member Functions inherited from framework::ConditionsObjectProvider | |
static void | declare (const std::string &classname, ConditionsObjectProviderMaker *) |
Internal function which is part of the PluginFactory machinery. | |
Static Public Attributes inherited from framework::ConditionsObjectProvider | |
static const int | CLASSTYPE {10} |
Constant used to types by the PluginFactory. | |
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 | theLog_ |
The logger for this ConditionsObjectProvider. | |
a helpful interface for grabbing the parent conditions at once
the most complicated task it does is calculate the "minimum" IOV from the parent conditions to make sure that it is updated as soon as it needs to be updated.
@TODO Right now, no minimum IOV calculation is being done. We just have our IOV be one run at a time.
Definition at line 64 of file HcalReconConditions.cxx.
|
inline |
Retrieve the name of the parent conditions from the configuration.
Exception | if name is not what it should be |
[in] | name | should be HcalReconConditions::CONDITIONS_NAME |
[in] | tagname | |
[in] | parameters | python configuration parameters |
[in] | proc | handle to current process |
Definition at line 85 of file HcalReconConditions.cxx.
References adc_gain_, adc_ped_, hcal::HcalReconConditions::CONDITIONS_NAME, framework::config::Parameters::getParameter(), toa_calib_, and tot_calib_.
|
inlinefinaloverridevirtual |
Get the wrapped condition.
This is where we deduce the "minimum" IOV.
Implements framework::ConditionsObjectProvider.
Definition at line 116 of file HcalReconConditions.cxx.
References adc_gain_, adc_ped_, framework::ConditionsObjectProvider::requestParentCondition(), toa_calib_, and tot_calib_.
|
private |
name of condition object for hcal adc gains
Definition at line 66 of file HcalReconConditions.cxx.
Referenced by getCondition(), and HcalReconConditionsProvider().
|
private |
name of condition object for hcal adc pedestals
Definition at line 68 of file HcalReconConditions.cxx.
Referenced by getCondition(), and HcalReconConditionsProvider().
|
private |
name of condition object for hcal toa calibrations
Definition at line 72 of file HcalReconConditions.cxx.
Referenced by getCondition(), and HcalReconConditionsProvider().
|
private |
name of condition object for hcal tot calibrations
Definition at line 70 of file HcalReconConditions.cxx.
Referenced by getCondition(), and HcalReconConditionsProvider().