11 MsgStream mlog(msgSvc(),
"LArHitContainerConverter" );
19 MsgStream mlog(msgSvc(),
"LArHitFloatContainerConverter" );
25 static const pool::Guid p2_guid(
"1F1DE705-E0CE-4F0E-941A-C405CB2CD137");
26 static const pool::Guid p1_guid(
"ED1ECB80-B38C-46DE-94BF-22F9379796DB");
27 static const pool::Guid p0_guid(
"32703AED-CAA5-45ED-B804-8556900CA6B5");
42 throw std::runtime_error(
"Unsupported persistent version of Data container");
51 float_cont->reserve(double_cont->
size());
53 for (
const LArHit* double_hit : *double_cont) {
54 float energy = (float)(double_hit->energy());
55 float time = (float)(double_hit->time());
56 LArHitFloat float_hit(double_hit->cellID(),energy,time);
57 float_cont->push_back(float_hit);
LArHitContainer_p2 LArHitContainer_PERS
LArHitFloatContainer * createTransient()
LArHitContainer_PERS * createPersistent(LArHitFloatContainer *transCont)
LArHitFloatContainer * copyLArHitToFloat(const LArHitContainer *double_cont)
Container for LArHitFloat.
Class to store hit energy and time in LAr cell from G4 simulation.
Class to store hit energy and time in LAr cell from G4 simulation.
virtual PERS * createPersistent(const TRANS *transObj, MsgStream &log)
Create persistent representation of a transient object.
virtual TRANS * createTransient(const PERS *persObj, MsgStream &log)
Create transient representation of a persistent object.
virtual bool compareClassGuid(const Guid &clid) const