#include <RawDataMdcMcHitCnv.hpp>
Definition at line 12 of file RawDataMdcMcHitCnv.hpp.
◆ RawDataMdcMcHitCnv()
| RawDataMdcMcHitCnv::RawDataMdcMcHitCnv |
( |
ISvcLocator * | svc | ) |
|
|
inline |
Definition at line 18 of file RawDataMdcMcHitCnv.hpp.
RawDataBaseCnv(long storageType, const CLID &clid, ISvcLocator *svc)
static const CLID & classID()
◆ classID()
| const CLID & RawDataMdcMcHitCnv::classID |
( |
| ) |
|
|
inlinestatic |
◆ createObj()
| StatusCode RawDataMdcMcHitCnv::createObj |
( |
IOpaqueAddress * | pAddr, |
|
|
DataObject *& | pObj ) |
|
inline |
construct the MdcMcHit
Definition at line 22 of file RawDataMdcMcHitCnv.hpp.
22 {
23
24
25
27 pObj = mdcMcHitCol;
28
30 if ( evt == NULL )
31 {
32
33 return StatusCode::FAILURE;
34 }
35
37
38 MdcTruth_t m_MdcTruth;
39 MdcMcHit* mdcMcHit;
40
41 std::vector<uint32_t>::const_iterator
iter = evt->
getMdcTruth().begin();
42 std::vector<uint32_t>::const_iterator eiter = evt->
getMdcTruth().end();
43
44 for (
int mdcMcHitId = 0;
iter != eiter; mdcMcHitId++ )
45 {
46
47 m_mdcMcHitBuilder.unPack(
iter, eiter, m_MdcTruth );
48
50
51 mdcMcHit = new MdcMcHit(
52 ident, m_MdcTruth.
trackIndex, m_MdcTruth.
x / ( m_mdcMcHitBuilder.m_xCoeff * 1.0 ),
53 m_MdcTruth.
y / ( m_mdcMcHitBuilder.m_yCoeff * 1.0 ),
54 m_MdcTruth.
z / ( m_mdcMcHitBuilder.m_zCoeff * 1.0 ),
55 m_MdcTruth.
driftD / ( m_mdcMcHitBuilder.m_driftDCoeff * 1.0 ),
56 m_MdcTruth.
edep / ( m_mdcMcHitBuilder.m_edepCoeff * 1.0 ), m_MdcTruth.
posFlag );
57
58 mdcMcHitCol->push_back( mdcMcHit );
59 }
60
61 return StatusCode::SUCCESS;
62 }
ObjectVector< MdcMcHit > MdcMcHitCol
static Identifier wire_id(int wireType, int layer, int wire)
For a single wire.
const int_vector & getMdcTruth() const
IRawDataInputSvc * m_inputSvc
◆ createRep()
| StatusCode RawDataMdcMcHitCnv::createRep |
( |
DataObject * | pObj, |
|
|
IOpaqueAddress *& | pAddr ) |
|
inline |
Definition at line 64 of file RawDataMdcMcHitCnv.hpp.
64 {
65
66
67
69
70 if ( re == 0 )
71 {
72
73 return StatusCode::FAILURE;
74 }
75
77
78 if ( mdcHitCol == 0 )
79 {
80
81 return StatusCode::FAILURE;
82 }
83
84 StatusCode sc = m_mdcMcHitBuilder.pack( mdcHitCol, re );
85
86 return sc;
87 }
eformat::write::FullEventFragment WriteRawEvent
IRawDataCnvSvc * m_cnvSvc
_EXTERN_ std::string MdcMcHitCol
The documentation for this class was generated from the following file: