1 #ifndef PhysicsTools_TagAndProbe_interface_AnythingToValueMap_h
2 #define PhysicsTools_TagAndProbe_interface_AnythingToValueMap_h
16 template <
class Adaptor,
17 class Collection =
typename Adaptor::Collection,
39 template <
class Adaptor,
class Collection,
typename value_type>
44 if (
handle.failedToGet() && failSilently_)
47 bool adaptorOk = adaptor_.init(
iEvent);
48 if ((!adaptorOk) && failSilently_)
51 std::vector<value_type>
ret;
56 auto map = std::make_unique<Map>();
63 template <
class Adaptor,
64 class Collection =
typename Adaptor::Collection,
74 for (std::vector<edm::InputTag>::const_iterator it =
inputs_.begin(), ed =
inputs_.end(); it != ed; ++it) {
90 template <
class Adaptor,
class Collection,
typename value_type>
95 if (
handle.failedToGet() && failSilently_)
98 std::vector<value_type>
ret;
101 for (
typename std::vector<Adaptor>::iterator it = adaptors_.begin(), ed = adaptors_.end(); it != ed; ++it) {
104 auto map = std::make_unique<Map>();
111 throw cms::Exception(
"ManyThingsToValueMaps") <<
"Error in adapter " << it->label() <<
"\n";