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.
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.
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
DTTPDeadWriter(const edm::ParameterSet &pset)
Constructor.
static const double tzero[3]
static void writeToDB(std::string record, T *payload)
virtual ~DTTPDeadWriter()
Destructor.