3 #include "mvtx/MvtxDefUtil.h"
4 #include "mvtx/MvtxHitSetv1.h"
21 #include <g4detectors/PHG4CylinderGeom_MAPS.h>
22 #include <g4detectors/PHG4CylinderGeom_Siladders.h>
54 hits_ = findNode::getClass<TrkrHitSetContainer>(topNode,
"TrkrHitSetContainer");
57 cout <<
PHWHERE <<
"ERROR: Can't find node TrkrHitSetContainer" << endl;
64 MvtxHitSetv1 *hitset = NULL;
72 if ( iter->first != prevkey )
74 prevkey = iter->first;
75 hitset =
static_cast<MvtxHitSetv1*
>(
hits_->FindHitSet(iter->first));
81 int retval = hitset->RemoveHit((iter->second).first, (iter->second).second);
85 cout <<
PHWHERE <<
" Successfully removed hit "
86 <<
" key:0x" << hex << iter->first << dec
87 <<
" col:" << (iter->second).first
88 <<
" row:" << (iter->second).second
94 cout <<
PHWHERE <<
" no hit found hit "
95 <<
" key:0x" << hex << iter->first << dec
96 <<
" col:" << (iter->second).first
97 <<
" row:" << (iter->second).second
105 cout <<
PHWHERE <<
" no TrkrHitSet found for key 0x" << hex << iter->first << dec << endl;
120 cout <<
"Entering MvtxApplyHotDead::ReadHotDeadFile " << endl;
138 while ( getline(fin, line) )
140 int lyr, stave, chip,
col, row;
141 sscanf(line.c_str(),
"%i %i %i %i %i", &lyr, &stave, &chip, &
col, &row);
144 if ( lyr < 0 || stave < 0 || chip < 0 || col < 0 || row < 0 )
146 cout <<
PHWHERE <<
"WARNING: skipping invalid entry: "
148 <<
" stave:" << stave
159 hdmap_.insert(make_pair(key, make_pair(col, row)));
165 cout <<
PHWHERE <<
"ERROR: Can't open " <<
hdfile_ <<
", will not mask any pixels." << endl;
173 os <<
"=============================================================" << endl;
174 os <<
"== " <<
PHWHERE <<
"==" << endl;
175 os <<
"=============================================================" << endl;
183 << util.GetLayer(iter->first) <<
" "
184 << util.GetStaveId(iter->first) <<
" "
185 << util.GetChipId(iter->first) <<
" "
186 << (iter->second).first <<
" "
187 << (iter->second).second
191 os <<
"=============================================================" << endl;