45 cout <<
"[DTTPDeadWriter]Constructor called!" << endl;
51 cout <<
"[DTTPDeadWriter]Destructor called!" << endl;
64 set<DTLayerId> analyzedLayers;
76 int channelId =
tzero->channelId;
81 if (analyzedLayers.find(layerId) == analyzedLayers.end()) {
82 analyzedLayers.insert(layerId);
88 const int nWires =
muonGeom->layer(layerId)->specificTopology().channels();
91 for (
int wire = firstWire; wire <= nWires; wire++) {
100 cout <<
"Wire id " << wireId <<
" is TP dead" << endl;
110 cout <<
"[DTTPDeadWriter]Writing ttrig object to DB!" << endl;
113 string deadRecord =
"DTDeadFlagRcd";
const_iterator begin() const
T getUntrackedParameter(std::string const &, T const &) const
void beginRun(const edm::Run &, const edm::EventSetup &setup) override
Read t0 map from event.
~DTTPDeadWriter() override
Destructor.
int get(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, float &t0mean, float &t0rms, DTTimeUnits::type unit) const
std::vector< DTT0Data >::const_iterator const_iterator
Access methods to data.
int firstChannel() const
Returns the wire number of the first wire.
bool getData(T &iHolder) const
void analyze(const edm::Event &event, const edm::EventSetup &eventSetup) override
Compute the ttrig by fiting the TB rising edge.
DTTPDeadWriter(const edm::ParameterSet &pset)
Constructor.
int setCellDead_TP(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, bool flag)
const_iterator end() const
T getParameter(std::string const &) const
edm::ESHandle< DTGeometry > muonGeom
edm::ESGetToken< DTT0, DTT0Rcd > t0Token_
static const double tzero[3]
const edm::ESGetToken< DTGeometry, MuonGeometryRecord > dtGeomToken_
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
void endJob() override
Write ttrig in the DB.
static void writeToDB(std::string record, T *payload)