38 debug =
pset.getUntrackedParameter<
bool>(
"debug",
false);
44 cout <<
"[DTTPDeadWriter]Constructor called!" << endl;
50 cout <<
"[DTTPDeadWriter]Destructor called!" << endl;
65 set<DTLayerId> analyzedLayers;
77 int channelId =
tzero->channelId;
82 if (analyzedLayers.find(layerId) == analyzedLayers.end()) {
83 analyzedLayers.insert(layerId);
86 const DTTopology& dtTopo = muonGeom->layer(layerId)->specificTopology();
89 const int nWires = muonGeom->layer(layerId)->specificTopology().channels();
92 for (
int wire = firstWire; wire <= nWires; wire++) {
100 tpDeadList->setCellDead_TP(wireId,
true);
101 cout <<
"Wire id " << wireId <<
" is TP dead" << endl;
111 cout <<
"[DTTPDeadWriter]Writing ttrig object to DB!" << endl;
114 string deadRecord =
"DTDeadFlagRcd";