168 LogTrace(
"DTDQM|DTMonitorModule|DTChamberEfficiency") <<
169 "--- [DTChamberEfficiency] Event analysed #Run: " <<
170 event.id().run() <<
" #Event: " <<
event.id().event() << endl;
181 if(tracks.isValid()) {
184 for(reco::TrackCollection::const_iterator track = tracks->begin(); track!=tracks->end(); ++track) {
188 const int recHitsize = (int)trans_track.
recHitsSize();
193 LogTrace(
"DTDQM|DTMonitorModule|DTChamberEfficiency") <<
"--- New track" << endl;
194 set<DTChamberId> chAlrUsed;
196 rHit != trans_track.recHitsEnd(); ++rHit) {
197 DetId rHitid = (*rHit)->geographicalId();
200 if(chAlrUsed.find(wId) != chAlrUsed.end())
continue;
201 chAlrUsed.insert(wId);
202 LogTrace(
"DTDQM|DTMonitorModule|DTChamberEfficiency") <<
" " << wId << endl;
207 DetId id = trans_track.track().innerDetId();
217 layer_list.insert(layer_list.end(),layer_list_2.begin(),layer_list_2.end());
219 set<DTChamberId> alreadyCheckedCh;
222 for(
int i=0;
i< (int)layer_list.size();
i++) {
231 if(dss.size() == 0)
continue;
235 const DetId idDetLay = detWithState.first->geographicalId();
243 if(alreadyCheckedCh.find(DTid) != alreadyCheckedCh.end())
continue;
244 alreadyCheckedCh.insert(DTid);
251 LogTrace(
"DTDQM|DTMonitorModule|DTChamberEfficiency") <<
" chamber: " << DTid
252 <<
" has: " << detMeasurements_initial.size() <<
" comp. meas." << endl;
262 if (detMeasurements_initial.size() != 0) histos[0]->
Fill(DTid.
sector(),DTid.
station(),1.);
263 if (detMeasurements.size() != 0) histos[1]->
Fill(DTid.
sector(),DTid.
station(),1.);
270 LogInfo(
"DTDQM|DTMonitorModule|DTChamberEfficiency") <<
"[DTChamberEfficiency] Collection: " <<
theTracksLabel
271 <<
" is not valid!" << endl;
MuonDetLayerMeasurements * theMeasurementExtractor
edm::ESHandle< GlobalTrackingGeometry > theTrackingGeometry
MuonServiceProxy * theService
std::vector< std::vector< MonitorElement * > > histosPerW
size_t recHitsSize() const
number of RecHits
uint32_t rawId() const
get the raw id
std::vector< const DetLayer * > compatibleLayers(const DetLayer *initialLayer, const FreeTrajectoryState &fts, PropagationDirection propDir)
bool chamberSelection(const DetId &idDetLay, reco::TransientTrack &trans_track) const
edm::ESHandle< Propagator > propagator() const
FreeTrajectoryState * freeState(bool withErrors=true) const
edm::InputTag theTracksLabel
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
std::pair< const GeomDet *, TrajectoryStateOnSurface > DetWithState
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
int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
MeasurementContainer measurements(const DetLayer *layer, const GeomDet *det, const TrajectoryStateOnSurface &stateOnDet, const MeasurementEstimator &est, const edm::Event &iEvent)
edm::ESHandle< MagneticField > magfield
MeasurementContainer segQualityCut(const MeasurementContainer seg_list) const
std::vector< TrajectoryMeasurement > MeasurementContainer
T const * product() const
void setEvent(const edm::Event &)
set event
const Surface & surface() const
Chi2MeasurementEstimator * theEstimator
int station() const
Return the station number.
Detector det() const
get the detector field from this detid
int wheel() const
Return the wheel number.