10 #ifndef _ACQIRISTDC_DEVICE_HPP_
11 #define _ACQIRISTDC_DEVICE_HPP_
60 const size_t nHits =
_hits.size();
63 for (hits_t::const_iterator it(
_hits.begin()); it!=
_hits.end(); ++it)
79 for (
size_t i(0); i < nHits; ++i)
140 channels_t::const_iterator it(
_channels.begin());
154 size_t nChannels(in.
retrieve<
size_t>());
157 for(
size_t i(0); i < nChannels ; ++i)
217 it->second.serialize(out);
230 size_t nInstr(in.
retrieve<
size_t>());
232 for(
size_t i(0); i < nInstr; ++i)
234 const instruments_t::key_type key(in.
retrieve<instruments_t::key_type>());
bool deserialize(SerializerBackend &in)
will deserialize all channels from the Serializer
const instruments_t & instruments() const
instrument getter
instruments_t & instruments()
instrument setter
const hits_t & hits() const
retireve hits
void serialize(SerializerBackend &out) const
will serialize all channels to Serializer
virtual void writeVersion(SerializerBackend &out) const
write the version to the stream
bool deserialize(SerializerBackend &in)
deserialize this channel from the stream
const channels_t & channels() const
std::map< uint32_t, Instrument > instruments_t
define the instruments container
void serialize(SerializerBackend &out) const
will serialize this channel to the serializer
contains base class for all devices that are part of the cassevent.
std::vector< Channel > channels_t
a vector of Channels
file contains base class all serializable classes
instruments_t _instruments
Container for all Instruments.
Instrument(SerializerBackend &in)
constuct class from stream
bool deserialize(SerializerBackend &in)
will deserialize all channels from the Serializer
A Channel of an Acqiris TDC Instrument.
virtual void checkVersion(SerializerBackend &in) const
check the version
hits_t & hits()
retrieve hits
Channel()
constructor that will set the serialize version
hits_t _hits
the hits of the channel
channels_t _channels
Container for all Channels.
Type retrieve()
read arbitrary value from stream
A Baseclass for all Devices in the CASSEvent.
std::vector< double > hits_t
define the hits
void serialize(SerializerBackend &out) const
will serialize all channels to Serializer
An Acqiris TDC Instrument.
void add(const Type &value)
add arbitrary value to the stream
Channel(SerializerBackend &in)
construct this from the stream