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);
25 virtual BaseHolder<T>*
clone()
const override;
27 virtual T const*
getPtr()
const override;
28 virtual ProductID
id()
const override;
29 virtual size_t key()
const override;
30 virtual bool isEqualTo(BaseHolder<T>
const& rhs)
const override;
36 virtual std::auto_ptr<RefHolderBase>
holder()
const override {
39 virtual std::auto_ptr<BaseVectorHolder<T> >
makeVectorHolder()
const 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)
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
Holder & operator=(Holder const &rhs)
REF const & getRef() const
virtual EDProductGetter const * productGetter() const override
#define CMS_CLASS_VERSION(_version_)
virtual BaseHolder< T > * clone() const override
virtual bool fillRefIfMyTypeMatches(RefHolderBase &fillme, std::string &msg) const override
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
virtual bool isTransient() const override
string key
FastSim: produces sample of signal events, overlayed with premixed minbias events.
virtual std::auto_ptr< RefHolderBase > holder() const override
void setRef(REF const &r)
virtual bool isAvailable() const override
virtual T const * getPtr() const override
virtual ProductID id() const override
virtual bool isEqualTo(BaseHolder< T > const &rhs) const override
virtual size_t key() const override
virtual std::auto_ptr< BaseVectorHolder< T > > makeVectorHolder() const override
void swap(BaseHolder< T > &lhs, BaseHolder< T > &rhs)