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

◆ collection

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

◆ CollectionStoreManager()

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

◆ cloneAndStore()

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.

71  {
72  using namespace std;
73  for (I i = begin; i != end; ++i) {
75  selected_->push_back(std::move(v));
76  }
77  }

References fileCollector::convert(), mps_fire::end, Exhume::I, mps_fire::i, eostools::move(), helper::CollectionStoreManager< OutputCollection, ClonePolicy >::selected_, and findQualityFiles::v.

◆ put()

template<typename OutputCollection , typename ClonePolicy = IteratorToObjectConverter<OutputCollection>>
edm::OrphanHandle<collection> helper::CollectionStoreManager< OutputCollection, ClonePolicy >::put ( edm::Event evt)
inline

◆ size()

template<typename OutputCollection , typename ClonePolicy = IteratorToObjectConverter<OutputCollection>>
size_t helper::CollectionStoreManager< OutputCollection, ClonePolicy >::size ( void  ) const
inline

Member Data Documentation

◆ selected_

template<typename OutputCollection , typename ClonePolicy = IteratorToObjectConverter<OutputCollection>>
std::unique_ptr<collection> helper::CollectionStoreManager< OutputCollection, ClonePolicy >::selected_
private
mps_fire.i
i
Definition: mps_fire.py:428
helper::CollectionStoreManager::selected_
std::unique_ptr< collection > selected_
Definition: StoreManagerTrait.h:82
findQualityFiles.v
v
Definition: findQualityFiles.py:179
Exhume::I
const std::complex< double > I
Definition: I.h:8
mps_fire.end
end
Definition: mps_fire.py:242
fileCollector.convert
def convert(infile, ofile)
Definition: fileCollector.py:47
edm::Event::put
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
Definition: Event.h:133
reco::JetExtendedAssociation::value_type
Container::value_type value_type
Definition: JetExtendedAssociation.h:30
eostools.move
def move(src, dest)
Definition: eostools.py:511
std
Definition: JetResolutionObject.h:76
HLTTauReferences_cfi.OutputCollection
OutputCollection
Definition: HLTTauReferences_cfi.py:92