Merge several collections into one, removing any duplicates in the process. More...
#include "UserCode/ICHiggsTauTau/plugins/Merge.h"
Public Member Functions | |
Merge (const edm::ParameterSet &) | |
~Merge () | |
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.
T | The type of object contained or referenced in each input collection. |
Example usage (where T = reco::Track
)