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::MasterCollection< edm::View< T > > Struct Template Reference

#include <MasterCollectionHelper.h>

Public Types

typedef edm::RefToBase< Tref_type
 

Public Member Functions

const edm::RefToBaseProd< T > & get () const
 
template<typename R >
getConcreteRef (size_t idx) const
 
ref_type getRef (size_t idx) const
 
size_t index (size_t i) const
 
 MasterCollection (const edm::Handle< edm::View< T > > &handle, edm::Event const &event)
 
size_t size () const
 

Private Attributes

edm::Handle< edm::View< T > > handle_
 
edm::RefToBaseProd< Tref_
 

Detailed Description

template<typename T>
struct helper::MasterCollection< edm::View< T > >

Definition at line 37 of file MasterCollectionHelper.h.

Member Typedef Documentation

template<typename T >
typedef edm::RefToBase<T> helper::MasterCollection< edm::View< T > >::ref_type

Definition at line 38 of file MasterCollectionHelper.h.

Constructor & Destructor Documentation

template<typename T >
helper::MasterCollection< edm::View< T > >::MasterCollection ( const edm::Handle< edm::View< T > > &  handle,
edm::Event const &  event 
)
inlineexplicit

Definition at line 39 of file MasterCollectionHelper.h.

References event(), helper::MasterCollection< C1 >::handle_, and edm::makeRefToBaseProdFrom().

39  :
40  handle_(handle) {
41  if(handle_->size() != 0) {
43  }
44  }
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
RefToBaseProd< T > makeRefToBaseProdFrom(RefToBase< T > const &iRef, Event const &iEvent)

Member Function Documentation

template<typename T >
const edm::RefToBaseProd<T>& helper::MasterCollection< edm::View< T > >::get ( ) const
inline
template<typename T >
template<typename R >
R helper::MasterCollection< edm::View< T > >::getConcreteRef ( size_t  idx) const
inline

Definition at line 55 of file MasterCollectionHelper.h.

References helper::MasterCollection< C1 >::getRef().

55 { return getRef(idx).template castTo<R>(); }
tuple idx
DEBUGGING if hasattr(process,&quot;trackMonIterativeTracking2012&quot;): print &quot;trackMonIterativeTracking2012 D...
template<typename T >
ref_type helper::MasterCollection< edm::View< T > >::getRef ( size_t  idx) const
inline

Definition at line 53 of file MasterCollectionHelper.h.

53 { return ref_type(get(), idx); }
tuple idx
DEBUGGING if hasattr(process,&quot;trackMonIterativeTracking2012&quot;): print &quot;trackMonIterativeTracking2012 D...
template<typename T >
size_t helper::MasterCollection< edm::View< T > >::index ( size_t  i) const
inline

Definition at line 49 of file MasterCollectionHelper.h.

References helper::MasterCollection< C1 >::handle_.

Referenced by BeautifulSoup.PageElement::_invert().

49  {
50  return handle_->refAt(i).key();
51  }
int i
Definition: DBlmapReader.cc:9
template<typename T >
size_t helper::MasterCollection< edm::View< T > >::size ( void  ) const
inline

Definition at line 45 of file MasterCollectionHelper.h.

45  {
46  if (ref_.isNull()) return 0;
47  return ref_->size();
48  }

Member Data Documentation

template<typename T >
edm::Handle<edm::View<T> > helper::MasterCollection< edm::View< T > >::handle_
private

Definition at line 57 of file MasterCollectionHelper.h.

template<typename T >
edm::RefToBaseProd<T> helper::MasterCollection< edm::View< T > >::ref_
private

Definition at line 58 of file MasterCollectionHelper.h.