184 combinatorialTracks_token_(
200 tkDetMapToken_(esConsumes<edm::Transition::BeginRun>()),
202 layers_(conf.getParameter<
int>(
"Layer")),
203 DEBUG_(conf.getUntrackedParameter<
bool>(
"Debug",
false)),
204 addLumi_(conf.getUntrackedParameter<
bool>(
"addLumi",
false)),
205 addCommonMode_(conf.getUntrackedParameter<
bool>(
"addCommonMode",
false)),
206 cutOnTracks_(conf.getParameter<
bool>(
"cutOnTracks")),
207 trackMultiplicityCut_(conf.getParameter<
unsigned int>(
"trackMultiplicity")),
208 useFirstMeas_(conf.getParameter<
bool>(
"useFirstMeas")),
209 useLastMeas_(conf.getParameter<
bool>(
"useLastMeas")),
210 useAllHitsFromTracksWithMissingHits_(conf.getParameter<
bool>(
"useAllHitsFromTracksWithMissingHits")),
211 clusterMatchingMethod_(conf.getParameter<
int>(
"ClusterMatchingMethod")),
212 resXSig_(conf.getParameter<
double>(
"ResXSig")),
213 clusterTracjDist_(conf.getParameter<
double>(
"ClusterTrajDist")),
214 stripsApvEdge_(conf.getParameter<
double>(
"StripsApvEdge")),
215 useOnlyHighPurityTracks_(conf.getParameter<
bool>(
"UseOnlyHighPurityTracks")),
216 bunchX_(conf.getUntrackedParameter<
int>(
"BunchCrossing", 0)),
217 showRings_(conf.getUntrackedParameter<
bool>(
"ShowRings",
false)),
218 showTOB6TEC9_(conf.getUntrackedParameter<
bool>(
"ShowTOB6TEC9",
false)) {
219 nTEClayers_ = (showRings_ ? 7 : 9);
222 if (!badModulesFile.empty()) {
223 std::ifstream badModules_file(badModulesFile);
224 uint32_t badmodule_detid;
225 int mods, fiber1, fiber2, fiber3;
226 if (badModules_file.is_open()) {
228 while (getline(badModules_file,
line)) {
229 if (badModules_file.eof())
231 std::stringstream
ss(
line);
232 ss >> badmodule_detid >>
mods >> fiber1 >> fiber2 >> fiber3;
233 if (badmodule_detid != 0 &&
mods == 1 && (fiber1 == 1 || fiber2 == 1 || fiber3 == 1))
234 badModules_.insert(badmodule_detid);
236 badModules_file.close();
239 if (!badModules_.empty())
240 LogDebug(
"SiStripHitEfficiencyWorker") <<
"Remove additionnal bad modules from the analysis: ";
241 for (
const auto badMod : badModules_) {
242 LogDebug(
"SiStripHitEfficiencyWorker") <<
" " << badMod;
250 h_bx = booker.
book1D(
"bx",
"bx", 3600, 0, 3600);
252 h_PU = booker.
book1D(
"PU",
"PU", 200, 0, 200);
253 h_nTracks = booker.
book1D(
"ntracks",
"n.tracks;n. tracks;n.events", 500, -0.5, 499.5);
263 booker.
book1D(
"goodlayer_found",
"goodlayer_found", 35, 0., 35.));
265 booker.
book1D(
"alllayer_found",
"alllayer_found", 35, 0., 35.));
269 "layer_found",
"layer_found", bounds::k_END_OF_LAYERS, 0., static_cast<float>(bounds::k_END_OF_LAYERS)),
271 "layer_total",
"layer_total", bounds::k_END_OF_LAYERS, 0., static_cast<float>(bounds::k_END_OF_LAYERS)));
278 auto ihres = booker.
book1D(Form(
"resol_layer_%i",
layer), lyrName, 125, -125., 125.);
285 booker.
book1D(Form(
"layerfound_vsLumi_layer_%i",
layer), lyrName, 100, 0, 25000)));
290 booker.
book1D(Form(
"layerfound_vsPU_layer_%i",
layer), lyrName, 45, 0, 90)));
295 booker.
book1D(Form(
"layerfound_vsCM_layer_%i",
layer), lyrName, 20, 0, 400)));
301 booker.
book1D(Form(
"totalVsBx_layer%i",
layer), Form(
"layer %i (%s)",
layer, lyrName.c_str()), 3565, 0, 3565),
302 booker.
book1D(Form(
"foundVsBx_layer%i",
layer), Form(
"layer %i (%s)",
layer, lyrName.c_str()), 3565, 0, 3565)));
306 if (
layer <= bounds::k_LayersAtTOBEnd) {
307 const bool isTIB =
layer <= bounds::k_LayersAtTIBEnd;
308 const auto partition = (isTIB ?
"TIB" :
"TOB");
309 const auto yMax = (isTIB ? 100 : 120);
312 Form(
"%s%i: Map of missing hits", partition, (isTIB ?
layer :
layer - bounds::k_LayersAtTIBEnd));
317 ::replaceInString(
name,
":",
"");
321 ihhotcold->setBinLabel(1,
"360", 1);
322 ihhotcold->setBinLabel(50,
"180", 1);
323 ihhotcold->setBinLabel(100,
"0", 1);
324 ihhotcold->setAxisTitle(
"Global Z [cm]", 2);
325 ihhotcold->setOption(
"colz");
328 const bool isTID =
layer <= bounds::k_LayersAtTIDEnd;
330 (isTID ? std::vector<std::string>{
"TIDplus",
"TIDminus"} : std::vector<std::string>{
"TECplus",
"TECminus"});
331 const auto axMax = (isTID ? 100 : 120);
335 ::replaceInString(forTitle,
"minus",
"-");
336 ::replaceInString(forTitle,
"plus",
"+");
340 const auto&
name = Form(
"%s %i Map of Missing Hits",
342 (isTID ?
layer - bounds::k_LayersAtTOBEnd :
layer - bounds::k_LayersAtTIDEnd));
343 const auto& tit = Form(
"%s%i: Map of Missing Hits",
345 (isTID ?
layer - bounds::k_LayersAtTOBEnd :
layer - bounds::k_LayersAtTIDEnd));
347 auto ihhotcold = booker.
book2D(
name, tit, 100, -axMax, axMax, 100, -axMax, axMax);
349 ihhotcold->setBinLabel(1,
"+Y", 1);
350 ihhotcold->setBinLabel(50,
"0", 1);
351 ihhotcold->setBinLabel(100,
"-Y", 1);
352 ihhotcold->setAxisTitle(
"Global X", 2);
353 ihhotcold->setBinLabel(1,
"-X", 2);
354 ihhotcold->setBinLabel(50,
"0", 2);
355 ihhotcold->setBinLabel(100,
"+X", 2);
356 ihhotcold->setOption(
"colz");
368 EffTkMap(std::make_unique<TkHistoMap>(tkDetMap, booker, tkDetMapFolder,
"perModule_total", 0,
false,
true),
369 std::make_unique<TkHistoMap>(tkDetMap, booker, tkDetMapFolder,
"perModule_found", 0,
false,
true));
375 std::make_unique<TkHistoMap>(tkDetMap, booker, FEDErrorMapFolder,
"perModule_FEDErrors", 0,
false,
true);
383 LogDebug(
"SiStripHitEfficiencyWorker") <<
"beginning analyze from HitEff";
399 }
else if (metaData.
isValid()) {
403 edm::LogWarning(
"SiStripHitEfficiencyWorker") <<
"could not find a source for the Luminosity and PU";
431 for (
const auto& fedErr : *fedErrorIds) {
455 LogDebug(
"SiStripHitEfficiencyWorker") <<
"number ckf tracks found = " << tracksCKF->size();
465 if (!tracksCKF->empty()) {
469 LogDebug(
"SiStripHitEfficiencyWorker")
475 for (
const auto& trajTrack : *trajTrackAssociationHandle) {
479 auto TMeas = trajTrack.key->measurements();
481 const bool hasMissingHits = std::any_of(std::begin(TMeas),
std::end(TMeas), [](
const auto& tm) {
487 for (
auto itm = TMeas.cbegin(); itm != TMeas.cend(); ++itm) {
488 const auto theInHit = (*itm).recHit();
493 LogDebug(
"SiStripHitEfficiencyWorker") <<
"theInHit is valid = " << theInHit->isValid();
495 unsigned int iidd = theInHit->geographicalId().rawId();
497 unsigned int TKlayers = ::checkLayer(iidd, tTopo);
503 LogDebug(
"SiStripHitEfficiencyWorker") <<
"TKlayer from trajectory: " << TKlayers <<
" from module = " << iidd
504 <<
" matched/stereo/rphi = " << ((iidd & 0x3) == 0) <<
"/" 505 << ((iidd & 0x3) == 1) <<
"/" << ((iidd & 0x3) == 2);
515 if (TKlayers == bounds::k_LayersAtTOBEnd || TKlayers == bounds::k_LayersAtTECEnd) {
516 LogDebug(
"SiStripHitEfficiencyWorker") <<
"skipping original TM for TOB 6 or TEC 9";
520 std::vector<TrajectoryAtInvalidHit> TMs;
528 if (::isDoubleSided(iidd, tTopo) && ((iidd & 0x3) == 0)) {
531 TMs.emplace_back(*itm, tTopo, tkgeom,
propagator, 1);
532 TMs.emplace_back(*itm, tTopo, tkgeom,
propagator, 2);
533 }
else if (::isDoubleSided(iidd, tTopo) && (!::check2DPartner(iidd, TMeas))) {
536 TMs.emplace_back(*itm, tTopo, tkgeom,
propagator, 1);
537 TMs.emplace_back(*itm, tTopo, tkgeom,
propagator, 2);
538 LogDebug(
"SiStripHitEfficiencyWorker") <<
" found a hit with a missing partner";
541 TMs.emplace_back(*itm, tTopo, tkgeom,
propagator);
549 const auto nextId = (itm + 1 != TMeas.end()) ? (itm + 1)->recHit()->geographicalId() :
DetId{};
551 if (TKlayers == 9 && theInHit->isValid() && !((!nextId.null()) && (::checkLayer(nextId.rawId(), tTopo) == 9))) {
554 const DetLayer* tob6 = measTracker.geometricSearchTracker()->tobLayers().back();
557 const auto tmp = theLayerMeasurements.measurements(*tob6, tsosTOB5, prop, chi2Estimator);
560 LogDebug(
"SiStripHitEfficiencyWorker") <<
"size of TM from propagation = " <<
tmp.size();
565 const auto& tob6TM =
tmp.back();
566 const auto& tob6Hit = tob6TM.recHit();
567 if (tob6Hit->geographicalId().rawId() != 0) {
568 LogDebug(
"SiStripHitEfficiencyWorker") <<
"tob6 hit actually being added to TM vector";
569 TMs.emplace_back(tob6TM, tTopo, tkgeom,
propagator);
575 if (TKlayers == 21 && theInHit->isValid() &&
576 !((!nextId.null()) && (::checkLayer(nextId.rawId(), tTopo) == 21))) {
577 const DetLayer* tec9pos = measTracker.geometricSearchTracker()->posTecLayers().back();
578 const DetLayer* tec9neg = measTracker.geometricSearchTracker()->negTecLayers().back();
585 LogDebug(
"SiStripHitEfficiencyWorker") <<
"there is a problem with TEC 9 extrapolation";
588 std::vector<TrajectoryMeasurement>
tmp;
589 if (tTopo->tecSide(iidd) == 1) {
590 tmp = theLayerMeasurements.measurements(*tec9neg, tsosTEC9, prop, chi2Estimator);
593 if (tTopo->tecSide(iidd) == 2) {
594 tmp = theLayerMeasurements.measurements(*tec9pos, tsosTEC9, prop, chi2Estimator);
602 const auto& tec9TM =
tmp.back();
603 const auto& tec9Hit = tec9TM.recHit();
605 const unsigned int tec9id = tec9Hit->geographicalId().rawId();
606 LogDebug(
"SiStripHitEfficiencyWorker")
607 <<
"tec9id = " << tec9id <<
" is Double sided = " << ::isDoubleSided(tec9id, tTopo)
608 <<
" and 0x3 = " << (tec9id & 0x3);
610 if (tec9Hit->geographicalId().rawId() != 0) {
611 LogDebug(
"SiStripHitEfficiencyWorker") <<
"tec9 hit actually being added to TM vector";
614 if (::isDoubleSided(tec9id, tTopo)) {
615 TMs.emplace_back(tec9TM, tTopo, tkgeom,
propagator, 1);
616 TMs.emplace_back(tec9TM, tTopo, tkgeom,
propagator, 2);
618 TMs.emplace_back(tec9TM, tTopo, tkgeom,
propagator);
623 for (
const auto& tm : TMs) {
637 LogDebug(
"SiStripHitEfficiencyWorker") <<
"After looping over TrajAtValidHit list";
639 LogDebug(
"SiStripHitEfficiencyWorker") <<
"end TMeasurement loop";
641 LogDebug(
"SiStripHitEfficiencyWorker") <<
"end of trajectories loop";
659 LogDebug(
"SiStripHitEfficiencyWorker") <<
"setting iidd = " << iidd <<
" before checking efficiency and ";
661 const auto xloc = tm.
localX();
662 const auto yloc = tm.
localY();
670 const auto TKlayers = ::checkLayer(iidd, tTopo);
672 const bool withinAcceptance =
673 tm.
withinAcceptance() && (!::isInBondingExclusionZone(iidd, TKlayers, yloc, yErr, tTopo));
677 (
layers_ == bounds::k_LayersStart))) {
678 LogDebug(
"SiStripHitEfficiencyWorker") <<
"Looking at layer under study";
679 unsigned int ModIsBad = 2;
680 unsigned int SiStripQualBad = 0;
681 float commonMode = -100;
685 if (!theClusters.
empty()) {
686 LogDebug(
"SiStripHitEfficiencyWorker") <<
"Checking clusters with size = " << theClusters.
size();
687 std::vector<::ClusterInfo> VCluster_info;
688 const auto idsv = theClusters.
find(iidd);
689 if (idsv != theClusters.
end()) {
691 LogDebug(
"SiStripHitEfficiencyWorker")
692 <<
"found (ClusterId == iidd) with ClusterId = " << idsv->id() <<
" and iidd = " << iidd;
701 if (TKlayers > bounds::k_LayersAtTOBEnd) {
702 const BoundPlane& plane = stripdet->surface();
704 dynamic_cast<const TrapezoidalPlaneBounds*>(&(plane.bounds())));
705 std::array<const float, 4>
const& parameterTrap = (*trapezoidalBounds).
parameters();
706 hbedge = parameterTrap[0];
707 htedge = parameterTrap[1];
708 hapoth = parameterTrap[3];
709 uylfac = (htedge - hbedge) / (htedge + hbedge) / hapoth;
710 uxlden = 1 + yloc * uylfac;
714 if (TrajStrip == -1) {
716 float pitch = stripdet->surface().bounds().width() / nstrips;
717 TrajStrip = xloc / pitch + nstrips / 2.0;
719 if (TKlayers > bounds::k_LayersAtTOBEnd) {
720 const float TrajLocXMid = xloc / (1 + (htedge - hbedge) * yloc / (htedge + hbedge) /
722 TrajStrip = TrajLocXMid / pitch + nstrips / 2.0;
727 for (
const auto& clus : *idsv) {
730 float sigma = ::checkConsistency(
parameters, xloc, xErr);
737 if (TKlayers > bounds::k_LayersAtTOBEnd) {
740 yErr * yErr * xloc * xloc * uylfac * uylfac / uxlden / uxlden / uxlden / uxlden);
743 VCluster_info.emplace_back(
res, sigma,
parameters.first.x());
745 LogDebug(
"SiStripHitEfficiencyWorker") <<
"Have ID match. residual = " <<
res <<
" res sigma = " << sigma;
748 LogDebug(
"SiStripHitEfficiencyWorker")
750 <<
" trajectory position = " << xloc <<
" traj error = " << xErr;
753 ::ClusterInfo finalCluster{1000.0, 1000.0, 0.0};
754 if (!VCluster_info.empty()) {
755 LogDebug(
"SiStripHitEfficiencyWorker") <<
"found clusters > 0";
756 if (VCluster_info.size() > 1) {
758 for (
const auto&
res : VCluster_info) {
762 LogDebug(
"SiStripHitEfficiencyWorker")
763 <<
"iresidual = " <<
res.xResidual <<
" isigma = " <<
res.xResidualPull
764 <<
" and FinalRes = " << finalCluster.xResidual;
767 finalCluster = VCluster_info[0];
769 VCluster_info.clear();
772 LogDebug(
"SiStripHitEfficiencyWorker") <<
"Final residual in X = " << finalCluster.xResidual <<
"+-" 773 << (finalCluster.xResidual / finalCluster.xResidualPull);
774 LogDebug(
"SiStripHitEfficiencyWorker")
775 <<
"Checking location of trajectory: abs(yloc) = " <<
abs(yloc) <<
" abs(xloc) = " <<
abs(xloc);
783 LogDebug(
"SiStripHitEfficiencyWorker") <<
"strip is bad from SiStripQuality";
786 LogDebug(
"SiStripHitEfficiencyWorker") <<
"strip is good from SiStripQuality";
790 for (
unsigned int ii = 0;
ii < fedErrorIds.
size();
ii++) {
791 if (iidd == fedErrorIds[
ii].rawId())
797 if (commonModeDigis.isValid() && TrajStrip >= 0 && TrajStrip <= 768) {
798 const auto digiframe = commonModeDigis->find(iidd);
799 if (digiframe != commonModeDigis->end())
804 LogDebug(
"SiStripHitEfficiencyWorker") <<
"before check good";
806 if (finalCluster.xResidualPull < 999.0) {
808 LogDebug(
"SiStripHitEfficiencyWorker")
809 <<
"hit being counted as good " << finalCluster.xResidual <<
" FinalRecHit " << iidd <<
" TKlayers " 810 << TKlayers <<
" xloc " << xloc <<
" yloc " << yloc <<
" module " << iidd
811 <<
" matched/stereo/rphi = " << ((iidd & 0x3) == 0) <<
"/" << ((iidd & 0x3) == 1) <<
"/" 812 << ((iidd & 0x3) == 2);
815 LogDebug(
"SiStripHitEfficiencyWorker")
816 <<
"hit being counted as bad ######### Invalid RPhi FinalResX " << finalCluster.xResidual
817 <<
" FinalRecHit " << iidd <<
" TKlayers " << TKlayers <<
" xloc " << xloc <<
" yloc " << yloc
818 <<
" module " << iidd <<
" matched/stereo/rphi = " << ((iidd & 0x3) == 0) <<
"/" << ((iidd & 0x3) == 1)
819 <<
"/" << ((iidd & 0x3) == 2);
821 LogDebug(
"SiStripHitEfficiencyWorker")
822 <<
" RPhi Error " <<
sqrt(xErr * xErr + yErr * yErr) <<
" ErrorX " << xErr <<
" yErr " << yErr;
825 LogDebug(
"SiStripHitEfficiencyWorker")
826 <<
"To avoid them staying unused: ModIsBad=" << ModIsBad <<
", SiStripQualBad=" << SiStripQualBad
827 <<
", commonMode=" << commonMode <<
", highPurity=" <<
highPurity 828 <<
", withinAcceptance=" << withinAcceptance;
830 unsigned int layer = TKlayers;
832 if (
layer <= bounds::k_LayersAtTIDEnd) {
833 layer = bounds::k_LayersAtTOBEnd +
836 layer = bounds::k_LayersAtTIDEnd + tTopo->
tecRing(iidd);
839 unsigned int layerWithSide =
layer;
840 if (
layer > bounds::k_LayersAtTOBEnd &&
layer <= bounds::k_LayersAtTIDEnd) {
841 const auto side = tTopo->
tidSide(iidd);
843 layerWithSide =
layer + 3;
844 }
else if (
layer > bounds::k_LayersAtTIDEnd) {
845 const auto side = tTopo->
tecSide(iidd);
847 layerWithSide =
layer + 3;
848 }
else if (side == 2) {
853 if ((
bunchX_ > 0 &&
bunchX_ != bunchCrossing) || (!withinAcceptance) ||
855 (!
showTOB6TEC9_ && (TKlayers == bounds::k_LayersAtTOBEnd || TKlayers == bounds::k_LayersAtTECEnd)) ||
859 const bool badquality = (SiStripQualBad == 1);
864 bool badflag =
false;
869 if (ModIsBad == 1 || finalCluster.xResidualPull >
resXSig_)
877 if (finalCluster.xResidualPull ==
887 double stripTrajMid = xloc / Pitch + nstrips / 2.0;
888 double stripCluster = finalCluster.xLocal / Pitch + nstrips / 2.0;
891 if (stripdet &&
layer > bounds::k_LayersAtTOBEnd) {
893 std::array<const float, 4>
const&
parameters = trapezoidalBounds.parameters();
897 const float TrajLocXMid = xloc / (1 + (htedge - hbedge) * yloc / (htedge + hbedge) /
899 stripTrajMid = TrajLocXMid / Pitch + nstrips / 2.0;
903 LogDebug(
"SiStripHitEfficiencyWorker")
904 <<
"layer " <<
layer <<
" vector index " <<
layer - 1 <<
" before filling h_resolution" << std::endl;
911 if (finalCluster.xResidualPull == 1000.0) {
912 LogDebug(
"SiStripHitEfficiencyWorker") <<
"Marking bad for resxsig=1000";
918 LogDebug(
"SiStripHitEfficiencyWorker") <<
"Marking bad for cluster-to-traj distance";
928 LogDebug(
"SiStripHitEfficiencyWorker") <<
"Too close to the edge: " << stripInAPV;
932 LogDebug(
"SiStripHitEfficiencyWorker") <<
"Marking bad for tapv!=capv";
939 LogDebug(
"SiStripHitEfficiencyWorker")
940 <<
"Filling measurement for " << iidd <<
" in layer " <<
layer <<
" histograms with bx=" << bunchCrossing
941 <<
", lumi=" <<
instLumi <<
", PU=" <<
PU <<
"; bad flag=" << badflag;
945 if (
layer > bounds::k_LayersStart &&
layer <= bounds::k_LayersAtTIBEnd) {
949 }
else if (
layer > bounds::k_LayersAtTIBEnd &&
layer <= bounds::k_LayersAtTOBEnd) {
953 }
else if (
layer > bounds::k_LayersAtTOBEnd &&
layer <= bounds::k_LayersAtTIDEnd) {
956 int side = tTopo->
tidSide(iidd);
961 }
else if (
layer > bounds::k_LayersAtTIDEnd) {
964 int side = tTopo->
tecSide(iidd);
972 LogDebug(
"SiStripHitEfficiencyWorker")
973 <<
"layer " <<
layer <<
" vector index " <<
layer - 1 <<
" before filling h_layer_vsSmthg" << std::endl;
1013 LogDebug(
"SiStripHitEfficiencyWorker") <<
"after good location check";
1015 LogDebug(
"SiStripHitEfficiencyWorker") <<
"after list of clusters";
1017 LogDebug(
"SiStripHitEfficiencyWorker") <<
"After layers=TKLayers if with TKlayers=" << TKlayers
1024 desc.add<
bool>(
"UseOnlyHighPurityTracks",
true);
1025 desc.add<
bool>(
"cutOnTracks",
false);
1026 desc.add<
bool>(
"useAllHitsFromTracksWithMissingHits",
false);
1027 desc.add<
bool>(
"useFirstMeas",
false);
1028 desc.add<
bool>(
"useLastMeas",
false);
1029 desc.add<
double>(
"ClusterTrajDist", 64.0);
1030 desc.add<
double>(
"ResXSig", -1);
1031 desc.add<
double>(
"StripsApvEdge", 10.0);
1040 desc.add<
int>(
"ClusterMatchingMethod", 0);
1041 desc.add<
int>(
"Layer", 0);
1042 desc.add<
unsigned int>(
"trackMultiplicity", 100);
1043 desc.addUntracked<
bool>(
"Debug",
false);
1044 desc.addUntracked<
bool>(
"ShowRings",
false);
1045 desc.addUntracked<
bool>(
"ShowTOB6TEC9",
false);
1046 desc.addUntracked<
bool>(
"addCommonMode",
false);
1047 desc.addUntracked<
bool>(
"addLumi",
true);
1048 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
std::unique_ptr< TkHistoMap > FEDErrorOccupancy
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_
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