46 #include <TClonesArray.h>
63 std::cout <<
"Writer Init start" << std::endl;
70 std::cout <<
"DSTTrackInfoWriter::Init - DST Node missing" << std::endl;
80 std::cout <<
"DSTTrackInfoWriter::Init - EVAL node missing - creating" << std::endl;
82 dstNode->addNode(evalNode);
90 evalNode->addNode(newInfoNode);
106 std::cout <<
"Writer Init end" << std::endl;
119 std::cout << __FILE__ <<
"::" << __func__ <<
"::" << __LINE__ << std::endl;
120 std::cout <<
"DSTTrackInfoWriter::process_event" << std::endl;
135 std::cout <<
"Evalutate track info" << std::endl;
140 std::cout <<
"exiting event"
152 m_track_map = findNode::getClass<SvtxTrackMap>(topNode,
"SvtxTrackMap");
173 std::cout <<
"Before loop"
178 const auto track = trackpair.second;
181 uint64_t hitbitmap = 0;
186 std::cout <<
"Before seeds"
189 TrackSeed* TPCSeed = track->get_tpc_seed();
190 TrackSeed* SiliconSeed = track->get_silicon_seed();
195 const auto& cluster_key = *key_iter;
203 std::cout <<
"Layer is: " << unsigned(layer) << std::endl;
205 hitbitmap = hitbitmap + ((uint64_t) 1 << layer);
212 std::cout <<
"Before Silicon seeds"
219 std::cout <<
"Silicon Seed does not exist" << std::endl;
227 const auto& cluster_key = *key_iter;
232 std::cout <<
"Layer is: " << unsigned(layer) << std::endl;
234 hitbitmap = hitbitmap + ((uint64_t) 1 << layer);
239 std::cout <<
"After Track seeds"
243 trackInfo->
set_chisq(track->get_chisq());
244 trackInfo->
set_ndf(track->get_ndf());
247 trackInfo->
set_x(track->get_x());
248 trackInfo->
set_y(track->get_y());
249 trackInfo->
set_z(track->get_z());
250 trackInfo->
set_px(track->get_px());
251 trackInfo->
set_py(track->get_py());
252 trackInfo->
set_pz(track->get_pz());
255 std::cout <<
"track crossing: " << track->get_crossing() << std::endl;
257 std::cout <<
"track.get_z(): " << track->get_z() << std::endl;
258 std::cout <<
"trackInfo.get_z(): " << trackInfo->
get_z() << std::endl;
259 std::cout <<
"Hitbitmap: " << trackInfo->
get_hitbitmap() << std::endl;
260 std::cout <<
"crossing: " << trackInfo->
get_crossing() << std::endl;
261 std::cout <<
"chi^2: " << trackInfo->
get_chisq() << std::endl;
262 std::cout <<
"ndf: " << unsigned(trackInfo->
get_ndf()) << std::endl;
265 for (
int i = 0;
i < 6;
i++)
267 for (
int j =
i;
j < 6;
j++)
274 std::cout <<
"Right before adding track info" << iTrk << std::endl;
279 std::cout <<
"Right after adding track info" << std::endl;