#include <PndMQSdsHitLoader.h>
Definition at line 36 of file PndMQSdsHitLoader.h.
PndMQSdsHitLoader::PndMQSdsHitLoader |
( |
| ) |
|
|
inline |
Definition at line 39 of file PndMQSdsHitLoader.h.
40 : FairMQSamplerTask(
"Load class PndSdsHit")
44 using namespace baseMQ::tools::resolve;
46 if (is_same<boost::archive::binary_oarchive, boost::archive::binary_oarchive>::value || is_same<boost::archive::binary_oarchive, boost::archive::text_oarchive>::value)
48 if (has_BoostSerialization<
PndSdsHit,
void(boost::archive::binary_oarchive&,
const unsigned int)>::value == 1)
bool fHasBoostSerialization
vector< PndSdsHit > fDigiVector
virtual PndMQSdsHitLoader::~PndMQSdsHitLoader |
( |
| ) |
|
|
inlinevirtual |
void PndMQSdsHitLoader::Exec |
( |
Option_t * |
opt | ) |
|
|
virtual |
Definition at line 11 of file PndMQSdsHitLoader.cxx.
References digi, fDigiVector, fHasBoostSerialization, and i.
20 boost::archive::binary_oarchive OutputArchive(buffer);
21 for (Int_t
i = 0;
i < fInput->GetEntriesFast(); ++
i)
32 int size = buffer.str().length();
33 fOutput = fTransportFactory->CreateMessage(size);
34 memcpy(fOutput->GetData(), buffer.str().c_str(), size);
37 if (fDigiVector.size() > 0)
44 LOG(ERROR) <<
"Boost Serialization not available";
bool fHasBoostSerialization
vector< PndSdsHit > fDigiVector
template<class Archive >
void PndMQSdsHitLoader::serialize |
( |
Archive & |
ar, |
|
|
const unsigned int |
version |
|
) |
| |
|
inline |
friend class boost::serialization::access |
|
friend |
vector<PndSdsHit> PndMQSdsHitLoader::fDigiVector |
|
private |
bool PndMQSdsHitLoader::fHasBoostSerialization |
|
private |
The documentation for this class was generated from the following files: