45 cout <<
"[DTTPDeadWriter]Constructor called!" << endl;
51 cout <<
"[DTTPDeadWriter]Destructor called!" << endl;
66 set<DTLayerId> analyzedLayers;
80 int channelId =
tzero->channelId;
81 if ( channelId == 0 )
continue;
84 if(analyzedLayers.find(layerId)==analyzedLayers.end()){
85 analyzedLayers.insert(layerId);
88 const DTTopology& dtTopo = muonGeom->layer(layerId)->specificTopology();
91 const int nWires = muonGeom->layer(layerId)->specificTopology().channels();
94 for(
int wire=firstWire; wire<=nWires; wire++){
105 tpDeadList->setCellDead_TP(wireId,
true);
106 cout<<
"Wire id "<<wireId<<
" is TP dead"<<endl;
116 cout <<
"[DTTPDeadWriter]Writing ttrig object to DB!" << endl;
119 string deadRecord =
"DTDeadFlagRcd";
T getUntrackedParameter(std::string const &, T const &) const
virtual void analyze(const edm::Event &event, const edm::EventSetup &eventSetup)
Compute the ttrig by fiting the TB rising edge.
virtual void beginRun(const edm::Run &, const edm::EventSetup &setup)
Read t0 map from event.
def setup(process, global_tag, zero_tesla=False)
std::vector< DTT0Data >::const_iterator const_iterator
Access methods to data.
int firstChannel() const
Returns the wire number of the first wire.
virtual void endJob()
Write ttrig in the DB.
DTTPDeadWriter(const edm::ParameterSet &pset)
Constructor.
static const double tzero[3]
static void writeToDB(std::string record, T *payload)
virtual ~DTTPDeadWriter()
Destructor.