12 #include "TLorentzVector.h" 24 {
"nVertex", PlotConfig::nVertex},
25 {
"ETvsET", PlotConfig::ETvsET},
26 {
"PHIvsPHI", PlotConfig::PHIvsPHI}
33 theGsfElectronCollection_(
36 consumes <
std::vector<
reco::
Photon> > (ps.getParameter <
edm::InputTag > (
"photonCollection"))),
38 theBSCollection_(consumes <
reco::
BeamSpot > (ps.getParameter <
edm::InputTag > (
"beamSpotCollection"))),
39 triggerInputTag_(consumes <
trigger::TriggerEvent > (ps.getParameter <
edm::InputTag > (
"triggerInputTag"))),
40 triggerResultsInputTag_(consumes<
edm::TriggerResults>(ps.getParameter<
edm::InputTag>(
"triggerResults"))),
41 triggerProcess_(ps.getParameter <
std::
string > (
"triggerProcess")),
42 triggerNames_(ps.getParameter <
std::vector<
std::
string> > (
"triggerNames")),
43 histFolder_(ps.getParameter <
std::
string > (
"histFolder")),
44 efficiencyFolder_(histFolder_ +
"/efficiency_raw"),
45 stage2CaloLayer2EGammaToken_(
47 electronEfficiencyThresholds_(ps.getParameter <
std::vector<double> > (
"electronEfficiencyThresholds")),
48 electronEfficiencyBins_(ps.getParameter <
std::vector<double> > (
"electronEfficiencyBins")),
49 probeToL1Offset_(ps.getParameter <double> (
"probeToL1Offset")),
50 deepInspectionElectronThresholds_(ps.getParameter <
std::vector<double> > (
"deepInspectionElectronThresholds")),
51 photonEfficiencyThresholds_(ps.getParameter <
std::vector<double> > (
"photonEfficiencyThresholds")),
52 photonEfficiencyBins_(ps.getParameter <
std::vector<double> > (
"photonEfficiencyBins")),
53 maxDeltaRForL1Matching_(ps.getParameter <double> (
"maxDeltaRForL1Matching")),
54 maxDeltaRForHLTMatching_(ps.getParameter <double> (
"maxDeltaRForHLTMatching")),
57 tagAndProbleInvariantMass_(-1.),
65 h_L1EGammaETvsElectronET_EB_(),
66 h_L1EGammaETvsElectronET_EE_(),
67 h_L1EGammaETvsElectronET_EB_EE_(),
68 h_L1EGammaPhivsElectronPhi_EB_(),
69 h_L1EGammaPhivsElectronPhi_EE_(),
70 h_L1EGammaPhivsElectronPhi_EB_EE_(),
71 h_L1EGammaEtavsElectronEta_(),
72 h_resolutionElectronET_EB_(),
73 h_resolutionElectronET_EE_(),
74 h_resolutionElectronET_EB_EE_(),
75 h_resolutionElectronPhi_EB_(),
76 h_resolutionElectronPhi_EE_(),
77 h_resolutionElectronPhi_EB_EE_(),
78 h_resolutionElectronEta_(),
79 h_efficiencyElectronET_EB_pass_(),
80 h_efficiencyElectronET_EE_pass_(),
81 h_efficiencyElectronET_EB_EE_pass_(),
82 h_efficiencyElectronPhi_vs_Eta_pass_(),
83 h_efficiencyElectronEta_pass_(),
84 h_efficiencyElectronPhi_pass_(),
85 h_efficiencyElectronNVertex_pass_(),
86 h_efficiencyElectronET_EB_total_(),
87 h_efficiencyElectronET_EE_total_(),
88 h_efficiencyElectronET_EB_EE_total_(),
89 h_efficiencyElectronPhi_vs_Eta_total_(),
90 h_efficiencyElectronEta_total_(),
91 h_efficiencyElectronPhi_total_(),
92 h_efficiencyElectronNVertex_total_(),
93 h_L1EGammaETvsPhotonET_EB_(),
94 h_L1EGammaETvsPhotonET_EE_(),
95 h_L1EGammaETvsPhotonET_EB_EE_(),
96 h_L1EGammaPhivsPhotonPhi_EB_(),
97 h_L1EGammaPhivsPhotonPhi_EE_(),
98 h_L1EGammaPhivsPhotonPhi_EB_EE_(),
99 h_L1EGammaEtavsPhotonEta_(),
100 h_resolutionPhotonEta_(),
101 h_efficiencyPhotonET_EB_pass_(),
102 h_efficiencyPhotonET_EE_pass_(),
103 h_efficiencyPhotonET_EB_EE_pass_(),
104 h_efficiencyPhotonET_EB_total_(),
105 h_efficiencyPhotonET_EE_total_(),
106 h_efficiencyPhotonET_EB_EE_total_()
108 edm::LogInfo(
"L1TEGammaOffline") <<
"Constructor " <<
"L1TEGammaOffline::L1TEGammaOffline " << std::endl;
116 edm::LogInfo(
"L1TEGammaOffline") <<
"Destructor L1TEGammaOffline::~L1TEGammaOffline " << std::endl;
124 edm::LogInfo(
"L1TEGammaOffline") <<
"L1TEGammaOffline::beginRun" << std::endl;
128 <<
" HLT config extraction failure with process name " 141 edm::LogInfo(
"L1TEGammaOffline") <<
"L1TEGammaOffline::bookHistograms" << std::endl;
153 edm::LogInfo(
"L1TEGammaOffline") <<
"L1TEGammaOffline::analyze" << std::endl;
157 if (!triggerResultHandle.
isValid()) {
158 edm::LogWarning(
"L1TEGammaOffline") <<
"invalid edm::TriggerResults handle" << std::endl;
165 if (!triggerEventHandle.
isValid()) {
166 edm::LogWarning(
"L1TEGammaOffline") <<
"invalid trigger::TriggerEvent handle" << std::endl;
174 edm::LogWarning(
"L1TEGammaOffline") <<
"invalid collection: vertex " << std::endl;
178 unsigned int nVertex = vertexHandle->size();
198 edm::LogWarning(
"L1TEGammaOffline") <<
"invalid collection: GSF electrons " << std::endl;
201 if (gsfElectrons->empty()) {
202 LogDebug(
"L1TEGammaOffline") <<
"empty collection: GSF electrons " << std::endl;
206 edm::LogWarning(
"L1TEGammaOffline") <<
"invalid collection: L1 EGamma " << std::endl;
210 LogDebug(
"L1TEGammaOffline") <<
"Could not find a tag & probe pair" << std::endl;
219 bool foundMatch =
false;
221 int bunchCrossing = 0;
223 double currentDeltaR =
deltaR(
egamma->eta(),
egamma->phi(), probeElectron.eta(), probeElectron.phi());
224 if (currentDeltaR > minDeltaR) {
227 minDeltaR = currentDeltaR;
228 closestL1EGamma = *
egamma;
236 LogDebug(
"L1TEGammaOffline") <<
"Could not find a matching L1 EGamma " << std::endl;
240 double recoEt = probeElectron.et();
241 double recoEta = probeElectron.eta();
242 double recoPhi = probeElectron.phi();
244 double l1Et = closestL1EGamma.
et();
245 double l1Eta = closestL1EGamma.
eta();
246 double l1Phi = closestL1EGamma.
phi();
249 double outOfBounds = 9999;
250 double resolutionEt = recoEt > 0 ? (l1Et - recoEt) / recoEt : outOfBounds;
251 double resolutionEta = l1Eta - recoEta;
264 if(recoEt > threshold){
295 for (
auto threshold : electronEfficiencyThresholds_) {
298 if (l1Et > threshold) {
318 for (
auto threshold : electronEfficiencyThresholds_) {
321 if (l1Et > threshold) {
349 bool foundBoth(
false);
354 for (
auto tagElectron : *electrons) {
355 for (
auto probeElectron : *electrons) {
356 if (tagElectron.p4() == probeElectron.p4())
359 auto combined(tagElectron.p4() + probeElectron.p4());
360 auto tagAbsEta =
std::abs(tagElectron.eta());
361 auto probeAbsEta =
std::abs(probeElectron.eta());
364 bool isEBEEGap = tagElectron.isEBEEGap() || probeElectron.isEBEEGap();
365 bool passesEta = !isEBEEGap && tagAbsEta < 2.5 && probeAbsEta < 2.5;
366 bool passesCharge = tagElectron.charge() == -probeElectron.charge();
369 bool tagPassesMediumID =
passesMediumEleId(tagElectron) && tagElectron.et() > 30.;
371 bool passesInvariantMass = combined.M() > 60 && combined.M() < 120;
374 if (passesEta && passesInvariantMass && passesCharge && tagPassesMediumID &&
375 probePassesLooseID && tagMatchesHLTObject) {
397 const float ecal_energy_inverse = 1.0 / electron.
ecalEnergy();
399 const float eOverP =
std::abs(1.0 - eSCoverP) * ecal_energy_inverse;
401 if (electron.
isEB() && eOverP > 0.241)
403 if (electron.
isEE() && eOverP > 0.14)
432 const float ecal_energy_inverse = 1.0 / electron.
ecalEnergy();
434 const float eOverP =
std::abs(1.0 - eSCoverP) * ecal_energy_inverse;
436 if (electron.
isEB() && eOverP < 0.134)
438 if (electron.
isEE() && eOverP > 0.13)
468 return !matchedObjects.empty();
481 edm::LogWarning(
"L1TEGammaOffline") <<
"invalid collection: reco::Photons " << std::endl;
485 edm::LogWarning(
"L1TEGammaOffline") <<
"invalid collection: L1 EGamma " << std::endl;
489 if(photons->empty()){
490 LogDebug(
"L1TEGammaOffline") <<
"No photons found in event." << std::endl;
494 auto probePhoton = photons->at(0);
496 double minDeltaR = 0.3;
498 bool foundMatch =
false;
500 int bunchCrossing = 0;
502 double currentDeltaR =
deltaR(
egamma->eta(),
egamma->phi(), probePhoton.eta(), probePhoton.phi());
503 if (currentDeltaR > minDeltaR) {
506 minDeltaR = currentDeltaR;
507 closestL1EGamma = *
egamma;
514 LogDebug(
"L1TEGammaOffline") <<
"Could not find a matching L1 EGamma " << std::endl;
518 double recoEt = probePhoton.et();
519 double recoEta = probePhoton.eta();
520 double recoPhi = probePhoton.phi();
522 double l1Et = closestL1EGamma.
et();
523 double l1Eta = closestL1EGamma.
eta();
524 double l1Phi = closestL1EGamma.
phi();
527 double outOfBounds = 9999;
528 double resolutionEt = recoEt > 0 ? (l1Et - recoEt) / recoEt : outOfBounds;
529 double resolutionEta = l1Eta - recoEta;
555 if (l1Et > threshold) {
578 if (l1Et > threshold) {
591 edm::LogInfo(
"L1TEGammaOffline") <<
"L1TEGammaOffline::endRun" << std::endl;
610 "L1 EGamma E_{T} vs GSF Electron E_{T} (EB); GSF Electron E_{T} (GeV); L1 EGamma E_{T} (GeV)",
613 "L1 EGamma E_{T} vs GSF Electron E_{T} (EE); GSF Electron E_{T} (GeV); L1 EGamma E_{T} (GeV)",
616 "L1 EGamma E_{T} vs GSF Electron E_{T} (EB+EE); GSF Electron E_{T} (GeV); L1 EGamma E_{T} (GeV)",
621 "#phi_{electron}^{L1} vs #phi_{electron}^{offline} (EB); #phi_{electron}^{offline}; #phi_{electron}^{L1}",
622 templatePHIvsPHI.
nbinsX, templatePHIvsPHI.
xmin, templatePHIvsPHI.
xmax,
623 templatePHIvsPHI.
nbinsY, templatePHIvsPHI.
ymin, templatePHIvsPHI.
ymax);
625 "#phi_{electron}^{L1} vs #phi_{electron}^{offline} (EE); #phi_{electron}^{offline}; #phi_{electron}^{L1}",
626 templatePHIvsPHI.
nbinsX, templatePHIvsPHI.
xmin, templatePHIvsPHI.
xmax,
627 templatePHIvsPHI.
nbinsY, templatePHIvsPHI.
ymin, templatePHIvsPHI.
ymax);
629 "#phi_{electron}^{L1} vs #phi_{electron}^{offline} (EB+EE); #phi_{electron}^{offline}; #phi_{electron}^{L1}",
630 templatePHIvsPHI.
nbinsX, templatePHIvsPHI.
xmin, templatePHIvsPHI.
xmax,
631 templatePHIvsPHI.
nbinsY, templatePHIvsPHI.
ymin, templatePHIvsPHI.
ymax);
634 "L1 EGamma #eta vs GSF Electron #eta; GSF Electron #eta; L1 EGamma #eta", 100, -3, 3, 100, -3, 3);
638 "electron ET resolution (EB); (L1 EGamma E_{T} - GSF Electron E_{T})/GSF Electron E_{T}; events", 50, -1, 1.5);
640 "electron ET resolution (EE); (L1 EGamma E_{T} - GSF Electron E_{T})/GSF Electron E_{T}; events", 50, -1, 1.5);
642 "electron ET resolution (EB+EE); (L1 EGamma E_{T} - GSF Electron E_{T})/GSF Electron E_{T}; events", 50, -1, 1.5);
645 ibooker.
book1D(
"resolutionElectronPhi_EB",
646 "#phi_{electron} resolution (EB); #phi_{electron}^{L1} - #phi_{electron}^{offline}; events",
649 ibooker.
book1D(
"resolutionElectronPhi_EE",
650 "electron #phi resolution (EE); #phi_{electron}^{L1} - #phi_{electron}^{offline}; events",
653 ibooker.
book1D(
"resolutionElectronPhi_EB_EE",
654 "electron #phi resolution (EB+EE); #phi_{electron}^{L1} - #phi_{electron}^{offline}; events",
658 "electron #eta resolution (EB); L1 EGamma #eta - GSF Electron #eta; events", 120, -0.3, 0.3);
663 int nBins = electronBins.size() - 1;
664 float* electronBinArray = &(electronBins[0]);
669 "efficiencyElectronET_EB_threshold_" + str_threshold +
"_Num",
670 "electron efficiency (EB) (numerator); GSF Electron E_{T} (GeV); events", nBins, electronBinArray);
672 "efficiencyElectronET_EE_threshold_" + str_threshold +
"_Num",
673 "electron efficiency (EE) (numerator); GSF Electron E_{T} (GeV); events", nBins, electronBinArray);
675 "efficiencyElectronET_EB_EE_threshold_" + str_threshold +
"_Num",
676 "electron efficiency (EB+EE) (numerator); GSF Electron E_{T} (GeV); events", nBins, electronBinArray);
678 "efficiencyElectronPhi_vs_Eta_threshold_" + str_threshold +
"_Num",
679 "electron efficiency (numerator); GSF Electron #eta; GSF Electron #phi",
680 50, -2.5, 2.5, 32, -3.2, 3.2);
683 "efficiencyElectronET_EB_threshold_" + str_threshold +
"_Den",
684 "electron efficiency (EB) (denominator); GSF Electron E_{T} (GeV); events", nBins, electronBinArray);
686 "efficiencyElectronET_EE_threshold_" + str_threshold +
"_Den",
687 "electron efficiency (EE) (denominator); GSF Electron E_{T} (GeV); events", nBins, electronBinArray);
689 "efficiencyElectronET_EB_EE_threshold_" + str_threshold +
"_Den",
690 "electron efficiency (EB+EE) (denominator); GSF Electron E_{T} (GeV); events", nBins, electronBinArray);
692 "efficiencyElectronPhi_vs_Eta_threshold_" + str_threshold +
"_Den",
693 "electron efficiency (denominator); GSF Electron #eta; GSF Electron #phi",
694 50, -2.5, 2.5, 32, -3.2, 3.2);
700 "efficiencyElectronEta_threshold_" + str_threshold +
"_Num",
701 "electron efficiency (numerator); GSF Electron #eta; events", 50, -2.5, 2.5);
703 "efficiencyElectronPhi_threshold_" + str_threshold +
"_Num",
704 "electron efficiency (numerator); GSF Electron #phi; events", 32, -3.2, 3.2);
706 "efficiencyElectronNVertex_threshold_" + str_threshold +
"_Num",
707 "electron efficiency (numerator); Nvtx; events", 30, 0, 60);
710 "efficiencyElectronEta_threshold_" + str_threshold +
"_Den",
711 "electron efficiency (denominator); GSF Electron #eta; events", 50, -2.5, 2.5);
713 "efficiencyElectronPhi_threshold_" + str_threshold +
"_Den",
714 "electron efficiency (denominator); GSF Electron #phi; events", 32, -3.2, 3.2);
716 "efficiencyElectronNVertex_threshold_" + str_threshold +
"_Den",
717 "electron efficiency (denominator); Nvtx; events", 30, 0, 60);
731 "L1 EGamma E_{T} vs Photon E_{T} (EB); Photon E_{T} (GeV); L1 EGamma E_{T} (GeV)",
734 "L1 EGamma E_{T} vs Photon E_{T} (EE); Photon E_{T} (GeV); L1 EGamma E_{T} (GeV)",
737 "L1 EGamma E_{T} vs Photon E_{T} (EB+EE); Photon E_{T} (GeV); L1 EGamma E_{T} (GeV)",
742 "#phi_{photon}^{L1} vs #phi_{photon}^{offline} (EB); #phi_{photon}^{offline}; #phi_{photon}^{L1}",
743 templatePHIvsPHI.
nbinsX, templatePHIvsPHI.
xmin, templatePHIvsPHI.
xmax,
744 templatePHIvsPHI.
nbinsY, templatePHIvsPHI.
ymin, templatePHIvsPHI.
ymax);
746 "#phi_{photon}^{L1} vs #phi_{photon}^{offline} (EE); #phi_{photon}^{offline}; #phi_{photon}^{L1}",
747 templatePHIvsPHI.
nbinsX, templatePHIvsPHI.
xmin, templatePHIvsPHI.
xmax,
748 templatePHIvsPHI.
nbinsY, templatePHIvsPHI.
ymin, templatePHIvsPHI.
ymax);
750 "#phi_{photon}^{L1} vs #phi_{photon}^{offline} (EB+EE); #phi_{photon}^{offline}; #phi_{photon}^{L1}",
751 templatePHIvsPHI.
nbinsX, templatePHIvsPHI.
xmin, templatePHIvsPHI.
xmax,
752 templatePHIvsPHI.
nbinsY, templatePHIvsPHI.
ymin, templatePHIvsPHI.
ymax);
755 "L1 EGamma #eta vs Photon #eta; Photon #eta; L1 EGamma #eta", 100, -3, 3, 100, -3, 3);
759 "photon ET resolution (EB); (L1 EGamma E_{T} - Photon E_{T})/ Photon E_{T}; events", 50, -1, 1.5);
761 "photon ET resolution (EE); (L1 EGamma E_{T} - Photon E_{T})/ Photon E_{T}; events", 50, -1, 1.5);
763 "photon ET resolution (EB+EE); (L1 EGamma E_{T} - Photon E_{T})/ Photon E_{T}; events", 50, -1, 1.5);
766 "#phi_{photon} resolution (EB); #phi_{photon}^{L1} - #phi_{photon}^{offline}; events",
769 "photon #phi resolution (EE); #phi_{photon}^{L1} - #phi_{photon}^{offline}; events",
772 "photon #phi resolution (EB+EE); #phi_{photon}^{L1} - #phi_{photon}^{offline}; events",
776 "photon #eta resolution (EB); L1 EGamma #eta - Photon #eta; events", 120, -0.3, 0.3);
781 int nBins = photonBins.size() - 1;
782 float* photonBinArray = &(photonBins[0]);
787 "efficiencyPhotonET_EB_threshold_" + str_threshold +
"_Num",
788 "photon efficiency (EB) (numerator); Photon E_{T} (GeV); events", nBins, photonBinArray);
790 "efficiencyPhotonET_EE_threshold_" + str_threshold +
"_Num",
791 "photon efficiency (EE) (numerator); Photon E_{T} (GeV); events", nBins, photonBinArray);
793 "efficiencyPhotonET_EB_EE_threshold_" + str_threshold +
"_Num",
794 "photon efficiency (EB+EE) (numerator); Photon E_{T} (GeV); events", nBins, photonBinArray);
797 "efficiencyPhotonET_EB_threshold_" + str_threshold +
"_Den",
798 "photon efficiency (EB) (denominator); Photon E_{T} (GeV); events", nBins, photonBinArray);
800 "efficiencyPhotonET_EE_threshold_" + str_threshold +
"_Den",
801 "photon efficiency (EE) (denominator); Photon E_{T} (GeV); events", nBins, photonBinArray);
803 "efficiencyPhotonET_EB_EE_threshold_" + str_threshold +
"_Den",
804 "photon efficiency (EB+EE) (denominator); Photon E_{T} (GeV); events", nBins, photonBinArray);
815 std::vector<MonitorElement *> monElementstoNormalize = {
825 for (
auto mon : monElementstoNormalize) {
826 if (
mon !=
nullptr) {
827 auto h =
mon->getTH2F();
829 h->Scale(1,
"width");
std::vector< float > binsX
constexpr double deltaPhi(double phi1, double phi2)
BXVector< EGamma > EGammaBxCollection
const_iterator end(int bx) const
void bookElectronHistos(DQMStore::IBooker &)
std::map< double, MonitorElement * > h_efficiencyElectronNVertex_pass_
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_
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
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_
#define DEFINE_FWK_MODULE(type)
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 normalise2DHistogramsToBinArea()
float deltaEtaSuperClusterTrackAtVtx() const
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_
MonitorElement * book1D(Args &&...args)
edm::EDGetTokenT< l1t::EGammaBxCollection > stage2CaloLayer2EGammaToken_
MonitorElement * h_resolutionElectronEta_
Abs< T >::type abs(const T &t)
void endRun(edm::Run const &run, edm::EventSetup const &eSetup) override
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
double deltaR(double eta1, double eta2, double phi1, double phi2)
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)
void setCurrentFolder(const std::string &fullpath)
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_
MonitorElement * book2D(Args &&...args)
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 * 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_
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)