189 combinatorialTracks_token_(
205 tkDetMapToken_(esConsumes<edm::Transition::BeginRun>()),
207 layers_(conf.getParameter<
int>(
"Layer")),
208 DEBUG_(conf.getUntrackedParameter<
bool>(
"Debug",
false)),
209 addLumi_(conf.getUntrackedParameter<
bool>(
"addLumi",
false)),
210 addCommonMode_(conf.getUntrackedParameter<
bool>(
"addCommonMode",
false)),
211 cutOnTracks_(conf.getParameter<
bool>(
"cutOnTracks")),
212 trackMultiplicityCut_(conf.getParameter<
unsigned int>(
"trackMultiplicity")),
213 useFirstMeas_(conf.getParameter<
bool>(
"useFirstMeas")),
214 useLastMeas_(conf.getParameter<
bool>(
"useLastMeas")),
215 useAllHitsFromTracksWithMissingHits_(conf.getParameter<
bool>(
"useAllHitsFromTracksWithMissingHits")),
216 clusterMatchingMethod_(conf.getParameter<
int>(
"ClusterMatchingMethod")),
217 resXSig_(conf.getParameter<
double>(
"ResXSig")),
218 clusterTracjDist_(conf.getParameter<
double>(
"ClusterTrajDist")),
219 stripsApvEdge_(conf.getParameter<
double>(
"StripsApvEdge")),
220 useOnlyHighPurityTracks_(conf.getParameter<
bool>(
"UseOnlyHighPurityTracks")),
221 bunchX_(conf.getUntrackedParameter<
int>(
"BunchCrossing", 0)),
222 showRings_(conf.getUntrackedParameter<
bool>(
"ShowRings",
false)),
223 showTOB6TEC9_(conf.getUntrackedParameter<
bool>(
"ShowTOB6TEC9",
false)) {
224 nTEClayers_ = (showRings_ ? 7 : 9);
227 if (!badModulesFile.empty()) {
228 std::ifstream badModules_file(badModulesFile);
229 uint32_t badmodule_detid;
230 int mods, fiber1, fiber2, fiber3;
231 if (badModules_file.is_open()) {
233 while (getline(badModules_file,
line)) {
234 if (badModules_file.eof())
236 std::stringstream
ss(
line);
237 ss >> badmodule_detid >>
mods >> fiber1 >> fiber2 >> fiber3;
238 if (badmodule_detid != 0 &&
mods == 1 && (fiber1 == 1 || fiber2 == 1 || fiber3 == 1))
239 badModules_.insert(badmodule_detid);
241 badModules_file.close();
244 if (!badModules_.empty())
245 LogDebug(
"SiStripHitEfficiencyWorker") <<
"Remove additionnal bad modules from the analysis: ";
246 for (
const auto badMod : badModules_) {
247 LogDebug(
"SiStripHitEfficiencyWorker") <<
" " << badMod;
261 h_bx = booker.
book1D(
"bx",
"bx", 3600, 0, 3600);
263 h_PU = booker.
book1D(
"PU",
"PU", 200, 0, 200);
264 h_nTracks = booker.
book1D(
"ntracks",
"n.tracks;n. tracks;n.events", 500, -0.5, 499.5);
274 booker.
book1D(
"goodlayer_found",
"goodlayer_found", 35, 0., 35.));
276 booker.
book1D(
"alllayer_found",
"alllayer_found", 35, 0., 35.));
280 "layer_found",
"layer_found", bounds::k_END_OF_LAYERS, 0., static_cast<float>(bounds::k_END_OF_LAYERS)),
282 "layer_total",
"layer_total", bounds::k_END_OF_LAYERS, 0., static_cast<float>(bounds::k_END_OF_LAYERS)));
289 auto ihres = booker.
book1D(Form(
"resol_layer_%i",
layer), lyrName, 125, -125., 125.);
296 booker.
book1D(Form(
"layerfound_vsLumi_layer_%i",
layer), lyrName, 100, 0, 25000)));
301 booker.
book1D(Form(
"layerfound_vsPU_layer_%i",
layer), lyrName, 45, 0, 90)));
306 booker.
book1D(Form(
"layerfound_vsCM_layer_%i",
layer), lyrName, 20, 0, 400)));
312 booker.
book1D(Form(
"totalVsBx_layer%i",
layer), Form(
"layer %i (%s)",
layer, lyrName.c_str()), 3565, 0, 3565),
313 booker.
book1D(Form(
"foundVsBx_layer%i",
layer), Form(
"layer %i (%s)",
layer, lyrName.c_str()), 3565, 0, 3565)));
317 if (
layer <= bounds::k_LayersAtTOBEnd) {
318 const bool isTIB =
layer <= bounds::k_LayersAtTIBEnd;
319 const auto partition = (isTIB ?
"TIB" :
"TOB");
320 const auto yMax = (isTIB ? 100 : 120);
322 const auto tit = Form(
"%s%i: Map of missing hits", partition, (isTIB ?
layer :
layer - bounds::k_LayersAtTIBEnd));
324 auto ihhotcold = booker.
book2D(tit, tit, 100, -1, 361, 100, -
yMax,
yMax);
326 ihhotcold->setBinLabel(1,
"360", 1);
327 ihhotcold->setBinLabel(50,
"180", 1);
328 ihhotcold->setBinLabel(100,
"0", 1);
329 ihhotcold->setAxisTitle(
"Global Z [cm]", 2);
330 ihhotcold->setOption(
"colz");
333 const bool isTID =
layer <= bounds::k_LayersAtTIDEnd;
335 (isTID ? std::vector<std::string>{
"TID-",
"TID+"} : std::vector<std::string>{
"TEC-",
"TEC+"});
336 const auto axMax = (isTID ? 100 : 120);
338 const auto tit = Form(
"%s%i: Map of missing hits",
340 (isTID ?
layer - bounds::k_LayersAtTOBEnd :
layer - bounds::k_LayersAtTIDEnd));
342 auto ihhotcold = booker.
book2D(tit, tit, 100, -axMax, axMax, 100, -axMax, axMax);
344 ihhotcold->setBinLabel(1,
"+Y", 1);
345 ihhotcold->setBinLabel(50,
"0", 1);
346 ihhotcold->setBinLabel(100,
"-Y", 1);
347 ihhotcold->setAxisTitle(
"Global X", 2);
348 ihhotcold->setBinLabel(1,
"-X", 2);
349 ihhotcold->setBinLabel(50,
"0", 2);
350 ihhotcold->setBinLabel(100,
"+X", 2);
351 ihhotcold->setOption(
"colz");
363 EffTkMap(std::make_unique<TkHistoMap>(tkDetMap, booker, tkDetMapFolder,
"perModule_total", 0,
false,
true),
364 std::make_unique<TkHistoMap>(tkDetMap, booker, tkDetMapFolder,
"perModule_found", 0,
false,
true));
377 LogDebug(
"SiStripHitEfficiencyWorker") <<
"beginning analyze from HitEff";
393 }
else if (metaData.
isValid()) {
397 edm::LogWarning(
"SiStripHitEfficiencyWorker") <<
"could not find a source for the Luminosity and PU";
425 for (
const auto& fedErr : *fedErrorIds) {
447 LogDebug(
"SiStripHitEfficiencyWorker") <<
"number ckf tracks found = " << tracksCKF->size();
457 if (!tracksCKF->empty()) {
461 LogDebug(
"SiStripHitEfficiencyWorker")
469 for (
const auto& trajTrack : *trajTrackAssociationHandle) {
473 auto TMeas = trajTrack.key->measurements();
475 const bool hasMissingHits = std::any_of(std::begin(TMeas),
std::end(TMeas), [](
const auto& tm) {
481 for (
auto itm = TMeas.cbegin(); itm != TMeas.cend(); ++itm) {
482 const auto theInHit = (*itm).recHit();
487 LogDebug(
"SiStripHitEfficiencyWorker") <<
"theInHit is valid = " << theInHit->isValid();
489 unsigned int iidd = theInHit->geographicalId().rawId();
491 unsigned int TKlayers = ::checkLayer(iidd, tTopo);
497 LogDebug(
"SiStripHitEfficiencyWorker") <<
"TKlayer from trajectory: " << TKlayers <<
" from module = " << iidd
498 <<
" matched/stereo/rphi = " << ((iidd & 0x3) == 0) <<
"/" 499 << ((iidd & 0x3) == 1) <<
"/" << ((iidd & 0x3) == 2);
509 if (TKlayers == bounds::k_LayersAtTOBEnd || TKlayers == bounds::k_LayersAtTECEnd) {
510 LogDebug(
"SiStripHitEfficiencyWorker") <<
"skipping original TM for TOB 6 or TEC 9";
514 std::vector<TrajectoryAtInvalidHit> TMs;
522 if (::isDoubleSided(iidd, tTopo) && ((iidd & 0x3) == 0)) {
525 TMs.emplace_back(*itm, tTopo, tkgeom,
propagator, 1);
526 TMs.emplace_back(*itm, tTopo, tkgeom,
propagator, 2);
527 }
else if (::isDoubleSided(iidd, tTopo) && (!::check2DPartner(iidd, TMeas))) {
530 TMs.emplace_back(*itm, tTopo, tkgeom,
propagator, 1);
531 TMs.emplace_back(*itm, tTopo, tkgeom,
propagator, 2);
532 LogDebug(
"SiStripHitEfficiencyWorker") <<
" found a hit with a missing partner";
535 TMs.emplace_back(*itm, tTopo, tkgeom,
propagator);
543 const auto nextId = (itm + 1 != TMeas.end()) ? (itm + 1)->recHit()->geographicalId() :
DetId{};
545 if (TKlayers == 9 && theInHit->isValid() && !((!nextId.null()) && (::checkLayer(nextId.rawId(), tTopo) == 9))) {
548 const DetLayer* tob6 = measTracker.geometricSearchTracker()->tobLayers().back();
551 const auto tmp = theLayerMeasurements.measurements(*tob6, tsosTOB5, prop, chi2Estimator);
554 LogDebug(
"SiStripHitEfficiencyWorker") <<
"size of TM from propagation = " <<
tmp.size();
559 const auto& tob6TM =
tmp.back();
560 const auto& tob6Hit = tob6TM.recHit();
561 if (tob6Hit->geographicalId().rawId() != 0) {
562 LogDebug(
"SiStripHitEfficiencyWorker") <<
"tob6 hit actually being added to TM vector";
563 TMs.emplace_back(tob6TM, tTopo, tkgeom,
propagator);
569 if (TKlayers == 21 && theInHit->isValid() &&
570 !((!nextId.null()) && (::checkLayer(nextId.rawId(), tTopo) == 21))) {
571 const DetLayer* tec9pos = measTracker.geometricSearchTracker()->posTecLayers().back();
572 const DetLayer* tec9neg = measTracker.geometricSearchTracker()->negTecLayers().back();
579 LogDebug(
"SiStripHitEfficiencyWorker") <<
"there is a problem with TEC 9 extrapolation";
582 std::vector<TrajectoryMeasurement>
tmp;
583 if (tTopo->tecSide(iidd) == 1) {
584 tmp = theLayerMeasurements.measurements(*tec9neg, tsosTEC9, prop, chi2Estimator);
587 if (tTopo->tecSide(iidd) == 2) {
588 tmp = theLayerMeasurements.measurements(*tec9pos, tsosTEC9, prop, chi2Estimator);
596 const auto& tec9TM =
tmp.back();
597 const auto& tec9Hit = tec9TM.recHit();
599 const unsigned int tec9id = tec9Hit->geographicalId().rawId();
600 LogDebug(
"SiStripHitEfficiencyWorker")
601 <<
"tec9id = " << tec9id <<
" is Double sided = " << ::isDoubleSided(tec9id, tTopo)
602 <<
" and 0x3 = " << (tec9id & 0x3);
604 if (tec9Hit->geographicalId().rawId() != 0) {
605 LogDebug(
"SiStripHitEfficiencyWorker") <<
"tec9 hit actually being added to TM vector";
608 if (::isDoubleSided(tec9id, tTopo)) {
609 TMs.emplace_back(tec9TM, tTopo, tkgeom,
propagator, 1);
610 TMs.emplace_back(tec9TM, tTopo, tkgeom,
propagator, 2);
612 TMs.emplace_back(tec9TM, tTopo, tkgeom,
propagator);
617 for (
const auto& tm : TMs) {
631 LogDebug(
"SiStripHitEfficiencyWorker") <<
"After looping over TrajAtValidHit list";
633 LogDebug(
"SiStripHitEfficiencyWorker") <<
"end TMeasurement loop";
635 LogDebug(
"SiStripHitEfficiencyWorker") <<
"end of trajectories loop";
653 LogDebug(
"SiStripHitEfficiencyWorker") <<
"setting iidd = " << iidd <<
" before checking efficiency and ";
655 const auto xloc = tm.
localX();
656 const auto yloc = tm.
localY();
664 const auto TKlayers = ::checkLayer(iidd, tTopo);
666 const bool withinAcceptance =
667 tm.
withinAcceptance() && (!::isInBondingExclusionZone(iidd, TKlayers, yloc, yErr, tTopo));
671 (
layers_ == bounds::k_LayersStart))) {
672 LogDebug(
"SiStripHitEfficiencyWorker") <<
"Looking at layer under study";
673 unsigned int ModIsBad = 2;
674 unsigned int SiStripQualBad = 0;
675 float commonMode = -100;
679 if (!theClusters.
empty()) {
680 LogDebug(
"SiStripHitEfficiencyWorker") <<
"Checking clusters with size = " << theClusters.
size();
681 std::vector<::ClusterInfo> VCluster_info;
682 const auto idsv = theClusters.
find(iidd);
683 if (idsv != theClusters.
end()) {
685 LogDebug(
"SiStripHitEfficiencyWorker")
686 <<
"found (ClusterId == iidd) with ClusterId = " << idsv->id() <<
" and iidd = " << iidd;
695 if (TKlayers > bounds::k_LayersAtTOBEnd) {
696 const BoundPlane& plane = stripdet->surface();
698 dynamic_cast<const TrapezoidalPlaneBounds*>(&(plane.bounds())));
699 std::array<const float, 4>
const& parameterTrap = (*trapezoidalBounds).
parameters();
700 hbedge = parameterTrap[0];
701 htedge = parameterTrap[1];
702 hapoth = parameterTrap[3];
703 uylfac = (htedge - hbedge) / (htedge + hbedge) / hapoth;
704 uxlden = 1 + yloc * uylfac;
708 if (TrajStrip == -1) {
710 float pitch = stripdet->surface().bounds().width() / nstrips;
711 TrajStrip = xloc / pitch + nstrips / 2.0;
713 if (TKlayers > bounds::k_LayersAtTOBEnd) {
714 const float TrajLocXMid = xloc / (1 + (htedge - hbedge) * yloc / (htedge + hbedge) /
716 TrajStrip = TrajLocXMid / pitch + nstrips / 2.0;
721 for (
const auto& clus : *idsv) {
724 float sigma = ::checkConsistency(
parameters, xloc, xErr);
731 if (TKlayers > bounds::k_LayersAtTOBEnd) {
734 yErr * yErr * xloc * xloc * uylfac * uylfac / uxlden / uxlden / uxlden / uxlden);
737 VCluster_info.emplace_back(
res, sigma,
parameters.first.x());
739 LogDebug(
"SiStripHitEfficiencyWorker") <<
"Have ID match. residual = " <<
res <<
" res sigma = " << sigma;
742 LogDebug(
"SiStripHitEfficiencyWorker")
744 <<
" trajectory position = " << xloc <<
" traj error = " << xErr;
747 ::ClusterInfo finalCluster{1000.0, 1000.0, 0.0};
748 if (!VCluster_info.empty()) {
749 LogDebug(
"SiStripHitEfficiencyWorker") <<
"found clusters > 0";
750 if (VCluster_info.size() > 1) {
752 for (
const auto&
res : VCluster_info) {
756 LogDebug(
"SiStripHitEfficiencyWorker")
757 <<
"iresidual = " <<
res.xResidual <<
" isigma = " <<
res.xResidualPull
758 <<
" and FinalRes = " << finalCluster.xResidual;
761 finalCluster = VCluster_info[0];
763 VCluster_info.clear();
766 LogDebug(
"SiStripHitEfficiencyWorker") <<
"Final residual in X = " << finalCluster.xResidual <<
"+-" 767 << (finalCluster.xResidual / finalCluster.xResidualPull);
768 LogDebug(
"SiStripHitEfficiencyWorker")
769 <<
"Checking location of trajectory: abs(yloc) = " <<
abs(yloc) <<
" abs(xloc) = " <<
abs(xloc);
777 LogDebug(
"SiStripHitEfficiencyWorker") <<
"strip is bad from SiStripQuality";
780 LogDebug(
"SiStripHitEfficiencyWorker") <<
"strip is good from SiStripQuality";
784 for (
unsigned int ii = 0;
ii < fedErrorIds.
size();
ii++) {
785 if (iidd == fedErrorIds[
ii].rawId())
791 if (commonModeDigis.isValid() && TrajStrip >= 0 && TrajStrip <= 768) {
792 const auto digiframe = commonModeDigis->find(iidd);
793 if (digiframe != commonModeDigis->end())
798 LogDebug(
"SiStripHitEfficiencyWorker") <<
"before check good";
800 if (finalCluster.xResidualPull < 999.0) {
802 LogDebug(
"SiStripHitEfficiencyWorker")
803 <<
"hit being counted as good " << finalCluster.xResidual <<
" FinalRecHit " << iidd <<
" TKlayers " 804 << TKlayers <<
" xloc " << xloc <<
" yloc " << yloc <<
" module " << iidd
805 <<
" matched/stereo/rphi = " << ((iidd & 0x3) == 0) <<
"/" << ((iidd & 0x3) == 1) <<
"/" 806 << ((iidd & 0x3) == 2);
809 LogDebug(
"SiStripHitEfficiencyWorker")
810 <<
"hit being counted as bad ######### Invalid RPhi FinalResX " << finalCluster.xResidual
811 <<
" FinalRecHit " << iidd <<
" TKlayers " << TKlayers <<
" xloc " << xloc <<
" yloc " << yloc
812 <<
" module " << iidd <<
" matched/stereo/rphi = " << ((iidd & 0x3) == 0) <<
"/" << ((iidd & 0x3) == 1)
813 <<
"/" << ((iidd & 0x3) == 2);
815 LogDebug(
"SiStripHitEfficiencyWorker")
816 <<
" RPhi Error " <<
sqrt(xErr * xErr + yErr * yErr) <<
" ErrorX " << xErr <<
" yErr " << yErr;
819 LogDebug(
"SiStripHitEfficiencyWorker")
820 <<
"To avoid them staying unused: ModIsBad=" << ModIsBad <<
", SiStripQualBad=" << SiStripQualBad
821 <<
", commonMode=" << commonMode <<
", highPurity=" <<
highPurity 822 <<
", withinAcceptance=" << withinAcceptance;
824 unsigned int layer = TKlayers;
826 if (
layer <= bounds::k_LayersAtTIDEnd) {
827 layer = bounds::k_LayersAtTOBEnd +
830 layer = bounds::k_LayersAtTIDEnd + tTopo->
tecRing(iidd);
833 unsigned int layerWithSide =
layer;
834 if (
layer > bounds::k_LayersAtTOBEnd &&
layer <= bounds::k_LayersAtTIDEnd) {
835 const auto side = tTopo->
tidSide(iidd);
837 layerWithSide =
layer + 3;
838 }
else if (
layer > bounds::k_LayersAtTIDEnd) {
839 const auto side = tTopo->
tecSide(iidd);
841 layerWithSide =
layer + 3;
842 }
else if (side == 2) {
847 if ((
bunchX_ > 0 &&
bunchX_ != bunchCrossing) || (!withinAcceptance) ||
849 (!
showTOB6TEC9_ && (TKlayers == bounds::k_LayersAtTOBEnd || TKlayers == bounds::k_LayersAtTECEnd)) ||
853 const bool badquality = (SiStripQualBad == 1);
858 bool badflag =
false;
863 if (ModIsBad == 1 || finalCluster.xResidualPull >
resXSig_)
871 if (finalCluster.xResidualPull ==
881 double stripTrajMid = xloc / Pitch + nstrips / 2.0;
882 double stripCluster = finalCluster.xLocal / Pitch + nstrips / 2.0;
885 if (stripdet &&
layer > bounds::k_LayersAtTOBEnd) {
887 std::array<const float, 4>
const&
parameters = trapezoidalBounds.parameters();
891 const float TrajLocXMid = xloc / (1 + (htedge - hbedge) * yloc / (htedge + hbedge) /
893 stripTrajMid = TrajLocXMid / Pitch + nstrips / 2.0;
897 LogDebug(
"SiStripHitEfficiencyWorker")
898 <<
"layer " <<
layer <<
" vector index " <<
layer - 1 <<
" before filling h_resolution" << std::endl;
905 if (finalCluster.xResidualPull == 1000.0) {
906 LogDebug(
"SiStripHitEfficiencyWorker") <<
"Marking bad for resxsig=1000";
912 LogDebug(
"SiStripHitEfficiencyWorker") <<
"Marking bad for cluster-to-traj distance";
922 LogDebug(
"SiStripHitEfficiencyWorker") <<
"Too close to the edge: " << stripInAPV;
926 LogDebug(
"SiStripHitEfficiencyWorker") <<
"Marking bad for tapv!=capv";
933 LogDebug(
"SiStripHitEfficiencyWorker")
934 <<
"Filling measurement for " << iidd <<
" in layer " <<
layer <<
" histograms with bx=" << bunchCrossing
935 <<
", lumi=" <<
instLumi <<
", PU=" <<
PU <<
"; bad flag=" << badflag;
939 if (
layer > bounds::k_LayersStart &&
layer <= bounds::k_LayersAtTIBEnd) {
943 }
else if (
layer > bounds::k_LayersAtTIBEnd &&
layer <= bounds::k_LayersAtTOBEnd) {
947 }
else if (
layer > bounds::k_LayersAtTOBEnd &&
layer <= bounds::k_LayersAtTIDEnd) {
950 int side = tTopo->
tidSide(iidd);
955 }
else if (
layer > bounds::k_LayersAtTIDEnd) {
958 int side = tTopo->
tecSide(iidd);
966 LogDebug(
"SiStripHitEfficiencyWorker")
967 <<
"layer " <<
layer <<
" vector index " <<
layer - 1 <<
" before filling h_layer_vsSmthg" << std::endl;
1007 LogDebug(
"SiStripHitEfficiencyWorker") <<
"after good location check";
1009 LogDebug(
"SiStripHitEfficiencyWorker") <<
"after list of clusters";
1011 LogDebug(
"SiStripHitEfficiencyWorker") <<
"After layers=TKLayers if with TKlayers=" << TKlayers
1016 LogDebug(
"SiStripHitEfficiencyWorker") <<
" Events Analysed " <<
events;
1026 desc.add<
bool>(
"UseOnlyHighPurityTracks",
true);
1027 desc.add<
bool>(
"cutOnTracks",
false);
1028 desc.add<
bool>(
"useAllHitsFromTracksWithMissingHits",
false);
1029 desc.add<
bool>(
"useFirstMeas",
false);
1030 desc.add<
bool>(
"useLastMeas",
false);
1031 desc.add<
double>(
"ClusterTrajDist", 64.0);
1032 desc.add<
double>(
"ResXSig", -1);
1033 desc.add<
double>(
"StripsApvEdge", 10.0);
1042 desc.add<
int>(
"ClusterMatchingMethod", 0);
1043 desc.add<
int>(
"Layer", 0);
1044 desc.add<
unsigned int>(
"trackMultiplicity", 100);
1045 desc.addUntracked<
bool>(
"Debug",
false);
1046 desc.addUntracked<
bool>(
"ShowRings",
false);
1047 desc.addUntracked<
bool>(
"ShowTOB6TEC9",
false);
1048 desc.addUntracked<
bool>(
"addCommonMode",
false);
1049 desc.addUntracked<
bool>(
"addLumi",
true);
1050 desc.addUntracked<
int>(
"BunchCrossing", 0);
std::pair< LocalPoint, LocalError > LocalValues
const edm::ESGetToken< MeasurementTracker, CkfComponentsRecord > measTrackerToken_
MonitorElement * h_nTracksVsPU
virtual int nstrips() const =0
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)
void fill(double x, bool found, float weight=1.)
constexpr char const * layerName[numberOfLayers]
const TrackerGeomDet * idToDetUnit(DetId) const override
Return the pointer to the GeomDetUnit corresponding to a given DetId.
std::vector< EffME1 > h_layer_vsPU
std::vector< MonitorElement * > h_resolution
MonitorElement * h_instLumi
bool useOnlyHighPurityTracks_
virtual void setCurrentFolder(std::string const &fullpath)
EffME1(MonitorElement *total, MonitorElement *found)
std::vector< EffME1 > h_layer_vsBx
const edm::EDGetTokenT< std::vector< Trajectory > > trajectories_token_
std::vector< MonitorElement * > h_hotcold
virtual void localParameters(AClusters const &clusters, ALocalValues &retValues, const GeomDetUnit &gd, const LocalTrajectoryParameters <p) const
void bookHistograms(DQMStore::IBooker &booker, const edm::Run &run, const edm::EventSetup &setup) override
unsigned int tidSide(const DetId &id) const
#define DEFINE_FWK_MODULE(type)
Class to contain the online luminosity from soft FED 1022.
std::vector< Track > TrackCollection
collection of Tracks
unsigned int monodet_id() const
std::vector< EffME1 > h_layer_vsCM
const edm::EDGetTokenT< DetIdCollection > digis_token_
float instLumi() const
Return the luminosity for the current nibble.
std::unordered_map< uint32_t, int > fedErrorCounts
unsigned int tecRing(const DetId &id) const
ring id
const edm::EDGetTokenT< MeasurementTrackerEvent > trackerEvent_token_
constexpr std::array< uint8_t, layerIndexSize > layer
const_iterator end(bool update=false) const
~SiStripHitEfficiencyWorker() override=default
const edm::ESGetToken< TkDetMap, TrackerTopologyRcd > tkDetMapToken_
TkHistoMap FEDErrorOccupancy
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::EDGetTokenT< OnlineLuminosityRecord > metaDataToken_
const edm::ESGetToken< Chi2MeasurementEstimatorBase, TrackingComponentsRecord > chi2EstimatorToken_
double localErrorX() const
unsigned int tecSide(const DetId &id) const
EffTkMap(std::unique_ptr< TkHistoMap > &&total, std::unique_ptr< TkHistoMap > &&found)
MonitorElement * bookProfile(TString const &name, TString const &title, int nchX, double lowX, double highX, int, double lowY, double highY, char const *option="s", FUNC onbooking=NOOP())
unsigned int clusterMatchingMethod_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
const edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > tkGeomToken_
virtual const StripTopology & specificTopology() const
Returns a reference to the strip proxy topology.
Abs< T >::type abs(const T &t)
unsigned int trackMultiplicityCut_
bool useAllHitsFromTracksWithMissingHits_
bool getData(T &iHolder) const
virtual void setBinLabel(int bin, const std::string &label, int axis=1)
set bin label for x, y or z axis (axis=1, 2, 3 respectively)
std::set< uint32_t > badModules_
dqm::reco::MonitorElement * EventStats
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
SiStripHitEffData calibData_
const Plane & surface() const
The nominal surface of the GeomDet.
const edm::EDGetTokenT< TrajTrackAssociationCollection > trajTrackAsso_token_
Constants and enumerated types for FED/FEC systems.
double localErrorY() const
virtual const std::array< const float, 4 > parameters() const
MonitorElement * book2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, FUNC onbooking=NOOP())
std::unique_ptr< TkHistoMap > hFound
MonitorElement * h_nTracks
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_
unsigned int tidRing(const DetId &id) const
std::vector< LumiScalers > LumiScalersCollection
void fill(uint32_t id, bool found, float weight=1.)
const edm::EDGetTokenT< edm::DetSetVector< SiStripRawDigi > > commonModeToken_
Log< level::Warning, false > LogWarning
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 ...
virtual float width() const =0
std::vector< EffME1 > h_layer_vsLumi
MonitorElement * book2I(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, FUNC onbooking=NOOP())
float avgPileUp() const
Return the average pileup for th current nibble.
bool withinAcceptance() const
virtual void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
short getBadApvs(uint32_t detid) const
const Bounds & bounds() const