Skip to content

Commit

Permalink
Add comments describing the ConvertingESProducer[WithDependencies]T c…
Browse files Browse the repository at this point in the history
…lass templates
  • Loading branch information
fwyzard committed Nov 15, 2020
1 parent 501edaf commit b4369a0
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
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

0 comments on commit b4369a0

Please sign in to comment.