CMS 3D CMS Logo

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

Member Typedef Documentation

◆ collection_type

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 147 of file FWItemRandomAccessor.h.

◆ collection_value_type

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 148 of file FWItemRandomAccessor.h.

◆ container_type

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 146 of file FWItemRandomAccessor.h.

Constructor & Destructor Documentation

◆ FWItemNewDetSetAccessor()

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 150 of file FWItemRandomAccessor.h.

Member Function Documentation

◆ classPurpose() [1/4]

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

Definition at line 44 of file FWItemTrackAccessors.cc.

◆ classPurpose() [2/4]

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

Definition at line 47 of file FWItemTrackAccessors.cc.

◆ classPurpose() [3/4]

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

Definition at line 50 of file FWItemTrackAccessors.cc.

◆ classPurpose() [4/4]

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

◆ classRegisterTypeName() [1/4]

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

Definition at line 44 of file FWItemTrackAccessors.cc.

◆ classRegisterTypeName() [2/4]

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

Definition at line 47 of file FWItemTrackAccessors.cc.

◆ classRegisterTypeName() [3/4]

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

Definition at line 50 of file FWItemTrackAccessors.cc.

◆ classRegisterTypeName() [4/4]

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

◆ classTypeName() [1/4]

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

Definition at line 44 of file FWItemTrackAccessors.cc.

◆ classTypeName() [2/4]

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

Definition at line 47 of file FWItemTrackAccessors.cc.

◆ classTypeName() [3/4]

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

Definition at line 50 of file FWItemTrackAccessors.cc.

◆ classTypeName() [4/4]

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

◆ modelData()

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
inlineoverridevirtual

Implements FWItemAccessorBase.

Definition at line 154 of file FWItemRandomAccessor.h.

154  {
155  if (!getDataPtr())
156  return nullptr;
157  const container_type *c = reinterpret_cast<const container_type *>(getDataPtr());
158  if (iIndex < 0)
159  return nullptr;
160 
161  return &(c->data().operator[](iIndex));
162  }

References c, and FWItemRandomAccessorBase::getDataPtr().

◆ purpose()

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 152 of file FWItemRandomAccessor.h.

154 {

◆ size()

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

Implements FWItemAccessorBase.

Definition at line 164 of file FWItemRandomAccessor.h.

164  {
165  if (!getDataPtr())
166  return 0;
167  const container_type *c = reinterpret_cast<const container_type *>(getDataPtr());
168  return c->dataSize();
169  }

References c, and FWItemRandomAccessorBase::getDataPtr().

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

◆ typeName()

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 152 of file FWItemRandomAccessor.h.

154 {
FWItemRandomAccessorBase::getDataPtr
void * getDataPtr() const
Definition: FWItemRandomAccessor.cc:66
FWItemNewDetSetAccessor::collection_value_type
V collection_value_type
Definition: FWItemRandomAccessor.h:148
FWItemRandomAccessorBase::FWItemRandomAccessorBase
FWItemRandomAccessorBase(const TClass *type, const std::type_info &modelTypeName)
Definition: FWItemRandomAccessor.cc:24
c
auto & c
Definition: CAHitNtupletGeneratorKernelsImpl.h:56
FWItemNewDetSetAccessor::container_type
C container_type
Definition: FWItemRandomAccessor.h:146