51 std::cout <<
"MvtxCombinedRawDataDecoder::InitRun - DST Node missing, doing nothing." << std::endl;
56 hit_set_container = findNode::getClass<TrkrHitSetContainer>(topNode,
"TRKR_HITSET");
70 trkrNode->addNode(newNode);
83 mvtx_event_header = findNode::getClass<MvtxEventInfo>(mvtxNode,
"MVTXEVENTHEADER");
88 mvtxNode->addNode(newHeader);
96 std::cout <<
"Have you built this yet?" << std::endl;
106 for (
int i = 0;
i < NPixel;
i++)
116 m_hotPixelMap.push_back({std::make_pair(HotPixelHitKey, HotHitKey)});
128 hit_set_container = findNode::getClass<TrkrHitSetContainer>(topNode,
"TRKR_HITSET");
132 if (!mvtx_hit_container)
135 std::cout <<
"Have you built this yet?" << std::endl;
138 auto gl1 = findNode::getClass<Gl1RawHit>(topNode,
"GL1RAWHIT");
141 std::cout <<
PHWHERE <<
"Could not get gl1 raw hit" << std::endl;
144 uint64_t gl1rawhitbco = gl1->get_bco();
147 auto lbshift = gl1rawhitbco << 24;
148 auto gl1bco = lbshift >> 24;
152 uint64_t strobe = -1;
158 std::vector<std::pair<uint64_t, uint32_t>> strobe_bc_pairs;
160 auto mvtxbco = *l1BCOs.begin();
163 std::cout <<
"mvtx header bco " << mvtxbco <<
" and gl1 bco " << gl1bco << std::endl;
168 mvtx_event_header = findNode::getClass<MvtxEventInfo>(topNode,
"MVTXEVENTHEADER");
174 for (
unsigned int i = 0;
i < mvtx_hit_container->get_nhits();
i++)
176 mvtx_hit = mvtx_hit_container->get_hit(
i);
184 uint64_t bcodiff = gl1bco - strobe;
185 double timeElapsed = bcodiff * 0.106;
191 if (!hitsetkey)
continue;
200 auto hit = hitset_it->second->getHit(hitkey);
203 std::cout <<
PHWHERE <<
"::" << __func__ <<
" - duplicated hit, hitsetkey: " << hitsetkey <<
" hitkey: " << hitkey << std::endl;
213 hitset_it->second->addHitSpecificKey(hitkey, hit);
221 for (
auto iter = l1BCOs.begin(); iter != l1BCOs.end(); iter++)
244 v.erase(
end,
v.end());