CMS 3D CMS Logo

Public Types | Public Member Functions | Private Attributes

helper::CollectionStoreManager< OutputCollection, ClonePolicy > Struct Template Reference

#include <StoreManagerTrait.h>

List of all members.

Public Types

typedef OutputCollection collection
typedef OutputCollection collection

Public Member Functions

template<typename I >
void cloneAndStore (const I &begin, const I &end, edm::Event &)
template<typename I >
void cloneAndStore (const I &begin, const I &end, edm::Event &)
template<typename C >
 CollectionStoreManager (const edm::Handle< C > &h)
template<typename C >
 CollectionStoreManager (const edm::Handle< C > &h)
edm::OrphanHandle< collectionput (edm::Event &evt)
edm::OrphanHandle< collectionput (edm::Event &evt)
size_t size () const
size_t size () const

Private Attributes

std::auto_ptr< collectionselected_

Detailed Description

template<typename OutputCollection, typename ClonePolicy = IteratorToObjectConverter<OutputCollection>>
struct helper::CollectionStoreManager< OutputCollection, ClonePolicy >

Definition at line 93 of file StoreManagerTrait.h.


Member Typedef Documentation

template<typename OutputCollection , typename ClonePolicy = IteratorToObjectConverter<OutputCollection>>
typedef OutputCollection helper::CollectionStoreManager< OutputCollection, ClonePolicy >::collection

Definition at line 94 of file StoreManagerTrait.h.

template<typename OutputCollection , typename ClonePolicy = IteratorToObjectConverter<OutputCollection>>
typedef OutputCollection helper::CollectionStoreManager< OutputCollection, ClonePolicy >::collection

Definition at line 94 of file StoreManagerTrait.h.


Constructor & Destructor Documentation

template<typename OutputCollection , typename ClonePolicy = IteratorToObjectConverter<OutputCollection>>
template<typename C >
helper::CollectionStoreManager< OutputCollection, ClonePolicy >::CollectionStoreManager ( const edm::Handle< C > &  h) [inline]

Definition at line 96 of file StoreManagerTrait.h.

                                                     :
    selected_( new OutputCollection ) { 
      //      selected_ = OutputCollectionCreator<OutputCollection, C>::createNewCollection(h);
    }
template<typename OutputCollection , typename ClonePolicy = IteratorToObjectConverter<OutputCollection>>
template<typename C >
helper::CollectionStoreManager< OutputCollection, ClonePolicy >::CollectionStoreManager ( const edm::Handle< C > &  h) [inline]

Definition at line 96 of file StoreManagerTrait.h.

                                                     :
    selected_( new OutputCollection ) { 
      //      selected_ = OutputCollectionCreator<OutputCollection, C>::createNewCollection(h);
    }

Member Function Documentation

template<typename OutputCollection , typename ClonePolicy = IteratorToObjectConverter<OutputCollection>>
template<typename I >
void helper::CollectionStoreManager< OutputCollection, ClonePolicy >::cloneAndStore ( const I &  begin,
const I &  end,
edm::Event  
) [inline]

Definition at line 101 of file StoreManagerTrait.h.

References lhef::cc::convert(), end, Exhume::I, i, helper::CollectionStoreManager< OutputCollection, ClonePolicy >::selected_, and v.

                                                                     {
      using namespace std;
      for( I i = begin; i != end; ++ i ) {
        typename ClonePolicy::value_type v = ClonePolicy::convert( i );
        selected_->push_back( v );
      }
    }
template<typename OutputCollection , typename ClonePolicy = IteratorToObjectConverter<OutputCollection>>
template<typename I >
void helper::CollectionStoreManager< OutputCollection, ClonePolicy >::cloneAndStore ( const I &  begin,
const I &  end,
edm::Event  
) [inline]

Definition at line 101 of file StoreManagerTrait.h.

References lhef::cc::convert(), end, Exhume::I, i, helper::CollectionStoreManager< OutputCollection, ClonePolicy >::selected_, and v.

                                                                     {
      using namespace std;
      for( I i = begin; i != end; ++ i ) {
        typename ClonePolicy::value_type v = ClonePolicy::convert( i );
        selected_->push_back( v );
      }
    }
template<typename OutputCollection , typename ClonePolicy = IteratorToObjectConverter<OutputCollection>>
edm::OrphanHandle<collection> helper::CollectionStoreManager< OutputCollection, ClonePolicy >::put ( edm::Event evt) [inline]
template<typename OutputCollection , typename ClonePolicy = IteratorToObjectConverter<OutputCollection>>
edm::OrphanHandle<collection> helper::CollectionStoreManager< OutputCollection, ClonePolicy >::put ( edm::Event evt) [inline]
template<typename OutputCollection , typename ClonePolicy = IteratorToObjectConverter<OutputCollection>>
size_t helper::CollectionStoreManager< OutputCollection, ClonePolicy >::size ( void  ) const [inline]
template<typename OutputCollection , typename ClonePolicy = IteratorToObjectConverter<OutputCollection>>
size_t helper::CollectionStoreManager< OutputCollection, ClonePolicy >::size ( void  ) const [inline]

Member Data Documentation

template<typename OutputCollection , typename ClonePolicy = IteratorToObjectConverter<OutputCollection>>
std::auto_ptr< collection > helper::CollectionStoreManager< OutputCollection, ClonePolicy >::selected_ [private]