11 edm::LogInfo(
"SUSY_HLT_PhotonMET") <<
"Constructor SUSY_HLT_PhotonMET::SUSY_HLT_PhotonMET " << std::endl;
24 edm::LogInfo(
"SUSY_HLT_PhotonMET") <<
"Destructor SUSY_HLT_PhotonMET::~SUSY_HLT_PhotonMET " << std::endl;
29 edm::LogInfo(
"SUSY_HLT_PhotonMET") <<
"SUSY_HLT_PhotonMET::beginRun" << std::endl;
34 edm::LogInfo(
"SUSY_HLT_PhotonMET") <<
"SUSY_HLT_PhotonMET::bookHistograms" << std::endl;
42 edm::LogInfo(
"SUSY_HLT_PhotonMET") <<
"SUSY_HLT_PhotonMET::analyze" << std::endl;
49 if ( !pfMETCollection.
isValid() ){
50 edm::LogError (
"SUSY_HLT_PhotonMET") <<
"invalid met collection" <<
"\n";
58 if ( !photonCollection.
isValid() ){
59 edm::LogError (
"SUSY_HLT_PhotonMET") <<
"invalid egamma collection" <<
"\n";
67 edm::LogError (
"SUSY_HLT_PhotonMET") <<
"invalid collection: TriggerResults" <<
"\n";
72 if (photonCollection->empty() ||
abs(photonCollection->begin()->superCluster()->eta()) > 1.4442)
return;
75 float const recoPhotonPt = !photonCollection->empty() ? photonCollection->begin()->et() : 0;
76 float const recoMET = !pfMETCollection->empty() ? pfMETCollection->begin()->et() : 0;
81 bool hasFired =
false, hasFiredBaseTrigger=
false;
83 unsigned int const numTriggers = trigNames.
size();
84 for(
unsigned int hltIndex=0; hltIndex<numTriggers; ++hltIndex ){
105 edm::LogInfo(
"SUSY_HLT_PhotonMET") <<
"SUSY_HLT_PhotonMET::endRun" << std::endl;
114 h_recoPhotonPt = ibooker_.
book1D(
"recoPhotonPt",
"reco Photon transverse momentum; p_{T} (GeV)", 20, 0, 1000);
115 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
#define DEFINE_FWK_MODULE(type)
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
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[]
void setCurrentFolder(const std::string &fullpath)
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