47 cout <<
"[DTTPDeadWriter]Constructor called!" << endl;
53 cout <<
"[DTTPDeadWriter]Destructor called!" << endl;
68 set<DTLayerId> analyzedLayers;
82 int channelId =
tzero->channelId;
83 if ( channelId == 0 )
continue;
86 if(analyzedLayers.find(layerId)==analyzedLayers.end()){
87 analyzedLayers.insert(layerId);
90 const DTTopology& dtTopo = muonGeom->layer(layerId)->specificTopology();
93 const int nWires = muonGeom->layer(layerId)->specificTopology().channels();
96 for(
int wire=firstWire; wire<=nWires; wire++){
100 tZeroMap->get(wireId,
107 tpDeadList->setCellDead_TP(wireId,
true);
108 cout<<
"Wire id "<<wireId<<
" is TP dead"<<endl;
118 cout <<
"[DTTPDeadWriter]Writing ttrig object to DB!" << endl;
121 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)
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")
virtual ~DTTPDeadWriter()
Destructor.