134 LogTrace(
"DTDQM|DTMonitorModule|DTChamberEfficiency")
135 <<
"--- [DTChamberEfficiency] Event analysed #Run: " <<
event.id().run() <<
" #Event: " <<
event.id().event()
148 for (reco::TrackCollection::const_iterator
track = tracks->begin();
track != tracks->end(); ++
track) {
156 LogTrace(
"DTDQM|DTMonitorModule|DTChamberEfficiency") <<
"--- New track" << endl;
157 set<DTChamberId> chAlrUsed;
159 DetId rHitid = (*rHit)->geographicalId();
163 if (chAlrUsed.find(wId) != chAlrUsed.end())
165 chAlrUsed.insert(wId);
166 LogTrace(
"DTDQM|DTMonitorModule|DTChamberEfficiency") <<
" " << wId << endl;
171 DetId id = trans_track.track().innerDetId();
178 vector<const DetLayer*> layer_list =
180 vector<const DetLayer*> layer_list_2 =
183 layer_list.insert(layer_list.end(), layer_list_2.begin(), layer_list_2.end());
185 set<DTChamberId> alreadyCheckedCh;
188 for (
int i = 0;
i < (
int)layer_list.size();
i++) {
202 const DetId idDetLay = detWithState.first->geographicalId();
211 if (alreadyCheckedCh.find(DTid) != alreadyCheckedCh.end())
213 alreadyCheckedCh.insert(DTid);
218 LogTrace(
"DTDQM|DTMonitorModule|DTChamberEfficiency")
219 <<
" chamber: " << DTid <<
" has: " << detMeasurements_initial.size() <<
" comp. meas." << endl;
228 if (!detMeasurements_initial.empty())
230 if (!detMeasurements.empty())
236 LogInfo(
"DTDQM|DTMonitorModule|DTChamberEfficiency")
237 <<
"[DTChamberEfficiency] Collection: " <<
theTracksLabel_ <<
" is not valid!" << endl;
MuonDetLayerMeasurements * theMeasurementExtractor
edm::ESHandle< GlobalTrackingGeometry > theTrackingGeometry
MuonServiceProxy * theService
MeasurementContainer segQualityCut(const MeasurementContainer &seg_list) const
std::vector< std::vector< MonitorElement * > > histosPerW
constexpr uint32_t rawId() const
get the raw id
size_t recHitsSize() const
number of RecHits
edm::EDGetTokenT< reco::TrackCollection > theTracksToken_
const SurfaceType & surface() const
bool chamberSelection(const DetId &idDetLay, reco::TransientTrack &trans_track) const
edm::ESHandle< Propagator > propagator() const
std::pair< const GeomDet *, TrajectoryStateOnSurface > DetWithState
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
FreeTrajectoryState const * freeState(bool withErrors=true) const
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
std::vector< const DetLayer * > compatibleLayers(const NavigationSchool &navigationSchool, const DetLayer *initialLayer, const FreeTrajectoryState &fts, PropagationDirection propDir)
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
MeasurementContainer measurements(const DetLayer *layer, const GeomDet *det, const TrajectoryStateOnSurface &stateOnDet, const MeasurementEstimator &est, const edm::Event &iEvent)
edm::ESHandle< MagneticField > magfield
edm::InputTag theTracksLabel_
std::vector< TrajectoryMeasurement > MeasurementContainer
TrajectoryStateOnSurface propagate(STA const &state, SUR const &surface) const
void setEvent(const edm::Event &)
set event
Chi2MeasurementEstimator * theEstimator
int station() const
Return the station number.
int wheel() const
Return the wheel number.
T const * product() const
constexpr Detector det() const
get the detector field from this detid