#include <PhysicsTools/UtilAlgos/interface/StoreManagerTrait.h>
Public Types | |
typedef OutputCollection | collection |
Public Member Functions | |
template<typename I> | |
void | cloneAndStore (const I &begin, const I &end, edm::Event &) |
template<typename C> | |
CollectionStoreManager (const edm::Handle< C > &h) | |
edm::OrphanHandle< collection > | put (edm::Event &evt) |
size_t | size () const |
Private Attributes | |
std::auto_ptr< collection > | selected_ |
Definition at line 93 of file StoreManagerTrait.h.
typedef OutputCollection helper::CollectionStoreManager< OutputCollection, ClonePolicy >::collection |
Definition at line 94 of file StoreManagerTrait.h.
helper::CollectionStoreManager< OutputCollection, ClonePolicy >::CollectionStoreManager | ( | const edm::Handle< C > & | h | ) | [inline] |
Definition at line 96 of file StoreManagerTrait.h.
00096 : 00097 selected_( new OutputCollection ) { 00098 // selected_ = OutputCollectionCreator<OutputCollection, C>::createNewCollection(h); 00099 }
void helper::CollectionStoreManager< OutputCollection, ClonePolicy >::cloneAndStore | ( | const I & | begin, | |
const I & | end, | |||
edm::Event & | ||||
) | [inline] |
Definition at line 101 of file StoreManagerTrait.h.
References convert(), I, i, helper::CollectionStoreManager< OutputCollection, ClonePolicy >::selected_, std, and v.
00101 { 00102 using namespace std; 00103 for( I i = begin; i != end; ++ i ) { 00104 typename ClonePolicy::value_type v = ClonePolicy::convert( i ); 00105 selected_->push_back( v ); 00106 } 00107 }
edm::OrphanHandle<collection> helper::CollectionStoreManager< OutputCollection, ClonePolicy >::put | ( | edm::Event & | evt | ) | [inline] |
Definition at line 108 of file StoreManagerTrait.h.
References edm::Event::put(), and helper::CollectionStoreManager< OutputCollection, ClonePolicy >::selected_.
size_t helper::CollectionStoreManager< OutputCollection, ClonePolicy >::size | ( | void | ) | const [inline] |
Definition at line 111 of file StoreManagerTrait.h.
References helper::CollectionStoreManager< OutputCollection, ClonePolicy >::selected_.
00111 { return selected_->size(); }
std::auto_ptr<collection> helper::CollectionStoreManager< OutputCollection, ClonePolicy >::selected_ [private] |