#include <SimPulseCollection.h>
Public Types | |
using | value_type = SimPulse |
using | const_iterator = SimPulseCollectionIterator |
using | iterator = SimPulseMutableCollectionIterator |
using | difference_type = ptrdiff_t |
using | size_type = size_t |
Public Member Functions | |
SimPulseCollection () | |
SimPulseCollection (SimPulseCollectionData &&data, bool isSubsetColl) | |
SimPulseCollection (const SimPulseCollection &)=delete | |
SimPulseCollection & | operator= (const SimPulseCollection &)=delete |
SimPulseCollection (SimPulseCollection &&)=default | |
SimPulseCollection & | operator= (SimPulseCollection &&)=default |
~SimPulseCollection () | |
void | clear () final |
void | print (std::ostream &os=std::cout, bool flush=true) const final |
Print this collection to the passed stream. | |
SimPulseCollection * | operator-> () |
operator to allow pointer like calling of members a la LCIO | |
MutableSimPulse | create () |
Append a new object to the collection, and return this object. | |
template<typename... Args> | |
MutableSimPulse | create (Args &&... args) |
std::size_t | size () const final |
number of elements in the collection | |
std::size_t | max_size () const final |
maximal number of elements in the collection | |
bool | empty () const final |
Is the collection empty. | |
const std::string_view | getTypeName () const final |
fully qualified type name | |
const std::string_view | getValueTypeName () const final |
fully qualified type name of elements - with namespace | |
const std::string_view | getDataTypeName () const final |
fully qualified type name of stored POD elements - with namespace | |
podio::SchemaVersionT | getSchemaVersion () const final |
schema version | |
bool | isSubsetCollection () const final |
void | setSubsetCollection (bool setSubset=true) final |
SimPulse | operator[] (std::size_t index) const |
Returns the const object of given index. | |
MutableSimPulse | operator[] (std::size_t index) |
Returns the object of a given index. | |
SimPulse | at (std::size_t index) const |
Returns the const object of given index. | |
MutableSimPulse | at (std::size_t index) |
Returns the object of given index. | |
void | push_back (const MutableSimPulse &object) |
Append object to the collection. | |
void | push_back (const SimPulse &object) |
Append an object to the (subset) collection. | |
void | prepareForWrite () const final |
void | prepareAfterRead () final |
bool | setReferences (const podio::ICollectionProvider *collectionProvider) final |
podio::CollectionWriteBuffers | getBuffers () final |
Get the collection buffers for this collection. | |
void | setID (uint32_t ID) final |
uint32_t | getID () const final |
bool | isValid () const final |
size_t | getDatamodelRegistryIndex () const final |
iterator | begin () |
const_iterator | begin () const |
const_iterator | cbegin () const |
iterator | end () |
const_iterator | end () const |
const_iterator | cend () const |
std::vector< std::uint64_t > | cellID (const size_t nElem=0) const |
std::vector< float > | integral (const size_t nElem=0) const |
std::vector< edm4hep::Vector3f > | position (const size_t nElem=0) const |
std::vector< float > | time (const size_t nElem=0) const |
std::vector< float > | interval (const size_t nElem=0) const |
Static Public Attributes | |
static constexpr auto | typeName = "edm4eic::SimPulseCollection" |
static constexpr auto | valueTypeName = "edm4eic::SimPulse" |
static constexpr auto | dataTypeName = "edm4eic::SimPulseData" |
Friends | |
class | SimPulseCollectionData |
A Collection is identified by an ID.
using edm4eic::SimPulseCollection::difference_type = ptrdiff_t |
using edm4eic::SimPulseCollection::size_type = size_t |
edm4eic::SimPulseCollection::SimPulseCollection | ( | ) |
edm4eic::SimPulseCollection::SimPulseCollection | ( | SimPulseCollectionData && | data, |
bool | isSubsetColl ) |
|
delete |
|
default |
edm4eic::SimPulseCollection::~SimPulseCollection | ( | ) |
MutableSimPulse edm4eic::SimPulseCollection::at | ( | std::size_t | index | ) |
Returns the object of given index.
SimPulse edm4eic::SimPulseCollection::at | ( | std::size_t | index | ) | const |
Returns the const object of given index.
|
inline |
|
inline |
|
inline |
std::vector< std::uint64_t > edm4eic::SimPulseCollection::cellID | ( | const size_t | nElem = 0 | ) | const |
|
inline |
|
final |
MutableSimPulse edm4eic::SimPulseCollection::create | ( | ) |
Append a new object to the collection, and return this object.
MutableSimPulse edm4eic::SimPulseCollection::create | ( | Args &&... | args | ) |
Append a new object to the collection, and return this object. Initialized with the parameters given
|
final |
Is the collection empty.
|
inline |
|
inline |
|
final |
Get the collection buffers for this collection.
|
final |
|
inlinefinal |
fully qualified type name of stored POD elements - with namespace
|
inlinefinal |
|
final |
schema version
|
inlinefinal |
fully qualified type name
|
inlinefinal |
fully qualified type name of elements - with namespace
std::vector< float > edm4eic::SimPulseCollection::integral | ( | const size_t | nElem = 0 | ) | const |
std::vector< float > edm4eic::SimPulseCollection::interval | ( | const size_t | nElem = 0 | ) | const |
|
inlinefinal |
|
inlinefinal |
|
final |
maximal number of elements in the collection
|
inline |
operator to allow pointer like calling of members a la LCIO
|
delete |
|
default |
MutableSimPulse edm4eic::SimPulseCollection::operator[] | ( | std::size_t | index | ) |
Returns the object of a given index.
SimPulse edm4eic::SimPulseCollection::operator[] | ( | std::size_t | index | ) | const |
Returns the const object of given index.
std::vector< edm4hep::Vector3f > edm4eic::SimPulseCollection::position | ( | const size_t | nElem = 0 | ) | const |
|
final |
|
final |
|
final |
Print this collection to the passed stream.
void edm4eic::SimPulseCollection::push_back | ( | const MutableSimPulse & | object | ) |
Append object to the collection.
void edm4eic::SimPulseCollection::push_back | ( | const SimPulse & | object | ) |
Append an object to the (subset) collection.
|
inlinefinal |
|
final |
|
final |
|
final |
number of elements in the collection
std::vector< float > edm4eic::SimPulseCollection::time | ( | const size_t | nElem = 0 | ) | const |
|
friend |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |