181 commonModeToken_(mayConsume<edm::DetSetVector<
SiStripRawDigi>>(conf.getParameter<edm::
InputTag>(
"commonMode"))),
182 combinatorialTracks_token_(
198 tkDetMapToken_(esConsumes<edm::Transition::BeginRun>()),
199 layers_(conf.getParameter<
int>(
"Layer")),
200 DEBUG_(conf.getUntrackedParameter<
bool>(
"Debug",
false)),
201 addLumi_(conf.getUntrackedParameter<
bool>(
"addLumi",
false)),
202 addCommonMode_(conf.getUntrackedParameter<
bool>(
"addCommonMode",
false)),
203 cutOnTracks_(conf.getParameter<
bool>(
"cutOnTracks")),
204 trackMultiplicityCut_(conf.getParameter<
unsigned int>(
"trackMultiplicity")),
205 useFirstMeas_(conf.getParameter<
bool>(
"useFirstMeas")),
206 useLastMeas_(conf.getParameter<
bool>(
"useLastMeas")),
207 useAllHitsFromTracksWithMissingHits_(conf.getParameter<
bool>(
"useAllHitsFromTracksWithMissingHits")),
208 clusterMatchingMethod_(conf.getParameter<
int>(
"ClusterMatchingMethod")),
209 resXSig_(conf.getParameter<
double>(
"ResXSig")),
210 clusterTracjDist_(conf.getParameter<
double>(
"ClusterTrajDist")),
211 stripsApvEdge_(conf.getParameter<
double>(
"StripsApvEdge")),
212 useOnlyHighPurityTracks_(conf.getParameter<
bool>(
"UseOnlyHighPurityTracks")),
213 bunchX_(conf.getUntrackedParameter<
int>(
"BunchCrossing", 0)),
214 showRings_(conf.getUntrackedParameter<
bool>(
"ShowRings",
false)),
215 showTOB6TEC9_(conf.getUntrackedParameter<
bool>(
"ShowTOB6TEC9",
false)) {
216 nTEClayers_ = (showRings_ ? 7 : 9);
219 if (!badModulesFile.empty()) {
220 std::ifstream badModules_file(badModulesFile);
221 uint32_t badmodule_detid;
222 int mods, fiber1, fiber2, fiber3;
223 if (badModules_file.is_open()) {
225 while (getline(badModules_file, line)) {
226 if (badModules_file.eof())
228 std::stringstream
ss(line);
229 ss >> badmodule_detid >> mods >> fiber1 >> fiber2 >> fiber3;
230 if (badmodule_detid != 0 && mods == 1 && (fiber1 == 1 || fiber2 == 1 || fiber3 == 1))
231 badModules_.insert(badmodule_detid);
233 badModules_file.close();
236 if (!badModules_.empty())
237 LogDebug(
"SiStripHitEfficiencyWorker") <<
"Remove additionnal bad modules from the analysis: ";
238 for (
const auto badMod : badModules_) {
239 LogDebug(
"SiStripHitEfficiencyWorker") <<
" " << badMod;
254 h_bx = booker.
book1D(
"bx",
"bx", 3600, 0, 3600);
256 h_PU = booker.
book1D(
"PU",
"PU", 200, 0, 200);
259 booker.
book1D(
"goodlayer_found",
"goodlayer_found", 35, 0., 35.));
261 booker.
book1D(
"alllayer_found",
"alllayer_found", 35, 0., 35.));
264 booker.
book1D(
"layer_total",
"layer_total", 23, 0., 23.));
267 auto ihres = booker.
book1D(Form(
"resol_layer_%i",
layer), lyrName, 125, -125., 125.);
271 booker.
book1D(Form(
"layerfound_vsLumi_layer_%i",
layer), lyrName, 100, 0, 25000)));
273 booker.
book1D(Form(
"layerfound_vsPU_layer_%i",
layer), lyrName, 45, 0, 90)));
276 booker.
book1D(Form(
"layerfound_vsCM_layer_%i",
layer), lyrName, 20, 0, 400)));
280 booker.
book1D(Form(
"foundVsBx_layer%i",
layer), Form(
"layer %i",
layer), 3565, 0, 3565)));
282 const bool isTIB =
layer < 4;
283 const auto partition = (isTIB ?
"TIB" :
"TOB");
284 const auto yMax = (isTIB ? 100 : 120);
285 auto ihhotcold = booker.
book2D(
286 Form(
"%s%i", partition, (isTIB ?
layer + 1 :
layer - 3)), partition, 100, -1, 361, 100, -
yMax,
yMax);
288 ihhotcold->setBinLabel(1,
"360", 1);
289 ihhotcold->setBinLabel(50,
"180", 1);
290 ihhotcold->setBinLabel(100,
"0", 1);
291 ihhotcold->setAxisTitle(
"Global Z", 2);
292 ihhotcold->setOption(
"colz");
295 const bool isTID =
layer < 13;
297 (isTID ? std::vector<std::string>{
"TID-",
"TID+"} : std::vector<std::string>{
"TEC-",
"TEC+"});
298 const auto axMax = (isTID ? 100 : 120);
300 auto ihhotcold = booker.
book2D(
301 Form(
"%s%i",
part.c_str(), (isTID ?
layer - 9 :
layer - 12)),
part, 100, -axMax, axMax, 100, -axMax, axMax);
303 ihhotcold->setBinLabel(1,
"+Y", 1);
304 ihhotcold->setBinLabel(50,
"0", 1);
305 ihhotcold->setBinLabel(100,
"-Y", 1);
306 ihhotcold->setAxisTitle(
"Global X", 2);
307 ihhotcold->setBinLabel(1,
"-X", 2);
308 ihhotcold->setBinLabel(50,
"0", 2);
309 ihhotcold->setBinLabel(100,
"+X", 2);
310 ihhotcold->setOption(
"colz");
317 h_module =
EffTkMap(std::make_unique<TkHistoMap>(tkDetMap, booker, path,
"perModule_total", 0,
false,
true),
318 std::make_unique<TkHistoMap>(tkDetMap, booker, path,
"perModule_found", 0,
false,
true));
326 LogDebug(
"SiStripHitEfficiencyWorker") <<
"beginning analyze from HitEff";
336 if (lumiScalers->begin() != lumiScalers->end()) {
337 instLumi = lumiScalers->begin()->instantLumi();
338 PU = lumiScalers->begin()->pileup();
378 LogDebug(
"SiStripHitEfficiencyWorker") <<
"number ckf tracks found = " << tracksCKF->size();
379 if (!tracksCKF->empty()) {
383 LogDebug(
"SiStripHitEfficiencyWorker")
391 for (
const auto& trajTrack : *trajTrackAssociationHandle) {
394 const bool highPurity = trajTrack.val->quality(reco::TrackBase::TrackQuality::highPurity);
395 auto TMeas = trajTrack.key->measurements();
397 const bool hasMissingHits = std::any_of(
std::begin(TMeas),
std::end(TMeas), [](
const auto& tm) {
403 for (
auto itm = TMeas.cbegin(); itm != TMeas.cend(); ++itm) {
404 const auto theInHit = (*itm).recHit();
406 LogDebug(
"SiStripHitEfficiencyWorker") <<
"theInHit is valid = " << theInHit->isValid();
408 unsigned int iidd = theInHit->geographicalId().rawId();
410 unsigned int TKlayers = ::checkLayer(iidd, tTopo);
411 LogDebug(
"SiStripHitEfficiencyWorker") <<
"TKlayer from trajectory: " << TKlayers <<
" from module = " << iidd
412 <<
" matched/stereo/rphi = " << ((iidd & 0x3) == 0) <<
"/"
413 << ((iidd & 0x3) == 1) <<
"/" << ((iidd & 0x3) == 2);
423 if (TKlayers == 10 || TKlayers == 22) {
424 LogDebug(
"SiStripHitEfficiencyWorker") <<
"skipping original TM for TOB 6 or TEC 9";
428 std::vector<TrajectoryAtInvalidHit> TMs;
436 if (::isDoubleSided(iidd, tTopo) && ((iidd & 0x3) == 0)) {
439 TMs.emplace_back(*itm, tTopo, tkgeom, propagator, 1);
440 TMs.emplace_back(*itm, tTopo, tkgeom, propagator, 2);
441 }
else if (::isDoubleSided(iidd, tTopo) && (!::check2DPartner(iidd, TMeas))) {
444 TMs.emplace_back(*itm, tTopo, tkgeom, propagator, 1);
445 TMs.emplace_back(*itm, tTopo, tkgeom, propagator, 2);
446 LogDebug(
"SiStripHitEfficiencyWorker") <<
" found a hit with a missing partner";
449 TMs.emplace_back(*itm, tTopo, tkgeom, propagator);
457 const auto nextId = (itm + 1 != TMeas.end()) ? (itm + 1)->recHit()->geographicalId() :
DetId{};
459 if (TKlayers == 9 && theInHit->isValid() && !((!nextId.null()) && (::checkLayer(nextId.rawId(), tTopo) == 9))) {
462 const DetLayer* tob6 = measTracker.geometricSearchTracker()->tobLayers().back();
463 const LayerMeasurements theLayerMeasurements{measTracker, *measurementTrackerEvent};
465 const auto tmp = theLayerMeasurements.measurements(*tob6, tsosTOB5, prop, chi2Estimator);
468 LogDebug(
"SiStripHitEfficiencyWorker") <<
"size of TM from propagation = " <<
tmp.size();
473 const auto& tob6TM =
tmp.back();
474 const auto& tob6Hit = tob6TM.recHit();
475 if (tob6Hit->geographicalId().rawId() != 0) {
476 LogDebug(
"SiStripHitEfficiencyWorker") <<
"tob6 hit actually being added to TM vector";
477 TMs.emplace_back(tob6TM, tTopo, tkgeom, propagator);
483 if (TKlayers == 21 && theInHit->isValid() &&
484 !((!nextId.null()) && (::checkLayer(nextId.rawId(), tTopo) == 21))) {
485 const DetLayer* tec9pos = measTracker.geometricSearchTracker()->posTecLayers().back();
486 const DetLayer* tec9neg = measTracker.geometricSearchTracker()->negTecLayers().back();
488 const LayerMeasurements theLayerMeasurements{measTracker, *measurementTrackerEvent};
493 LogDebug(
"SiStripHitEfficiencyWorker") <<
"there is a problem with TEC 9 extrapolation";
496 std::vector<TrajectoryMeasurement>
tmp;
497 if (tTopo->tecSide(iidd) == 1) {
498 tmp = theLayerMeasurements.measurements(*tec9neg, tsosTEC9, prop, chi2Estimator);
501 if (tTopo->tecSide(iidd) == 2) {
502 tmp = theLayerMeasurements.measurements(*tec9pos, tsosTEC9, prop, chi2Estimator);
510 const auto& tec9TM = tmp.back();
511 const auto& tec9Hit = tec9TM.recHit();
513 const unsigned int tec9id = tec9Hit->geographicalId().rawId();
514 LogDebug(
"SiStripHitEfficiencyWorker")
515 <<
"tec9id = " << tec9id <<
" is Double sided = " << ::isDoubleSided(tec9id, tTopo)
516 <<
" and 0x3 = " << (tec9id & 0x3);
518 if (tec9Hit->geographicalId().rawId() != 0) {
519 LogDebug(
"SiStripHitEfficiencyWorker") <<
"tec9 hit actually being added to TM vector";
522 if (::isDoubleSided(tec9id, tTopo)) {
523 TMs.emplace_back(tec9TM, tTopo, tkgeom, propagator, 1);
524 TMs.emplace_back(tec9TM, tTopo, tkgeom, propagator, 2);
526 TMs.emplace_back(tec9TM, tTopo, tkgeom, propagator);
531 for (
const auto& tm : TMs) {
545 LogDebug(
"SiStripHitEfficiencyWorker") <<
"After looping over TrajAtValidHit list";
547 LogDebug(
"SiStripHitEfficiencyWorker") <<
"end TMeasurement loop";
549 LogDebug(
"SiStripHitEfficiencyWorker") <<
"end of trajectories loop";
567 LogDebug(
"SiStripHitEfficiencyWorker") <<
"setting iidd = " << iidd <<
" before checking efficiency and ";
569 const auto xloc = tm.
localX();
570 const auto yloc = tm.
localY();
578 const auto TKlayers = ::checkLayer(iidd, tTopo);
580 const bool withinAcceptance =
581 tm.
withinAcceptance() && (!::isInBondingExclusionZone(iidd, TKlayers, yloc, yErr, tTopo));
585 LogDebug(
"SiStripHitEfficiencyWorker") <<
"Looking at layer under study";
586 unsigned int ModIsBad = 2;
587 unsigned int SiStripQualBad = 0;
588 float commonMode = -100;
592 if (!theClusters.
empty()) {
593 LogDebug(
"SiStripHitEfficiencyWorker") <<
"Checking clusters with size = " << theClusters.
size();
594 std::vector<::ClusterInfo> VCluster_info;
595 const auto idsv = theClusters.
find(iidd);
596 if (idsv != theClusters.
end()) {
598 LogDebug(
"SiStripHitEfficiencyWorker")
599 <<
"found (ClusterId == iidd) with ClusterId = " << idsv->id() <<
" and iidd = " << iidd;
608 if (TKlayers >= 11) {
609 const BoundPlane& plane = stripdet->surface();
611 dynamic_cast<const TrapezoidalPlaneBounds*>(&(plane.bounds())));
612 std::array<const float, 4>
const& parameterTrap = (*trapezoidalBounds).
parameters();
613 hbedge = parameterTrap[0];
614 htedge = parameterTrap[1];
615 hapoth = parameterTrap[3];
616 uylfac = (htedge - hbedge) / (htedge + hbedge) / hapoth;
617 uxlden = 1 + yloc * uylfac;
621 if (TrajStrip == -1) {
623 float pitch = stripdet->surface().bounds().width() / nstrips;
624 TrajStrip = xloc / pitch + nstrips / 2.0;
626 if (TKlayers >= 11) {
627 const float TrajLocXMid = xloc / (1 + (htedge - hbedge) * yloc / (htedge + hbedge) /
629 TrajStrip = TrajLocXMid / pitch + nstrips / 2.0;
634 for (
const auto& clus : *idsv) {
636 float res = (parameters.first.x() - xloc);
637 float sigma = ::checkConsistency(parameters, xloc, xErr);
644 if (TKlayers >= 11) {
645 res = parameters.first.x() - xloc / uxlden;
646 sigma =
abs(res) /
sqrt(parameters.second.xx() + xErr * xErr / uxlden / uxlden +
647 yErr * yErr * xloc * xloc * uylfac * uylfac / uxlden / uxlden / uxlden / uxlden);
650 VCluster_info.emplace_back(res, sigma, parameters.first.x());
652 LogDebug(
"SiStripHitEfficiencyWorker") <<
"Have ID match. residual = " << res <<
" res sigma = " << sigma;
655 LogDebug(
"SiStripHitEfficiencyWorker")
656 <<
"hit position = " << parameters.first.x() <<
" hit error = " <<
sqrt(parameters.second.xx())
657 <<
" trajectory position = " << xloc <<
" traj error = " << xErr;
660 ::ClusterInfo finalCluster{1000.0, 1000.0, 0.0};
661 if (!VCluster_info.empty()) {
662 LogDebug(
"SiStripHitEfficiencyWorker") <<
"found clusters > 0";
663 if (VCluster_info.size() > 1) {
665 for (
const auto& res : VCluster_info) {
669 LogDebug(
"SiStripHitEfficiencyWorker")
670 <<
"iresidual = " << res.xResidual <<
" isigma = " << res.xResidualPull
671 <<
" and FinalRes = " << finalCluster.xResidual;
674 finalCluster = VCluster_info[0];
676 VCluster_info.clear();
679 LogDebug(
"SiStripHitEfficiencyWorker") <<
"Final residual in X = " << finalCluster.xResidual <<
"+-"
680 << (finalCluster.xResidual / finalCluster.xResidualPull);
681 LogDebug(
"SiStripHitEfficiencyWorker")
682 <<
"Checking location of trajectory: abs(yloc) = " <<
abs(yloc) <<
" abs(xloc) = " <<
abs(xloc);
690 LogDebug(
"SiStripHitEfficiencyWorker") <<
"strip is bad from SiStripQuality";
693 LogDebug(
"SiStripHitEfficiencyWorker") <<
"strip is good from SiStripQuality";
697 for (
unsigned int ii = 0;
ii < fedErrorIds.
size();
ii++) {
698 if (iidd == fedErrorIds[
ii].rawId())
704 if (commonModeDigis.isValid() && TrajStrip >= 0 && TrajStrip <= 768) {
705 const auto digiframe = commonModeDigis->find(iidd);
706 if (digiframe != commonModeDigis->end())
711 LogDebug(
"SiStripHitEfficiencyWorker") <<
"before check good";
713 if (finalCluster.xResidualPull < 999.0) {
715 LogDebug(
"SiStripHitEfficiencyWorker")
716 <<
"hit being counted as good " << finalCluster.xResidual <<
" FinalRecHit " << iidd <<
" TKlayers "
717 << TKlayers <<
" xloc " << xloc <<
" yloc " << yloc <<
" module " << iidd
718 <<
" matched/stereo/rphi = " << ((iidd & 0x3) == 0) <<
"/" << ((iidd & 0x3) == 1) <<
"/"
719 << ((iidd & 0x3) == 2);
722 LogDebug(
"SiStripHitEfficiencyWorker")
723 <<
"hit being counted as bad ######### Invalid RPhi FinalResX " << finalCluster.xResidual
724 <<
" FinalRecHit " << iidd <<
" TKlayers " << TKlayers <<
" xloc " << xloc <<
" yloc " << yloc
725 <<
" module " << iidd <<
" matched/stereo/rphi = " << ((iidd & 0x3) == 0) <<
"/" << ((iidd & 0x3) == 1)
726 <<
"/" << ((iidd & 0x3) == 2);
728 LogDebug(
"SiStripHitEfficiencyWorker")
729 <<
" RPhi Error " <<
sqrt(xErr * xErr + yErr * yErr) <<
" ErrorX " << xErr <<
" yErr " << yErr;
732 LogDebug(
"SiStripHitEfficiencyWorker")
733 <<
"To avoid them staying unused: ModIsBad=" << ModIsBad <<
", SiStripQualBad=" << SiStripQualBad
734 <<
", commonMode=" << commonMode <<
", highPurity=" << highPurity
735 <<
", withinAcceptance=" << withinAcceptance;
737 unsigned int layer = TKlayers;
740 layer = 10 + ((iidd >> 9) & 0x3);
742 layer = 13 + ((iidd >> 5) & 0x7);
745 unsigned int layerWithSide =
layer;
746 if (layer > 10 && layer < 14) {
747 const auto side = (iidd >> 13) & 0x3;
749 layerWithSide = layer + 3;
750 }
else if (layer > 13) {
751 const auto side = (iidd >> 18) & 0x3;
753 layerWithSide = layer + 3;
754 }
else if (side == 2) {
755 layerWithSide = layer + 3 + (
showRings_ ? 7 : 9);
759 if ((
bunchX_ > 0 &&
bunchX_ != bunchCrossing) || (!withinAcceptance) ||
764 const bool badquality = (SiStripQualBad == 1);
769 bool badflag =
false;
774 if (ModIsBad == 1 || finalCluster.xResidualPull >
resXSig_)
782 if (finalCluster.xResidualPull ==
792 double stripTrajMid = xloc / Pitch + nstrips / 2.0;
793 double stripCluster = finalCluster.xLocal / Pitch + nstrips / 2.0;
796 if (stripdet && layer >= 11) {
798 std::array<const float, 4>
const&
parameters = trapezoidalBounds.parameters();
799 const float hbedge = parameters[0];
800 const float htedge = parameters[1];
801 const float hapoth = parameters[3];
802 const float TrajLocXMid = xloc / (1 + (htedge - hbedge) * yloc / (htedge + hbedge) /
804 stripTrajMid = TrajLocXMid / Pitch + nstrips / 2.0;
808 h_resolution[
layer]->Fill(finalCluster.xResidualPull != 1000.0 ? stripTrajMid - stripCluster : 1000);
814 if (finalCluster.xResidualPull == 1000.0) {
815 LogDebug(
"SiStripHitEfficiencyWorker") <<
"Marking bad for resxsig=1000";
821 LogDebug(
"SiStripHitEfficiencyWorker") <<
"Marking bad for cluster-to-traj distance";
830 if (stripInAPV < stripsApvEdge_ || stripInAPV > sistrip::STRIPS_PER_APV -
stripsApvEdge_) {
831 LogDebug(
"SiStripHitEfficiencyWorker") <<
"Too close to the edge: " << stripInAPV;
835 LogDebug(
"SiStripHitEfficiencyWorker") <<
"Marking bad for tapv!=capv";
842 LogDebug(
"SiStripHitEfficiencyWorker")
843 <<
"Filling measurement for " << iidd <<
" in layer " << layer <<
" histograms with bx=" << bunchCrossing
844 <<
", lumi=" << instLumi <<
", PU=" << PU <<
"; bad flag=" << badflag;
848 if (layer > 0 && layer <= 10) {
851 }
else if (layer > 10 && layer <= 13) {
853 const int side = layer > 13 ? (iidd >> 13) & 0x3 : (iidd >> 18) & 0x3;
897 LogDebug(
"SiStripHitEfficiencyWorker") <<
"after good location check";
899 LogDebug(
"SiStripHitEfficiencyWorker") <<
"after list of clusters";
901 LogDebug(
"SiStripHitEfficiencyWorker") <<
"After layers=TKLayers if with TKlayers=" << TKlayers
906 LogDebug(
"SiStripHitEfficiencyWorker") <<
" Events Analysed " <<
events;
912 desc.
add<
bool>(
"UseOnlyHighPurityTracks",
true);
913 desc.
add<
bool>(
"cutOnTracks",
false);
914 desc.
add<
bool>(
"useAllHitsFromTracksWithMissingHits",
false);
915 desc.
add<
bool>(
"useFirstMeas",
false);
916 desc.
add<
bool>(
"useLastMeas",
false);
917 desc.
add<
double>(
"ClusterTrajDist", 64.0);
918 desc.
add<
double>(
"ResXSig", -1);
919 desc.
add<
double>(
"StripsApvEdge", 10.0);
927 desc.
add<
int>(
"ClusterMatchingMethod", 0);
928 desc.
add<
int>(
"Layer", 0);
929 desc.
add<
unsigned int>(
"trackMultiplicity", 100);
std::pair< LocalPoint, LocalError > LocalValues
const edm::ESGetToken< MeasurementTracker, CkfComponentsRecord > measTrackerToken_
virtual int nstrips() const =0
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)
void fill(double x, bool found, float weight=1.)
const_iterator end(bool update=false) const
const edm::EventSetup & c
constexpr char const * layerName[numberOfLayers]
const TrackerGeomDet * idToDetUnit(DetId) const override
Return the pointer to the GeomDetUnit corresponding to a given DetId.
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
std::vector< EffME1 > h_layer_vsPU
std::vector< MonitorElement * > h_resolution
unsigned int monodet_id() const
MonitorElement * h_instLumi
bool useOnlyHighPurityTracks_
virtual void setCurrentFolder(std::string const &fullpath)
EffME1(MonitorElement *total, MonitorElement *found)
std::vector< EffME1 > h_layer_vsBx
virtual const std::array< const float, 4 > parameters() const
const edm::EDGetTokenT< std::vector< Trajectory > > trajectories_token_
std::vector< MonitorElement * > h_hotcold
bool getByToken(EDGetToken token, Handle< PROD > &result) const
void bookHistograms(DQMStore::IBooker &booker, const edm::Run &run, const edm::EventSetup &setup) override
#define DEFINE_FWK_MODULE(type)
virtual void localParameters(AClusters const &clusters, ALocalValues &retValues, const GeomDetUnit &gd, const LocalTrajectoryParameters <p) const
std::vector< Track > TrackCollection
collection of Tracks
int bunchCrossing() const
std::vector< EffME1 > h_layer_vsCM
const Bounds & bounds() const
const edm::EDGetTokenT< DetIdCollection > digis_token_
virtual const StripTopology & specificTopology() const
Returns a reference to the strip proxy topology.
const Plane & surface() const
The nominal surface of the GeomDet.
const edm::EDGetTokenT< MeasurementTrackerEvent > trackerEvent_token_
constexpr std::array< uint8_t, layerIndexSize > layer
~SiStripHitEfficiencyWorker() override=default
bool getData(T &iHolder) const
const edm::ESGetToken< TkDetMap, TrackerTopologyRcd > tkDetMapToken_
void fillForTraj(const TrajectoryAtInvalidHit &tm, const TrackerTopology *tTopo, const TrackerGeometry *tkgeom, const StripClusterParameterEstimator &stripCPE, const SiStripQuality &stripQuality, const DetIdCollection &fedErrorIds, const edm::Handle< edm::DetSetVector< SiStripRawDigi >> &commonModeDigis, const edmNew::DetSetVector< SiStripCluster > &theClusters, int bunchCrossing, float instLumi, float PU, bool highPurity)
std::unique_ptr< TkHistoMap > hTotal
const edm::ESGetToken< StripClusterParameterEstimator, TkStripCPERecord > stripCPEToken_
const edm::ESGetToken< Propagator, TrackingComponentsRecord > propagatorToken_
const edm::ESGetToken< Chi2MeasurementEstimatorBase, TrackingComponentsRecord > chi2EstimatorToken_
EffTkMap(std::unique_ptr< TkHistoMap > &&total, std::unique_ptr< TkHistoMap > &&found)
unsigned int clusterMatchingMethod_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
const edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > tkGeomToken_
Abs< T >::type abs(const T &t)
unsigned int trackMultiplicityCut_
bool useAllHitsFromTracksWithMissingHits_
ParameterDescriptionBase * add(U const &iLabel, T const &value)
std::set< uint32_t > badModules_
const edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > tTopoToken_
const edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > magFieldToken_
SiStripHitEfficiencyWorker(const edm::ParameterSet &conf)
void analyze(const edm::Event &e, const edm::EventSetup &c) override
bool withinAcceptance() const
const edm::EDGetTokenT< TrajTrackAssociationCollection > trajTrackAsso_token_
Constants and enumerated types for FED/FEC systems.
MonitorElement * book2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, FUNC onbooking=NOOP())
double localErrorY() const
std::unique_ptr< TkHistoMap > hFound
const edm::EDGetTokenT< edmNew::DetSetVector< SiStripCluster > > clusters_token_
const_iterator find(id_type i, bool update=false) const
static const uint16_t STRIPS_PER_APV
const edm::EDGetTokenT< reco::TrackCollection > combinatorialTracks_token_
const edm::ESGetToken< SiStripQuality, SiStripQualityRcd > stripQualityToken_
const edm::EDGetTokenT< LumiScalersCollection > scalerToken_
std::vector< LumiScalers > LumiScalersCollection
void fill(uint32_t id, bool found, float weight=1.)
short getBadApvs(uint32_t detid) const
const edm::EDGetTokenT< edm::DetSetVector< SiStripRawDigi > > commonModeToken_
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
A Digi for the silicon strip detector, containing only adc information, and suitable for storing raw ...
double localErrorX() const
virtual float width() const =0
std::vector< EffME1 > h_layer_vsLumi
virtual void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)