|
| | EcalDetectorMapLoader (const std::string &name, const std::string &tagname, const framework::config::Parameters ¶meters, framework::Process &process) |
| |
| virtual std::pair< const framework::ConditionsObject *, framework::ConditionsIOV > | getCondition (const ldmx::EventHeader &context) |
| | Pure virtual getCondition function.
|
| |
| virtual void | releaseConditionsObject (const framework::ConditionsObject *co) |
| | Take no action on release, as the object is permanently owned by the Provider.
|
| |
|
| 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.
|
| |
| 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.
|
| |
Definition at line 10 of file EcalDetectorMap.cxx.
◆ EcalDetectorMapLoader()
Definition at line 12 of file EcalDetectorMap.cxx.
17 the_map_{nullptr} {
18 want_d2e_ = parameters.
get<
bool>(
"want_d2e");
19 cell_map_ = parameters.
get<std::string>(
"cell_map");
20 motherboard_map_ = parameters.
get<std::string>(
"motherboard_map");
21 layer_map_ = parameters.
get<std::string>(
"layer_map");
22 }
static constexpr const char * CONDITIONS_OBJECT_NAME
The name of the EID <-> DetID map for the ECal.
const Process & process() const
Get the process handle.
ConditionsObjectProvider(const std::string &objname, const std::string &tagname, const framework::config::Parameters ¶meters, Process &process)
Class constructor.
const T & get(const std::string &name) const
Retrieve the parameter of the given name.
◆ getCondition()
Pure virtual getCondition function.
Must be implemented by any Conditions providers.
Implements framework::ConditionsObjectProvider.
Definition at line 26 of file EcalDetectorMap.cxx.
26 {
27 if (!the_map_) {
28 the_map_ = new EcalDetectorMap(cell_map_, motherboard_map_, layer_map_,
29 want_d2e_);
30 }
31
32 return std::make_pair(
34 true, true));
35 }
Class which defines the run/event/type range for which a given condition is valid,...
References ldmx::EventHeader::getRun().
◆ releaseConditionsObject()
◆ cell_map_
| std::string ecal::EcalDetectorMapLoader::cell_map_ |
|
private |
◆ layer_map_
| std::string ecal::EcalDetectorMapLoader::layer_map_ |
|
private |
◆ motherboard_map_
| std::string ecal::EcalDetectorMapLoader::motherboard_map_ |
|
private |
◆ the_map_
◆ want_d2e_
| bool ecal::EcalDetectorMapLoader::want_d2e_ |
|
private |
The documentation for this class was generated from the following file: