14 vector<uint32_t>::const_iterator& eiter,
MucTruth_t& mt)
16 uint32_t helpVal = *(
iter++); assert(
iter != eiter);
24 mt.
trackIndex = (helpVal&m_trackIndexMask) >> m_trackIndexIndex;
25 mt.
partId = (helpVal&m_partIdMask) >> m_partIdIndex;
26 mt.
segId = (helpVal&m_segIdMask) >> m_segIdIndex;
27 mt.
gapId = (helpVal&m_gapIdMask) >> m_gapIdIndex;
28 mt.
stripId = (helpVal&m_stripIdMask) >> m_stripIdIndex;
71 return StatusCode::SUCCESS;
81 f.open(initFile.c_str());
84 cerr <<
"Error: could not open file " << initFile << endl;
85 return StatusCode::FAILURE;
89 cerr <<
"Error: could not find '##MucTruthConf' in file " << initFile << endl;
90 return StatusCode::FAILURE;
106 return StatusCode::FAILURE;
110 return StatusCode::SUCCESS;
125void MucMcHitBuilder::makeMucTruth
126(MucMcHitCol::const_iterator& pMucMcHit,
MucTruth_t& mt)
130 mt.
trackIndex = (*pMucMcHit)->getTrackIndex() % 1000;
135 mt.
x = int((*pMucMcHit)->getPositionX() *
m_xCoeff);
136 mt.
y = int((*pMucMcHit)->getPositionY() *
m_yCoeff);
137 mt.
z = int((*pMucMcHit)->getPositionZ() *
m_zCoeff);
static bool find(ifstream &f, string msg, string fname)
static bool expect(ifstream &f, string msg, string fname)
static bool expectLong(ifstream &f, string msg, string fname, uint64_t &val)
static bool expectInt(ifstream &f, string msg, string fname, uint32_t &val1, uint32_t &val2)
static int part(const Identifier &id)
static int gap(const Identifier &id)
static int seg(const Identifier &id)
static int strip(const Identifier &id)
virtual uint32_t getREID(uint32_t reid)
virtual StatusCode initialize(string &initFile)
virtual uint32_t getTEID(uint32_t teid)
virtual void unPack(vector< uint32_t >::const_iterator &, vector< uint32_t >::const_iterator &, MucTruth_t &)
virtual StatusCode pack(MucMcHitCol *mucMcHitCol, WriteRawEvent *&re)
TFile f("ana_bhabha660a_dqa_mcPat_zy_old.root")