|
LDMX Software
|
Conditions provider for the per-channel tracker pedestals/noise. More...
Public Member Functions | |
| TrackerPedestalProvider (const std::string &name, const std::string &tagname, const framework::config::Parameters ¶meters, framework::Process &process) | |
| std::pair< const framework::ConditionsObject *, framework::ConditionsIOV > | getCondition (const ldmx::EventHeader &) override |
| Pure virtual getCondition function. | |
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 | 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 Member Functions | |
| void | loadJson (TrackerPedestals &peds) const |
Private Attributes | |
| std::string | pedestal_file_ |
| std::string | pedestal_format_ {"json"} |
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. | |
Conditions provider for the per-channel tracker pedestals/noise.
Reads the pedestal file written by PedestalCalculator and serves it as a TrackerPedestals conditions object. The storage backend ("json"; future: "sqlite", ...) is selected by the pedestal_format parameter, so the choice of source lives entirely here rather than in any consuming processor.
Definition at line 23 of file TrackerPedestalProvider.cxx.
|
inline |
Definition at line 25 of file TrackerPedestalProvider.cxx.
|
inlineoverridevirtual |
Pure virtual getCondition function.
Must be implemented by any Conditions providers.
Implements framework::ConditionsObjectProvider.
Definition at line 42 of file TrackerPedestalProvider.cxx.
|
inlineprivate |
Definition at line 64 of file TrackerPedestalProvider.cxx.
|
private |
Definition at line 94 of file TrackerPedestalProvider.cxx.
|
private |
Definition at line 95 of file TrackerPedestalProvider.cxx.