CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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
 
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.

96  :
97  selected_( new OutputCollection ) {
98  // selected_ = OutputCollectionCreator<OutputCollection, C>::createNewCollection(h);
99  }
std::vector< ProtoJet > OutputCollection
Definition: JetRecoTypes.h:63
std::auto_ptr< collection > selected_
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.

96  :
97  selected_( new OutputCollection ) {
98  // selected_ = OutputCollectionCreator<OutputCollection, C>::createNewCollection(h);
99  }
std::vector< ProtoJet > OutputCollection
Definition: JetRecoTypes.h:63
std::auto_ptr< collection > selected_

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 convert(), end, Exhume::I, i, helper::CollectionStoreManager< OutputCollection, ClonePolicy >::selected_, and v.

101  {
102  using namespace std;
103  for( I i = begin; i != end; ++ i ) {
105  selected_->push_back( v );
106  }
107  }
int i
Definition: DBlmapReader.cc:9
void convert(uint32 i, char_uint32 v)
Definition: MsgTools.h:46
const std::complex< double > I
Definition: I.h:8
#define end
Definition: vmac.h:38
Container::value_type value_type
std::auto_ptr< collection > selected_
#define begin
Definition: vmac.h:31
mathSSE::Vec4< T > 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 convert(), end, Exhume::I, i, helper::CollectionStoreManager< OutputCollection, ClonePolicy >::selected_, and v.

101  {
102  using namespace std;
103  for( I i = begin; i != end; ++ i ) {
105  selected_->push_back( v );
106  }
107  }
int i
Definition: DBlmapReader.cc:9
void convert(uint32 i, char_uint32 v)
Definition: MsgTools.h:46
const std::complex< double > I
Definition: I.h:8
#define end
Definition: vmac.h:38
Container::value_type value_type
std::auto_ptr< collection > selected_
#define begin
Definition: vmac.h:31
mathSSE::Vec4< T > v
template<typename OutputCollection , typename ClonePolicy = IteratorToObjectConverter<OutputCollection>>
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_.

108  {
109  return evt.put( selected_ );
110  }
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
Definition: Event.h:85
std::auto_ptr< collection > selected_
template<typename OutputCollection , typename ClonePolicy = IteratorToObjectConverter<OutputCollection>>
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_.

108  {
109  return evt.put( selected_ );
110  }
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
Definition: Event.h:85
std::auto_ptr< collection > selected_
template<typename OutputCollection , typename ClonePolicy = IteratorToObjectConverter<OutputCollection>>
size_t helper::CollectionStoreManager< OutputCollection, ClonePolicy >::size ( void  ) const
inline

Definition at line 111 of file StoreManagerTrait.h.

References helper::CollectionStoreManager< OutputCollection, ClonePolicy >::selected_.

111 { return selected_->size(); }
std::auto_ptr< collection > selected_
template<typename OutputCollection , typename ClonePolicy = IteratorToObjectConverter<OutputCollection>>
size_t helper::CollectionStoreManager< OutputCollection, ClonePolicy >::size ( void  ) const
inline

Definition at line 111 of file StoreManagerTrait.h.

References helper::CollectionStoreManager< OutputCollection, ClonePolicy >::selected_.

111 { return selected_->size(); }
std::auto_ptr< collection > selected_

Member Data Documentation

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