Imperial Analysis
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
ic::Merge< T > Class Template Reference

Merge several collections into one, removing any duplicates in the process. More...

#include "UserCode/ICHiggsTauTau/plugins/Merge.h"

+ Inheritance diagram for ic::Merge< T >:

Public Member Functions

 Merge (const edm::ParameterSet &)
 
 ~Merge ()
 

Detailed Description

template<class T>
class ic::Merge< T >

Merge several collections into one, removing any duplicates in the process.

The input collections (containing or referencing objects of type T) are specified by the merge parameter, which takes a vector of edm::InputTag objects. The objects in each collection must all originate from the same parent collection. Different input collection types may freely be combined, provided each can be accessed as an edm::View into the type T. The merged collection produced by this module is of type edm::RefVector<T>. This template class must be explicitly defined as a CMSSW module for each desired input type T. Check the implementation file Merge.cc to see if such a module has already been defined for the type you need. If not, the appropriate typedef and module definition should be added, following the naming convention IC<object>Merger.

Template Parameters
TThe type of object contained or referenced in each input collection.

Example usage (where T = reco::Track)

1 process.mergedTracks = cms.EDProducer("ICTrackMerger",
2  merge = cms.VInputTag("electronTrks", "muonTrks", "jetTrks")
3 )

Definition at line 45 of file Merge.h.

Constructor & Destructor Documentation

template<class T >
ic::Merge< T >::Merge ( const edm::ParameterSet &  config)
explicit

Definition at line 67 of file Merge.h.

template<class T >
ic::Merge< T >::~Merge ( )

Definition at line 76 of file Merge.h.


The documentation for this class was generated from the following file: