47 cout <<
"[DTTPDeadWriter]Constructor called!" << endl;
53 cout <<
"[DTTPDeadWriter]Destructor called!" << endl;
68 set<DTLayerId> analyzedLayers;
76 (*tzero).first.stationId,
77 (*tzero).first.sectorId,
79 (*tzero).first.layerId,
80 (*tzero).first.cellId)).layerId();
81 if(analyzedLayers.find(layerId)==analyzedLayers.end()){
82 analyzedLayers.insert(layerId);
85 const DTTopology& dtTopo = muonGeom->layer(layerId)->specificTopology();
88 const int nWires = muonGeom->layer(layerId)->specificTopology().channels();
91 for(
int wire=firstWire; wire<=nWires; wire++){
102 tpDeadList->setCellDead_TP(wireId,
true);
103 cout<<
"Wire id "<<wireId<<
" is TP dead"<<endl;
113 cout <<
"[DTTPDeadWriter]Writing ttrig object to DB!" << endl;
116 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.
const 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.
std::vector< std::pair< DTT0Id, DTT0Data > >::const_iterator const_iterator
Access methods to data.
static const double tzero[3]
static void writeToDB(std::string record, T *payload)
virtual ~DTTPDeadWriter()
Destructor.