2 #ifndef DataFormats_Common_Holder_h
3 #define DataFormats_Common_Holder_h
16 template <
class T,
class REF>
17 class Holder :
public BaseHolder<T> {
21 explicit Holder(REF
const& iRef);
28 virtual ProductID
id()
const GCC11_OVERRIDE;
29 virtual
size_t key()
const GCC11_OVERRIDE;
34 std::
string&
msg) const GCC11_OVERRIDE;
65 template <
class T,
class REF>
71 template <
class T,
class REF>
77 template <
class T,
class REF>
87 template <
class T,
class REF>
95 template <
class T,
class REF>
100 template <
class T,
class REF>
108 template <
class T,
class REF>
113 return ref_.operator->();
116 template <
class T,
class REF>
124 template <
class T,
class REF>
130 return h && (
getRef() == h->getRef());
135 template <
class T,
class REF>
143 template <
class T,
class REF>
146 return ref_.productGetter();
149 template <
class T,
class REF>
155 bool conversion_worked = (h != 0);
157 if (conversion_worked)
160 msg =
typeid(REF).
name();
162 return conversion_worked;
172 namespace reftobase {
174 template <
typename T,
typename REF>
177 return helper::makeVectorHolder();
185 namespace reftobase {
187 template <
class T,
class REF>
helper::MatcherGetRef< C >::ref_type getRef(const Handle< C > &c, size_t k)
virtual EDProductGetter const * productGetter() const
Holder & operator=(Holder const &rhs)
REF const & getRef() const
virtual size_t key() const
virtual bool isTransient() const
#define CMS_CLASS_VERSION(_version_)
virtual T const * getPtr() const
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
virtual std::auto_ptr< RefHolderBase > holder() const
string key
FastSim: produces sample of signal events, overlayed with premixed minbias events.
virtual BaseHolder< T > * clone() const
void setRef(REF const &r)
virtual std::auto_ptr< BaseVectorHolder< T > > makeVectorHolder() const
virtual bool fillRefIfMyTypeMatches(RefHolderBase &fillme, std::string &msg) const
virtual bool isEqualTo(BaseHolder< T > const &rhs) const
virtual bool isAvailable() const
void swap(BaseHolder< T > &lhs, BaseHolder< T > &rhs)
virtual ProductID id() const