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::beginLuminosityBlock" << std::endl;
47 edm::LogInfo(
"SUSY_HLT_PhotonMET") <<
"SUSY_HLT_PhotonMET::analyze" << std::endl;
54 if ( !pfMETCollection.
isValid() ){
55 edm::LogError (
"SUSY_HLT_PhotonMET") <<
"invalid met collection" <<
"\n";
63 if ( !photonCollection.
isValid() ){
64 edm::LogError (
"SUSY_HLT_PhotonMET") <<
"invalid egamma collection" <<
"\n";
72 edm::LogError (
"SUSY_HLT_PhotonMET") <<
"invalid collection: TriggerResults" <<
"\n";
77 if (photonCollection->size()==0 ||
abs(photonCollection->begin()->superCluster()->eta()) > 1.4442)
return;
80 float const recoPhotonPt = photonCollection->size() ? photonCollection->begin()->et() : 0;
81 float const recoMET = pfMETCollection->size() ? pfMETCollection->begin()->et() : 0;
86 bool hasFired =
false, hasFiredBaseTrigger=
false;
88 unsigned int const numTriggers = trigNames.
size();
89 for(
unsigned int hltIndex=0; hltIndex<numTriggers; ++hltIndex ){
108 edm::LogInfo(
"SUSY_HLT_PhotonMET") <<
"SUSY_HLT_PhotonMET::endLuminosityBlock" << std::endl;
114 edm::LogInfo(
"SUSY_HLT_PhotonMET") <<
"SUSY_HLT_PhotonMET::endRun" << std::endl;
123 h_recoPhotonPt = ibooker_.
book1D(
"recoPhotonPt",
"reco Photon transverse momentum; p_{T} (GeV)", 20, 0, 1000);
124 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
#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
void beginLuminosityBlock(edm::LuminosityBlock const &lumi, edm::EventSetup const &eSetup) override
Strings::size_type size() const
void endLuminosityBlock(edm::LuminosityBlock const &lumi, edm::EventSetup const &eSetup) override
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)
virtual ~SUSY_HLT_PhotonMET()
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 &)
virtual edm::TriggerNames const & triggerNames(edm::TriggerResults const &triggerResults) const override