11 edm::LogInfo(
"SUSY_HLT_PhotonHT") <<
"Constructor SUSY_HLT_PhotonHT::SUSY_HLT_PhotonHT " << std::endl;
27 edm::LogInfo(
"SUSY_HLT_PhotonHT") <<
"Destructor SUSY_HLT_PhotonHT::~SUSY_HLT_PhotonHT " << std::endl;
32 edm::LogInfo(
"SUSY_HLT_PhotonHT") <<
"SUSY_HLT_PhotonHT::beginRun" << std::endl;
37 edm::LogInfo(
"SUSY_HLT_PhotonHT") <<
"SUSY_HLT_PhotonHT::bookHistograms" << std::endl;
45 edm::LogInfo(
"SUSY_HLT_PhotonHT") <<
"SUSY_HLT_PhotonHT::beginLuminosityBlock" << std::endl;
49 edm::LogInfo(
"SUSY_HLT_PhotonHT") <<
"SUSY_HLT_PhotonHT::analyze" << std::endl;
57 if ( !pfMETCollection.
isValid() ){
58 edm::LogError (
"SUSY_HLT_PhotonHT") <<
"invalid met collection" <<
"\n";
66 if ( !photonCollection.
isValid() ){
67 edm::LogError (
"SUSY_HLT_PhotonHT") <<
"invalid egamma collection" <<
"\n";
75 edm::LogError (
"SUSY_HLT_PhotonHT") <<
"invalid collection: TriggerResults" <<
"\n";
85 edm::LogError (
"SUSY_HLT_PhotonHT") <<
"invalid collection: TriggerSummary" <<
"\n";
94 if( filterIndexPhoton < triggerSummary->sizeFilters() ) {
98 float pt = triggerObjects[ keys[0] ].pt();
105 if( filterIndexHt < triggerSummary->sizeFilters() ) {
107 if( !keys.empty() ) {
108 float ht = triggerObjects[ keys[0] ].pt();
113 bool hasFired =
false, hasFiredAuxiliaryForHadronicLeg=
false;
115 unsigned int numTriggers = trigNames.
size();
116 for(
unsigned int hltIndex=0; hltIndex<numTriggers; ++hltIndex ){
121 if(hasFiredAuxiliaryForHadronicLeg || !e.
isRealData()) {
122 float recoPhotonPt = !photonCollection->empty() ? photonCollection->begin()->et() : 0;
123 float recoHt = !pfMETCollection->empty() ? pfMETCollection->begin()->et() : 0;
137 edm::LogInfo(
"SUSY_HLT_PhotonHT") <<
"SUSY_HLT_PhotonHT::endLuminosityBlock" << std::endl;
143 edm::LogInfo(
"SUSY_HLT_PhotonHT") <<
"SUSY_HLT_PhotonHT::endRun" << std::endl;
152 h_photonPt = ibooker_.
book1D(
"photonPt",
"Photon transverse momentum; p_{T} (GeV)", 20, 0, 500 );
153 h_ht = ibooker_.
book1D(
"ht",
"Hadronic activity;H_{T} (GeV)", 20, 0, 2000 );
MonitorElement * h_photonTurnOn_den
edm::EDGetTokenT< edm::TriggerResults > triggerResults_
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
bool wasrun() const
Was at least one path run?
void bookHistos(DQMStore::IBooker &)
edm::InputTag triggerFilterHt_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
bool accept() const
Has at least one path accepted the event?
const Keys & filterKeys(trigger::size_type index) const
trigger::size_type filterIndex(const edm::InputTag &filterTag) const
find index of filter in data-member vector from filter tag
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
edm::InputTag triggerFilterPhoton_
Strings::size_type size() const
void endRun(edm::Run const &run, edm::EventSetup const &eSetup) override
edm::EDGetTokenT< reco::PFMETCollection > thePfMETCollection_
void beginLuminosityBlock(edm::LuminosityBlock const &lumi, edm::EventSetup const &eSetup) override
const TriggerObjectCollection & getObjects() const
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
MonitorElement * book1D(Args &&...args)
MonitorElement * h_htTurnOn_den
void dqmBeginRun(edm::Run const &, edm::EventSetup const &) override
MonitorElement * h_photonPt
void analyze(edm::Event const &e, edm::EventSetup const &eSetup) override
std::vector< TriggerObject > TriggerObjectCollection
collection of trigger physics objects (e.g., all isolated muons)
static const char *const trigNames[]
MonitorElement * h_htTurnOn_num
void setCurrentFolder(const std::string &fullpath)
~SUSY_HLT_PhotonHT() override
std::string const & triggerName(unsigned int index) const
std::vector< size_type > Keys
std::string triggerPathAuxiliaryForHadronic_
void endLuminosityBlock(edm::LuminosityBlock const &lumi, edm::EventSetup const &eSetup) override
MonitorElement * h_photonTurnOn_num
edm::EDGetTokenT< reco::PhotonCollection > thePhotonCollection_
edm::EDGetTokenT< trigger::TriggerEvent > theTrigSummary_
edm::TriggerNames const & triggerNames(edm::TriggerResults const &triggerResults) const override
SUSY_HLT_PhotonHT(const edm::ParameterSet &ps)