CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
hcal::DigiCollectionBase< StoragePolicy > Struct Template Reference

#include <DigiCollection.h>

Inheritance diagram for hcal::DigiCollectionBase< StoragePolicy >:
calo::common::AddSize< StoragePolicy::TagType > hcal::DigiCollection< Flavor, StoragePolicy > hcal::DigiCollection< Flavor5, StoragePolicy >

Public Member Functions

template<typename T = typename StoragePolicy::TagType>
std::enable_if< std::is_same< T, ::calo::common::tags::Vec >::value, void >::type clear ()
 
 DigiCollectionBase ()=default
 
 DigiCollectionBase (DigiCollectionBase const &)=default
 
 DigiCollectionBase (DigiCollectionBase &&)=default
 
DigiCollectionBaseoperator= (DigiCollectionBase const &)=default
 
DigiCollectionBaseoperator= (DigiCollectionBase &&)=default
 
template<typename T = typename StoragePolicy::TagType>
std::enable_if< std::is_same< T, ::calo::common::tags::Vec >::value, void >::type reserve (std::size_t size)
 
template<typename T = typename StoragePolicy::TagType>
std::enable_if< std::is_same< T, ::calo::common::tags::Vec >::value, void >::type resize (std::size_t size)
 

Public Attributes

StoragePolicy::template StorageSelector< uint16_t >::type data
 
StoragePolicy::template StorageSelector< uint32_t >::type ids
 
uint32_t stride {0}
 

Detailed Description

template<typename StoragePolicy>
struct hcal::DigiCollectionBase< StoragePolicy >

Definition at line 89 of file DigiCollection.h.

Constructor & Destructor Documentation

◆ DigiCollectionBase() [1/3]

template<typename StoragePolicy>
hcal::DigiCollectionBase< StoragePolicy >::DigiCollectionBase ( )
default

◆ DigiCollectionBase() [2/3]

template<typename StoragePolicy>
hcal::DigiCollectionBase< StoragePolicy >::DigiCollectionBase ( DigiCollectionBase< StoragePolicy > const &  )
default

◆ DigiCollectionBase() [3/3]

template<typename StoragePolicy>
hcal::DigiCollectionBase< StoragePolicy >::DigiCollectionBase ( DigiCollectionBase< StoragePolicy > &&  )
default

Member Function Documentation

◆ clear()

template<typename StoragePolicy>
template<typename T = typename StoragePolicy::TagType>
std::enable_if<std::is_same<T, ::calo::common::tags::Vec>::value, void>::type hcal::DigiCollectionBase< StoragePolicy >::clear ( void  )
inline

Definition at line 110 of file DigiCollection.h.

Referenced by HcalDigisProducerGPU::acquire(), and hcal::DigiCollection< Flavor5, StoragePolicy >::clear().

110  {
111  ids.clear();
112  data.clear();
113  }
StoragePolicy::template StorageSelector< uint16_t >::type data
StoragePolicy::template StorageSelector< uint32_t >::type ids

◆ operator=() [1/2]

template<typename StoragePolicy>
DigiCollectionBase& hcal::DigiCollectionBase< StoragePolicy >::operator= ( DigiCollectionBase< StoragePolicy > const &  )
default

◆ operator=() [2/2]

template<typename StoragePolicy>
DigiCollectionBase& hcal::DigiCollectionBase< StoragePolicy >::operator= ( DigiCollectionBase< StoragePolicy > &&  )
default

◆ reserve()

template<typename StoragePolicy>
template<typename T = typename StoragePolicy::TagType>
std::enable_if<std::is_same<T, ::calo::common::tags::Vec>::value, void>::type hcal::DigiCollectionBase< StoragePolicy >::reserve ( std::size_t  size)
inline

Definition at line 104 of file DigiCollection.h.

Referenced by hcal::DigiCollection< Flavor5, StoragePolicy >::reserve().

104  {
105  ids.reserve(size);
106  data.reserve(size * stride);
107  }
size
Write out results.
StoragePolicy::template StorageSelector< uint16_t >::type data
StoragePolicy::template StorageSelector< uint32_t >::type ids

◆ resize()

template<typename StoragePolicy>
template<typename T = typename StoragePolicy::TagType>
std::enable_if<std::is_same<T, ::calo::common::tags::Vec>::value, void>::type hcal::DigiCollectionBase< StoragePolicy >::resize ( std::size_t  size)
inline

Definition at line 98 of file DigiCollection.h.

Referenced by HcalCPUDigisProducer::acquire(), and hcal::DigiCollection< Flavor5, StoragePolicy >::resize().

98  {
99  ids.resize(size);
100  data.resize(size * stride);
101  }
size
Write out results.
StoragePolicy::template StorageSelector< uint16_t >::type data
StoragePolicy::template StorageSelector< uint32_t >::type ids

Member Data Documentation

◆ data

template<typename StoragePolicy>
StoragePolicy::template StorageSelector<uint16_t>::type hcal::DigiCollectionBase< StoragePolicy >::data

Definition at line 116 of file DigiCollection.h.

Referenced by MainPageGenerator.MainPageGenerator::__NewTreePage(), data_sources.node::__str__(), confdb.HLTProcess::_fix_parameter(), HcalCPUDigisProducer::acquire(), HcalDigisProducerGPU::acquire(), confdb.HLTProcess::addEras(), confdb.HLTProcess::addGlobalOptions(), confdb.HLTProcess::append_filenames(), data_sources.json_list::as_dicts(), data_sources.json_list::as_table(), confdb.HLTProcess::build_source(), hcal::DigiCollectionBase< calo::common::VecStoragePolicy< calo::common::CUDAHostAllocatorAlias > >::clear(), MainPageGenerator.MainPageGenerator::CreateNewMainPage(), confdb.HLTProcess::customize(), confdb.HLTProcess::dump(), MainPageGenerator.MainPageGenerator::ExportJSON(), confdb.HLTProcess::fixPrescales(), data_sources.json_list::get_members(), confdb.HLTProcess::getRawConfigurationFromDB(), confdb.HLTProcess::instrumentDQM(), confdb.HLTProcess::instrumentOpenMode(), confdb.HLTProcess::instrumentTiming(), data_sources.json_list::last(), confdb.HLTProcess::loadAdditionalConditions(), confdb.HLTProcess::loadCff(), confdb.HLTProcess::loadSetupCff(), confdb.HLTProcess::overrideGlobalTag(), confdb.HLTProcess::overrideL1MenuXml(), confdb.HLTProcess::overrideOutput(), confdb.HLTProcess::overrideParameters(), confdb.HLTProcess::overrideProcessName(), confdb.HLTProcess::removeElementFromSequencesTasksAndPaths(), hcal::DigiCollectionBase< calo::common::VecStoragePolicy< calo::common::CUDAHostAllocatorAlias > >::reserve(), hcal::DigiCollectionBase< calo::common::VecStoragePolicy< calo::common::CUDAHostAllocatorAlias > >::resize(), confdb.HLTProcess::runL1Emulator(), confdb.HLTProcess::specificCustomize(), cuy.FindIssue::startElement(), edmStreamStallGrapher.Stack::update(), and confdb.HLTProcess::updateMessageLogger().

◆ ids

template<typename StoragePolicy>
StoragePolicy::template StorageSelector<uint32_t>::type hcal::DigiCollectionBase< StoragePolicy >::ids

◆ stride

template<typename StoragePolicy>
uint32_t hcal::DigiCollectionBase< StoragePolicy >::stride {0}