Go to the documentation of this file. 1 #ifndef UtilAlgos_UniqueMerger_h
2 #define UtilAlgos_UniqueMerger_h
34 typedef std::set<typename OutputCollection::value_type>
set_type;
44 typedef std::vector<edm::EDGetTokenT<InputCollection> >
vtoken;
49 template <
typename InputCollection,
typename OutputCollection,
typename P>
53 produces<OutputCollection>();
56 template <
typename InputCollection,
typename OutputCollection,
typename P>
59 template <
typename InputCollection,
typename OutputCollection,
typename P>
64 for (
typename vtoken::const_iterator
s = srcToken_.begin();
s != srcToken_.end(); ++
s) {
67 for (
typename InputCollection::const_iterator
c =
h->begin();
c !=
h->end(); ++
c) {
71 std::unique_ptr<OutputCollection> coll(
new OutputCollection(coll_set.size()));
72 std::copy(coll_set.begin(), coll_set.end(), coll->begin());
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
UniqueMerger(const edm::ParameterSet &)
constructor from parameter set
TEveGeoShape * clone(const TEveElement *element, TEveElement *parent)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
vtoken srcToken_
labels of the collections to be merged
auto vector_transform(std::vector< InputType > const &input, Function predicate) -> std::vector< typename std::remove_cv< typename std::remove_reference< decltype(predicate(input.front()))>::type >::type >
std::set< typename OutputCollection::value_type > set_type
~UniqueMerger() override
destructor
std::vector< edm::EDGetTokenT< InputCollection > > vtoken
vector of strings
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
def template(fileName, svg, replaceme="REPLACEME")
void produce(edm::StreamID, edm::Event &, const edm::EventSetup &) const override
process an event
std::pair< OmniClusterRef, TrackingParticleRef > P