9 edm::LogInfo(
"SUSY_HLT_PhotonMET") <<
"Constructor SUSY_HLT_PhotonMET::SUSY_HLT_PhotonMET " << std::endl;
21 edm::LogInfo(
"SUSY_HLT_PhotonMET") <<
"Destructor SUSY_HLT_PhotonMET::~SUSY_HLT_PhotonMET " << std::endl;
25 edm::LogInfo(
"SUSY_HLT_PhotonMET") <<
"SUSY_HLT_PhotonMET::beginRun" << std::endl;
29 edm::LogInfo(
"SUSY_HLT_PhotonMET") <<
"SUSY_HLT_PhotonMET::bookHistograms" << std::endl;
35 edm::LogInfo(
"SUSY_HLT_PhotonMET") <<
"SUSY_HLT_PhotonMET::analyze" << std::endl;
42 if (!pfMETCollection.
isValid()) {
43 edm::LogError(
"SUSY_HLT_PhotonMET") <<
"invalid met collection" 52 if (!photonCollection.
isValid()) {
53 edm::LogError(
"SUSY_HLT_PhotonMET") <<
"invalid egamma collection" 62 edm::LogError(
"SUSY_HLT_PhotonMET") <<
"invalid collection: TriggerResults" 68 if (photonCollection->empty() ||
abs(photonCollection->begin()->superCluster()->eta()) > 1.4442)
72 float const recoPhotonPt = !photonCollection->empty() ? photonCollection->begin()->et() : 0;
73 float const recoMET = !pfMETCollection->empty() ? pfMETCollection->begin()->et() : 0;
78 bool hasFired =
false, hasFiredBaseTrigger =
false;
80 unsigned int const numTriggers = trigNames.
size();
81 for (
unsigned int hltIndex = 0; hltIndex < numTriggers; ++hltIndex) {
83 hltresults->
accept(hltIndex))
86 hltresults->
accept(hltIndex))
87 hasFiredBaseTrigger =
true;
107 edm::LogInfo(
"SUSY_HLT_PhotonMET") <<
"SUSY_HLT_PhotonMET::endRun" << std::endl;
115 h_recoPhotonPt = ibooker_.
book1D(
"recoPhotonPt",
"reco Photon transverse momentum; p_{T} (GeV)", 20, 0, 1000);
116 h_recoMet = ibooker_.
book1D(
"recoMet",
"reco Missing transverse energy;E_{T}^{miss} (GeV)", 20, 0, 1000);
MonitorElement * h_recoMet
MonitorElement * h_metTurnOn_den
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
bool wasrun() const
Was at least one path run?
MonitorElement * h_recoPhotonPt
MonitorElement * h_metTurnOn_num
bool getByToken(EDGetToken token, Handle< PROD > &result) const
~SUSY_HLT_PhotonMET() override
bool accept() const
Has at least one path accepted the event?
void endRun(edm::Run const &run, edm::EventSetup const &eSetup) override
Strings::size_type size() const
MonitorElement * h_photonTurnOn_den
#define DEFINE_FWK_MODULE(type)
void setCurrentFolder(std::string const &fullpath)
edm::EDGetTokenT< reco::PhotonCollection > thePhotonCollection_
edm::EDGetTokenT< edm::TriggerResults > triggerResults_
MonitorElement * book1D(Args &&...args)
Abs< T >::type abs(const T &t)
void dqmBeginRun(edm::Run const &, edm::EventSetup const &) override
static const char *const trigNames[]
edm::EDGetTokenT< reco::PFMETCollection > thePfMETCollection_
std::string const & triggerName(unsigned int index) const
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
MonitorElement * h_photonTurnOn_num
std::string triggerPathBase_
SUSY_HLT_PhotonMET(const edm::ParameterSet &ps)
void analyze(edm::Event const &e, edm::EventSetup const &eSetup) override
void bookHistos(DQMStore::IBooker &)
edm::TriggerNames const & triggerNames(edm::TriggerResults const &triggerResults) const override