38 edm::LogInfo(
"SUSY_HLT_PhotonHT") <<
"SUSY_HLT_PhotonHT::analyze" << std::endl;
45 if (!pfMETCollection.
isValid()) {
46 edm::LogError(
"SUSY_HLT_PhotonHT") <<
"invalid met collection" 55 if (!photonCollection.
isValid()) {
56 edm::LogError(
"SUSY_HLT_PhotonHT") <<
"invalid egamma collection" 65 edm::LogError(
"SUSY_HLT_PhotonHT") <<
"invalid collection: TriggerResults" 75 if (!triggerSummary.
isValid()) {
76 edm::LogError(
"SUSY_HLT_PhotonHT") <<
"invalid collection: TriggerSummary" 86 if (filterIndexPhoton < triggerSummary->sizeFilters()) {
90 float pt = triggerObjects[keys[0]].pt();
97 if (filterIndexHt < triggerSummary->sizeFilters()) {
100 float ht = triggerObjects[keys[0]].pt();
105 bool hasFired =
false, hasFiredAuxiliaryForHadronicLeg =
false;
107 unsigned int numTriggers = trigNames.
size();
108 for (
unsigned int hltIndex = 0; hltIndex < numTriggers; ++hltIndex) {
110 hltresults->
accept(hltIndex))
113 hltresults->
wasrun(hltIndex) && hltresults->
accept(hltIndex))
114 hasFiredAuxiliaryForHadronicLeg =
true;
117 if (hasFiredAuxiliaryForHadronicLeg || !
e.isRealData()) {
118 float recoPhotonPt = !photonCollection->empty() ? photonCollection->begin()->et() : 0;
119 float recoHt = !pfMETCollection->empty() ? pfMETCollection->begin()->et() : 0;
124 if (!pfMETCollection->empty() && recoPhotonPt >=
ptThrOffline_)
129 if (!pfMETCollection->empty() && recoPhotonPt >=
ptThrOffline_)
MonitorElement * h_photonTurnOn_den
edm::EDGetTokenT< edm::TriggerResults > triggerResults_
bool wasrun() const
Was at least one path run?
edm::InputTag triggerFilterHt_
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
edm::InputTag triggerFilterPhoton_
Strings::size_type size() const
edm::EDGetTokenT< reco::PFMETCollection > thePfMETCollection_
const TriggerObjectCollection & getObjects() const
MonitorElement * h_htTurnOn_den
MonitorElement * h_photonPt
std::vector< TriggerObject > TriggerObjectCollection
collection of trigger physics objects (e.g., all isolated muons)
static const char *const trigNames[]
MonitorElement * h_htTurnOn_num
std::string const & triggerName(unsigned int index) const
std::vector< size_type > Keys
std::string triggerPathAuxiliaryForHadronic_
MonitorElement * h_photonTurnOn_num
edm::EDGetTokenT< reco::PhotonCollection > thePhotonCollection_
edm::EDGetTokenT< trigger::TriggerEvent > theTrigSummary_