12 #include "TLorentzVector.h" 29 : theGsfElectronCollection_(
36 triggerProcess_(ps.getParameter<
std::
string>(
"triggerProcess")),
37 triggerNames_(ps.getParameter<
std::vector<
std::
string> >(
"triggerNames")),
38 histFolder_(ps.getParameter<
std::
string>(
"histFolder")),
39 efficiencyFolder_(histFolder_ +
"/efficiency_raw"),
40 stage2CaloLayer2EGammaToken_(
42 electronEfficiencyThresholds_(ps.getParameter<
std::vector<double> >(
"electronEfficiencyThresholds")),
43 electronEfficiencyBins_(ps.getParameter<
std::vector<double> >(
"electronEfficiencyBins")),
44 probeToL1Offset_(ps.getParameter<double>(
"probeToL1Offset")),
45 deepInspectionElectronThresholds_(ps.getParameter<
std::vector<double> >(
"deepInspectionElectronThresholds")),
46 photonEfficiencyThresholds_(ps.getParameter<
std::vector<double> >(
"photonEfficiencyThresholds")),
47 photonEfficiencyBins_(ps.getParameter<
std::vector<double> >(
"photonEfficiencyBins")),
48 maxDeltaRForL1Matching_(ps.getParameter<double>(
"maxDeltaRForL1Matching")),
49 maxDeltaRForHLTMatching_(ps.getParameter<double>(
"maxDeltaRForHLTMatching")),
50 recoToL1TThresholdFactor_(ps.getParameter<double>(
"recoToL1TThresholdFactor")),
53 tagAndProbleInvariantMass_(-1.),
61 h_L1EGammaETvsElectronET_EB_(),
62 h_L1EGammaETvsElectronET_EE_(),
63 h_L1EGammaETvsElectronET_EB_EE_(),
64 h_L1EGammaPhivsElectronPhi_EB_(),
65 h_L1EGammaPhivsElectronPhi_EE_(),
66 h_L1EGammaPhivsElectronPhi_EB_EE_(),
67 h_L1EGammaEtavsElectronEta_(),
68 h_resolutionElectronET_EB_(),
69 h_resolutionElectronET_EE_(),
70 h_resolutionElectronET_EB_EE_(),
71 h_resolutionElectronPhi_EB_(),
72 h_resolutionElectronPhi_EE_(),
73 h_resolutionElectronPhi_EB_EE_(),
74 h_resolutionElectronEta_(),
75 h_efficiencyElectronET_EB_pass_(),
76 h_efficiencyElectronET_EE_pass_(),
77 h_efficiencyElectronET_EB_EE_pass_(),
78 h_efficiencyElectronPhi_vs_Eta_pass_(),
79 h_efficiencyElectronEta_pass_(),
80 h_efficiencyElectronPhi_pass_(),
81 h_efficiencyElectronNVertex_pass_(),
82 h_efficiencyElectronET_EB_total_(),
83 h_efficiencyElectronET_EE_total_(),
84 h_efficiencyElectronET_EB_EE_total_(),
85 h_efficiencyElectronPhi_vs_Eta_total_(),
86 h_efficiencyElectronEta_total_(),
87 h_efficiencyElectronPhi_total_(),
88 h_efficiencyElectronNVertex_total_(),
89 h_L1EGammaETvsPhotonET_EB_(),
90 h_L1EGammaETvsPhotonET_EE_(),
91 h_L1EGammaETvsPhotonET_EB_EE_(),
92 h_L1EGammaPhivsPhotonPhi_EB_(),
93 h_L1EGammaPhivsPhotonPhi_EE_(),
94 h_L1EGammaPhivsPhotonPhi_EB_EE_(),
95 h_L1EGammaEtavsPhotonEta_(),
96 h_resolutionPhotonEta_(),
97 h_efficiencyPhotonET_EB_pass_(),
98 h_efficiencyPhotonET_EE_pass_(),
99 h_efficiencyPhotonET_EB_EE_pass_(),
100 h_efficiencyPhotonET_EB_total_(),
101 h_efficiencyPhotonET_EE_total_(),
102 h_efficiencyPhotonET_EB_EE_total_() {
104 <<
"L1TEGammaOffline::L1TEGammaOffline " << std::endl;
111 edm::LogInfo(
"L1TEGammaOffline") <<
"Destructor L1TEGammaOffline::~L1TEGammaOffline " << std::endl;
118 edm::LogInfo(
"L1TEGammaOffline") <<
"L1TEGammaOffline::beginRun" << std::endl;
133 edm::LogInfo(
"L1TEGammaOffline") <<
"L1TEGammaOffline::bookHistograms" << std::endl;
144 edm::LogInfo(
"L1TEGammaOffline") <<
"L1TEGammaOffline::analyze" << std::endl;
148 if (!triggerResultHandle.
isValid()) {
149 edm::LogWarning(
"L1TEGammaOffline") <<
"invalid edm::TriggerResults handle" << std::endl;
156 if (!triggerEventHandle.
isValid()) {
157 edm::LogWarning(
"L1TEGammaOffline") <<
"invalid trigger::TriggerEvent handle" << std::endl;
165 edm::LogWarning(
"L1TEGammaOffline") <<
"invalid collection: vertex " << std::endl;
169 unsigned int nVertex = vertexHandle->size();
188 edm::LogWarning(
"L1TEGammaOffline") <<
"invalid collection: GSF electrons " << std::endl;
191 if (gsfElectrons->empty()) {
192 LogDebug(
"L1TEGammaOffline") <<
"empty collection: GSF electrons " << std::endl;
196 edm::LogWarning(
"L1TEGammaOffline") <<
"invalid collection: L1 EGamma " << std::endl;
200 LogDebug(
"L1TEGammaOffline") <<
"Could not find a tag & probe pair" << std::endl;
209 bool foundMatch =
false;
211 int bunchCrossing = 0;
213 double currentDeltaR =
deltaR(
egamma->eta(),
egamma->phi(), probeElectron.eta(), probeElectron.phi());
214 if (currentDeltaR > minDeltaR) {
217 minDeltaR = currentDeltaR;
218 closestL1EGamma = *
egamma;
224 LogDebug(
"L1TEGammaOffline") <<
"Could not find a matching L1 EGamma " << std::endl;
228 double recoEt = probeElectron.et();
229 double recoEta = probeElectron.eta();
230 double recoPhi = probeElectron.phi();
232 double l1Et = closestL1EGamma.
et();
233 double l1Eta = closestL1EGamma.
eta();
234 double l1Phi = closestL1EGamma.
phi();
237 double outOfBounds = 9999;
238 double resolutionEt = recoEt > 0 ? (l1Et - recoEt) / recoEt : outOfBounds;
285 for (
auto threshold : electronEfficiencyThresholds_) {
288 if (l1Et > threshold) {
308 for (
auto threshold : electronEfficiencyThresholds_) {
311 if (l1Et > threshold) {
338 bool foundBoth(
false);
343 for (
auto tagElectron : *electrons) {
344 for (
auto probeElectron : *electrons) {
345 if (tagElectron.p4() == probeElectron.p4())
348 auto combined(tagElectron.p4() + probeElectron.p4());
349 auto tagAbsEta =
std::abs(tagElectron.eta());
350 auto probeAbsEta =
std::abs(probeElectron.eta());
353 bool isEBEEGap = tagElectron.isEBEEGap() || probeElectron.isEBEEGap();
354 bool passesEta = !isEBEEGap && tagAbsEta < 2.5 && probeAbsEta < 2.5;
355 bool passesCharge = tagElectron.charge() == -probeElectron.charge();
358 bool tagPassesMediumID =
passesMediumEleId(tagElectron) && tagElectron.et() > 30.;
360 bool passesInvariantMass = combined.M() > 60 && combined.M() < 120;
363 if (passesEta && passesInvariantMass && passesCharge && tagPassesMediumID && probePassesLooseID &&
364 tagMatchesHLTObject) {
384 const float ecal_energy_inverse = 1.0 / electron.
ecalEnergy();
386 const float eOverP =
std::abs(1.0 - eSCoverP) * ecal_energy_inverse;
388 if (electron.
isEB() && eOverP > 0.241)
390 if (electron.
isEE() && eOverP > 0.14)
418 const float ecal_energy_inverse = 1.0 / electron.
ecalEnergy();
420 const float eOverP =
std::abs(1.0 - eSCoverP) * ecal_energy_inverse;
422 if (electron.
isEB() && eOverP < 0.134)
424 if (electron.
isEE() && eOverP > 0.13)
455 return !matchedObjects.empty();
467 edm::LogWarning(
"L1TEGammaOffline") <<
"invalid collection: reco::Photons " << std::endl;
471 edm::LogWarning(
"L1TEGammaOffline") <<
"invalid collection: L1 EGamma " << std::endl;
475 if (photons->empty()) {
476 LogDebug(
"L1TEGammaOffline") <<
"No photons found in event." << std::endl;
480 auto probePhoton = photons->at(0);
484 bool foundMatch =
false;
486 int bunchCrossing = 0;
488 double currentDeltaR =
deltaR(
egamma->eta(),
egamma->phi(), probePhoton.eta(), probePhoton.phi());
489 if (currentDeltaR > minDeltaR) {
492 minDeltaR = currentDeltaR;
493 closestL1EGamma = *
egamma;
499 LogDebug(
"L1TEGammaOffline") <<
"Could not find a matching L1 EGamma " << std::endl;
503 double recoEt = probePhoton.et();
504 double recoEta = probePhoton.eta();
505 double recoPhi = probePhoton.phi();
507 double l1Et = closestL1EGamma.
et();
508 double l1Eta = closestL1EGamma.
eta();
509 double l1Phi = closestL1EGamma.
phi();
512 double outOfBounds = 9999;
513 double resolutionEt = recoEt > 0 ? (l1Et - recoEt) / recoEt : outOfBounds;
540 if (l1Et > threshold) {
563 if (l1Et > threshold) {
575 edm::LogInfo(
"L1TEGammaOffline") <<
"L1TEGammaOffline::endRun" << std::endl;
591 ibooker.
book2D(
"L1EGammaETvsElectronET_EB",
592 "L1 EGamma E_{T} vs GSF Electron E_{T} (EB); GSF Electron E_{T} (GeV); L1 EGamma E_{T} (GeV)",
594 &templateETvsET.
binsX[0],
596 &templateETvsET.
binsY[0]);
598 ibooker.
book2D(
"L1EGammaETvsElectronET_EE",
599 "L1 EGamma E_{T} vs GSF Electron E_{T} (EE); GSF Electron E_{T} (GeV); L1 EGamma E_{T} (GeV)",
601 &templateETvsET.
binsX[0],
603 &templateETvsET.
binsY[0]);
605 ibooker.
book2D(
"L1EGammaETvsElectronET_EB_EE",
606 "L1 EGamma E_{T} vs GSF Electron E_{T} (EB+EE); GSF Electron E_{T} (GeV); L1 EGamma E_{T} (GeV)",
608 &templateETvsET.
binsX[0],
610 &templateETvsET.
binsY[0]);
614 "L1EGammaPhivsElectronPhi_EB",
615 "#phi_{electron}^{L1} vs #phi_{electron}^{offline} (EB); #phi_{electron}^{offline}; #phi_{electron}^{L1}",
617 templatePHIvsPHI.
xmin,
618 templatePHIvsPHI.
xmax,
620 templatePHIvsPHI.
ymin,
621 templatePHIvsPHI.
ymax);
623 "L1EGammaPhivsElectronPhi_EE",
624 "#phi_{electron}^{L1} vs #phi_{electron}^{offline} (EE); #phi_{electron}^{offline}; #phi_{electron}^{L1}",
626 templatePHIvsPHI.
xmin,
627 templatePHIvsPHI.
xmax,
629 templatePHIvsPHI.
ymin,
630 templatePHIvsPHI.
ymax);
632 "L1EGammaPhivsElectronPhi_EB_EE",
633 "#phi_{electron}^{L1} vs #phi_{electron}^{offline} (EB+EE); #phi_{electron}^{offline}; #phi_{electron}^{L1}",
635 templatePHIvsPHI.
xmin,
636 templatePHIvsPHI.
xmax,
638 templatePHIvsPHI.
ymin,
639 templatePHIvsPHI.
ymax);
642 "L1 EGamma #eta vs GSF Electron #eta; GSF Electron #eta; L1 EGamma #eta",
652 ibooker.
book1D(
"resolutionElectronET_EB",
653 "electron ET resolution (EB); (L1 EGamma E_{T} - GSF Electron E_{T})/GSF Electron E_{T}; events",
658 ibooker.
book1D(
"resolutionElectronET_EE",
659 "electron ET resolution (EE); (L1 EGamma E_{T} - GSF Electron E_{T})/GSF Electron E_{T}; events",
664 "resolutionElectronET_EB_EE",
665 "electron ET resolution (EB+EE); (L1 EGamma E_{T} - GSF Electron E_{T})/GSF Electron E_{T}; events",
671 ibooker.
book1D(
"resolutionElectronPhi_EB",
672 "#phi_{electron} resolution (EB); #phi_{electron}^{L1} - #phi_{electron}^{offline}; events",
677 ibooker.
book1D(
"resolutionElectronPhi_EE",
678 "electron #phi resolution (EE); #phi_{electron}^{L1} - #phi_{electron}^{offline}; events",
683 ibooker.
book1D(
"resolutionElectronPhi_EB_EE",
684 "electron #phi resolution (EB+EE); #phi_{electron}^{L1} - #phi_{electron}^{offline}; events",
690 ibooker.
book1D(
"resolutionElectronEta",
691 "electron #eta resolution (EB); L1 EGamma #eta - GSF Electron #eta; events",
699 int nBins = electronBins.size() - 1;
700 float* electronBinArray = &(electronBins[0]);
705 ibooker.
book1D(
"efficiencyElectronET_EB_threshold_" + str_threshold +
"_Num",
706 "electron efficiency (EB) (numerator); GSF Electron E_{T} (GeV); events",
710 ibooker.
book1D(
"efficiencyElectronET_EE_threshold_" + str_threshold +
"_Num",
711 "electron efficiency (EE) (numerator); GSF Electron E_{T} (GeV); events",
715 ibooker.
book1D(
"efficiencyElectronET_EB_EE_threshold_" + str_threshold +
"_Num",
716 "electron efficiency (EB+EE) (numerator); GSF Electron E_{T} (GeV); events",
720 ibooker.
book2D(
"efficiencyElectronPhi_vs_Eta_threshold_" + str_threshold +
"_Num",
721 "electron efficiency (numerator); GSF Electron #eta; GSF Electron #phi",
730 ibooker.
book1D(
"efficiencyElectronET_EB_threshold_" + str_threshold +
"_Den",
731 "electron efficiency (EB) (denominator); GSF Electron E_{T} (GeV); events",
735 ibooker.
book1D(
"efficiencyElectronET_EE_threshold_" + str_threshold +
"_Den",
736 "electron efficiency (EE) (denominator); GSF Electron E_{T} (GeV); events",
740 ibooker.
book1D(
"efficiencyElectronET_EB_EE_threshold_" + str_threshold +
"_Den",
741 "electron efficiency (EB+EE) (denominator); GSF Electron E_{T} (GeV); events",
745 ibooker.
book2D(
"efficiencyElectronPhi_vs_Eta_threshold_" + str_threshold +
"_Den",
746 "electron efficiency (denominator); GSF Electron #eta; GSF Electron #phi",
758 ibooker.
book1D(
"efficiencyElectronEta_threshold_" + str_threshold +
"_Num",
759 "electron efficiency (numerator); GSF Electron #eta; events",
764 ibooker.
book1D(
"efficiencyElectronPhi_threshold_" + str_threshold +
"_Num",
765 "electron efficiency (numerator); GSF Electron #phi; events",
770 ibooker.
book1D(
"efficiencyElectronNVertex_threshold_" + str_threshold +
"_Num",
771 "electron efficiency (numerator); Nvtx; events",
777 ibooker.
book1D(
"efficiencyElectronEta_threshold_" + str_threshold +
"_Den",
778 "electron efficiency (denominator); GSF Electron #eta; events",
783 ibooker.
book1D(
"efficiencyElectronPhi_threshold_" + str_threshold +
"_Den",
784 "electron efficiency (denominator); GSF Electron #phi; events",
789 ibooker.
book1D(
"efficiencyElectronNVertex_threshold_" + str_threshold +
"_Den",
790 "electron efficiency (denominator); Nvtx; events",
805 ibooker.
book2D(
"L1EGammaETvsPhotonET_EB",
806 "L1 EGamma E_{T} vs Photon E_{T} (EB); Photon E_{T} (GeV); L1 EGamma E_{T} (GeV)",
808 &templateETvsET.
binsX[0],
810 &templateETvsET.
binsY[0]);
812 ibooker.
book2D(
"L1EGammaETvsPhotonET_EE",
813 "L1 EGamma E_{T} vs Photon E_{T} (EE); Photon E_{T} (GeV); L1 EGamma E_{T} (GeV)",
815 &templateETvsET.
binsX[0],
817 &templateETvsET.
binsY[0]);
819 ibooker.
book2D(
"L1EGammaETvsPhotonET_EB_EE",
820 "L1 EGamma E_{T} vs Photon E_{T} (EB+EE); Photon E_{T} (GeV); L1 EGamma E_{T} (GeV)",
822 &templateETvsET.
binsX[0],
824 &templateETvsET.
binsY[0]);
828 ibooker.
book2D(
"L1EGammaPhivsPhotonPhi_EB",
829 "#phi_{photon}^{L1} vs #phi_{photon}^{offline} (EB); #phi_{photon}^{offline}; #phi_{photon}^{L1}",
831 templatePHIvsPHI.
xmin,
832 templatePHIvsPHI.
xmax,
834 templatePHIvsPHI.
ymin,
835 templatePHIvsPHI.
ymax);
837 ibooker.
book2D(
"L1EGammaPhivsPhotonPhi_EE",
838 "#phi_{photon}^{L1} vs #phi_{photon}^{offline} (EE); #phi_{photon}^{offline}; #phi_{photon}^{L1}",
840 templatePHIvsPHI.
xmin,
841 templatePHIvsPHI.
xmax,
843 templatePHIvsPHI.
ymin,
844 templatePHIvsPHI.
ymax);
846 "L1EGammaPhivsPhotonPhi_EB_EE",
847 "#phi_{photon}^{L1} vs #phi_{photon}^{offline} (EB+EE); #phi_{photon}^{offline}; #phi_{photon}^{L1}",
849 templatePHIvsPHI.
xmin,
850 templatePHIvsPHI.
xmax,
852 templatePHIvsPHI.
ymin,
853 templatePHIvsPHI.
ymax);
856 "L1EGammaEtavsPhotonEta",
"L1 EGamma #eta vs Photon #eta; Photon #eta; L1 EGamma #eta", 100, -3, 3, 100, -3, 3);
860 ibooker.
book1D(
"resolutionPhotonET_EB",
861 "photon ET resolution (EB); (L1 EGamma E_{T} - Photon E_{T})/ Photon E_{T}; events",
866 ibooker.
book1D(
"resolutionPhotonET_EE",
867 "photon ET resolution (EE); (L1 EGamma E_{T} - Photon E_{T})/ Photon E_{T}; events",
872 ibooker.
book1D(
"resolutionPhotonET_EB_EE",
873 "photon ET resolution (EB+EE); (L1 EGamma E_{T} - Photon E_{T})/ Photon E_{T}; events",
879 ibooker.
book1D(
"resolutionPhotonPhi_EB",
880 "#phi_{photon} resolution (EB); #phi_{photon}^{L1} - #phi_{photon}^{offline}; events",
885 ibooker.
book1D(
"resolutionPhotonPhi_EE",
886 "photon #phi resolution (EE); #phi_{photon}^{L1} - #phi_{photon}^{offline}; events",
891 ibooker.
book1D(
"resolutionPhotonPhi_EB_EE",
892 "photon #phi resolution (EB+EE); #phi_{photon}^{L1} - #phi_{photon}^{offline}; events",
898 "resolutionPhotonEta",
"photon #eta resolution (EB); L1 EGamma #eta - Photon #eta; events", 120, -0.3, 0.3);
903 int nBins = photonBins.size() - 1;
904 float* photonBinArray = &(photonBins[0]);
909 ibooker.
book1D(
"efficiencyPhotonET_EB_threshold_" + str_threshold +
"_Num",
910 "photon efficiency (EB) (numerator); Photon E_{T} (GeV); events",
914 ibooker.
book1D(
"efficiencyPhotonET_EE_threshold_" + str_threshold +
"_Num",
915 "photon efficiency (EE) (numerator); Photon E_{T} (GeV); events",
919 ibooker.
book1D(
"efficiencyPhotonET_EB_EE_threshold_" + str_threshold +
"_Num",
920 "photon efficiency (EB+EE) (numerator); Photon E_{T} (GeV); events",
925 ibooker.
book1D(
"efficiencyPhotonET_EB_threshold_" + str_threshold +
"_Den",
926 "photon efficiency (EB) (denominator); Photon E_{T} (GeV); events",
930 ibooker.
book1D(
"efficiencyPhotonET_EE_threshold_" + str_threshold +
"_Den",
931 "photon efficiency (EE) (denominator); Photon E_{T} (GeV); events",
935 ibooker.
book1D(
"efficiencyPhotonET_EB_EE_threshold_" + str_threshold +
"_Den",
936 "photon efficiency (EB+EE) (denominator); Photon E_{T} (GeV); events",
962 for (
auto mon : monElementstoNormalize) {
963 if (
mon !=
nullptr) {
964 auto h =
mon->getTH2F();
966 h->Scale(1,
"width");
std::vector< float > binsX
constexpr double deltaPhi(double phi1, double phi2)
BXVector< EGamma > EGammaBxCollection
const_iterator end(int bx) const
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX)
void bookElectronHistos(DQMStore::IBooker &)
std::map< double, MonitorElement * > h_efficiencyElectronNVertex_pass_
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
void dqmBeginRun(edm::Run const &, edm::EventSetup const &) override
void fillPhotons(edm::Event const &e, const unsigned int nVertex)
std::vector< double > electronEfficiencyBins_
MonitorElement * h_resolutionElectronPhi_EB_EE_
MonitorElement * h_L1EGammaPhivsElectronPhi_EE_
edm::EDGetTokenT< reco::GsfElectronCollection > theGsfElectronCollection_
MonitorElement * h_tagAndProbeMass_
double eta() const final
momentum pseudorapidity
trigger::TriggerObjectCollection getMatchedTriggerObjects(double eta, double phi, double maxDeltaR, const trigger::TriggerObjectCollection triggerObjects)
std::map< double, MonitorElement * > h_efficiencyPhotonET_EE_total_
MonitorElement * h_L1EGammaETvsElectronET_EB_EE_
float eSuperClusterOverP() const
std::map< double, MonitorElement * > h_efficiencyPhotonET_EB_pass_
MonitorElement * h_L1EGammaPhivsPhotonPhi_EB_
double maxDeltaRForL1Matching_
bool passesMediumEleId(reco::GsfElectron const &electron) const
MonitorElement * h_L1EGammaETvsPhotonET_EB_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
edm::EDGetTokenT< std::vector< reco::Photon > > thePhotonCollection_
void setCurrentFolder(std::string const &fullpath)
std::map< double, MonitorElement * > h_efficiencyElectronET_EB_EE_pass_
ParameterSet const & getParameterSet(ParameterSetID const &id)
const std::vector< std::string > & triggerNames() const
names of trigger paths
MonitorElement * h_L1EGammaETvsPhotonET_EE_
void fillElectrons(edm::Event const &e, const unsigned int nVertex)
std::map< double, MonitorElement * > h_efficiencyElectronPhi_pass_
std::map< double, MonitorElement * > h_efficiencyPhotonET_EB_EE_total_
trigger::TriggerObjectCollection getTriggerObjects(const std::vector< edm::InputTag > &hltFilters, const trigger::TriggerEvent &triggerEvent)
MonitorElement * h_resolutionPhotonET_EE_
std::vector< Vertex > VertexCollection
collection of Vertex objects
MonitorElement * h_resolutionElectronET_EB_
std::map< double, MonitorElement * > h_efficiencyElectronET_EB_total_
dqmoffline::l1t::HistDefinitions histDefinitions_
bool passesLooseEleId(reco::GsfElectron const &electron) const
void bookPhotonHistos(DQMStore::IBooker &)
~L1TEGammaOffline() override
std::map< double, MonitorElement * > h_efficiencyElectronPhi_vs_Eta_total_
L1TEGammaOffline(const edm::ParameterSet &ps)
MonitorElement * h_L1EGammaETvsElectronET_EB_
std::map< double, MonitorElement * > h_efficiencyElectronPhi_vs_Eta_pass_
std::vector< GsfElectron > GsfElectronCollection
collection of GsfElectron objects
MonitorElement * h_L1EGammaPhivsElectronPhi_EB_EE_
std::map< double, MonitorElement * > h_efficiencyPhotonET_EB_EE_pass_
std::vector< unsigned int > getTriggerIndices(const std::vector< std::string > &requestedTriggers, const std::vector< std::string > &triggersInEvent)
MonitorElement * h_resolutionElectronET_EE_
edm::EDGetTokenT< trigger::TriggerEvent > triggerInputTag_
void dqmEndRun(edm::Run const &run, edm::EventSetup const &eSetup) override
void normalise2DHistogramsToBinArea()
float deltaEtaSuperClusterTrackAtVtx() const
#define DEFINE_FWK_MODULE(type)
double maxDeltaRForHLTMatching_
float hadronicOverEm() const
std::vector< double > electronEfficiencyThresholds_
MonitorElement * h_L1EGammaPhivsPhotonPhi_EB_EE_
double et() const final
transverse energy
std::map< double, MonitorElement * > h_efficiencyElectronEta_pass_
float deltaPhiSuperClusterTrackAtVtx() const
std::map< double, MonitorElement * > h_efficiencyElectronNVertex_total_
MonitorElement * h_L1EGammaEtavsElectronEta_
std::string triggerProcess_
std::vector< edm::InputTag > getHLTFilters(const std::vector< unsigned int > &triggers, const HLTConfigProvider &hltConfig, const std::string triggerProcess)
MonitorElement * h_resolutionPhotonET_EB_
edm::EDGetTokenT< l1t::EGammaBxCollection > stage2CaloLayer2EGammaToken_
MonitorElement * h_resolutionElectronEta_
Abs< T >::type abs(const T &t)
reco::GsfElectron tagElectron_
void analyze(edm::Event const &e, edm::EventSetup const &eSetup) override
MonitorElement * h_resolutionPhotonEta_
float scSigmaIEtaIEta() const
MonitorElement * h_L1EGammaPhivsPhotonPhi_EE_
edm::EDGetTokenT< edm::TriggerResults > triggerResultsInputTag_
static const std::map< std::string, unsigned int > PlotConfigNames
std::map< double, MonitorElement * > h_efficiencyElectronET_EE_total_
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
HLTConfigProvider hltConfig_
std::vector< TriggerObject > TriggerObjectCollection
collection of trigger physics objects (e.g., all isolated muons)
HistDefinitions readHistDefinitions(const edm::ParameterSet &ps, const std::map< std::string, unsigned int > &mapping)
bool findTagAndProbePair(edm::Handle< reco::GsfElectronCollection > const &electrons)
std::map< double, MonitorElement * > h_efficiencyPhotonET_EB_total_
std::string efficiencyFolder_
std::map< double, MonitorElement * > h_efficiencyElectronET_EE_pass_
std::vector< double > deepInspectionElectronThresholds_
std::vector< float > binsY
reco::GsfElectron probeElectron_
bool matchesAnHLTObject(double eta, double phi) const
MonitorElement * h_resolutionPhotonPhi_EB_EE_
std::vector< bool > getTriggerResults(const std::vector< unsigned int > &triggers, const edm::TriggerResults &triggerResults)
bool init(const edm::Run &iRun, const edm::EventSetup &iSetup, const std::string &processName, bool &changed)
d'tor
void fill2DWithinLimits(MonitorElement *mon, double valueX, double valueY, double weight=1.)
std::map< double, MonitorElement * > h_efficiencyElectronPhi_total_
MonitorElement * h_resolutionElectronET_EB_EE_
std::map< double, MonitorElement * > h_efficiencyElectronEta_total_
std::map< double, MonitorElement * > h_efficiencyElectronET_EB_EE_total_
std::vector< std::string > triggerNames_
MonitorElement * h_resolutionElectronPhi_EB_
edm::TriggerResults triggerResults_
MonitorElement * h_nVertex_
void fillWithinLimits(MonitorElement *mon, double value, double weight=1.)
MonitorElement * h_resolutionPhotonPhi_EB_
std::vector< double > photonEfficiencyBins_
MonitorElement * h_L1EGammaETvsPhotonET_EB_EE_
MonitorElement * h_L1EGammaETvsElectronET_EE_
MonitorElement * book2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
MonitorElement * h_resolutionElectronPhi_EE_
MonitorElement * h_L1EGammaEtavsPhotonEta_
MonitorElement * h_resolutionPhotonPhi_EE_
edm::EDGetTokenT< reco::VertexCollection > thePVCollection_
std::vector< unsigned int > triggerIndices_
std::vector< double > photonEfficiencyThresholds_
std::map< double, MonitorElement * > h_efficiencyElectronET_EB_pass_
const_iterator begin(int bx) const
MonitorElement * h_L1EGammaPhivsElectronPhi_EB_
double phi() const final
momentum azimuthal angle
std::map< double, MonitorElement * > h_efficiencyPhotonET_EE_pass_
MonitorElement * h_resolutionPhotonET_EB_EE_
double recoToL1TThresholdFactor_
trigger::TriggerEvent triggerEvent_
std::vector< unsigned int > getFiredTriggerIndices(const std::vector< unsigned int > &triggers, const std::vector< bool > &triggerResults)
bool passesAnyTriggerFromList(const std::vector< unsigned int > &triggers, const edm::TriggerResults &triggerResults)