Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add comments describing the ConvertingESProducer[WithDependencies]T class templates #32149

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 7 additions & 0 deletions HeterogeneousCore/CUDACore/interface/ConvertingESProducerT.h
Expand Up @@ -9,6 +9,13 @@
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "FWCore/Utilities/interface/typelookup.h"

/* class template: ConvertingESProducerT
*
* This class template can be used to simplify the implementation of any ESProducer that reads
* conditions data from a record and pushes derived conditions data to the same record.
* The current use case is to convert and copy the calibrations from the CPU to the GPUs.
*/

template <typename Record, typename Target, typename Source>
class ConvertingESProducerT : public edm::ESProducer {
public:
Expand Down
Expand Up @@ -12,6 +12,14 @@
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "FWCore/Utilities/interface/typelookup.h"

/* class template: ConvertingESProducerWithDependenciesT
*
* This class template can be used to simplify the implementation of any ESProducer that reads
* multiple conditions data from one or more records record and pushes derived conditions data
* to a combined dependent record.
* The current use case is to convert and copy the calibrations from the CPU to the GPUs.
*/

namespace detail {
// simple implementation of a type zipper over 2 tuples
// here, the main requirement is the default constructor for Gen template
Expand Down