CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Attributes
helper::CollectionStoreManager< OutputCollection, ClonePolicy > Struct Template Reference

#include <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< collectionput (edm::Event &evt)
 
size_t size () const
 

Private Attributes

std::unique_ptr< collectionselected_
 

Detailed Description

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

Definition at line 66 of file StoreManagerTrait.h.

Member Typedef Documentation

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

Definition at line 67 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 69 of file StoreManagerTrait.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 71 of file StoreManagerTrait.h.

References fileCollector::convert(), end, Exhume::I, mps_fire::i, eostools::move(), and findQualityFiles::v.

71  {
72  using namespace std;
73  for (I i = begin; i != end; ++i) {
75  selected_->push_back(std::move(v));
76  }
77  }
std::unique_ptr< collection > selected_
const std::complex< double > I
Definition: I.h:8
#define end
Definition: vmac.h:39
def convert(infile, ofile)
#define begin
Definition: vmac.h:32
def move(src, dest)
Definition: eostools.py:511
template<typename OutputCollection , typename ClonePolicy = IteratorToObjectConverter<OutputCollection>>
edm::OrphanHandle<collection> helper::CollectionStoreManager< OutputCollection, ClonePolicy >::put ( edm::Event evt)
inline

Definition at line 78 of file StoreManagerTrait.h.

References eostools::move(), and edm::Event::put().

78 { return evt.put(std::move(selected_)); }
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
Definition: Event.h:131
std::unique_ptr< collection > selected_
def move(src, dest)
Definition: eostools.py:511
template<typename OutputCollection , typename ClonePolicy = IteratorToObjectConverter<OutputCollection>>
size_t helper::CollectionStoreManager< OutputCollection, ClonePolicy >::size ( void  ) const
inline

Definition at line 79 of file StoreManagerTrait.h.

Referenced by ntupleDataFormat._Collection::__iter__(), and ntupleDataFormat._Collection::__len__().

79 { return selected_->size(); }
std::unique_ptr< collection > selected_

Member Data Documentation

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

Definition at line 82 of file StoreManagerTrait.h.