test
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 | Static Public Member Functions
FWItemNewDetSetAccessor< C, COLL, V > Class Template Reference

#include <FWItemRandomAccessor.h>

Inheritance diagram for FWItemNewDetSetAccessor< C, COLL, V >:
FWItemRandomAccessorBase FWItemAccessorBase

Public Types

typedef COLL collection_type
 
typedef V collection_value_type
 
typedef C container_type
 

Public Member Functions

template<>
const std::string & classPurpose ()
 
template<>
const std::string & classPurpose ()
 
template<>
const std::string & classRegisterTypeName ()
 
template<>
const std::string & classRegisterTypeName ()
 
template<>
const std::string & classTypeName ()
 
template<>
const std::string & classTypeName ()
 
 FWItemNewDetSetAccessor (const TClass *iClass)
 
const void * modelData (int iIndex) const
 
const std::string & purpose () const
 
unsigned int size () const
 
const std::string & typeName () const
 
- Public Member Functions inherited from FWItemRandomAccessorBase
const void * data () const
 
bool isCollection () const
 
const TClass * modelType () const
 
virtual void reset ()
 
void setData (const edm::ObjectWithDict &)
 override if id of an object should be different than the index More...
 
const TClass * type () const
 
virtual ~FWItemRandomAccessorBase ()
 
- Public Member Functions inherited from FWItemAccessorBase
 FWItemAccessorBase ()
 
virtual ~FWItemAccessorBase ()
 

Static Public Member Functions

static const std::string & classPurpose ()
 
static const std::string & classRegisterTypeName ()
 
static const std::string & classTypeName ()
 

Additional Inherited Members

- Protected Member Functions inherited from FWItemRandomAccessorBase
 FWItemRandomAccessorBase (const TClass *type, const type_info &modelTypeName)
 
void * getDataPtr () const
 
- Protected Attributes inherited from FWItemRandomAccessorBase
void * m_data
 
const TClass * m_modelType
 
const TClass * m_type
 

Detailed Description

template<class C, class COLL = typename C::value_type, class V = typename COLL::value_type>
class FWItemNewDetSetAccessor< C, COLL, V >

Specialized accessor for the new edmNew::DetSetVector classes.

Definition at line 155 of file FWItemRandomAccessor.h.

Member Typedef Documentation

template<class C , class COLL = typename C::value_type, class V = typename COLL::value_type>
typedef COLL FWItemNewDetSetAccessor< C, COLL, V >::collection_type

Definition at line 159 of file FWItemRandomAccessor.h.

template<class C , class COLL = typename C::value_type, class V = typename COLL::value_type>
typedef V FWItemNewDetSetAccessor< C, COLL, V >::collection_value_type

Definition at line 160 of file FWItemRandomAccessor.h.

template<class C , class COLL = typename C::value_type, class V = typename COLL::value_type>
typedef C FWItemNewDetSetAccessor< C, COLL, V >::container_type

Definition at line 158 of file FWItemRandomAccessor.h.

Constructor & Destructor Documentation

template<class C , class COLL = typename C::value_type, class V = typename COLL::value_type>
FWItemNewDetSetAccessor< C, COLL, V >::FWItemNewDetSetAccessor ( const TClass *  iClass)
inline

Definition at line 162 of file FWItemRandomAccessor.h.

164  {}
FWItemRandomAccessorBase(const TClass *type, const type_info &modelTypeName)

Member Function Documentation

template<>
const std::string & FWItemNewDetSetAccessor< edmNew::DetSetVector< SiStripCluster > >::classPurpose ( )

Definition at line 37 of file FWItemTrackAccessors.cc.

template<>
const std::string & FWItemNewDetSetAccessor< edmNew::DetSetVector< SiPixelCluster > >::classPurpose ( )

Definition at line 38 of file FWItemTrackAccessors.cc.

template<class C , class COLL = typename C::value_type, class V = typename COLL::value_type>
static const std::string& FWItemNewDetSetAccessor< C, COLL, V >::classPurpose ( )
static
template<>
const std::string & FWItemNewDetSetAccessor< edmNew::DetSetVector< SiStripCluster > >::classRegisterTypeName ( )

Definition at line 37 of file FWItemTrackAccessors.cc.

template<>
const std::string & FWItemNewDetSetAccessor< edmNew::DetSetVector< SiPixelCluster > >::classRegisterTypeName ( )

Definition at line 38 of file FWItemTrackAccessors.cc.

template<class C , class COLL = typename C::value_type, class V = typename COLL::value_type>
static const std::string& FWItemNewDetSetAccessor< C, COLL, V >::classRegisterTypeName ( )
static
template<>
const std::string & FWItemNewDetSetAccessor< edmNew::DetSetVector< SiStripCluster > >::classTypeName ( )

Definition at line 37 of file FWItemTrackAccessors.cc.

template<>
const std::string & FWItemNewDetSetAccessor< edmNew::DetSetVector< SiPixelCluster > >::classTypeName ( )

Definition at line 38 of file FWItemTrackAccessors.cc.

template<class C , class COLL = typename C::value_type, class V = typename COLL::value_type>
static const std::string& FWItemNewDetSetAccessor< C, COLL, V >::classTypeName ( )
static
template<class C , class COLL = typename C::value_type, class V = typename COLL::value_type>
const void* FWItemNewDetSetAccessor< C, COLL, V >::modelData ( int  iIndex) const
inlinevirtual

Implements FWItemAccessorBase.

Definition at line 168 of file FWItemRandomAccessor.h.

References EnergyCorrector::c, and FWItemRandomAccessorBase::getDataPtr().

169  {
170  if (!getDataPtr())
171  return 0;
172  const container_type *c = reinterpret_cast<const container_type*>(getDataPtr());
173  if (iIndex < 0)
174  return 0;
175 
176  return &(c->data().operator[](iIndex));
177  }
template<class C , class COLL = typename C::value_type, class V = typename COLL::value_type>
const std::string& FWItemNewDetSetAccessor< C, COLL, V >::purpose ( ) const
inline

Definition at line 166 of file FWItemRandomAccessor.h.

169 {
template<class C , class COLL = typename C::value_type, class V = typename COLL::value_type>
unsigned int FWItemNewDetSetAccessor< C, COLL, V >::size ( void  ) const
inlinevirtual

Implements FWItemAccessorBase.

Definition at line 179 of file FWItemRandomAccessor.h.

References EnergyCorrector::c, and FWItemRandomAccessorBase::getDataPtr().

180  {
181  if (!getDataPtr())
182  return 0;
183  const container_type *c = reinterpret_cast<const container_type*>(getDataPtr());
184  return c->dataSize();
185  }
template<class C , class COLL = typename C::value_type, class V = typename COLL::value_type>
const std::string& FWItemNewDetSetAccessor< C, COLL, V >::typeName ( ) const
inline

Definition at line 166 of file FWItemRandomAccessor.h.

169 {