120 LogTrace(
"DTDQM|DTMonitorModule|DTChamberEfficiency")
121 <<
"--- [DTChamberEfficiency] Event analysed #Run: " <<
event.id().run() <<
" #Event: " <<
event.id().event()
139 const int recHitsize = (
int)trans_track.recHitsSize();
145 LogTrace(
"DTDQM|DTMonitorModule|DTChamberEfficiency") <<
"--- New track" << endl;
146 set<DTChamberId> chAlrUsed;
148 DetId rHitid = (*rHit)->geographicalId();
152 if (chAlrUsed.find(wId) != chAlrUsed.end())
154 chAlrUsed.insert(wId);
155 LogTrace(
"DTDQM|DTMonitorModule|DTChamberEfficiency") <<
" " << wId << endl;
160 DetId id = trans_track.track().innerDetId();
167 vector<const DetLayer*> layer_list =
169 vector<const DetLayer*> layer_list_2 =
172 layer_list.insert(layer_list.end(), layer_list_2.begin(), layer_list_2.end());
174 set<DTChamberId> alreadyCheckedCh;
177 for (
int i = 0;
i < (
int)layer_list.size();
i++) {
191 const DetId idDetLay = detWithState.first->geographicalId();
200 if (alreadyCheckedCh.find(DTid) != alreadyCheckedCh.end())
202 alreadyCheckedCh.insert(DTid);
207 LogTrace(
"DTDQM|DTMonitorModule|DTChamberEfficiency")
208 <<
" chamber: " << DTid <<
" has: " << detMeasurements_initial.size() <<
" comp. meas." << endl;
217 if (!detMeasurements_initial.empty())
219 if (!detMeasurements.empty())
225 LogInfo(
"DTDQM|DTMonitorModule|DTChamberEfficiency")
226 <<
"[DTChamberEfficiency] Collection: " <<
theTracksLabel_ <<
" is not valid!" << endl;
MuonDetLayerMeasurements * theMeasurementExtractor
int station() const
Return the station number.
MuonServiceProxy * theService
std::vector< std::vector< MonitorElement * > > histosPerW
bool chamberSelection(const DetId &idDetLay, reco::TransientTrack &trans_track) const
MeasurementContainer segQualityCut(const MeasurementContainer &seg_list) const
TrajectoryStateOnSurface propagate(STA const &state, SUR const &surface) const
constexpr Detector det() const
get the detector field from this detid
edm::EDGetTokenT< reco::TrackCollection > theTracksToken_
edm::ESHandle< Propagator > propagator() const
std::pair< const GeomDet *, TrajectoryStateOnSurface > DetWithState
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
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)
MeasurementContainer measurements(const DetLayer *layer, const GeomDet *det, const TrajectoryStateOnSurface &stateOnDet, const MeasurementEstimator &est, const edm::Event &iEvent)
Log< level::Info, false > LogInfo
auto const & tracks
cannot be loose
constexpr uint32_t rawId() const
get the raw id
edm::InputTag theTracksLabel_
std::vector< TrajectoryMeasurement > MeasurementContainer
void setEvent(const edm::Event &)
set event
int wheel() const
Return the wheel number.
FreeTrajectoryState const * freeState(bool withErrors=true) const
Chi2MeasurementEstimator * theEstimator