14 vector<uint32_t>::const_iterator& eiter,
EmcTruth_t& et)
16 uint32_t helpVal = *(
iter++); assert(
iter != eiter);
25 et.
trackIndex = (helpVal&m_trackIndexMask) >> m_trackIndexIndex;
26 et.
partId = (helpVal&m_partIdMask) >> m_partIdIndex;
27 et.
numTheta = (helpVal&m_numThetaMask) >> m_numThetaIndex;
28 et.
numPhi = (helpVal&m_numPhiMask) >> m_numPhiIndex;
70 return StatusCode::SUCCESS;
80 f.open(initFile.c_str());
83 cerr <<
"Error: could not open file " << initFile << endl;
84 return StatusCode::FAILURE;
88 cerr <<
"Error: could not find '##EmcTruthConf' in file " << initFile << endl;
89 return StatusCode::FAILURE;
105 return StatusCode::FAILURE;
109 return StatusCode::SUCCESS;
124void EmcMcHitBuilder::makeEmcTruth
125(EmcMcHitCol::const_iterator& pEmcMcHit,
EmcTruth_t& et)
129 et.
trackIndex = (*pEmcMcHit)->getTrackIndex();
133 et.
x = int((*pEmcMcHit)->getPositionX() *
m_xCoeff);
134 et.
y = int((*pEmcMcHit)->getPositionY() *
m_yCoeff);
135 et.
z = int((*pEmcMcHit)->getPositionZ() *
m_zCoeff);
TFile f("ana_bhabha660a_dqa_mcPat_zy_old.root")
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 unsigned int barrel_ec(const Identifier &id)
Values of different levels (failure returns 0)
static unsigned int theta_module(const Identifier &id)
static unsigned int phi_module(const Identifier &id)
virtual StatusCode pack(EmcMcHitCol *emcMcHitCol, WriteRawEvent *&re)
virtual uint32_t getTEID(uint32_t teid)
virtual void unPack(vector< uint32_t >::const_iterator &, vector< uint32_t >::const_iterator &, EmcTruth_t &)
uint64_t m_totalEdepCoeff
virtual uint32_t getREID(uint32_t reid)
virtual StatusCode initialize(string &initFile)